mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-29 09:18:50 +00:00
1 line
4.1 MiB
1 line
4.1 MiB
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(Ae,K,m){"use strict";m.d(K,{o:function(){return I}});var G=m(5671),W=m(3144),A=m(591),j=m(8929),I=function(){function P(){(0,G.Z)(this,P),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new j.xQ}return(0,W.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(E){this.findIndex(E)>=0?this.update(E):(this.data.push(E),this.dataChange.next(this.data))}},{key:"set",value:function(E){var H=this;E.forEach(function(v){var x=H.findIndex(v);if(x>=0){var w=Object.assign(H.data[x],v);H.data[x]=w}else H.data.push(v)}),this.data.filter(function(v){return 0===E.filter(function(x){return H.getItemKey(x)===H.getItemKey(v)}).length}).forEach(function(v){return H.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(E){var H=this,R=this.data.findIndex(function(v){return H.getItemKey(v)===E});if(R>=0)return this.data[R]}},{key:"update",value:function(E){var H=this.findIndex(E);if(H>=0){var R=Object.assign(this.data[H],E);this.data[H]=R,this.dataChange.next(this.data),this.itemUpdated.next(R)}}},{key:"remove",value:function(E){var H=this.findIndex(E);H>=0&&(this.data.splice(H,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(E){var H=this;return this.data.findIndex(function(R){return H.getItemKey(R)===H.getItemKey(E)})}}]),P}()},6215:function(Ae,K,m){"use strict";m.d(K,{F:function(){return T}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),I=m(5735),P=m(5e3),T=function(E){(0,A.Z)(R,E);var H=(0,j.Z)(R);function R(){return(0,G.Z)(this,R),H.apply(this,arguments)}return(0,W.Z)(R,[{key:"getItemKey",value:function(x){return x.link_id}}]),R}(I.o);T.\u0275fac=function(){var E;return function(R){return(E||(E=P.n5z(T)))(R||T)}}(),T.\u0275prov=P.Yz7({token:T,factory:T.\u0275fac})},5366:function(Ae,K,m){"use strict";m.d(K,{G:function(){return T}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),I=m(5735),P=m(5e3),T=function(E){(0,A.Z)(R,E);var H=(0,j.Z)(R);function R(){return(0,G.Z)(this,R),H.apply(this,arguments)}return(0,W.Z)(R,[{key:"getItemKey",value:function(x){return x.node_id}}]),R}(I.o);T.\u0275fac=function(){var E;return function(R){return(E||(E=P.n5z(T)))(R||T)}}(),T.\u0275prov=P.Yz7({token:T,factory:T.\u0275fac})},5542:function(Ae,K,m){"use strict";m.d(K,{X:function(){return P}});var G=m(5671),W=m(3144),A=m(4766),j=m(5e3),I=m(2437),P=function(){function T(E){(0,G.Z)(this,T),this.httpController=E}return(0,W.Z)(T,[{key:"getComputes",value:function(H){return this.httpController.get(H,"/computes")}},{key:"getUploadPath",value:function(H,R,v){return"".concat(H.protocol,"//").concat(H.host,":").concat(H.port,"/").concat(A.N.current_version,"/").concat(R,"/images/").concat(v)}},{key:"getStatistics",value:function(H){return this.httpController.get(H,"/statistics")}}]),T}();P.\u0275fac=function(E){return new(E||P)(j.LFG(I.zw))},P.\u0275prov=j.Yz7({token:P,factory:P.\u0275fac})},2437:function(Ae,K,m){"use strict";m.d(K,{CJ:function(){return x},zw:function(){return w}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),I=m(5724),P=m(5e3),T=m(4766),E=m(1737),H=m(7221),R=m(520),v=function(Z){(0,A.Z)(b,Z);var D=(0,j.Z)(b);function b(S){return(0,G.Z)(this,b),D.call(this,S)}return(0,W.Z)(b,null,[{key:"fromError",value:function(k,M){var N=new b(k);return N.originalError=M,N}}]),b}((0,I.Z)(Error)),x=function(){function Z(){(0,G.Z)(this,Z)}return(0,W.Z)(Z,[{key:"handleError",value:function(b){var S=b;return"HttpErrorResponse"===b.name&&0===b.status&&(S=v.fromError("Controller is unreachable",b)),401===b.status&&window.location.reload(),(0,E._)(S)}}]),Z}();x.\u0275fac=function(D){return new(D||x)},x.\u0275prov=P.Yz7({token:x,factory:x.\u0275fac});var w=function(){function Z(D,b){(0,G.Z)(this,Z),this.http=D,this.errorHandler=b,this.requestsNotificationEmitter=new P.vpe}return(0,W.Z)(Z,[{key:"get",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("GET ".concat(M.url)),this.http.get(M.url,M.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"getText",value:function(b,S,k){k=this.getTextOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("GET ".concat(M.url)),this.http.get(M.url,M.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(b,S,k){k=this.getBlobOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("GET ".concat(M.url)),this.http.get(M.url,M.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"post",value:function(b,S,k,M){M=this.getJsonOptions(M);var N=this.getOptionsForController(b,S,M);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,k,N.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"put",value:function(b,S,k,M){M=this.getJsonOptions(M);var N=this.getOptionsForController(b,S,M);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,k,N.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"delete",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("DELETE ".concat(M.url)),this.http.delete(M.url,M.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"patch",value:function(b,S,k,M){M=this.getJsonOptions(M);var N=this.getOptionsForController(b,S,M);return this.http.patch(N.url,k,N.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"head",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.http.head(M.url,M.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"options",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.http.options(M.url,M.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(b){return b||{responseType:"json"}}},{key:"getTextOptions",value:function(b){return b||{responseType:"text"}}},{key:"getBlobOptions",value:function(b){return b||{responseType:"blob"}}},{key:"getOptionsForController",value:function(b,S,k){return b&&b.host&&b.port?(b.protocol||(b.protocol=location.protocol),S="".concat(b.protocol,"//").concat(b.host,":").concat(b.port,"/").concat(T.N.current_version).concat(S)):S="/".concat(T.N.current_version).concat(S),k.headers||(k.headers={}),b&&b.authToken&&!b.tokenExpired&&(k.headers.Authorization="Bearer ".concat(b.authToken)),{url:S,options:k}}}]),Z}();w.\u0275fac=function(D){return new(D||w)(P.LFG(R.eN),P.LFG(x))},w.\u0275prov=P.Yz7({token:w,factory:w.\u0275fac})},9971:function(Ae,K,m){"use strict";m.d(K,{Y:function(){return H}});var G=m(5671),W=m(3144),A=m(4766),j=m(8929),I=m(5e3),P=m(2437),T=m(9449),E=m(9740),H=function(){function R(v,x,w){(0,G.Z)(this,R),this.httpController=v,this.settingsService=x,this.recentlyOpenedProjectService=w,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 j.xQ,this.projectLockIconSubject=new j.xQ}return(0,W.Z)(R,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(x,w){return this.httpController.getText(x,"/projects/".concat(w,"/files/README.txt"))}},{key:"postReadmeFile",value:function(x,w,Z){return this.httpController.post(x,"/projects/".concat(w,"/files/README.txt"),Z)}},{key:"get",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w))}},{key:"open",value:function(x,w){return this.httpController.post(x,"/projects/".concat(w,"/open"),{})}},{key:"close",value:function(x,w){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(x,"/projects/".concat(w,"/close"),{})}},{key:"list",value:function(x){return this.httpController.get(x,"/projects")}},{key:"nodes",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/nodes"))}},{key:"links",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/links"))}},{key:"drawings",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/drawings"))}},{key:"add",value:function(x,w,Z){return this.httpController.post(x,"/projects",{name:w,project_id:Z})}},{key:"update",value:function(x,w){return this.httpController.put(x,"/projects/".concat(w.project_id),{auto_close:w.auto_close,auto_open:w.auto_open,auto_start:w.auto_start,drawing_grid_size:w.drawing_grid_size,grid_size:w.grid_size,name:w.name,scene_width:w.scene_width,scene_height:w.scene_height,show_interface_labels:w.show_interface_labels})}},{key:"delete",value:function(x,w){return this.httpController.delete(x,"/projects/".concat(w))}},{key:"getUploadPath",value:function(x,w,Z){return"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w,"/import?name=").concat(Z)}},{key:"getExportPath",value:function(x,w){return"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w.project_id,"/export")}},{key:"export",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/export"))}},{key:"getStatistics",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/stats"))}},{key:"duplicate",value:function(x,w,Z){return this.httpController.post(x,"/projects/".concat(w,"/duplicate"),{name:Z})}},{key:"isReadOnly",value:function(x){return!!x.readonly&&x.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=Z.compression_level&&""!=Z.compression_level?"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w,"/export?include_snapshots=").concat(Z.include_snapshots,"&include_images=").concat(Z.include_base_image,"&reset_mac_addresses=").concat(Z.reset_mac_address,"&compression=").concat(Z.compression,"&compression_level=").concat(Z.compression_level,"&token=").concat(x.authToken):"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w,"/export?include_snapshots=").concat(Z.include_snapshots,"&include_images=").concat(Z.include_base_image,"&reset_mac_addresses=").concat(Z.reset_mac_address,"&compression=").concat(Z.compression,"&token=").concat(x.authToken)}},{key:"getProjectStatus",value:function(x,w){return this.get(x,"".concat(w,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),R}();H.\u0275fac=function(v){return new(v||H)(I.LFG(P.zw),I.LFG(T.g),I.LFG(E.p))},H.\u0275prov=I.Yz7({token:H,factory:H.\u0275fac})},9740:function(Ae,K,m){"use strict";m.d(K,{p:function(){return j}});var G=m(5671),W=m(3144),A=m(5e3),j=function(){function I(){(0,G.Z)(this,I)}return(0,W.Z)(I,[{key:"setcontrollerId",value:function(T){this.controllerId=T}},{key:"setProjectId",value:function(T){this.projectId=T}},{key:"setcontrollerIdProjectList",value:function(T){this.controllerIdProjectList=T}},{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=""}}]),I}();j.\u0275fac=function(P){return new(P||j)},j.\u0275prov=A.Yz7({token:j,factory:j.\u0275fac})},9449:function(Ae,K,m){"use strict";m.d(K,{g:function(){return j}});var G=m(5671),W=m(3144),A=m(5e3),j=function(){function I(){(0,G.Z)(this,I),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)(I,[{key:"setReportsSettings",value:function(T){this.settings.crash_reports=T,this.removeItem(this.reportsSettings),T?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(T){this.settings.anonymous_statistics=T,this.removeItem(this.statisticsSettings),T?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(T){this.settings.console_command=T,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,T)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(T){localStorage.removeItem(T)}},{key:"setItem",value:function(T,E){localStorage.setItem(T,E)}},{key:"getItem",value:function(T){return localStorage.getItem(T)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(T){this.settings=T,this.setConsoleSettings(T.console_command),this.setReportsSettings(T.crash_reports),this.setStatisticsSettings(T.anonymous_statistics)}}]),I}();j.\u0275fac=function(P){return new(P||j)},j.\u0275prov=A.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})},4068:function(Ae,K,m){"use strict";m.d(K,{f:function(){return I}});var G=m(5671),W=m(3144),A=m(5e3),j=m(591),I=function(){function P(){(0,G.Z)(this,P),this._darkMode$=new j.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(E){E?(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}();I.\u0275fac=function(T){return new(T||I)},I.\u0275prov=A.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})},4766:function(Ae,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"}},3746:function(Ae,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return MSe},arc:function(){return h1e},area:function(){return kee},areaRadial:function(){return Eee},ascending:function(){return $y},axisBottom:function(){return mce},axisLeft:function(){return _ce},axisRight:function(){return hce},axisTop:function(){return pce},bisect:function(){return X1},bisectLeft:function(){return Gue},bisectRight:function(){return QY},bisector:function(){return k7},brush:function(){return xpe},brushSelection:function(){return Mpe},brushX:function(){return Spe},brushY:function(){return Epe},chord:function(){return Ape},clientPoint:function(){return MN},cluster:function(){return ige},color:function(){return aZ},contourDensity:function(){return mhe},contours:function(){return Zq},create:function(){return FCe},creator:function(){return kN},cross:function(){return Wue},csvFormat:function(){return The},csvFormatRows:function(){return Mhe},csvParse:function(){return whe},csvParseRows:function(){return khe},cubehelix:function(){return Rq},curveBasis:function(){return I1e},curveBasisClosed:function(){return R1e},curveBasisOpen:function(){return L1e},curveBundle:function(){return Z1e},curveCardinal:function(){return N1e},curveCardinalClosed:function(){return B1e},curveCardinalOpen:function(){return F1e},curveCatmullRom:function(){return U1e},curveCatmullRomClosed:function(){return j1e},curveCatmullRomOpen:function(){return H1e},curveLinear:function(){return xN},curveLinearClosed:function(){return G1e},curveMonotoneX:function(){return z1e},curveMonotoneY:function(){return W1e},curveNatural:function(){return V1e},curveStep:function(){return Y1e},curveStepAfter:function(){return q1e},curveStepBefore:function(){return K1e},customEvent:function(){return RCe},descending:function(){return Vue},deviation:function(){return eK},dispatch:function(){return t0},drag:function(){return gg},dragDisable:function(){return BL},dragEnable:function(){return FL},dsvFormat:function(){return Cj},easeBack:function(){return Vq},easeBackIn:function(){return Qhe},easeBackInOut:function(){return Vq},easeBackOut:function(){return Xhe},easeBounce:function(){return sx},easeBounceIn:function(){return qhe},easeBounceInOut:function(){return Jhe},easeBounceOut:function(){return sx},easeCircle:function(){return Wq},easeCircleIn:function(){return Fhe},easeCircleInOut:function(){return Wq},easeCircleOut:function(){return Uhe},easeCubic:function(){return $L},easeCubicIn:function(){return hpe},easeCubicInOut:function(){return $L},easeCubicOut:function(){return mpe},easeElastic:function(){return Yq},easeElasticIn:function(){return $he},easeElasticInOut:function(){return eme},easeElasticOut:function(){return Yq},easeExp:function(){return zq},easeExpIn:function(){return Nhe},easeExpInOut:function(){return zq},easeExpOut:function(){return Bhe},easeLinear:function(){return Ahe},easePoly:function(){return Uq},easePolyIn:function(){return Ihe},easePolyInOut:function(){return Uq},easePolyOut:function(){return Rhe},easeQuad:function(){return Fq},easeQuadIn:function(){return Ohe},easeQuadInOut:function(){return Fq},easeQuadOut:function(){return Phe},easeSin:function(){return Gq},easeSinIn:function(){return Lhe},easeSinInOut:function(){return Gq},easeSinOut:function(){return Zhe},entries:function(){return Wpe},event:function(){return sm},extent:function(){return T7},forceCenter:function(){return tme},forceCollide:function(){return bme},forceLink:function(){return wme},forceManyBody:function(){return xme},forceRadial:function(){return Dme},forceSimulation:function(){return Eme},forceX:function(){return Ame},forceY:function(){return Ome},format:function(){return rJ},formatDefaultLocale:function(){return oJ},formatLocale:function(){return nJ},formatPrefix:function(){return iJ},formatSpecifier:function(){return mZ},geoAlbers:function(){return vQ},geoAlbersUsa:function(){return B_e},geoArea:function(){return Gme},geoAzimuthalEqualArea:function(){return F_e},geoAzimuthalEqualAreaRaw:function(){return f9},geoAzimuthalEquidistant:function(){return U_e},geoAzimuthalEquidistantRaw:function(){return p9},geoBounds:function(){return Yme},geoCentroid:function(){return $me},geoCircle:function(){return e_e},geoClipAntimeridian:function(){return Wj},geoClipCircle:function(){return UJ},geoClipExtent:function(){return s_e},geoClipRectangle:function(){return FZ},geoConicConformal:function(){return H_e},geoConicConformalRaw:function(){return CQ},geoConicEqualArea:function(){return JZ},geoConicEqualAreaRaw:function(){return gQ},geoConicEquidistant:function(){return z_e},geoConicEquidistantRaw:function(){return wQ},geoContains:function(){return h_e},geoDistance:function(){return px},geoEquirectangular:function(){return G_e},geoEquirectangularRaw:function(){return wx},geoGnomonic:function(){return W_e},geoGnomonicRaw:function(){return h9},geoGraticule:function(){return JJ},geoGraticule10:function(){return m_e},geoIdentity:function(){return V_e},geoInterpolate:function(){return __e},geoLength:function(){return jJ},geoMercator:function(){return j_e},geoMercatorRaw:function(){return Cx},geoNaturalEarth1:function(){return Y_e},geoNaturalEarth1Raw:function(){return m9},geoOrthographic:function(){return K_e},geoOrthographicRaw:function(){return _9},geoPath:function(){return x_e},geoProjection:function(){return im},geoProjectionMutator:function(){return c9},geoRotation:function(){return PJ},geoStereographic:function(){return q_e},geoStereographicRaw:function(){return g9},geoStream:function(){return Hd},geoTransform:function(){return D_e},geoTransverseMercator:function(){return J_e},geoTransverseMercatorRaw:function(){return v9},hcl:function(){return Dq},hierarchy:function(){return y9},histogram:function(){return Jue},hsl:function(){return bq},interpolate:function(){return P9},interpolateArray:function(){return XQ},interpolateBasis:function(){return KQ},interpolateBasisClosed:function(){return qQ},interpolateBlues:function(){return tbe},interpolateBrBG:function(){return R0e},interpolateBuGn:function(){return G0e},interpolateBuPu:function(){return z0e},interpolateCool:function(){return fbe},interpolateCubehelix:function(){return Cve},interpolateCubehelixDefault:function(){return cbe},interpolateCubehelixLong:function(){return wve},interpolateDate:function(){return $Q},interpolateGnBu:function(){return W0e},interpolateGreens:function(){return nbe},interpolateGreys:function(){return rbe},interpolateHcl:function(){return vve},interpolateHclLong:function(){return yve},interpolateHsl:function(){return hve},interpolateHslLong:function(){return mve},interpolateInferno:function(){return _be},interpolateLab:function(){return gve},interpolateMagma:function(){return mbe},interpolateNumber:function(){return gp},interpolateObject:function(){return eX},interpolateOrRd:function(){return V0e},interpolateOranges:function(){return abe},interpolatePRGn:function(){return L0e},interpolatePiYG:function(){return Z0e},interpolatePlasma:function(){return gbe},interpolatePuBu:function(){return K0e},interpolatePuBuGn:function(){return Y0e},interpolatePuOr:function(){return N0e},interpolatePuRd:function(){return q0e},interpolatePurples:function(){return ibe},interpolateRainbow:function(){return pbe},interpolateRdBu:function(){return B0e},interpolateRdGy:function(){return F0e},interpolateRdPu:function(){return J0e},interpolateRdYlBu:function(){return U0e},interpolateRdYlGn:function(){return j0e},interpolateReds:function(){return obe},interpolateRgb:function(){return D9},interpolateRgbBasis:function(){return tve},interpolateRgbBasisClosed:function(){return nve},interpolateRound:function(){return ove},interpolateSpectral:function(){return H0e},interpolateString:function(){return tX},interpolateTransformCss:function(){return lve},interpolateTransformSvg:function(){return uve},interpolateViridis:function(){return hbe},interpolateWarm:function(){return dbe},interpolateYlGn:function(){return X0e},interpolateYlGnBu:function(){return Q0e},interpolateYlOrBr:function(){return $0e},interpolateYlOrRd:function(){return ebe},interpolateZoom:function(){return pve},interrupt:function(){return one},interval:function(){return Uke},isoFormat:function(){return Zke},isoParse:function(){return Fke},keys:function(){return Gpe},lab:function(){return xq},line:function(){return DN},lineRadial:function(){return See},linkHorizontal:function(){return k1e},linkRadial:function(){return M1e},linkVertical:function(){return T1e},local:function(){return yee},map:function(){return mg},matcher:function(){return aee},max:function(){return nK},mean:function(){return $ue},median:function(){return ece},merge:function(){return A7},min:function(){return rK},mouse:function(){return jCe},namespace:function(){return pH},namespaces:function(){return fH},nest:function(){return Fpe},now:function(){return hg},pack:function(){return Dge},packEnclose:function(){return TQ},packSiblings:function(){return Sge},pairs:function(){return zue},partition:function(){return Age},path:function(){return jd},permute:function(){return tce},pie:function(){return g1e},pointRadial:function(){return zx},polygonArea:function(){return Tve},polygonCentroid:function(){return Mve},polygonContains:function(){return Dve},polygonHull:function(){return xve},polygonLength:function(){return Ave},precisionFixed:function(){return Nme},precisionPrefix:function(){return Bme},precisionRound:function(){return Fme},quadtree:function(){return pZ},quantile:function(){return WE},quantize:function(){return kve},radialArea:function(){return Eee},radialLine:function(){return See},randomBates:function(){return Ive},randomExponential:function(){return Rve},randomIrwinHall:function(){return EX},randomLogNormal:function(){return Pve},randomNormal:function(){return SX},randomUniform:function(){return Ove},range:function(){return mc},rgb:function(){return vq},ribbon:function(){return Bpe},scaleBand:function(){return K9},scaleIdentity:function(){return UX},scaleImplicit:function(){return V9},scaleLinear:function(){return FX},scaleLog:function(){return WX},scaleOrdinal:function(){return Y9},scalePoint:function(){return Lve},scalePow:function(){return $9},scaleQuantile:function(){return VX},scaleQuantize:function(){return YX},scaleSequential:function(){return M$},scaleSqrt:function(){return nye},scaleThreshold:function(){return KX},scaleTime:function(){return b0e},scaleUtc:function(){return T0e},scan:function(){return nce},schemeAccent:function(){return S0e},schemeBlues:function(){return Y$},schemeBrBG:function(){return S$},schemeBuGn:function(){return L$},schemeBuPu:function(){return Z$},schemeCategory10:function(){return M0e},schemeDark2:function(){return E0e},schemeGnBu:function(){return N$},schemeGreens:function(){return K$},schemeGreys:function(){return q$},schemeOrRd:function(){return B$},schemeOranges:function(){return X$},schemePRGn:function(){return E$},schemePaired:function(){return x0e},schemePastel1:function(){return D0e},schemePastel2:function(){return A0e},schemePiYG:function(){return x$},schemePuBu:function(){return U$},schemePuBuGn:function(){return F$},schemePuOr:function(){return D$},schemePuRd:function(){return j$},schemePurples:function(){return J$},schemeRdBu:function(){return A$},schemeRdGy:function(){return O$},schemeRdPu:function(){return H$},schemeRdYlBu:function(){return P$},schemeRdYlGn:function(){return I$},schemeReds:function(){return Q$},schemeSet1:function(){return O0e},schemeSet2:function(){return P0e},schemeSet3:function(){return I0e},schemeSpectral:function(){return R$},schemeYlGn:function(){return z$},schemeYlGnBu:function(){return G$},schemeYlOrBr:function(){return W$},schemeYlOrRd:function(){return V$},select:function(){return vee},selectAll:function(){return HCe},selection:function(){return BCe},selector:function(){return hH},selectorAll:function(){return iee},set:function(){return Hpe},shuffle:function(){return rce},stack:function(){return Q1e},stackOffsetDiverging:function(){return $1e},stackOffsetExpand:function(){return X1e},stackOffsetNone:function(){return Rw},stackOffsetSilhouette:function(){return ewe},stackOffsetWiggle:function(){return twe},stackOrderAscending:function(){return Jee},stackOrderDescending:function(){return nwe},stackOrderInsideOut:function(){return rwe},stackOrderNone:function(){return Lw},stackOrderReverse:function(){return iwe},stratify:function(){return Rge},style:function(){return uee},sum:function(){return ice},symbol:function(){return P1e},symbolCircle:function(){return SH},symbolCross:function(){return xee},symbolDiamond:function(){return Aee},symbolSquare:function(){return Iee},symbolStar:function(){return Pee},symbolTriangle:function(){return Ree},symbolWye:function(){return Lee},symbols:function(){return O1e},thresholdFreedmanDiaconis:function(){return Que},thresholdScott:function(){return Xue},thresholdSturges:function(){return D7},tickIncrement:function(){return zE},tickStep:function(){return e0},ticks:function(){return x7},timeDay:function(){return uwe},timeDays:function(){return cwe},timeFormat:function(){return Bte},timeFormatDefaultLocale:function(){return Ute},timeFormatLocale:function(){return Ete},timeFriday:function(){return fte},timeFridays:function(){return mwe},timeHour:function(){return swe},timeHours:function(){return lwe},timeInterval:function(){return ys},timeMillisecond:function(){return Xee},timeMilliseconds:function(){return $ee},timeMinute:function(){return owe},timeMinutes:function(){return awe},timeMonday:function(){return lte},timeMondays:function(){return dwe},timeMonth:function(){return gwe},timeMonths:function(){return vwe},timeParse:function(){return Fte},timeSaturday:function(){return pte},timeSaturdays:function(){return _we},timeSecond:function(){return rte},timeSeconds:function(){return ite},timeSunday:function(){return ZH},timeSundays:function(){return hte},timeThursday:function(){return dte},timeThursdays:function(){return hwe},timeTuesday:function(){return ute},timeTuesdays:function(){return fwe},timeWednesday:function(){return cte},timeWednesdays:function(){return pwe},timeWeek:function(){return ZH},timeWeeks:function(){return hte},timeYear:function(){return ywe},timeYears:function(){return bwe},timeout:function(){return ex},timer:function(){return $E},timerFlush:function(){return HK},touch:function(){return GCe},touches:function(){return zCe},transition:function(){return Sne},transpose:function(){return iK},tree:function(){return Uge},treemap:function(){return jge},treemapBinary:function(){return Hge},treemapDice:function(){return Tx},treemapResquarify:function(){return zge},treemapSlice:function(){return rN},treemapSliceDice:function(){return Gge},treemapSquarify:function(){return BQ},tsvFormat:function(){return xhe},tsvFormatRows:function(){return Dhe},tsvParse:function(){return She},tsvParseRows:function(){return Ehe},utcDay:function(){return Mwe},utcDays:function(){return Swe},utcFormat:function(){return UH},utcFriday:function(){return kte},utcFridays:function(){return Owe},utcHour:function(){return kwe},utcHours:function(){return Twe},utcMillisecond:function(){return Xee},utcMilliseconds:function(){return $ee},utcMinute:function(){return Cwe},utcMinutes:function(){return wwe},utcMonday:function(){return yte},utcMondays:function(){return Ewe},utcMonth:function(){return Iwe},utcMonths:function(){return Rwe},utcParse:function(){return jH},utcSaturday:function(){return Tte},utcSaturdays:function(){return Pwe},utcSecond:function(){return rte},utcSeconds:function(){return ite},utcSunday:function(){return BH},utcSundays:function(){return Mte},utcThursday:function(){return wte},utcThursdays:function(){return Awe},utcTuesday:function(){return bte},utcTuesdays:function(){return xwe},utcWednesday:function(){return Cte},utcWednesdays:function(){return Dwe},utcWeek:function(){return BH},utcWeeks:function(){return Mte},utcYear:function(){return Lwe},utcYears:function(){return Zwe},values:function(){return zpe},variance:function(){return $Y},voronoi:function(){return zSe},window:function(){return mH},zip:function(){return ace},zoom:function(){return Une},zoomIdentity:function(){return QN},zoomTransform:function(){return Bne}});var W={};m.r(W),m.d(W,{safe:function(){return poe},spec:function(){return MLe}});var A={};m.r(A),m.d(A,{angle:function(){return cZe},decibel:function(){return mZe},flex:function(){return hZe},frequency:function(){return fZe},length:function(){return uZe},resolution:function(){return pZe},semitones:function(){return _Ze},time:function(){return dZe}});var j={};m.r(j),m.d(j,{getTrace:function(){return Xoe},isKeyword:function(){return tNe},isProperty:function(){return eNe},isType:function(){return $Ze}});var I={};m.r(I),m.d(I,{generate:function(){return pNe},name:function(){return dNe},parse:function(){return aae},structure:function(){return fNe}});var P={};m.r(P),m.d(P,{generate:function(){return vNe},name:function(){return mNe},parse:function(){return lae},structure:function(){return gNe},walkContext:function(){return _Ne}});var T={};m.r(T),m.d(T,{generate:function(){return wNe},name:function(){return yNe},parse:function(){return uae},structure:function(){return CNe},walkContext:function(){return bNe}});var E={};m.r(E),m.d(E,{generate:function(){return ANe},name:function(){return xNe},parse:function(){return dae},structure:function(){return DNe}});var H={};m.r(H),m.d(H,{generate:function(){return ZNe},name:function(){return INe},parse:function(){return mae},structure:function(){return LNe},walkContext:function(){return RNe}});var R={};m.r(R),m.d(R,{generate:function(){return FNe},name:function(){return NNe},parse:function(){return _ae},structure:function(){return BNe}});var v={};m.r(v),m.d(v,{generate:function(){return HNe},name:function(){return UNe},parse:function(){return gae},structure:function(){return jNe}});var x={};m.r(x),m.d(x,{generate:function(){return WNe},name:function(){return GNe},parse:function(){return vae},structure:function(){return zNe}});var w={};m.r(w),m.d(w,{generate:function(){return qNe},name:function(){return YNe},parse:function(){return yae},structure:function(){return KNe}});var Z={};m.r(Z),m.d(Z,{generate:function(){return tBe},name:function(){return $Ne},parse:function(){return Cae},structure:function(){return eBe}});var D={};m.r(D),m.d(D,{generate:function(){return aBe},name:function(){return iBe},parse:function(){return wae},structure:function(){return oBe}});var b={};m.r(b),m.d(b,{generate:function(){return vBe},name:function(){return mBe},parse:function(){return Mae},structure:function(){return gBe},walkContext:function(){return _Be}});var S={};m.r(S),m.d(S,{generate:function(){return TBe},name:function(){return wBe},parse:function(){return Sae},structure:function(){return kBe}});var k={};m.r(k),m.d(k,{generate:function(){return EBe},name:function(){return MBe},parse:function(){return Eae},structure:function(){return SBe}});var M={};m.r(M),m.d(M,{generate:function(){return OBe},name:function(){return xBe},parse:function(){return xae},structure:function(){return ABe},walkContext:function(){return DBe}});var N={};m.r(N),m.d(N,{generate:function(){return LBe},name:function(){return IBe},parse:function(){return Dae},structure:function(){return RBe},xxx:function(){return PBe}});var F={};m.r(F),m.d(F,{generate:function(){return BBe},name:function(){return ZBe},parse:function(){return Aae},structure:function(){return NBe}});var X={};m.r(X),m.d(X,{generate:function(){return jBe},name:function(){return FBe},parse:function(){return Oae},structure:function(){return UBe}});var $={};m.r($),m.d($,{generate:function(){return zBe},name:function(){return HBe},parse:function(){return Pae},structure:function(){return GBe}});var V={};m.r(V),m.d(V,{generate:function(){return YBe},name:function(){return WBe},parse:function(){return Iae},structure:function(){return VBe}});var Q={};m.r(Q),m.d(Q,{generate:function(){return JBe},name:function(){return KBe},parse:function(){return Rae},structure:function(){return qBe}});var te={};m.r(te),m.d(te,{generate:function(){return eFe},name:function(){return XBe},parse:function(){return Lae},structure:function(){return $Be}});var be={};m.r(be),m.d(be,{generate:function(){return rFe},name:function(){return tFe},parse:function(){return Zae},structure:function(){return nFe}});var pe={};m.r(pe),m.d(pe,{generate:function(){return aFe},name:function(){return iFe},parse:function(){return Nae},structure:function(){return oFe}});var fe={};m.r(fe),m.d(fe,{generate:function(){return uFe},name:function(){return sFe},parse:function(){return Bae},structure:function(){return lFe}});var ue={};m.r(ue),m.d(ue,{generate:function(){return fFe},name:function(){return cFe},parse:function(){return Fae},structure:function(){return dFe}});var de={};m.r(de),m.d(de,{generate:function(){return mFe},name:function(){return pFe},parse:function(){return Uae},structure:function(){return hFe}});var ge={};m.r(ge),m.d(ge,{generate:function(){return yFe},name:function(){return _Fe},parse:function(){return jae},structure:function(){return vFe},walkContext:function(){return gFe}});var He={};m.r(He),m.d(He,{generate:function(){return kFe},name:function(){return bFe},parse:function(){return Hae},structure:function(){return wFe},walkContext:function(){return CFe}});var ot={};m.r(ot),m.d(ot,{generate:function(){return xFe},name:function(){return SFe},parse:function(){return zae},structure:function(){return EFe}});var St={};m.r(St),m.d(St,{generate:function(){return PFe},name:function(){return AFe},parse:function(){return Wae},structure:function(){return OFe}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return NFe},name:function(){return RFe},parse:function(){return Yae},structure:function(){return ZFe},walkContext:function(){return LFe}});var Dt={};m.r(Dt),m.d(Dt,{generate:function(){return UFe},name:function(){return BFe},parse:function(){return Kae},structure:function(){return FFe}});var Rt={};m.r(Rt),m.d(Rt,{generate:function(){return zFe},name:function(){return jFe},parse:function(){return qae},structure:function(){return GFe},walkContext:function(){return HFe}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return KFe},name:function(){return VFe},parse:function(){return $ae},structure:function(){return YFe}});var $t={};m.r($t),m.d($t,{generate:function(){return $Fe},name:function(){return JFe},parse:function(){return tse},structure:function(){return XFe},walkContext:function(){return QFe}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return r5e},name:function(){return t5e},parse:function(){return rse},structure:function(){return n5e}});var pn={};m.r(pn),m.d(pn,{generate:function(){return l5e},name:function(){return a5e},parse:function(){return ase},structure:function(){return s5e}});var rt={};m.r(rt),m.d(rt,{generate:function(){return g5e},name:function(){return m5e},parse:function(){return lse},structure:function(){return _5e}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return b5e},name:function(){return v5e},parse:function(){return use},structure:function(){return y5e}});var _t={};m.r(_t),m.d(_t,{generate:function(){return T5e},name:function(){return w5e},parse:function(){return cse},structure:function(){return k5e}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return I},Atrule:function(){return P},AtrulePrelude:function(){return T},AttributeSelector:function(){return E},Block:function(){return H},Brackets:function(){return R},CDC:function(){return v},CDO:function(){return x},ClassSelector:function(){return w},Combinator:function(){return Z},Comment:function(){return D},Declaration:function(){return b},DeclarationList:function(){return S},Dimension:function(){return k},Function:function(){return M},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return F},MediaFeature:function(){return $},MediaQuery:function(){return V},MediaQueryList:function(){return Q},NestingSelector:function(){return te},Nth:function(){return be},Number:function(){return pe},Operator:function(){return fe},Parentheses:function(){return ue},Percentage:function(){return de},PseudoClassSelector:function(){return ge},PseudoElementSelector:function(){return He},Ratio:function(){return ot},Raw:function(){return St},Rule:function(){return Tt},Selector:function(){return Dt},SelectorList:function(){return Rt},String:function(){return Ze},StyleSheet:function(){return $t},TypeSelector:function(){return Ft},UnicodeRange:function(){return pn},Url:function(){return rt},Value:function(){return Ot},WhiteSpace:function(){return _t}});var Ve={};m.r(Ve),m.d(Ve,{AtrulePrelude:function(){return O5e},Selector:function(){return H5e},Value:function(){return W5e}});var at={};m.r(at),m.d(at,{AnPlusB:function(){return aae},Atrule:function(){return lae},AtrulePrelude:function(){return uae},AttributeSelector:function(){return dae},Block:function(){return mae},Brackets:function(){return _ae},CDC:function(){return gae},CDO:function(){return vae},ClassSelector:function(){return yae},Combinator:function(){return Cae},Comment:function(){return wae},Declaration:function(){return Mae},DeclarationList:function(){return Sae},Dimension:function(){return Eae},Function:function(){return xae},Hash:function(){return Dae},IdSelector:function(){return Oae},Identifier:function(){return Aae},MediaFeature:function(){return Pae},MediaQuery:function(){return Iae},MediaQueryList:function(){return Rae},NestingSelector:function(){return Lae},Nth:function(){return Zae},Number:function(){return Nae},Operator:function(){return Bae},Parentheses:function(){return Fae},Percentage:function(){return Uae},PseudoClassSelector:function(){return jae},PseudoElementSelector:function(){return Hae},Ratio:function(){return zae},Raw:function(){return Wae},Rule:function(){return Yae},Selector:function(){return Kae},SelectorList:function(){return qae},String:function(){return $ae},StyleSheet:function(){return tse},TypeSelector:function(){return rse},UnicodeRange:function(){return ase},Url:function(){return lse},Value:function(){return use},WhiteSpace:function(){return cse}});var ht={};m.r(ht),m.d(ht,{Hooks:function(){return uA},Lexer:function(){return tT},Parser:function(){return nT},Renderer:function(){return AF},Slugger:function(){return nW},TextRenderer:function(){return tW},Tokenizer:function(){return DF},defaults:function(){return ov},getDefaults:function(){return eW},lexer:function(){return g8e},marked:function(){return Nr},options:function(){return c8e},parse:function(){return m8e},parseInline:function(){return h8e},parser:function(){return _8e},setOptions:function(){return d8e},use:function(){return f8e},walkTokens:function(){return p8e}});var vn,Ut=m(3237),Wt=m(1120),U=m(3144),B=m(5671),qe=m(136),Be=m(9388),se=m(9808),t=m(5e3),Lt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,U.Z)(e)}(se.w_),zt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.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 Qt(){return(an=an||document.querySelector("base"))?an.getAttribute("href"):null}();return null==a?null:function Vt(n){(vn=vn||document.createElement("a")).setAttribute("href",n);var r=vn.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){an=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(o){return(0,se.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,se.HT)(new e)}}]),e}(Lt),an=null;var Jt=new t.OlP("TRANSITION_ID");var Fe=[{provide:t.ip1,useFactory:function Qe(n,r,e){return function(){e.get(t.CZH).donePromise.then(function(){for(var i=(0,se.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a<o.length;a++)i.remove(o[a])})}},deps:[Jt,se.K0,t.zs3],multi:!0}],ne=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"addToWindow",value:function(e){t.dqk.getAngularTestability=function(o){var a=!(arguments.length>1&&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,se.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),ye=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();ye.\u0275fac=function(r){return new(r||ye)},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac});var he=new t.OlP("EventManagerPlugins"),Le=function(){function n(r,e){var i=this;(0,B.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,U.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<o.length;a++){var s=o[a];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error("No event manager plugin found for event ".concat(e))}}]),n}();Le.\u0275fac=function(r){return new(r||Le)(t.LFG(he),t.LFG(t.R0b))},Le.\u0275prov=t.Yz7({token:Le,factory:Le.\u0275fac});var lt=function(){function n(r){(0,B.Z)(this,n),this._doc=r}return(0,U.Z)(n,[{key:"addGlobalEventListener",value:function(e,i,o){var a=(0,se.q)().getGlobalEventTarget(this._doc,e);if(!a)throw new Error("Unsupported event target ".concat(a," for event ").concat(i));return this.addEventListener(a,i,o)}}]),n}(),ut=function(){function n(){(0,B.Z)(this,n),this._stylesSet=new Set}return(0,U.Z)(n,[{key:"addStyles",value:function(e){var i=this,o=new Set;e.forEach(function(a){i._stylesSet.has(a)||(i._stylesSet.add(a),o.add(a))}),this.onStylesAdded(o)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),n}();ut.\u0275fac=function(r){return new(r||ut)},ut.\u0275prov=t.Yz7({token:ut,factory:ut.\u0275fac});var Nt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._doc=i,o._hostNodes=new Map,o._hostNodes.set(i.head,[]),o}return(0,U.Z)(e,[{key:"_addStylesToHost",value:function(o,a,s){var l=this;o.forEach(function(u){var d=l._doc.createElement("style");d.textContent=u,s.push(a.appendChild(d))})}},{key:"addHost",value:function(o){var a=[];this._addStylesToHost(this._stylesSet,o,a),this._hostNodes.set(o,a)}},{key:"removeHost",value:function(o){var a=this._hostNodes.get(o);a&&a.forEach(Ht),this._hostNodes.delete(o)}},{key:"onStylesAdded",value:function(o){var a=this;this._hostNodes.forEach(function(s,l){a._addStylesToHost(o,l,s)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(o){return o.forEach(Ht)})}}]),e}(ut);function Ht(n){(0,se.q)().remove(n)}Nt.\u0275fac=function(r){return new(r||Nt)(t.LFG(se.K0))},Nt.\u0275prov=t.Yz7({token:Nt,factory:Nt.\u0275fac});var sn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},yn=/%COMP%/g,hn="_nghost-".concat("%COMP%"),mn="_ngcontent-".concat("%COMP%");function tt(n,r,e){for(var i=0;i<r.length;i++){var o=r[i];Array.isArray(o)?tt(n,o,e):(o=o.replace(yn,n),e.push(o))}return e}function Et(n){return function(r){if("__ngUnwrap__"===r)return n;!1===n(r)&&(r.preventDefault(),r.returnValue=!1)}}var Ye=function(){function n(r,e,i){(0,B.Z)(this,n),this.eventManager=r,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Re(r)}return(0,U.Z)(n,[{key:"createRenderer",value:function(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case t.ifc.Emulated:var o=this.rendererByCompId.get(i.id);return o||(o=new Un(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o;case 1:case t.ifc.ShadowDom:return new Kt(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){var a=tt(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),n}();Ye.\u0275fac=function(r){return new(r||Ye)(t.LFG(Le),t.LFG(Nt),t.LFG(t.AFp))},Ye.\u0275prov=t.Yz7({token:Ye,factory:Ye.\u0275fac});var Re=function(){function n(r){(0,B.Z)(this,n),this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}return(0,U.Z)(n,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,i){return i?document.createElementNS(sn[i]||i,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,i){(fn(e)?e.content:e).appendChild(i)}},{key:"insertBefore",value:function(e,i,o){e&&(fn(e)?e.content:e).insertBefore(i,o)}},{key:"removeChild",value:function(e,i){e&&e.removeChild(i)}},{key:"selectRootElement",value:function(e,i){var o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error('The selector "'.concat(e,'" did not match any elements'));return i||(o.textContent=""),o}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,i,o,a){if(a){i=a+":"+i;var s=sn[a];s?e.setAttributeNS(s,i,o):e.setAttribute(i,o)}else e.setAttribute(i,o)}},{key:"removeAttribute",value:function(e,i,o){if(o){var a=sn[o];a?e.removeAttributeNS(a,i):e.removeAttribute("".concat(o,":").concat(i))}else e.removeAttribute(i)}},{key:"addClass",value:function(e,i){e.classList.add(i)}},{key:"removeClass",value:function(e,i){e.classList.remove(i)}},{key:"setStyle",value:function(e,i,o,a){a&(t.JOm.DashCase|t.JOm.Important)?e.style.setProperty(i,o,a&t.JOm.Important?"important":""):e.style[i]=o}},{key:"removeStyle",value:function(e,i,o){o&t.JOm.DashCase?e.style.removeProperty(i):e.style[i]=""}},{key:"setProperty",value:function(e,i,o){e[i]=o}},{key:"setValue",value:function(e,i){e.nodeValue=i}},{key:"listen",value:function(e,i,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,i,Et(o)):this.eventManager.addEventListener(e,i,Et(o))}}]),n}();"@".charCodeAt(0);function fn(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}var Un=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,B.Z)(this,e),(l=r.call(this,i)).component=a;var u=tt(s+"-"+a.id,a.styles,[]);return o.addStyles(u),l.contentAttr=function At(n){return mn.replace(yn,n)}(s+"-"+a.id),l.hostAttr=function xt(n){return hn.replace(yn,n)}(s+"-"+a.id),l}return(0,U.Z)(e,[{key:"applyToHost",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"setAttribute",this).call(this,o,this.hostAttr,"")}},{key:"createElement",value:function(o,a){var s=(0,Ut.Z)((0,Wt.Z)(e.prototype),"createElement",this).call(this,o,a);return(0,Ut.Z)((0,Wt.Z)(e.prototype),"setAttribute",this).call(this,s,this.contentAttr,""),s}}]),e}(Re),Kt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,B.Z)(this,e),(l=r.call(this,i)).sharedStylesHost=o,l.hostEl=a,l.shadowRoot=a.attachShadow({mode:"open"}),l.sharedStylesHost.addHost(l.shadowRoot);for(var u=tt(s.id,s.styles,[]),d=0;d<u.length;d++){var h=document.createElement("style");h.textContent=u[d],l.shadowRoot.appendChild(h)}return l}return(0,U.Z)(e,[{key:"nodeOrShadowRoot",value:function(o){return o===this.hostEl?this.shadowRoot:o}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(o,a){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"insertBefore",value:function(o,a,s){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(o),a,s)}},{key:"removeChild",value:function(o,a){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"parentNode",value:function(o){return this.nodeOrShadowRoot((0,Ut.Z)((0,Wt.Z)(e.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(o)))}}]),e}(Re),yt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,B.Z)(this,e),r.call(this,i)}return(0,U.Z)(e,[{key:"supports",value:function(o){return!0}},{key:"addEventListener",value:function(o,a,s){var l=this;return o.addEventListener(a,s,!1),function(){return l.removeEventListener(o,a,s)}}},{key:"removeEventListener",value:function(o,a,s){return o.removeEventListener(a,s)}}]),e}(lt);yt.\u0275fac=function(r){return new(r||yt)(t.LFG(se.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac});var et=["alt","control","meta","shift"],gt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wt={alt:function(r){return r.altKey},control:function(r){return r.ctrlKey},meta:function(r){return r.metaKey},shift:function(r){return r.shiftKey}},nn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,B.Z)(this,e),r.call(this,i)}return(0,U.Z)(e,[{key:"supports",value:function(o){return null!=e.parseEventName(o)}},{key:"addEventListener",value:function(o,a,s){var l=e.parseEventName(a),u=e.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,se.q)().onAndCancel(o,l.domEventName,u)})}}],[{key:"parseEventName",value:function(o){var a=o.toLowerCase().split("."),s=a.shift();if(0===a.length||"keydown"!==s&&"keyup"!==s)return null;var l=e._normalizeKey(a.pop()),u="",d=a.indexOf("code");if(d>-1&&(a.splice(d,1),u="code."),et.forEach(function(g){var y=a.indexOf(g);y>-1&&(a.splice(y,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=gt[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"),et.forEach(function(u){u!==s&&((0,wt[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}(lt);nn.\u0275fac=function(r){return new(r||nn)(t.LFG(se.K0))},nn.\u0275prov=t.Yz7({token:nn,factory:nn.\u0275fac});var Ca=[{provide:t.Lbi,useValue:se.bD},{provide:t.g9A,useValue:function yi(){zt.makeCurrent()},multi:!0},{provide:se.K0,useFactory:function Va(){return(0,t.RDi)(document),document},deps:[]}],wa=(0,t.eFA)(t._c5,"browser",Ca),ls=new t.OlP(""),ta=[{provide:t.rWj,useClass:ne,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]}],Di=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function zi(){return new t.qLn},deps:[]},{provide:he,useClass:yt,multi:!0,deps:[se.K0,t.R0b,t.Lbi]},{provide:he,useClass:nn,multi:!0,deps:[se.K0]},{provide:Ye,useClass:Ye,deps:[Le,Nt,t.AFp]},{provide:t.FYo,useExisting:Ye},{provide:ut,useExisting:Nt},{provide:Nt,useClass:Nt,deps:[se.K0]},{provide:Le,useClass:Le,deps:[he,t.R0b]},{provide:se.JF,useClass:ye,deps:[]},[]],na=function(){function n(r){(0,B.Z)(this,n),false}return(0,U.Z)(n,null,[{key:"withServerTransition",value:function(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Jt,useExisting:t.AFp},Fe]}}}]),n}();na.\u0275fac=function(r){return new(r||na)(t.LFG(ls,12))},na.\u0275mod=t.oAB({type:na}),na.\u0275inj=t.cJS({providers:[].concat(Di,ta),imports:[se.ez,t.hGG]});var Gn=function(){function n(r){(0,B.Z)(this,n),this._doc=r,this._dom=(0,se.q)()}return(0,U.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 vr[e]||e}}]),n}();Gn.\u0275fac=function(r){return new(r||Gn)(t.LFG(se.K0))},Gn.\u0275prov=t.Yz7({token:Gn,factory:function(r){return r?new r:function _o(){return new Gn((0,t.LFG)(se.K0))}()},providedIn:"root"});var vr={httpEquiv:"http-equiv"};var ni=function(){function n(r){(0,B.Z)(this,n),this._doc=r}return(0,U.Z)(n,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),n}();ni.\u0275fac=function(r){return new(r||ni)(t.LFG(se.K0))},ni.\u0275prov=t.Yz7({token:ni,factory:function(r){return r?new r:function fi(){return new ni((0,t.LFG)(se.K0))}()},providedIn:"root"});function So(n,r){"undefined"!=typeof COMPILED&&COMPILED||((t.dqk.ng=t.dqk.ng||{})[n]=r)}var so="undefined"!=typeof window&&window||{},xr=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Yi=function(){function n(r){(0,B.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,U.Z)(n,[{key:"timeChangeDetection",value:function(e){var i=e&&e.record,o="Change Detection",a=null!=so.console.profile;i&&a&&so.console.profile(o);for(var s=Eo(),l=0;l<5||Eo()-s<500;)this.appRef.tick(),l++;var u=Eo();i&&a&&so.console.profileEnd(o);var d=(u-s)/l;return so.console.log("ran ".concat(l," change detection cycles")),so.console.log("".concat(d.toFixed(2)," ms per check")),new xr(d,l)}}]),n}();function Eo(){return so.performance&&so.performance.now?so.performance.now():(new Date).getTime()}var ca="profiler";var Ui=function(){function n(){(0,B.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,U.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}();Ui.\u0275fac=function(r){return new(r||Ui)},Ui.\u0275prov=t.Yz7({token:Ui,factory:function(){return r=(0,t.f3M)(se.K0),e=(0,t.f3M)(t.AFp),(i=new Ui).store=function qs(n,r){var e=n.getElementById(r+"-state"),i={};if(e&&e.textContent)try{i=JSON.parse(function Ya(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 oi=(0,U.Z)(function n(){(0,B.Z)(this,n)});oi.\u0275fac=function(r){return new(r||oi)},oi.\u0275mod=t.oAB({type:oi}),oi.\u0275inj=t.cJS({});var to={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},Ai=new t.OlP("HammerGestureConfig"),hu=new t.OlP("HammerLoader"),Ki=function(){function n(){(0,B.Z)(this,n),this.events=[],this.overrides={}}return(0,U.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}();Ki.\u0275fac=function(r){return new(r||Ki)},Ki.\u0275prov=t.Yz7({token:Ki,factory:Ki.\u0275fac});var tn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,U.Z)(e,[{key:"supports",value:function(o){return!(!to.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),y=function(z){u.runGuarded(function(){s(z)})};return g.on(a,y),function(){g.off(a,y),"function"==typeof g.destroy&&g.destroy()}})}},{key:"isCustomEvent",value:function(o){return this._config.events.indexOf(o)>-1}}]),e}(lt);tn.\u0275fac=function(r){return new(r||tn)(t.LFG(se.K0),t.LFG(Ai),t.LFG(t.c2e),t.LFG(hu,8))},tn.\u0275prov=t.Yz7({token:tn,factory:tn.\u0275fac});var en=(0,U.Z)(function n(){(0,B.Z)(this,n)});en.\u0275fac=function(r){return new(r||en)},en.\u0275mod=t.oAB({type:en}),en.\u0275inj=t.cJS({providers:[{provide:he,useClass:tn,multi:!0,deps:[se.K0,Ai,t.c2e,[new t.FiY,hu]]},{provide:Ai,useClass:Ki,deps:[]}]});var Dr=(0,U.Z)(function n(){(0,B.Z)(this,n)});Dr.\u0275fac=function(r){return new(r||Dr)},Dr.\u0275prov=t.Yz7({token:Dr,factory:function(r){return r?new(r||Dr):t.LFG(qi)},providedIn:"root"});var qi=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,U.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}(Dr);qi.\u0275fac=function(r){return new(r||qi)(t.LFG(se.K0))},qi.\u0275prov=t.Yz7({token:qi,factory:function(r){return r?new r:function no(n){return new qi(n.get(se.K0))}(t.LFG(t.zs3))},providedIn:"root"});new t.GfV("14.3.0");var Ti=m(2963),ro=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,$e,Ie){return Object.defineProperty(bt,$e,{value:Ie,enumerable:!0,configurable:!0,writable:!0}),bt[$e]}try{l({},"")}catch(bt){l=function(Ie,ct,Bt){return Ie[ct]=Bt}}function u(bt,$e,Ie,ct){var Tn,Hn,zn,ar,Bt=$e&&$e.prototype instanceof g?$e:g,jt=Object.create(Bt.prototype),It=new De(ct||[]);return jt._invoke=(Tn=bt,Hn=Ie,zn=It,ar="suspendedStart",function(kr,_r){if("executing"===ar)throw new Error("Generator is already running");if("completed"===ar){if("throw"===kr)throw _r;return{value:void 0,done:!0}}for(zn.method=kr,zn.arg=_r;;){var Wr=zn.delegate;if(Wr){var jr=Ee(Wr,zn);if(jr){if(jr===h)continue;return jr}}if("next"===zn.method)zn.sent=zn._sent=zn.arg;else if("throw"===zn.method){if("suspendedStart"===ar)throw ar="completed",zn.arg;zn.dispatchException(zn.arg)}else"return"===zn.method&&zn.abrupt("return",zn.arg);ar="executing";var Kr=d(Tn,Hn,zn);if("normal"===Kr.type){if(ar=zn.done?"completed":"suspendedYield",Kr.arg===h)continue;return{value:Kr.arg,done:zn.done}}"throw"===Kr.type&&(ar="completed",zn.method="throw",zn.arg=Kr.arg)}}),jt}function d(bt,$e,Ie){try{return{type:"normal",arg:bt.call($e,Ie)}}catch(ct){return{type:"throw",arg:ct}}}n.wrap=u;var h={};function g(){}function y(){}function L(){}var z={};l(z,o,function(){return this});var q=Object.getPrototypeOf,re=q&&q(q(it([])));re&&re!==r&&e.call(re,o)&&(z=re);var ae=L.prototype=g.prototype=Object.create(z);function Se(bt){["next","throw","return"].forEach(function($e){l(bt,$e,function(Ie){return this._invoke($e,Ie)})})}function Ce(bt,$e){function Ie(Bt,jt,It,Tn){var Hn=d(bt[Bt],bt,jt);if("throw"!==Hn.type){var zn=Hn.arg,ar=zn.value;return ar&&"object"==(0,ro.Z)(ar)&&e.call(ar,"__await")?$e.resolve(ar.__await).then(function(kr){Ie("next",kr,It,Tn)},function(kr){Ie("throw",kr,It,Tn)}):$e.resolve(ar).then(function(kr){zn.value=kr,It(zn)},function(kr){return Ie("throw",kr,It,Tn)})}Tn(Hn.arg)}var ct;this._invoke=function(Bt,jt){function It(){return new $e(function(Tn,Hn){Ie(Bt,jt,Tn,Hn)})}return ct=ct?ct.then(It,It):It()}}function Ee(bt,$e){var Ie=bt.iterator[$e.method];if(void 0===Ie){if($e.delegate=null,"throw"===$e.method){if(bt.iterator.return&&($e.method="return",$e.arg=void 0,Ee(bt,$e),"throw"===$e.method))return h;$e.method="throw",$e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var ct=d(Ie,bt.iterator,$e.arg);if("throw"===ct.type)return $e.method="throw",$e.arg=ct.arg,$e.delegate=null,h;var Bt=ct.arg;return Bt?Bt.done?($e[bt.resultName]=Bt.value,$e.next=bt.nextLoc,"return"!==$e.method&&($e.method="next",$e.arg=void 0),$e.delegate=null,h):Bt:($e.method="throw",$e.arg=new TypeError("iterator result is not an object"),$e.delegate=null,h)}function Ke(bt){var $e={tryLoc:bt[0]};1 in bt&&($e.catchLoc=bt[1]),2 in bt&&($e.finallyLoc=bt[2],$e.afterLoc=bt[3]),this.tryEntries.push($e)}function st(bt){var $e=bt.completion||{};$e.type="normal",delete $e.arg,bt.completion=$e}function De(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(Ke,this),this.reset(!0)}function it(bt){if(bt){var $e=bt[o];if($e)return $e.call(bt);if("function"==typeof bt.next)return bt;if(!isNaN(bt.length)){var Ie=-1,ct=function Bt(){for(;++Ie<bt.length;)if(e.call(bt,Ie))return Bt.value=bt[Ie],Bt.done=!1,Bt;return Bt.value=void 0,Bt.done=!0,Bt};return ct.next=ct}}return{next:ft}}function ft(){return{value:void 0,done:!0}}return y.prototype=L,l(ae,"constructor",L),l(L,"constructor",y),y.displayName=l(L,s,"GeneratorFunction"),n.isGeneratorFunction=function(bt){var $e="function"==typeof bt&&bt.constructor;return!!$e&&($e===y||"GeneratorFunction"===($e.displayName||$e.name))},n.mark=function(bt){return Object.setPrototypeOf?Object.setPrototypeOf(bt,L):(bt.__proto__=L,l(bt,s,"GeneratorFunction")),bt.prototype=Object.create(ae),bt},n.awrap=function(bt){return{__await:bt}},Se(Ce.prototype),l(Ce.prototype,a,function(){return this}),n.AsyncIterator=Ce,n.async=function(bt,$e,Ie,ct,Bt){void 0===Bt&&(Bt=Promise);var jt=new Ce(u(bt,$e,Ie,ct),Bt);return n.isGeneratorFunction($e)?jt:jt.next().then(function(It){return It.done?It.value:jt.next()})},Se(ae),l(ae,s,"Generator"),l(ae,o,function(){return this}),l(ae,"toString",function(){return"[object Generator]"}),n.keys=function(bt){var $e=[];for(var Ie in bt)$e.push(Ie);return $e.reverse(),function ct(){for(;$e.length;){var Bt=$e.pop();if(Bt in bt)return ct.value=Bt,ct.done=!1,ct}return ct.done=!0,ct}},n.values=it,De.prototype={constructor:De,reset:function($e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(st),!$e)for(var Ie in this)"t"===Ie.charAt(0)&&e.call(this,Ie)&&!isNaN(+Ie.slice(1))&&(this[Ie]=void 0)},stop:function(){this.done=!0;var $e=this.tryEntries[0].completion;if("throw"===$e.type)throw $e.arg;return this.rval},dispatchException:function($e){if(this.done)throw $e;var Ie=this;function ct(zn,ar){return It.type="throw",It.arg=$e,Ie.next=zn,ar&&(Ie.method="next",Ie.arg=void 0),!!ar}for(var Bt=this.tryEntries.length-1;Bt>=0;--Bt){var jt=this.tryEntries[Bt],It=jt.completion;if("root"===jt.tryLoc)return ct("end");if(jt.tryLoc<=this.prev){var Tn=e.call(jt,"catchLoc"),Hn=e.call(jt,"finallyLoc");if(Tn&&Hn){if(this.prev<jt.catchLoc)return ct(jt.catchLoc,!0);if(this.prev<jt.finallyLoc)return ct(jt.finallyLoc)}else if(Tn){if(this.prev<jt.catchLoc)return ct(jt.catchLoc,!0)}else{if(!Hn)throw new Error("try statement without catch or finally");if(this.prev<jt.finallyLoc)return ct(jt.finallyLoc)}}}},abrupt:function($e,Ie){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var Bt=this.tryEntries[ct];if(Bt.tryLoc<=this.prev&&e.call(Bt,"finallyLoc")&&this.prev<Bt.finallyLoc){var jt=Bt;break}}jt&&("break"===$e||"continue"===$e)&&jt.tryLoc<=Ie&&Ie<=jt.finallyLoc&&(jt=null);var It=jt?jt.completion:{};return It.type=$e,It.arg=Ie,jt?(this.method="next",this.next=jt.finallyLoc,h):this.complete(It)},complete:function($e,Ie){if("throw"===$e.type)throw $e.arg;return"break"===$e.type||"continue"===$e.type?this.next=$e.arg:"return"===$e.type?(this.rval=this.arg=$e.arg,this.method="return",this.next="end"):"normal"===$e.type&&Ie&&(this.next=Ie),h},finish:function($e){for(var Ie=this.tryEntries.length-1;Ie>=0;--Ie){var ct=this.tryEntries[Ie];if(ct.finallyLoc===$e)return this.complete(ct.completion,ct.afterLoc),st(ct),h}},catch:function($e){for(var Ie=this.tryEntries.length-1;Ie>=0;--Ie){var ct=this.tryEntries[Ie];if(ct.tryLoc===$e){var Bt=ct.completion;if("throw"===Bt.type){var jt=Bt.arg;st(ct)}return jt}}throw new Error("illegal catch attempt")},delegateYield:function($e,Ie,ct){return this.delegate={iterator:it($e),resultName:Ie,nextLoc:ct},"next"===this.method&&(this.arg=void 0),h}},n}var Ji,n,mu=m(4506),Jr=m(5647),Yn=m(7685),An=m(7762),cn=m(4902);function Oi(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 Qi(n){return"ng-container"===Oi(n)[1]}function Pi(n){return"ng-content"===Oi(n)[1]}function Mi(n){return null===n?null:Oi(n)[0]}function ji(n,r){return n?":".concat(n,":").concat(r):r}(n=Ji||(Ji={}))[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA";var co,fa,hr=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?Ji.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,d=e.isVoid,h=void 0!==d&&d,g=e.ignoreFirstLf,y=void 0!==g&&g,L=e.preventNamespaceInheritance,z=void 0!==L&&L;(0,B.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=y,this.preventNamespaceInheritance=z}return(0,U.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 ka(n){var r,e;return fa||(co=new hr,fa={base:new hr({isVoid:!0}),meta:new hr({isVoid:!0}),area:new hr({isVoid:!0}),embed:new hr({isVoid:!0}),link:new hr({isVoid:!0}),img:new hr({isVoid:!0}),input:new hr({isVoid:!0}),param:new hr({isVoid:!0}),hr:new hr({isVoid:!0}),br:new hr({isVoid:!0}),source:new hr({isVoid:!0}),track:new hr({isVoid:!0}),wbr:new hr({isVoid:!0}),p:new hr({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 hr({closedByChildren:["tbody","tfoot"]}),tbody:new hr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new hr({closedByChildren:["tbody"],closedByParent:!0}),tr:new hr({closedByChildren:["tr"],closedByParent:!0}),td:new hr({closedByChildren:["td","th"],closedByParent:!0}),th:new hr({closedByChildren:["td","th"],closedByParent:!0}),col:new hr({isVoid:!0}),svg:new hr({implicitNamespacePrefix:"svg"}),foreignObject:new hr({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new hr({implicitNamespacePrefix:"math"}),li:new hr({closedByChildren:["li"],closedByParent:!0}),dt:new hr({closedByChildren:["dt","dd"]}),dd:new hr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new hr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new hr({closedByChildren:["optgroup"],closedByParent:!0}),option:new hr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new hr({ignoreFirstLf:!0}),listing:new hr({ignoreFirstLf:!0}),style:new hr({contentType:Ji.RAW_TEXT}),script:new hr({contentType:Ji.RAW_TEXT}),title:new hr({contentType:{default:Ji.ESCAPABLE_RAW_TEXT,svg:Ji.PARSABLE_DATA}}),textarea:new hr({contentType:Ji.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=fa[n])&&void 0!==r?r:fa[n.toLowerCase()])&&void 0!==e?e:co}var Qo,Xo,go=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),fo=function(){function n(){(0,B.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,U.Z)(n,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;a<e.length;a++){var s=e.charAt(a);if("\\"!==s){if("$"===s&&!o)throw new Error('Error in attribute selector "'.concat(e,'". ')+'Unescaped "$" is not supported. Please escape with "\\$".');o=!1,i+=s}else o=!0}return i}},{key:"escapeAttribute",value:function(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}},{key:"isElementSelector",value:function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}},{key:"hasElementSelector",value:function(){return!!this.element}},{key:"setElement",value:function(){var e=arguments.length>0&&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<this.attrs.length;a+=2){var s=this.attrs[a],l=""!==this.attrs[a+1]?'="'.concat(this.attrs[a+1],'"'):"";o+=" ".concat(s).concat(l)}return ka(e).isVoid?"<".concat(e).concat(i).concat(o,"/>"):"<".concat(e).concat(i).concat(o,"></").concat(e,">")}},{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;i<this.attrs.length;i+=2){var o=this.escapeAttribute(this.attrs[i]),a=this.attrs[i+1];e+="[".concat(o).concat(a?"="+a:"","]")}return this.notSelectors.forEach(function(s){return e+=":not(".concat(s,")")}),e}}],[{key:"parse",value:function(e){var s,i=[],o=function(L,z){z.notSelectors.length>0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),L.push(z)},a=new n,l=a,u=!1;for(go.lastIndex=0;s=go.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"}(Qo||(Qo={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(Xo||(Xo={}));var Br,gu,_u={name:"custom-elements"},ec={name:"no-errors-schema"};function _l(n){var r=function ml(n){var r=n.classNames&&n.classNames.length?[8].concat((0,cn.Z)(n.classNames)):[];return[n.element&&"*"!==n.element?n.element:""].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r))}(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(function(i){return function mf(n){var r=n.classNames&&n.classNames.length?[8].concat((0,cn.Z)(n.classNames)):[];return n.element?[5,n.element].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r)):n.attrs.length?[3].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r)):n.classNames&&n.classNames.length?[9].concat((0,cn.Z)(n.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,cn.Z)(e))}function vu(n){return n?fo.parse(n).map(_l):[]}!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"}(Br||(Br={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(gu||(gu={}));var ks=/-+([a-z0-9])/g;function yu(n,r,e){var i=n.indexOf(r);return-1==i?e:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function pa(n){throw new Error("Internal Error: ".concat(n))}function bd(n){for(var r=[],e=0;e<n.length;e++){var i=n.charCodeAt(e);if(i>=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 Ts(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ts).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 Xm=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Ja=function(){return"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var Cr=function(){function n(r){(0,B.Z)(this,n),this.digits=r}return(0,U.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<i;a++){var s=o;a<this.digits.length&&(s+=this.digits[a]),a<e.digits.length&&(s+=e.digits[a]),s>=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}(),us=function(){function n(r){(0,B.Z)(this,n),this.powerOfTwos=[r]}return(0,U.Z)(n,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=Cr.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}(),rh=function(){function n(r){(0,B.Z)(this,n),this.base=r,this.exponents=[new us(Cr.one())]}return(0,U.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 us(o)}return this.exponents[e]}}]),n}();function ih(n){return function ke(n){var r=bd(n),e=function Qa(n,r){for(var e=n.length+3>>>2,i=[],o=0;o<e;o++)i[o]=Ta(n,4*o,r);return i}(r,In.Big),i=8*r.length,o=function nh(n,r){for(var e=[],i=0;i<n;i++)e.push(r);return e}(80),a=1732584193,s=4023233417,l=2562383102,u=271733878,d=3285377520;e[i>>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h<e.length;h+=16){for(var g=a,y=s,L=l,z=u,q=d,re=0;re<80;re++){o[re]=re<16?e[h+re]:Xs(o[re-3]^o[re-8]^o[re-14]^o[re-16],1);var ae=le(re,s,l,u),Se=ae[0],Ce=ae[1],Ee=[Xs(a,5),Se,d,Ce,o[re]].reduce(Qn);d=u,u=l,l=Xs(s,30),s=a,a=Ee}a=Qn(a,g),s=Qn(s,y),l=Qn(l,L),u=Qn(u,z),d=Qn(d,q)}return function e_(n){for(var r="",e=0;e<n.length;e++){var i=nc(n,e);r+=(i>>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function cs(n){return n.reduce(function(r,e){return r.concat(function $m(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 xn(n){return n.map(function(r){return r.visit(jl,null)})}(n.nodes).join("")+"[".concat(n.meaning,"]"))}function _f(n){return n.id||Ss(n)}function Ss(n){var r=new we;return Oe(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var bu=function(){function n(){(0,B.Z)(this,n)}return(0,U.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?'<ph tag name="'.concat(e.startName,'"/>'):'<ph tag name="'.concat(e.startName,'">').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'</ph name="').concat(e.closeName,'">')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'<ph name="'.concat(e.name,'">').concat(e.value,"</ph>"):'<ph name="'.concat(e.name,'"/>')}},{key:"visitIcuPlaceholder",value:function(e,i){return'<ph icu name="'.concat(e.name,'">').concat(e.value.visit(this),"</ph>")}}]),n}(),jl=new bu;var In,we=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.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}(bu);function le(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 Me(n){var r=bd(n),e=pt(r,0),i=pt(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Oe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=Me(n);if(r){var i=Me(r);e=tc($o(e,1),i)}var o=e[0],a=e[1];return t_(2147483647&o,a)}function pt(n,r){var o,e=2654435769,i=2654435769,a=n.length;for(o=0;o+12<=a;o+=12){var s=Yt(e=Qn(e,Ta(n,o,In.Little)),i=Qn(i,Ta(n,o+4,In.Little)),r=Qn(r,Ta(n,o+8,In.Little)));e=s[0],i=s[1],r=s[2]}return e=Qn(e,Ta(n,o,In.Little)),i=Qn(i,Ta(n,o+4,In.Little)),r=Qn(r,a),Yt(e,i,r=Qn(r,Ta(n,o+8,In.Little)<<8))[2]}function Yt(n,r,e){return n=Go(n,r),n=Go(n,e),n^=e>>>13,r=Go(r,e),r=Go(r,n),r^=n<<8,e=Go(e,n),e=Go(e,r),e^=r>>>13,n=Go(n,r),n=Go(n,e),n^=e>>>12,r=Go(r,e),r=Go(r,n),r^=n<<16,e=Go(e,n),e=Go(e,r),e^=r>>>5,n=Go(n,r),n=Go(n,e),n^=e>>>3,r=Go(r,e),r=Go(r,n),r^=n<<10,e=Go(e,n),e=Go(e,r),[n,r,e^=r>>>15]}function Qn(n,r){return Qs(n,r)[1]}function Qs(n,r){var e=(65535&n)+(65535&r),i=(n>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function tc(n,r){var e=n[0],i=n[1],o=r[0],s=Qs(i,r[1]),l=s[0],u=s[1];return[Qn(Qn(e,o),l),u]}function Go(n,r){var e=(65535&n)-(65535&r);return(n>>16)-(r>>16)+(e>>16)<<16|65535&e}function Xs(n,r){return n<<r|n>>>32-r}function $o(n,r){var e=n[0],i=n[1];return[e<<r|i>>>32-r,i<<r|e>>>32-r]}function nc(n,r){return r>=n.length?0:n[r]}function Ta(n,r,e){var i=0;if(e===In.Big)for(var o=0;o<4;o++)i+=nc(n,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=nc(n,r+a)<<8*a;return i}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(In||(In={}));var Ac,oh=new rh(256);function t_(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"}(Ac||(Ac={}));var Es,rc=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ac.None;(0,B.Z)(this,n),this.modifiers=r}return(0,U.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"}(Es||(Es={}));var mt,Mt,xs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,U.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(rc),gl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,B.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,U.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(rc),vl=new xs(Es.Dynamic),Ma=new xs(Es.Inferred),Pe=new xs(Es.Bool),_e=(new xs(Es.Int),new xs(Es.Number)),xe=new xs(Es.String),ze=(new xs(Es.Function),new xs(Es.None));function wn(n,r){return null==n||null==r?n==r:n.isEquivalent(r)}function Rr(n,r,e){var i=n.length;if(i!==r.length)return!1;for(var o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}function si(n,r){return Rr(n,r,function(e,i){return e.isEquivalent(i)})}!function(n){n[n.Minus=0]="Minus",n[n.Plus=1]="Plus"}(mt||(mt={})),function(n){n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseAnd=11]="BitwiseAnd",n[n.Lower=12]="Lower",n[n.LowerEquals=13]="LowerEquals",n[n.Bigger=14]="Bigger",n[n.BiggerEquals=15]="BiggerEquals",n[n.NullishCoalesce=16]="NullishCoalesce"}(Mt||(Mt={}));var li=function(){function n(r,e){(0,B.Z)(this,n),this.type=r||null,this.sourceSpan=e||null}return(0,U.Z)(n,[{key:"prop",value:function(e,i){return new fC(this,e,null,i)}},{key:"key",value:function(e,i,o){return new kI(this,e,i,o)}},{key:"callFn",value:function(e,i,o){return new ah(this,e,null,i,o)}},{key:"instantiate",value:function(e,i,o){return new ce(this,e,i,o)}},{key:"conditional",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;return new ic(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new Ao(Mt.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new Ao(Mt.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new Ao(Mt.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new Ao(Mt.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new Ao(Mt.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new Ao(Mt.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new Ao(Mt.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new Ao(Mt.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new Ao(Mt.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new Ao(Mt.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new Ao(Mt.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new Ao(Mt.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new Ao(Mt.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new Ao(Mt.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new Ao(Mt.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new Ao(Mt.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(yf,e)}},{key:"nullishCoalesce",value:function(e,i){return new Ao(Mt.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new uh(this,null)}}]),n}(),$s=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,U.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 vf(this.name,o,null,this.sourceSpan)}}]),e}(li),gf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,U.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}(li),Ar=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,U.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}(li),vf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,U.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 bf(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(Ma,Ds.Final)}}]),e}(li),n_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,U.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}(li),Pv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,U.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}(li),ah=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,B.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&si(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}(li),ie=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Rr(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&si(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(li),ce=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&si(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(li),me=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,U.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}(li),Ue=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.elements=r,this.expressions=e}),Xe=(0,U.Z)(function n(r,e,i){var o;(0,B.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:ds(Qr(r))}),Pt=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.text=r,this.sourceSpan=e}),rn=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),ui=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,xe,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,U.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)}),ha(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(Oe(s.associatedMessage.messageString,s.associatedMessage.meaning))),ha(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(li),Qr=function(r){return r.replace(/\\/g,"\\\\")},Do=function(r){return r.replace(/^:/,"\\:")},Ra=function(r){return r.replace(/:/g,"\\:")},ds=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function ha(n,r,e){return""===n?{cooked:r,raw:ds(Do(Qr(r))),range:e}:{cooked:":".concat(n,":").concat(r),raw:ds(":".concat(Ra(Qr(n)),":").concat(Qr(r))),range:e}}var Ds,fs=function(n){(0,qe.Z)(e,n);var r=(0,Be.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,B.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,U.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}(li),ic=function(n){(0,qe.Z)(e,n);var r=(0,Be.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,B.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&wn(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(li),Cu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,Pe,o)).condition=i,a}return(0,U.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}(li),ma=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,B.Z)(this,n),this.name=r,this.type=e}return(0,U.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),wu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.params,o.params)&&si(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 pM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(li),Iv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,B.Z)(this,e),(l=r.call(this,a||_e,s)).operator=i,l.expr=o,l.parens=u,l}return(0,U.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}(li),Ao=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,B.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,U.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}(li),fC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,U.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 Pv(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(li),kI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,U.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 n_(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(li),Hl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,U.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(li),cM=function(){function n(r,e,i){(0,B.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,U.Z)(n,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),n}(),sh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(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}(li),r_=new me(null,null,null),yf=new me(null,Ma,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"}(Ds||(Ds={}));var fM=function(){function n(r,e,i){(0,B.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,U.Z)(n,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),n}(),pC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,U.Z)(e,[{key:"toString",value:function(){return function YW(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return"*".concat(io(n[0])," ");var i,r="*\n",e=(0,An.Z)(n);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=io(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(fM),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ds.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,B.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,U.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}(),bf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.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,U.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),pM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.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,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.params,o.params)&&si(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(lh),uh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,Ds.None,o,a)).expr=i,s}return(0,U.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),Sa=function(n){(0,qe.Z)(e,n);var r=(0,Be.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,B.Z)(this,e),(o=r.call(this,Ds.None,a,s)).value=i,o}return(0,U.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),i_=function(n){(0,qe.Z)(e,n);var r=(0,Be.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,B.Z)(this,e),(a=r.call(this,Ds.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&si(this.trueCase,o.trueCase)&&si(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function hM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new pC(n)}function qr(n,r,e){return new $s(n,r,e)}function Xn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new fs(n,null,r,e)}function ps(n,r,e){return new gl(n,r,e)}function hC(n){return new gf(n)}function pi(n,r,e){return new Hl(n,r,e)}function As(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new sh(n.map(function(e){return new cM(e.key,e.value,e.quoted)}),r,null)}function ch(n,r){return new Cu(n,r)}function oa(n,r,e,i,o){return new wu(n,r,e,i,o)}function Cf(n,r,e,i,o){return new i_(n,r,e,i,o)}function Rv(n,r,e,i){return new ie(n,r,e,i)}function on(n,r,e){return new me(n,r,e)}function kd(n,r,e,i,o){return new ui(n,r,e,i,o)}function mC(n){return n instanceof me&&null===n.value}function io(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 SI=qr("<unknown>"),EI={},xI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,U.Z)(e,[{key:"visitExpression",value:function(o,a){return a===EI?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}(li),wf=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,B.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,U.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof me&&!Lv(e)||e instanceof xI)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new xI(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,d,l=this.freshName();this.isClosureCompilerEnabled&&Lv(e)?(u=qr(l).set(new wu([],[new Sa(e)])),d=qr(l).callFn([])):(u=qr(l).set(e),d=qr(l)),this.statements.push(u.toDeclStmt(Ma,Ds.Final)),a.fixup(d)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof Hl){var i=e.entries.map(function(l){return l.isConstant()?l:SI}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=As(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:SI,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return As(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(y){return!y.isConstant()});if(!s){var u=i.map(function(y,L){return y.isConstant()?a.getConstLiteral(y,!0):qr("a".concat(L))}),h=oa(u.filter(Za).map(function(y){return new ma(y.name,vl)}),[new Sa(o(u))],Ma),g=this.freshName();this.statements.push(qr(g).set(h).toDeclStmt(Ma,Ds.Final)),s=qr(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 DI,EI)}}]),n}(),DI=function(){function n(){(0,B.Z)(this,n),this.visitWrappedNodeExpr=La,this.visitWriteVarExpr=La,this.visitWriteKeyExpr=La,this.visitWritePropExpr=La,this.visitInvokeFunctionExpr=La,this.visitTaggedTemplateExpr=La,this.visitInstantiateExpr=La,this.visitConditionalExpr=La,this.visitNotExpr=La,this.visitAssertNotNullExpr=La,this.visitCastExpr=La,this.visitFunctionExpr=La,this.visitUnaryOperatorExpr=La,this.visitBinaryOperatorExpr=La,this.visitReadPropExpr=La,this.visitReadKeyExpr=La,this.visitCommaExpr=La,this.visitLocalizedString=La}return(0,U.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 La(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function Za(n){return n instanceof $s}function Lv(n){return n instanceof me&&"string"==typeof n.value&&n.value.length>=50}var qt="@angular/core",Ne=(0,U.Z)(function n(){(0,B.Z)(this,n)});Ne.NEW_METHOD="factory",Ne.TRANSFORM_METHOD="transform",Ne.PATCH_DEPS="patchedDeps",Ne.core={name:null,moduleName:qt},Ne.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:qt},Ne.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:qt},Ne.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:qt},Ne.element={name:"\u0275\u0275element",moduleName:qt},Ne.elementStart={name:"\u0275\u0275elementStart",moduleName:qt},Ne.elementEnd={name:"\u0275\u0275elementEnd",moduleName:qt},Ne.advance={name:"\u0275\u0275advance",moduleName:qt},Ne.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:qt},Ne.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:qt},Ne.attribute={name:"\u0275\u0275attribute",moduleName:qt},Ne.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:qt},Ne.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:qt},Ne.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:qt},Ne.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:qt},Ne.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:qt},Ne.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:qt},Ne.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:qt},Ne.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:qt},Ne.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:qt},Ne.classProp={name:"\u0275\u0275classProp",moduleName:qt},Ne.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:qt},Ne.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:qt},Ne.elementContainer={name:"\u0275\u0275elementContainer",moduleName:qt},Ne.styleMap={name:"\u0275\u0275styleMap",moduleName:qt},Ne.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:qt},Ne.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:qt},Ne.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:qt},Ne.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:qt},Ne.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:qt},Ne.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:qt},Ne.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:qt},Ne.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:qt},Ne.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:qt},Ne.classMap={name:"\u0275\u0275classMap",moduleName:qt},Ne.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:qt},Ne.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:qt},Ne.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:qt},Ne.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:qt},Ne.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:qt},Ne.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:qt},Ne.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:qt},Ne.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:qt},Ne.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:qt},Ne.styleProp={name:"\u0275\u0275styleProp",moduleName:qt},Ne.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:qt},Ne.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:qt},Ne.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:qt},Ne.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:qt},Ne.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:qt},Ne.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:qt},Ne.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:qt},Ne.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:qt},Ne.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:qt},Ne.nextContext={name:"\u0275\u0275nextContext",moduleName:qt},Ne.resetView={name:"\u0275\u0275resetView",moduleName:qt},Ne.templateCreate={name:"\u0275\u0275template",moduleName:qt},Ne.text={name:"\u0275\u0275text",moduleName:qt},Ne.enableBindings={name:"\u0275\u0275enableBindings",moduleName:qt},Ne.disableBindings={name:"\u0275\u0275disableBindings",moduleName:qt},Ne.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:qt},Ne.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:qt},Ne.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:qt},Ne.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:qt},Ne.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:qt},Ne.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:qt},Ne.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:qt},Ne.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:qt},Ne.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:qt},Ne.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:qt},Ne.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:qt},Ne.restoreView={name:"\u0275\u0275restoreView",moduleName:qt},Ne.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:qt},Ne.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:qt},Ne.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:qt},Ne.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:qt},Ne.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:qt},Ne.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:qt},Ne.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:qt},Ne.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:qt},Ne.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:qt},Ne.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:qt},Ne.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:qt},Ne.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:qt},Ne.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:qt},Ne.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:qt},Ne.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:qt},Ne.hostProperty={name:"\u0275\u0275hostProperty",moduleName:qt},Ne.property={name:"\u0275\u0275property",moduleName:qt},Ne.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:qt},Ne.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:qt},Ne.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:qt},Ne.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:qt},Ne.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:qt},Ne.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:qt},Ne.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:qt},Ne.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:qt},Ne.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:qt},Ne.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:qt},Ne.i18n={name:"\u0275\u0275i18n",moduleName:qt},Ne.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:qt},Ne.i18nExp={name:"\u0275\u0275i18nExp",moduleName:qt},Ne.i18nStart={name:"\u0275\u0275i18nStart",moduleName:qt},Ne.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:qt},Ne.i18nApply={name:"\u0275\u0275i18nApply",moduleName:qt},Ne.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:qt},Ne.pipe={name:"\u0275\u0275pipe",moduleName:qt},Ne.projection={name:"\u0275\u0275projection",moduleName:qt},Ne.projectionDef={name:"\u0275\u0275projectionDef",moduleName:qt},Ne.reference={name:"\u0275\u0275reference",moduleName:qt},Ne.inject={name:"\u0275\u0275inject",moduleName:qt},Ne.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:qt},Ne.directiveInject={name:"\u0275\u0275directiveInject",moduleName:qt},Ne.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:qt},Ne.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:qt},Ne.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:qt},Ne.forwardRef={name:"forwardRef",moduleName:qt},Ne.resolveForwardRef={name:"resolveForwardRef",moduleName:qt},Ne.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:qt},Ne.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:qt},Ne.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:qt},Ne.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:qt},Ne.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:qt},Ne.resolveBody={name:"\u0275\u0275resolveBody",moduleName:qt},Ne.defineComponent={name:"\u0275\u0275defineComponent",moduleName:qt},Ne.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:qt},Ne.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:qt},Ne.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:qt},Ne.ViewEncapsulation={name:"ViewEncapsulation",moduleName:qt},Ne.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:qt},Ne.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:qt},Ne.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:qt},Ne.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:qt},Ne.defineDirective={name:"\u0275\u0275defineDirective",moduleName:qt},Ne.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:qt},Ne.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:qt},Ne.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:qt},Ne.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:qt},Ne.defineInjector={name:"\u0275\u0275defineInjector",moduleName:qt},Ne.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:qt},Ne.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:qt},Ne.ModuleWithProviders={name:"ModuleWithProviders",moduleName:qt},Ne.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:qt},Ne.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:qt},Ne.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:qt},Ne.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:qt},Ne.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:qt},Ne.definePipe={name:"\u0275\u0275definePipe",moduleName:qt},Ne.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:qt},Ne.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:qt},Ne.setClassMetadata={name:"\u0275setClassMetadata",moduleName:qt},Ne.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:qt},Ne.viewQuery={name:"\u0275\u0275viewQuery",moduleName:qt},Ne.loadQuery={name:"\u0275\u0275loadQuery",moduleName:qt},Ne.contentQuery={name:"\u0275\u0275contentQuery",moduleName:qt},Ne.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:qt},Ne.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:qt},Ne.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:qt},Ne.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:qt},Ne.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:qt},Ne.listener={name:"\u0275\u0275listener",moduleName:qt},Ne.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:qt},Ne.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:qt},Ne.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:qt},Ne.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:qt},Ne.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:qt},Ne.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:qt},Ne.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:qt},Ne.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:qt},Ne.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:qt},Ne.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:qt};var Td=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,B.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,U.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<this.lastCol0)throw new Error("Mapping should be added in output order");if(i&&(null==o||null==a))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:i,sourceLine0:o,sourceCol0:a}),this}},{key:"currentLine",get:function(){return this.lines.slice(-1)[0]}},{key:"toJSON",value:function(){var e=this;if(!this.hasMappings)return null;var i=new Map,o=[],a=[];Array.from(this.sourcesContent.keys()).forEach(function(g,y){i.set(g,y),o.push(g),a.push(e.sourcesContent.get(g)||null)});var s="",l=0,u=0,d=0,h=0;return this.lines.forEach(function(g){l=0,s+=g.map(function(y){var L=dh(y.col0-l);return l=y.col0,null!=y.sourceUrl&&(L+=dh(i.get(y.sourceUrl)-u),u=i.get(y.sourceUrl),L+=dh(y.sourceLine0-d),d=y.sourceLine0,L+=dh(y.sourceCol0-h),h=y.sourceCol0),L}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:o,sourcesContent:a,mappings:s}}},{key:"toJsComment",value:function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function AI(n){for(var r="",e=bd(n),i=0;i<e.length;){var o=e[i++],a=i<e.length?e[i++]:null,s=i<e.length?e[i++]:null;r+=a_(o>>2),r+=a_((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":a_((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":a_(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),n}();function dh(n){n=n<0?1+(-n<<1):n<<1;var r="";do{var e=31&n;(n>>=5)>0&&(e|=32),r+=a_(e)}while(n>0);return r}function a_(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}var f5=/'|\\|\n|\r|\$/g,p5=/^[$A-Z_][0-9A-Z_$]*$/i,h5=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),PI=function(){function n(r){(0,B.Z)(this,n),this._indent=r,this._lines=[new h5(r)]}return(0,U.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 h5(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?fh(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 Td(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;l<i;l++)o.addLine(),s();return this.sourceLines.forEach(function(u,d){o.addLine();for(var h=u.srcSpans,g=u.parts,y=u.indent*" ".length,L=0;L<h.length&&!h[L];)y+=g[L].length,L++;for(L<h.length&&0===d&&0===y?a=!0:s();L<h.length;){var z=h[L],q=z.start.file,re=z.start.line,ae=z.start.col;for(o.addSource(q.url,q.content).addMapping(y,q.url,re,ae),y+=g[L].length,L++;L<h.length&&(z===h[L]||!h[L]);)y+=g[L].length,L++}}),o}},{key:"spanOf",value:function(e,i){var o=this._lines[e];if(o)for(var a=i-fh(o.indent).length,s=0;s<o.parts.length;s++){var l=o.parts[s];if(l.length>a)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}(),zl=function(){function n(r){(0,B.Z)(this,n),this._escapeDollarInStrings=r}return(0,U.Z)(n,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,An.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof pC?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;o<e.template.elements.length;o++)i.print(e,"${"),e.template.expressions[o-1].visitExpression(this,i),i.print(e,"}".concat(e.template.elements[o].rawText));return i.print(e,"`"),null}},{key:"visitWrappedNodeExpr",value:function(e,i){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}},{key:"visitTypeofExpr",value:function(e,i){i.print(e,"typeof "),e.expr.visitExpression(this,i)}},{key:"visitReadVarExpr",value:function(e,i){return i.print(e,e.name),null}},{key:"visitInstantiateExpr",value:function(e,i){return i.print(e,"new "),e.classExpr.visitExpression(this,i),i.print(e,"("),this.visitAllExpressions(e.args,i,","),i.print(e,")"),null}},{key:"visitLiteralExpr",value:function(e,i){var o=e.value;return"string"==typeof o?i.print(e,Md(o,this._escapeDollarInStrings)):i.print(e,"".concat(o)),null}},{key:"visitLocalizedString",value:function(e,i){var o=e.serializeI18nHead();i.print(e,"$localize `"+o.raw);for(var a=1;a<e.messageParts.length;a++)i.print(e,"${"),e.expressions[a-1].visitExpression(this,i),i.print(e,"}".concat(e.serializeI18nTemplatePart(a).raw));return i.print(e,"`"),null}},{key:"visitConditionalExpr",value:function(e,i){return i.print(e,"("),e.condition.visitExpression(this,i),i.print(e,"? "),e.trueCase.visitExpression(this,i),i.print(e,": "),e.falseCase.visitExpression(this,i),i.print(e,")"),null}},{key:"visitNotExpr",value:function(e,i){return i.print(e,"!"),e.condition.visitExpression(this,i),null}},{key:"visitUnaryOperatorExpr",value:function(e,i){var o;switch(e.operator){case mt.Plus:o="+";break;case mt.Minus:o="-";break;default:throw new Error("Unknown operator ".concat(e.operator))}return e.parens&&i.print(e,"("),i.print(e,o),e.expr.visitExpression(this,i),e.parens&&i.print(e,")"),null}},{key:"visitBinaryOperatorExpr",value:function(e,i){var o;switch(e.operator){case Mt.Equals:o="==";break;case Mt.Identical:o="===";break;case Mt.NotEquals:o="!=";break;case Mt.NotIdentical:o="!==";break;case Mt.And:o="&&";break;case Mt.BitwiseAnd:o="&";break;case Mt.Or:o="||";break;case Mt.Plus:o="+";break;case Mt.Minus:o="-";break;case Mt.Divide:o="/";break;case Mt.Multiply:o="*";break;case Mt.Modulo:o="%";break;case Mt.Lower:o="<";break;case Mt.LowerEquals:o="<=";break;case Mt.Bigger:o=">";break;case Mt.BiggerEquals:o=">=";break;case Mt.NullishCoalesce:o="??";break;default:throw new Error("Unknown operator ".concat(e.operator))}return e.parens&&i.print(e,"("),e.lhs.visitExpression(this,i),i.print(e," ".concat(o," ")),e.rhs.visitExpression(this,i),e.parens&&i.print(e,")"),null}},{key:"visitReadPropExpr",value:function(e,i){return e.receiver.visitExpression(this,i),i.print(e,"."),i.print(e,e.name),null}},{key:"visitReadKeyExpr",value:function(e,i){return e.receiver.visitExpression(this,i),i.print(e,"["),e.index.visitExpression(this,i),i.print(e,"]"),null}},{key:"visitLiteralArrayExpr",value:function(e,i){return i.print(e,"["),this.visitAllExpressions(e.entries,i,","),i.print(e,"]"),null}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return i.print(e,"{"),this.visitAllObjects(function(a){i.print(e,"".concat(Md(a.key,o._escapeDollarInStrings,a.quoted),":")),a.value.visitExpression(o,i)},e.entries,i,","),i.print(e,"}"),null}},{key:"visitCommaExpr",value:function(e,i){return i.print(e,"("),this.visitAllExpressions(e.parts,i,","),i.print(e,")"),null}},{key:"visitAllExpressions",value:function(e,i,o){var a=this;this.visitAllObjects(function(s){return s.visitExpression(a,i)},e,i,o)}},{key:"visitAllObjects",value:function(e,i,o,a){for(var s=!1,l=0;l<i.length;l++)l>0&&(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 Md(n,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==n)return null;var i=n.replace(f5,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||!p5.test(i);return o?"'".concat(i,"'"):i}function fh(n){for(var r="",e=0;e<n;e++)r+=" ";return r}function mM(n,r){if(0===r)return ps(n);for(var e=[],i=0;i<r;i++)e.push(vl);return ps(n,void 0,e)}var Bv,ac;function II(n){return"".concat("@").concat(n)}function m5(n,r){return"".concat("@").concat(n,".").concat(r)}function RI(n,r){return"animation_".concat(n,"_").concat(r)}function gC(n,r){var e=new fs({name:n,moduleName:null}),i=new Ao(Mt.Identical,new gf(e),on("undefined")),o=new Ao(Mt.Or,i,e,void 0,void 0,!0);return new Ao(Mt.And,o,r)}function Na(n){var r=new Ar(n);return{value:r,type:r}}function oc(n,r){var e=pi(n.map(function(i){return i.value}));return r?oa([],[new Sa(e)]):e}function Oc(n,r){return{expression:n,forwardRef:r}}function kf(n){var r=n.expression;switch(n.forwardRef){case 0:case 1:return r;case 2:return Nv(r)}}function Nv(n){return Xn(Ne.forwardRef).callFn([oa([],[new Sa(n)])])}function ph(n){var r=qr("t"),e=null,i=vM(n)?r:new Ao(Mt.Or,r,n.internalType),o=null;null!==n.deps?"invalid"!==n.deps&&(o=new ce(i,s_(n.deps,n.target))):(e=qr("\u0275".concat(n.name,"_BaseFactory")),o=e.callFn([i]));var a=[],s=null;function l(L){var z=qr("r");a.push(z.set(r_).toDeclStmt());var q=null!==o?z.set(o).toStmt():Xn(Ne.invalidFactory).callFn([]).toStmt();return a.push(Cf(r,[q],[z.set(L).toStmt()])),z}if(vM(n)){var u=s_(n.delegateDeps,n.target);s=l(new(n.delegateType===Bv.Class?ce:ah)(n.delegate,u))}else s=function LI(n){return void 0!==n.expression}(n)?l(n.expression):o;if(null===s)a.push(Xn(Ne.invalidFactory).callFn([]).toStmt());else if(null!==e){var h=Xn(Ne.getInheritedFactory).callFn([n.internalType]),g=new Ao(Mt.Or,e,e.set(h));a.push(new Sa(g.callFn([i])))}else a.push(new Sa(s));var y=oa([new ma("t",vl)],a,Ma,void 0,"".concat(n.name,"_Factory"));return null!==e&&(y=oa([],[new bf(e.name),new Sa(y)]).callFn([],void 0,!0)),{expression:y,statements:[],type:gM(n)}}function gM(n){var r=null!==n.deps&&"invalid"!==n.deps?function y5(n){var r=!1,e=n.map(function(i){var o=function Ea(n){var r=[];return null!==n.attributeNameType&&r.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&r.push({key:"optional",value:on(!0),quoted:!1}),n.host&&r.push({key:"host",value:on(!0),quoted:!1}),n.self&&r.push({key:"self",value:on(!0),quoted:!1}),n.skipSelf&&r.push({key:"skipSelf",value:on(!0),quoted:!1}),r.length>0?As(r):null}(i);return null!==o?(r=!0,o):on(null)});return r?ps(pi(e)):ze}(n.deps):ze;return ps(Xn(Ne.FactoryDeclaration,[mM(n.type.type,n.typeArgumentCount),r]))}function s_(n,r){return n.map(function(e,i){return function l_(n,r,e){if(null===n.token)return Xn(Ne.invalidFactoryDep).callFn([on(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===ac.Pipe?16:0),o=0!==i||n.optional?on(i):null,a=[n.token];o&&a.push(o);var s=function yM(n){switch(n){case ac.Component:case ac.Directive:case ac.Pipe:return Ne.directiveInject;case ac.NgModule:case ac.Injectable:default:return Ne.inject}}(r);return Xn(s).callFn(a)}return Xn(Ne.injectAttribute).callFn([n.token])}(e,r,i)})}function vM(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(Bv||(Bv={})),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"}(ac||(ac={}));var Fv=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),vC=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),bM=function(){function n(r,e,i){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),CM=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),n}(),Uv=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.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,U.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}(),u_=function(){function n(r,e,i,o,a,s,l,u){(0,B.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,U.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}(),hh=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.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,U.Z)(n,[{key:"visit",value:function(e){return e.visitElement(this)}}]),n}(),Sd=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){(0,B.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=y}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),ZI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),wM=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),jv=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),Hv=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),n}();function mh(n,r){var e=[];if(n.visit){var o,i=(0,An.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,An.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 Tf=(0,U.Z)(function n(r,e,i,o,a,s){(0,B.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 FI(n){var r=new C5,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=[]}),kM=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),c_=function(){function n(r,e){(0,B.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),NI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),JW=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.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,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),BI=function(){function n(r,e,i){(0,B.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),bC=function(){function n(r,e,i){(0,B.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var C5=function(){function n(){(0,B.Z)(this,n)}return(0,U.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}(),UI=function(){function n(){(0,B.Z)(this,n)}return(0,U.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(""),"</").concat(e.name,">")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"<?xml".concat(this._serializeAttributes(e.attrs)," ?>")}},{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"<!DOCTYPE ".concat(e.rootTag," [\n").concat(e.dtd,"\n]>")}}]),n}();new UI;function S5(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Gv="i18n-";function SM(n){return"i18n"===n||n.startsWith(Gv)}function zv(n){return n instanceof Tf}function wC(n){return zv(n)&&1===n.nodes.length&&n.nodes[0]instanceof NI}function ku(n){return!!n.i18n}function xM(n){return n.nodes[0]}function d_(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 Wv(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=n;return function(){return r++}}function DM(n){var r={};return n.forEach(function(e,i){r[i]=on(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function kC(n,r){for(var e=n.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];e.push.apply(e,o),n.set(r,e)}function VI(n){var r=arguments.length>1&&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 Tf?n.nodes.find(function(s){return s instanceof c_}):n;return a&&a.children.filter(function(s){return s instanceof BI}).forEach(function(s,l){var u=d_(i+l,e);kC(o,s.name,u)}),o}function TC(){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[Vv(i,r)]=n[i]}),e}function Vv(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=S5(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 AM(n){return"".concat("MSG_").concat(n).toUpperCase()}function O5(n){return new bf(n.name,void 0,Ma,void 0,n.sourceSpan)}var YI=/[-.]/,OM="_t",sc="ctx",_h="rf",qI="restoredCtx",I5=new Set([Ne.element,Ne.elementStart,Ne.elementEnd,Ne.elementContainer,Ne.elementContainerStart,Ne.elementContainerEnd,Ne.i18nExp,Ne.listener,Ne.classProp,Ne.syntheticHostListener,Ne.hostProperty,Ne.syntheticHostProperty,Ne.property,Ne.propertyInterpolate1,Ne.propertyInterpolate2,Ne.propertyInterpolate3,Ne.propertyInterpolate4,Ne.propertyInterpolate5,Ne.propertyInterpolate6,Ne.propertyInterpolate7,Ne.propertyInterpolate8,Ne.propertyInterpolateV,Ne.attribute,Ne.attributeInterpolate1,Ne.attributeInterpolate2,Ne.attributeInterpolate3,Ne.attributeInterpolate4,Ne.attributeInterpolate5,Ne.attributeInterpolate6,Ne.attributeInterpolate7,Ne.attributeInterpolate8,Ne.attributeInterpolateV,Ne.styleProp,Ne.stylePropInterpolate1,Ne.stylePropInterpolate2,Ne.stylePropInterpolate3,Ne.stylePropInterpolate4,Ne.stylePropInterpolate5,Ne.stylePropInterpolate6,Ne.stylePropInterpolate7,Ne.stylePropInterpolate8,Ne.stylePropInterpolateV,Ne.textInterpolate,Ne.textInterpolate1,Ne.textInterpolate2,Ne.textInterpolate3,Ne.textInterpolate4,Ne.textInterpolate5,Ne.textInterpolate6,Ne.textInterpolate7,Ne.textInterpolate8,Ne.textInterpolateV]);function gh(n,r,e){return Xn(r,null,n).callFn(e,n)}function MC(n,r){var e=null;return function(){return e||(n.push(new bf("_t",void 0,vl)),e=qr(r)),e}}function vh(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function Wl(n){return Array.isArray(n)?pi(n.map(Wl)):on(n,Ma)}function IM(n,r){return Object.getOwnPropertyNames(n).length>0?function f_(n,r){return As(Object.getOwnPropertyNames(n).map(function(e){var o,a,s,l,i=n[e];if(Array.isArray(i)){var u=(0,Yn.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else s=o=e,a=i,l=!1;return{key:s,quoted:YI.test(s),value:r&&l?pi([Wl(a),Wl(o)]):Wl(a)}}))}(n,r):null}function Kv(n){for(;mC(n[n.length-1]);)n.pop();return n}function JI(n,r){if(Array.isArray(n.predicate)){var e=[];return n.predicate.forEach(function(i){var o=i.split(",").map(function(a){return on(a.trim())});e.push.apply(e,(0,cn.Z)(o))}),r.getConstLiteral(pi(e),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Xn(Ne.resolveForwardRef).callFn([n.predicate.expression])}}var Ba=function(){function n(){(0,B.Z)(this,n),this.values=[]}return(0,U.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return As(this.values)}}]),n}();function yh(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 SC(n){var r,l,e=[],i=null,o=null,a=0,s=(0,An.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&&I5.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=gh(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 XI(n,r){var e=null,i={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:ac.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:Bv.Class})):o?ph(i):{statements:[],expression:e3(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:Bv.Function})):{statements:[],expression:oa([],[new Sa(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:Xn(Ne.inject).callFn([n.useExisting.expression])})):{statements:[],expression:e3(n.type.value,n.internalType,r)};var s=n.internalType,l=new Ba;return l.set("token",s),l.set("factory",e.expression),null!==n.providedIn.expression.value&&l.set("providedIn",kf(n.providedIn)),{expression:Xn(Ne.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:$I(n),statements:e.statements}}function $I(n){return new gl(Xn(Ne.InjectableDeclaration,[mM(n.type.type,n.typeArgumentCount)]))}function e3(n,r,e){return n.node===r.node?r.prop("\u0275fac"):t3(e?Xn(Ne.resolveForwardRef).callFn([r]):r)}function t3(n){return oa([new ma("t",vl)],[new Sa(n.prop("\u0275fac").callFn([qr("t")]))])}var n3=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var LM=function(){function n(r,e){(0,B.Z)(this,n),this.start=r,this.end=e}return(0,U.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function RM(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];n3.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])):Vl}}]),n}(),Vl=new LM("{{","}}"),Rf=123,Rc=125;function HM(n){return n>=9&&n<=32||160==n}function Lf(n){return 48<=n&&n<=57}function y_(n){return n>=97&&n<=122||n>=65&&n<=90}function b_(n){return 10===n||13===n}function GM(n){return 48<=n&&n<=55}function IC(n){return 39===n||34===n||96===n}var Dd,C_=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,U.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(;a<o&&e>0;){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;l<e&&a>0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l<e&&s<o.length-1&&(l++,"\n"!=o[++s]||++u!=i););return{before:o.substring(a,this.offset),after:o.substring(this.offset,s+1)}}return null}}]),n}(),zM=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.content=r,this.url=e}),Xa=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,B.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,U.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 kh=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;(0,B.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,U.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 F5=0;function Th(n){return n.replace(/\W/g,"_")}var RC,h3='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',j5=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.call(this,!1)}return(0,U.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(h3,"(")),a.print(o,"[".concat(l.map(function(u){return Md(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return Md(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(h3,"("));for(var l=[o.serializeI18nHead()],u=1;u<o.messageParts.length;u++)l.push(o.serializeI18nTemplatePart(u));return a.print(o,"[".concat(l.map(function(d){return Md(d.cooked,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(d){return Md(d.raw,!1)}).join(", "),"])")),o.expressions.forEach(function(d){a.print(o,", "),d.visitExpression(s,a)}),a.print(o,")"),null}},{key:"_visitParams",value:function(o,a){this.visitAllObjects(function(s){return a.print(null,s.name)},o,a,",")}}]),e}(zl);function m3(n){var r;return(null===(r=function H5(){if(void 0===RC&&(RC=null,Ja.trustedTypes))try{RC=Ja.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:function(r){return r}})}catch(n){}return RC}())||void 0===r?void 0:r.createScript(n))||n}function $v(){for(var n=arguments.length,r=new Array(n),e=0;e<n;e++)r[e]=arguments[e];if(!Ja.trustedTypes)return(0,Jr.Z)(Function,r);var i=r.slice(0,-1).join(","),o=r[r.length-1],a="(function anonymous(".concat(i,"\n) { ").concat(o,"\n})"),s=Ja.eval(m3(a));return void 0===s.bind?(0,Jr.Z)(Function,r):(s.toString=function(){return a},s.bind(Ja))}var _3=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new VM(o),l=PI.createRoot();return i.length>0&&!function G5(n){return n.isEquivalent(on("use strict").toStmt())}(i[0])&&(i=[on("use strict").toStmt()].concat((0,cn.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=$v.apply(void 0,(0,cn.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 y=$v.apply(void 0,(0,cn.Z)(l.concat(s)));return this.executeFunction(y,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,cn.Z)(i))}}]),n}(),VM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,U.Z)(e,[{key:"createReturnStmt",value:function(o){new Sa(new sh(this._evalExportedVars.map(function(s){return new cM(s,qr(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a<this._evalArgNames.length;a++)o[this._evalArgNames[a]]=this._evalArgValues[a];return o}},{key:"visitExternalExpr",value:function(o,a){return this._emitReferenceToExternal(o,this.refResolver.resolveExternalReference(o.value),a),null}},{key:"visitWrappedNodeExpr",value:function(o,a){return this._emitReferenceToExternal(o,o.node,a),null}},{key:"visitDeclareVarStmt",value:function(o,a){return o.hasModifier(Ds.Exported)&&this._evalExportedVars.push(o.name),(0,Ut.Z)((0,Wt.Z)(e.prototype),"visitDeclareVarStmt",this).call(this,o,a)}},{key:"visitDeclareFunctionStmt",value:function(o,a){return o.hasModifier(Ds.Exported)&&this._evalExportedVars.push(o.name),(0,Ut.Z)((0,Wt.Z)(e.prototype),"visitDeclareFunctionStmt",this).call(this,o,a)}},{key:"_emitReferenceToExternal",value:function(o,a,s){var l=this._evalArgValues.indexOf(a);if(-1===l){l=this._evalArgValues.length,this._evalArgValues.push(a);var u=function U5(n){if(!n||!n.reference)return null;var r=n.reference;if(r.__anonymousType)return r.__anonymousType;if(r.__forward_ref__)return"__forward_ref__";var e=Ts(r);return e.indexOf("(")>=0?(e="anonymous_".concat(F5++),r.__anonymousType=e):e=Th(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(j5);function Ad(n){var r=new Ba;return null!==n.providers&&r.set("providers",n.providers),n.imports.length>0&&r.set("imports",pi(n.imports)),{expression:Xn(Ne.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:YM(n),statements:[]}}function YM(n){return new gl(Xn(Ne.InjectorDeclaration,[new gl(n.type.type)]))}var Mh,Tu,g3=function(){function n(r){(0,B.Z)(this,n),this.context=r}return(0,U.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 v3(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=[],y=new Ba;if(y.set("type",e),i.length>0&&y.set("bootstrap",oc(i,u)),d===Mh.Inline)o.length>0&&y.set("declarations",oc(o,u)),a.length>0&&y.set("imports",oc(a,u)),s.length>0&&y.set("exports",oc(s,u));else if(d===Mh.SideEffect){var L=function W5(n){var r=n.adjacentType,e=n.declarations,i=n.imports,o=n.exports,a=n.containsForwardDecls,s=new Ba;if(e.length>0&&s.set("declarations",oc(e,a)),i.length>0&&s.set("imports",oc(i,a)),o.length>0&&s.set("exports",oc(o,a)),0===Object.keys(s.values).length)return null;var u=function g5(n){return gC("ngJitMode",n)}(new ah(Xn(Ne.setNgModuleScope),[r,s.toLiteralMap()])),d=new wu([],[u.toStmt()]);return new ah(d,[]).toStmt()}(n);null!==L&&g.push(L)}return null!==l&&l.length>0&&y.set("schemas",pi(l.map(function(re){return re.value}))),null!==h&&(y.set("id",h),g.push(Xn(Ne.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Xn(Ne.defineNgModule).callFn([y.toLiteralMap()],void 0,!0),type:y3(n),statements:g}}function y3(n){var r=n.type,e=n.declarations,i=n.exports,o=n.imports,a=n.includeImportTypes,s=n.publicDeclarationTypes;return new gl(Xn(Ne.NgModuleDeclaration,[new gl(r.type),null===s?KM(e):V5(s),a?KM(o):ze,KM(i)]))}function KM(n){var r=n.map(function(e){return hC(e.type)});return n.length>0?ps(pi(r)):ze}function V5(n){var r=n.map(function(e){return hC(e)});return n.length>0?ps(pi(r)):ze}function Y5(n){var r=[];return r.push({key:"name",value:on(n.pipeName),quoted:!1}),r.push({key:"type",value:n.type.value,quoted:!1}),r.push({key:"pure",value:on(n.pure),quoted:!1}),n.isStandalone&&r.push({key:"standalone",value:on(!0),quoted:!1}),{expression:Xn(Ne.definePipe).callFn([As(r)],void 0,!0),type:K5(n),statements:[]}}function K5(n){return new gl(Xn(Ne.PipeDeclaration,[mM(n.type.type,n.typeArgumentCount),new gl(new me(n.pipeName)),new gl(new me(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(Mh||(Mh={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(Tu||(Tu={}));var Eh,ey=(0,U.Z)(function n(r,e,i,o){(0,B.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)}),w_=function(){function n(r,e){(0,B.Z)(this,n),this.start=r,this.end=e}return(0,U.Z)(n,[{key:"toAbsolute",value:function(e){return new Rs(e+this.start,e+this.end)}}]),n}(),Fa=function(){function n(r,e){(0,B.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"toString",value:function(){return"AST"}}]),n}(),ty=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,U.Z)(e)}(Fa),Mu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Fa),k_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.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}(Fa),LC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.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}(k_),ny=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,U.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}(Fa),b3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,U.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}(Fa),Zf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,U.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}(ty),ry=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,U.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}(ty),ZC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,U.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}(ty),iy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,U.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}(Fa),Lc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,U.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}(Fa),qM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,U.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}(Fa),T_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,U.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}(ty),Ps=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,U.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}(Fa),NC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,U.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}(Fa),oy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,U.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}(Fa),$a=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,U.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}(Fa),Is=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,U.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}(Fa),Sh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.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,U.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 Ps(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new Ps(o,a,0))}}]),e}(Is),ay=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,U.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}(Fa),JM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,U.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}(Fa),M_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,U.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}(Fa),sy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,U.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}(Fa),Rs=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.start=r,this.end=e}),Nf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,new w_(0,null===o?0:o.length),new Rs(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,U.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}(Fa),QM=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),q5=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),J5=function(){function n(){(0,B.Z)(this,n)}return(0,U.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,An.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}(),XM=function(){function n(){(0,B.Z)(this,n)}return(0,U.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 $a(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new Ps(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new Zf(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new ry(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new ZC(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new NC(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new oy(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Sh.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Sh.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 Is(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new ay(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new JM(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new b3(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new T_(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new iy(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new qM(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new M_(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new sy(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<e.length;++o)i[o]=e[o].visit(this);return i}},{key:"visitChain",value:function(e,i){return new ny(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitSafeKeyedRead",value:function(e,i){return new Lc(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}]),n}(),Q5=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new $a(e.span,e.sourceSpan,e.strings,o):e}},{key:"visitLiteralPrimitive",value:function(e,i){return e}},{key:"visitPropertyRead",value:function(e,i){var o=e.receiver.visit(this);return o!==e.receiver?new Zf(e.span,e.sourceSpan,e.nameSpan,o,e.name):e}},{key:"visitPropertyWrite",value:function(e,i){var o=e.receiver.visit(this),a=e.value.visit(this);return o!==e.receiver||a!==e.value?new ry(e.span,e.sourceSpan,e.nameSpan,o,e.name,a):e}},{key:"visitSafePropertyRead",value:function(e,i){var o=e.receiver.visit(this);return o!==e.receiver?new ZC(e.span,e.sourceSpan,e.nameSpan,o,e.name):e}},{key:"visitLiteralArray",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new NC(e.span,e.sourceSpan,o):e}},{key:"visitLiteralMap",value:function(e,i){var o=this.visitAll(e.values);return o!==e.values?new oy(e.span,e.sourceSpan,e.keys,o):e}},{key:"visitUnary",value:function(e,i){var o=e.expr.visit(this);if(o!==e.expr)switch(e.operator){case"+":return Sh.createPlus(e.span,e.sourceSpan,o);case"-":return Sh.createMinus(e.span,e.sourceSpan,o);default:throw new Error("Unknown unary operator ".concat(e.operator))}return e}},{key:"visitBinary",value:function(e,i){var o=e.left.visit(this),a=e.right.visit(this);return o!==e.left||a!==e.right?new Is(e.span,e.sourceSpan,e.operation,o,a):e}},{key:"visitPrefixNot",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new ay(e.span,e.sourceSpan,o):e}},{key:"visitNonNullAssert",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new JM(e.span,e.sourceSpan,o):e}},{key:"visitConditional",value:function(e,i){var o=e.condition.visit(this),a=e.trueExp.visit(this),s=e.falseExp.visit(this);return o!==e.condition||a!==e.trueExp||s!==e.falseExp?new b3(e.span,e.sourceSpan,o,a,s):e}},{key:"visitPipe",value:function(e,i){var o=e.exp.visit(this),a=this.visitAll(e.args);return o!==e.exp||a!==e.args?new T_(e.span,e.sourceSpan,o,e.name,a,e.nameSpan):e}},{key:"visitKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new iy(e.span,e.sourceSpan,o,a):e}},{key:"visitKeyedWrite",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this),s=e.value.visit(this);return o!==e.receiver||a!==e.key||s!==e.value?new qM(e.span,e.sourceSpan,o,a,s):e}},{key:"visitAll",value:function(e){for(var i=[],o=!1,a=0;a<e.length;++a){var s=e[a],l=s.visit(this);i[a]=l,o=o||l!==s}return o?i:e}},{key:"visitChain",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new ny(e.span,e.sourceSpan,o):e}},{key:"visitCall",value:function(e,i){var o=e.receiver.visit(this),a=this.visitAll(e.args);return o!==e.receiver||a!==e.args?new M_(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeCall",value:function(e,i){var o=e.receiver.visit(this),a=this.visitAll(e.args);return o!==e.receiver||a!==e.args?new sy(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new Lc(e.span,e.sourceSpan,o,a):e}}]),n}(),BC=(0,U.Z)(function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.name=r,this.expression=e,this.type=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=s,this.isLiteral=this.type===Eh.LITERAL_ATTR,this.isAnimation=this.type===Eh.ANIMATION});!function(n){n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION"}(Eh||(Eh={}));var $M=(0,U.Z)(function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),aV=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),C3=(0,U.Z)(function n(r,e,i,o,a,s,l,u){(0,B.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}),Bf=(0,U.Z)(function n(){(0,B.Z)(this,n)});function X5(n,r,e,i,o,a,s){n||(n=new S3(s));var l=function S_(n,r){return function k3(n,r){var e=new rS(n);return r.visit(e)}(n,r)}({createLiteralArrayConverter:function(L){return function(z){return pi(z)}},createLiteralMapConverter:function(L){return function(z){return As(L.map(function(re,ae){return{key:re.key,value:z[ae],quoted:re.quoted}}))}},createPipeConverter:function(L){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(L))}},e),u=new xh(n,r,i,!1,o,a),d=[];M3(l.visit(u,Hi.Statement),d),function T3(n,r,e){for(var i=n-1;i>=0;i--)e.unshift(FC(r,i))}(u.temporaryCount,i,d),u.usesImplicitReceiver&&n.notifyImplicitReceiverUse();var h=d.length-1;if(h>=0){var g=d[h];g instanceof uh&&(d[h]=new Sa(g.expr))}return d}Bf.event=qr("$event");var Hi,E_=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.stmts=r,this.currValExpr=e});function w3(n,r,e,i){n||(n=new S3);var o=new xh(n,r,i,!1),a=e.visit(o,Hi.Expression),s=eS(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new E_(s,a)}function eS(n,r){for(var e=[],i=0;i<n.temporaryCount;i++)e.push(FC(r,i));return e}function tS(n,r){return"tmp_".concat(n,"_").concat(r)}function FC(n,r){return new bf(tS(n,r))}function UC(n,r){if(n!==Hi.Expression)throw new Error("Expected an expression, but saw ".concat(r))}function el(n,r){return n===Hi.Statement?r.toStmt():r}!function(n){n[n.Statement=0]="Statement",n[n.Expression=1]="Expression"}(Hi||(Hi={}));var rS=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,U.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this,l=[o.exp].concat((0,cn.Z)(o.args)).map(function(u){return u.visit(s,a)});return new Dh(o.span,o.sourceSpan,l,this._converterFactory.createPipeConverter(o.name,l.length))}},{key:"visitLiteralArray",value:function(o,a){var s=this,l=o.expressions.map(function(u){return u.visit(s,a)});return new Dh(o.span,o.sourceSpan,l,this._converterFactory.createLiteralArrayConverter(o.expressions.length))}},{key:"visitLiteralMap",value:function(o,a){var s=this,l=o.values.map(function(u){return u.visit(s,a)});return new Dh(o.span,o.sourceSpan,l,this._converterFactory.createLiteralMapConverter(o.keys))}}]),e}(XM),xh=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this._localResolver=r,this._implicitReceiver=e,this.bindingId=i,this.supportsInterpolation=o,this.baseSourceSpan=a,this.implicitReceiverAccesses=s,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}return(0,U.Z)(n,[{key:"visitUnary",value:function(e,i){var o;switch(e.operator){case"+":o=mt.Plus;break;case"-":o=mt.Minus;break;default:throw new Error("Unsupported operator ".concat(e.operator))}return el(i,new Iv(o,this._visit(e.expr,Hi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitBinary",value:function(e,i){var o;switch(e.operation){case"+":o=Mt.Plus;break;case"-":o=Mt.Minus;break;case"*":o=Mt.Multiply;break;case"/":o=Mt.Divide;break;case"%":o=Mt.Modulo;break;case"&&":o=Mt.And;break;case"||":o=Mt.Or;break;case"==":o=Mt.Equals;break;case"!=":o=Mt.NotEquals;break;case"===":o=Mt.Identical;break;case"!==":o=Mt.NotIdentical;break;case"<":o=Mt.Lower;break;case">":o=Mt.Bigger;break;case"<=":o=Mt.LowerEquals;break;case">=":o=Mt.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return el(i,new Ao(o,this._visit(e.left,Hi.Expression),this._visit(e.right,Hi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function nS(n,r){if(n!==Hi.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 el(i,this._visit(e.condition,Hi.Expression).conditional(this._visit(e.trueExp,Hi.Expression),this._visit(e.falseExp,Hi.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 UC(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");UC(i,e);for(var o=[],a=0;a<e.strings.length-1;a++)o.push(on(e.strings[a])),o.push(this._visit(e.expressions[a],Hi.Expression));o.push(on(e.strings[e.strings.length-1]));var s=e.strings;return 2===s.length&&""===s[0]&&""===s[1]?o=[o[1]]:e.expressions.length>=9&&(o=[pi(o)]),new $5(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):el(i,this._visit(e.receiver,Hi.Expression).key(this._visit(e.key,Hi.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,Hi.Expression),a=this._visit(e.key,Hi.Expression),s=this._visit(e.value,Hi.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),el(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?Ma:void 0;return el(i,on(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 LC?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return el(i,ch(this._visit(e.expression,Hi.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return el(i,this._visit(e.expression,Hi.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,Hi.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))),el(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,Hi.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof fC)){var u=e.name,d=e.value instanceof Zf?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))),el(i,s.set(this._visit(e.value,Hi.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,Hi.Expression);if(e instanceof Dh)return el(i,e.converter(a));var s=e.receiver;if(s instanceof Zf&&s.receiver instanceof k_&&!(s.receiver instanceof LC)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return el(i,a[0])}return el(i,this._visit(s,Hi.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,Hi.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 sy?this._nodeMap.set(i,new M_(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Lc?this._nodeMap.set(i,new iy(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new Zf(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,Hi.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),el(o,l.conditional(r_,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,Hi.Expression),a=this._visit(e.right,Hi.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),el(i,s.set(o).notIdentical(r_).and(s.notIdentical(on(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 $s(tS(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=tS(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 Xa(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),n}();function M3(n,r){Array.isArray(n)?n.forEach(function(e){return M3(e,r)}):r.push(n)}function iS(){throw new Error("Unsupported operation")}var ly,$5=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=iS,o.isEquivalent=iS,o.visitExpression=iS,o}return(0,U.Z)(e)}(li),S3=function(){function n(r){(0,B.Z)(this,n),this.globals=r}return(0,U.Z)(n,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===Bf.event.name?Bf.event:null}}]),n}(),Dh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o,new Mu(i,o),a,null)).converter=s,l}return(0,U.Z)(e)}(M_);function E3(){return ly||(ly={},Od(Br.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Od(Br.STYLE,["*|style"]),Od(Br.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"]),Od(Br.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"])),ly}function Od(n,r){var i,e=(0,An.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;ly[o.toLowerCase()]=n}}catch(a){e.e(a)}finally{e.f()}}var Pd=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function x3(n){return Pd.has(n.toLowerCase())}var e4=function(){function n(){(0,B.Z)(this,n),this.strictStyling=!0}return(0,U.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=c4(e);e=l4(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,cn.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(uV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(D3,function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0].replace(o[1],"").replace(o[2],"");return o[4]+s})}},{key:"_scopeCssText",value:function(e,i,o){var a=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),i&&(e=this._scopeSelectors(e,i,o)),(e=e+"\n"+a).trim()}},{key:"_extractUnscopedRulesFromCssText",value:function(e){var o,i="";for(t4.lastIndex=0;null!==(o=t4.exec(e));){i+=o[0].replace(o[2],"").replace(o[1],o[4])+"\n\n"}return i}},{key:"_convertColonHost",value:function(e){return e.replace(n4,function(i,o,a){if(o){var d,s=[],l=o.split(",").map(function(y){return y.trim()}),u=(0,An.Z)(l);try{for(u.s();!(d=u.n()).done;){var h=d.value;if(!h)break;var g=Ah+h.replace(uy,"")+a;s.push(g)}}catch(y){u.e(y)}finally{u.f()}return s.join(",")}return Ah+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(O3,function(i){for(var o,s,a=[[]];s=r4.exec(i);){var l=(null!==(o=s[1])&&void 0!==o?o:"").trim().split(",").map(function(g){return g.trim()}).filter(function(g){return""!==g}),u=a.length;h4(a,l.length);for(var d=0;d<l.length;d++)for(var h=0;h<u;h++)a[h+d*u].push(l[d]);i=s[2]}return a.map(function(g){return function p4(n,r){var e=Ah;x_.lastIndex=0;var i=x_.test(r);if(0===n.length)return e+r;for(var o=[n.pop()||""];n.length>0;)for(var a=o.length,s=n.pop(),l=0;l<a;l++){var u=o[l];o[2*a+l]=u+" "+s,o[a+l]=s+" "+u,o[l]=s+u}return o.map(function(d){return i?"".concat(d).concat(r):"".concat(d).concat(e).concat(r,", ").concat(d," ").concat(e).concat(r)}).join(",")}(g,i)}).join(", ")})}},{key:"_convertShadowDOMSelectors",value:function(e){return i4.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return Z3(e,function(s){var l=s.selector,u=s.content;return"@"!==s.selector[0]?l=a._scopeSelector(s.selector,i,o,a.strictStyling):s.selector.startsWith("@media")||s.selector.startsWith("@supports")||s.selector.startsWith("@document")||s.selector.startsWith("@layer")?u=a._scopeSelectors(s.content,i,o):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(u=a._stripScopingSelectors(s.content)),new HC(l,u)})}},{key:"_stripScopingSelectors",value:function(e){return Z3(e,function(i){var o=i.selector.replace(oS," ").replace(Su," ");return new HC(o,i.content)})}},{key:"_scopeSelector",value:function(e,i,o,a){var s=this;return e.split(",").map(function(l){return l.trim().split(oS)}).map(function(l){var L,u=(0,mu.Z)(l),d=u[0],h=u.slice(1);return[(L=d,s._selectorNeedsScoping(L,i)?a?s._applyStrictSelectorScope(L,i,o):s._applySelectorScope(L,i,o):L)].concat((0,cn.Z)(h)).join(" ")}).join(", ")}},{key:"_selectorNeedsScoping",value:function(e,i){return!this._makeScopeMatcher(i).test(e)}},{key:"_makeScopeMatcher",value:function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+o4,"m")}},{key:"_applySelectorScope",value:function(e,i,o){return this._applySimpleSelectorScope(e,i,o)}},{key:"_applySimpleSelectorScope",value:function(e,i,o){if(x_.lastIndex=0,x_.test(e)){var a=this.strictStyling?"[".concat(o,"]"):i;return e.replace(Su,function(s,l){return l.replace(/([^:]*)(:*)(.*)/,function(u,d,h,g){return d+a+h+g})}).replace(x_,a+" ")}return i+" "+e}},{key:"_applyStrictSelectorScope",value:function(e,i,o){var a=this;i=i.replace(/\[is=([^\]]*)\]/g,function(Ee){return arguments.length<=1?void 0:arguments[1]});for(var y,l="["+i+"]",u=function(Ke){var st=Ke.trim();if(!st)return"";if(Ke.indexOf(Ah)>-1)st=a._applySimpleSelectorScope(Ke,i,o);else{var De=Ke.replace(x_,"");if(De.length>0){var it=De.match(/([^:]*)(:*)(.*)/);it&&(st=it[1]+l+it[2]+it[3])}}return st},d=new lV(e),h="",g=0,L=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Ah)>-1);null!==(y=L.exec(e));){var re=y[1],ae=e.slice(g,y.index).trim(),Se=(q=q||ae.indexOf(Ah)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=L.lastIndex}var Ce=e.substring(g);return h+=(q=q||Ce.indexOf(Ah)>-1)?u(Ce):Ce,d.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(s4,A3).replace(a4,uy)}}]),n}(),lV=function(){function n(r){var e=this;(0,B.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,U.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}(),uV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,D3=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,t4=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,uy="-shadowcsshost",A3="-shadowcsscontext",jC="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",n4=new RegExp(uy+jC,"gim"),O3=new RegExp(A3+jC,"gim"),r4=new RegExp(A3+jC,"im"),Ah=uy+"-no-combinator",Su=/-shadowcsshost-no-combinator([^\s]*)/,i4=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],oS=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,o4="([>\\s~+[.,{:][\\s\\S]*)?$",x_=/-shadowcsshost/gim,a4=/:host/gim,s4=/:host-context/gim,P3=/\/\*[\s\S]*?\*\//g;function l4(n){return n.replace(P3,"")}var u4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function c4(n){return n.match(u4)||[]}var Hr="%BLOCK%",R3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,L3=/%QUOTED%/g,d4=new Map([["{","}"]]),f4=new Map([['"','"'],["'","'"]]),HC=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.selector=r,this.content=e});function Z3(n,r){var e=B3(n,f4,"%QUOTED%"),i=B3(e.escapedString,d4,Hr),o=0,a=0;return i.escapedString.replace(R3,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],d="";u&&u.startsWith("{"+Hr)&&(l=i.blocks[o++],u=u.substring(Hr.length+1),d="{");var h=r(new HC(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(L3,function(){return e.blocks[a++]})}var N3=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.escapedString=r,this.blocks=e});function B3(n,r,e){for(var u,d,i=[],o=[],a=0,s=0,l=-1,h=0;h<n.length;h++){var g=n[h];"\\"===g?h++:g===d?0===--a&&(o.push(n.substring(l,h)),i.push(e),s=h,l=-1,u=d=void 0):g===u?a++:0===a&&r.has(g)&&(u=g,d=r.get(g),a=1,l=h+1,i.push(n.substring(s,l)))}return-1!==l?(o.push(n.substring(l)),i.push(e)):i.push(n.substring(s)),new N3(i.join(""),o)}function h4(n,r){for(var e=n.length,i=1;i<r;i++)for(var o=0;o<e;o++)n[o+i*e]=n[o].slice(0)}function aS(n){var r=n.charCodeAt(0);if(r==n.charCodeAt(n.length-1)&&(39==r||34==r)){var i=n.substring(1,n.length-1);-1==i.indexOf("'")&&-1==i.indexOf('"')&&(n=i)}return n}function bl(n){return n.replace(/[a-z][A-Z]/g,function(r){return r.charAt(0)+"-"+r.charAt(1)}).toLowerCase()}var Xr,GC=function(){function n(r){(0,B.Z)(this,n),this._directiveExpr=r,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}return(0,U.Z)(n,[{key:"registerBoundInput",value:function(e){var i=null,o=e.name;switch(e.type){case 0:i=this.registerInputBasedOnName(o,e.value,e.sourceSpan);break;case 3:i=this.registerStyleInput(o,!1,e.value,e.sourceSpan,e.unit);break;case 2:i=this.registerClassInput(o,!1,e.value,e.sourceSpan)}return!!i}},{key:"registerInputBasedOnName",value:function(e,i,o){var a=null,s=e.substring(0,6),l="style"===e||"style."===s||"style!"===s;if(l||!l&&("class"===e||"class."===s||"class!"===s)){var d="."!==e.charAt(5),h=e.slice(d?5:6);a=l?this.registerStyleInput(h,d,i,o):this.registerClassInput(h,d,i,o)}return a}},{key:"registerStyleInput",value:function(e,i,o,a,s){if(G3(o))return null;(function H3(n){return n.startsWith("--")})(e)||(e=bl(e));var l=j3(e),u=l.property,d=l.hasOverrideFlag,h=l.suffix,g={name:u,suffix:s="string"==typeof s&&0!==s.length?s:h,value:o,sourceSpan:a,hasOverrideFlag:d};return i?this._styleMapInput=g:((this._singleStyleInputs=this._singleStyleInputs||[]).push(g),U3(this._stylesIndex,u)),this._lastStylingInput=g,this._firstStylingInput=this._firstStylingInput||g,this._checkForPipes(o),this.hasBindings=!0,g}},{key:"registerClassInput",value:function(e,i,o,a){if(G3(o))return null;var s=j3(e),l=s.property,d={name:l,value:o,sourceSpan:a,hasOverrideFlag:s.hasOverrideFlag,suffix:null};return i?this._classMapInput=d:((this._singleClassInputs=this._singleClassInputs||[]).push(d),U3(this._classesIndex,l)),this._lastStylingInput=d,this._firstStylingInput=this._firstStylingInput||d,this._checkForPipes(o),this.hasBindings=!0,d}},{key:"_checkForPipes",value:function(e){e instanceof Nf&&e.ast instanceof T_&&(this.hasBindingsWithPipes=!0)}},{key:"registerStyleAttr",value:function(e){this._initialStyleValues=function F3(n){for(var r=[],e=0,i=0,o=0,a=0,s=0,l=null,u=!1;e<n.length;)switch(n.charCodeAt(e++)){case 40:i++;break;case 41:i--;break;case 39:u=u||a>0,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=bl(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?aS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?aS(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(on(1));for(var i=0;i<this._initialClassValues.length;i++)e.push(on(this._initialClassValues[i]))}if(this._initialStyleValues.length){e.push(on(2));for(var o=0;o<this._initialStyleValues.length;o+=2)e.push(on(this._initialStyleValues[o]),on(this._initialStyleValues[o+1]))}}},{key:"assignHostAttrs",value:function(e,i){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),i.set("hostAttrs",pi(e)))}},{key:"buildClassMapInstruction",value:function(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null}},{key:"buildStyleMapInstruction",value:function(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null}},{key:"_buildMapBasedInstruction",value:function(e,i,o){var l,a=2,s=o.value.visit(e);return s instanceof $a?(a+=s.expressions.length,l=i?function _4(n){switch(yh(n)){case 1:return Ne.classMap;case 3:return Ne.classMapInterpolate1;case 5:return Ne.classMapInterpolate2;case 7:return Ne.classMapInterpolate3;case 9:return Ne.classMapInterpolate4;case 11:return Ne.classMapInterpolate5;case 13:return Ne.classMapInterpolate6;case 15:return Ne.classMapInterpolate7;case 17:return Ne.classMapInterpolate8;default:return Ne.classMapInterpolateV}}(s):function g4(n){switch(yh(n)){case 1:return Ne.styleMap;case 3:return Ne.styleMapInterpolate1;case 5:return Ne.styleMapInterpolate2;case 7:return Ne.styleMapInterpolate3;case 9:return Ne.styleMapInterpolate4;case 11:return Ne.styleMapInterpolate5;case 13:return Ne.styleMapInterpolate6;case 15:return Ne.styleMapInterpolate7;case 17:return Ne.styleMapInterpolate8;default:return Ne.styleMapInterpolateV}}(s)):l=i?Ne.classMap:Ne.styleMap,{reference:l,calls:[{supportsInterpolation:!0,sourceSpan:o.sourceSpan,allocateBindingSlots:a,params:function(d){var h=d(s);return Array.isArray(h)?h:[h]}}]}}},{key:"_buildSingleInputs",value:function(e,i,o,a,s){var l=[];return i.forEach(function(u){var d=l[l.length-1],h=u.value.visit(o),g=e,y=2;h instanceof $a&&(y+=h.expressions.length,a&&(g=a(h)));var L={sourceSpan:u.sourceSpan,allocateBindingSlots:y,supportsInterpolation:!!a,params:function(q){var re=[];re.push(on(u.name));var ae=q(h);return Array.isArray(ae)?re.push.apply(re,(0,cn.Z)(ae)):re.push(ae),!s&&null!==u.suffix&&re.push(on(u.suffix)),re}};d&&d.reference===g?d.calls.push(L):l.push({reference:g,calls:[L]})}),l}},{key:"_buildClassInputs",value:function(e){return this._singleClassInputs?this._buildSingleInputs(Ne.classProp,this._singleClassInputs,e,null,!0):[]}},{key:"_buildStyleInputs",value:function(e){return this._singleStyleInputs?this._buildSingleInputs(Ne.styleProp,this._singleStyleInputs,e,v4,!1):[]}},{key:"buildUpdateLevelInstructions",value:function(e){var i=[];if(this.hasBindings){var o=this.buildStyleMapInstruction(e);o&&i.push(o);var a=this.buildClassMapInstruction(e);a&&i.push(a),i.push.apply(i,(0,cn.Z)(this._buildStyleInputs(e))),i.push.apply(i,(0,cn.Z)(this._buildClassInputs(e)))}return i}}]),n}();function U3(n,r){n.has(r)||n.set(r,n.size)}function j3(n){var r=!1,e=n.indexOf("!important");-1!==e&&(n=e>0?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 v4(n){switch(yh(n)){case 1:return Ne.styleProp;case 3:return Ne.stylePropInterpolate1;case 5:return Ne.stylePropInterpolate2;case 7:return Ne.stylePropInterpolate3;case 9:return Ne.stylePropInterpolate4;case 11:return Ne.stylePropInterpolate5;case 13:return Ne.stylePropInterpolate6;case 15:return Ne.stylePropInterpolate7;case 17:return Ne.stylePropInterpolate8;default:return Ne.stylePropInterpolateV}}function G3(n){return n instanceof Nf&&(n=n.ast),n instanceof Mu}!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 Ff=["var","let","as","null","undefined","true","false","if","else","this"],z3=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"tokenize",value:function(e){for(var i=new V3(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),n}(),Zc=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,U.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 Zc(n,r,Xr.Character,e,String.fromCharCode(e))}function lS(n,r,e){return new Zc(n,r,Xr.Operator,0,e)}var zC=new Zc(-1,-1,Xr.Character,0,""),V3=function(){function n(r){(0,B.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,U.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(WC(o))return this.scanIdentifier();if(Lf(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),Lf(this.peek)?this.scanNumber(s):sS(s,this.index,46);case 40:case 41:case Rf:case Rc: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(;HM(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();cy(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Ff.indexOf(i)>-1?function b4(n,r,e){return new Zc(n,r,Xr.Keyword,0,e)}(e,this.index,i):function y4(n,r,e){return new Zc(n,r,Xr.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!WC(this.peek))return this.error("Invalid character [#]",-1);for(;cy(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function W3(n,r,e){return new Zc(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(!Lf(this.peek))if(95===this.peek){if(!Lf(this.input.charCodeAt(this.index-1))||!Lf(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!dy(this.peek))break;if(this.advance(),Y3(this.peek)&&this.advance(),!Lf(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 M4(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function w4(n,r,e){return new Zc(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=K3(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 C4(n,r,e){return new Zc(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 k4(n,r,e){return new Zc(n,r,Xr.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),n}();function WC(n){return 97<=n&&n<=122||65<=n&&n<=90||95==n||36==n}function cy(n){return y_(n)||Lf(n)||95==n||36==n}function dy(n){return 101==n||69==n}function Y3(n){return 45==n||43==n}function K3(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 Id,A_=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),q3=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),uS=function(){function n(r){(0,B.Z)(this,n),this._lexer=r,this.errors=[]}return(0,U.Z)(n,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vl;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),d=1;i&&(d|=2);var h=new tl(e,o,a,u,d,this.errors,0).parseChain();return new Nf(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,s=this._parseBindingAst(e,i,o,a);return new Nf(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new J3;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,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 Nf(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new ey(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 tl(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 tl(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Rs(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vl,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=[],y=0;y<d.length;++y){var L=d[y].text,z=this._stripComments(L),q=this._lexer.tokenize(z),re=new tl(e,i,o,q,0,this.errors,h[y]).parseChain();g.push(re)}return this.createInterpolationAst(u.map(function(ae){return ae.text}),g,e,i,o)}},{key:"parseInterpolationExpression",value:function(e,i,o){var a=this._stripComments(e),s=this._lexer.tokenize(a),l=new tl(e,i,o,s,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[l],e,i,o)}},{key:"createInterpolationAst",value:function(e,i,o,a,s){var l=new w_(0,o.length),u=new $a(l,l.toAbsolute(s),e,i);return new Nf(u,o,a,s,this.errors)}},{key:"splitInterpolation",value:function(e,i,o){for(var s,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,l=[],u=[],d=[],h=o?S4(o):null,g=0,y=!1,L=!1,z=a.start,q=a.end;g<e.length;)if(y){var Se=g,Ce=Se+z.length,Ee=this._getInterpolationEndIndex(e,q,Ce);if(-1===Ee){y=!1,L=!0;break}var Ke=Ee+q.length,st=e.substring(Ce,Ee);0===st.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(g," in"),i),u.push({text:st,start:Se,end:Ke});var De=null!==(s=null==h?void 0:h.get(Se))&&void 0!==s?s:Se,it=De+z.length;d.push(it),g=Ke,y=!1}else{var re=g;-1===(g=e.indexOf(z,g))&&(g=e.length);var ae=e.substring(re,g);l.push({text:ae,start:re,end:g}),y=!0}if(!y)if(L){var ft=l[l.length-1];ft.text+=e.substring(g),ft.end=e.length}else l.push({text:e.substring(g),start:g,end:e.length});return new A_(l,u,d)}},{key:"wrapLiteralPrimitive",value:function(e,i,o){var a=new w_(0,null==e?0:e.length);return new Nf(new Ps(a,a.toAbsolute(o),e),e,i,o,this.errors)}},{key:"_stripComments",value:function(e){var i=this._commentStart(e);return null!=i?e.substring(0,i):e}},{key:"_commentStart",value:function(e){for(var i=null,o=0;o<e.length-1;o++){var a=e.charCodeAt(o),s=e.charCodeAt(o+1);if(47===a&&47==s&&null==i)return o;i===a?i=null:null==i&&IC(a)&&(i=a)}return null}},{key:"_checkNoInterpolation",value:function(e,i,o){var h,a=o.start,s=o.end,l=-1,u=-1,d=(0,An.Z)(this._forEachUnquotedChar(e,0));try{for(d.s();!(h=d.n()).done;){var g=h.value;if(-1===l)e.startsWith(a)&&(l=g);else if((u=this._getInterpolationEndIndex(e,s,g))>-1)break}}catch(y){d.e(y)}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,An.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<e.length)){d.next=16;break}if(l=e[s],!IC(e.charCodeAt(s))||null!==o&&o!==l||a%2!=0){d.next=9;break}o=null===o?l:null,d.next=12;break;case 9:if(null!==o){d.next=12;break}return d.next=12,s;case 12:a="\\"===l?a+1:0;case 13:s++,d.next=3;break;case 16:case"end":return d.stop()}},r)})}]),n}();!function(n){n[n.None=0]="None",n[n.Writable=1]="Writable"}(Id||(Id={}));var tl=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.input=r,this.location=e,this.absoluteOffset=i,this.tokens=o,this.parseFlags=a,this.errors=s,this.offset=l,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Id.None,this.sourceSpanCache=new Map,this.index=0}return(0,U.Z)(n,[{key:"peek",value:function(e){var i=this.index+e;return i<this.tokens.length?this.tokens[i]:zC}},{key:"next",get:function(){return this.peek(0)}},{key:"atEOF",get:function(){return this.index>=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 w_(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===zC?"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<this.tokens.length;){var o=this.parsePipe();if(e.push(o),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){var a=this.index;if(this.error("Unexpected token '".concat(this.next,"'")),this.index===a)break}}if(0===e.length){var s=this.offset,l=this.offset+this.input.length;return new Mu(this.span(s,l),this.sourceSpan(s,l))}return 1==e.length?e[0]:new ny(this.span(i),this.sourceSpan(i),e)}},{key:"parsePipe",value:function(){var e=this.inputIndex,i=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{var o=this.inputIndex,a=this.expectIdentifierOrKeyword(),s=void 0,l=void 0;null!==a?s=this.sourceSpan(o):(a="",l=-1!==this.next.index?this.next.index:this.input.length+this.offset,s=new w_(l,l).toAbsolute(this.absoluteOffset));for(var u=[];this.consumeOptionalCharacter(58);)u.push(this.parseExpression());i=new T_(this.span(e),this.sourceSpan(e,l),i,a,u,s)}while(this.consumeOptionalOperator("|"))}return i}},{key:"parseExpression",value:function(){return this.parseConditional()}},{key:"parseConditional",value:function(){var e=this.inputIndex,i=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){var a,o=this.parsePipe();if(this.consumeOptionalCharacter(58))a=this.parsePipe();else{var s=this.inputIndex,l=this.input.substring(e,s);this.error("Conditional expression ".concat(l," requires all 3 expressions")),a=new Mu(this.span(e),this.sourceSpan(e))}return new b3(this.span(e),this.sourceSpan(e),i,o,a)}return i}},{key:"parseLogicalOr",value:function(){for(var e=this.inputIndex,i=this.parseLogicalAnd();this.consumeOptionalOperator("||");){var o=this.parseLogicalAnd();i=new Is(this.span(e),this.sourceSpan(e),"||",i,o)}return i}},{key:"parseLogicalAnd",value:function(){for(var e=this.inputIndex,i=this.parseNullishCoalescing();this.consumeOptionalOperator("&&");){var o=this.parseNullishCoalescing();i=new Is(this.span(e),this.sourceSpan(e),"&&",i,o)}return i}},{key:"parseNullishCoalescing",value:function(){for(var e=this.inputIndex,i=this.parseEquality();this.consumeOptionalOperator("??");){var o=this.parseEquality();i=new Is(this.span(e),this.sourceSpan(e),"??",i,o)}return i}},{key:"parseEquality",value:function(){for(var e=this.inputIndex,i=this.parseRelational();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"==":case"===":case"!=":case"!==":this.advance();var a=this.parseRelational();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseRelational",value:function(){for(var e=this.inputIndex,i=this.parseAdditive();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"<":case">":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new Is(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 Is(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 Is(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(),Sh.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Sh.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new ay(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 JM(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 Ps(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new LC(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new NC(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(Rf))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new k_(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new Ps(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new Ps(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Mu(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Mu(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Mu(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(Rf),!this.consumeOptionalCharacter(Rc)){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 Zf(u,d,d,new k_(u,d),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(Rc)}return new oy(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(Id.Writable,function(){var g,y=null!==(g=a.expectIdentifierOrKeyword())&&void 0!==g?g:"";return 0===y.length&&a.error("Expected identifier for property access",e.span.end),y}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),d=new Mu(this.span(i),this.sourceSpan(i))):d=new ZC(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 Mu(this.span(i),this.sourceSpan(i));var h=this.parseConditional();d=new ry(this.span(i),this.sourceSpan(i),u,e,l,h)}else d=new Zf(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 sy(u,d,e,s,l):new M_(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 Rs(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,cn.Z)(this.parseDirectiveKeywordBindings(e)));this.index<this.tokens.length;){var o=this.parseLetBinding();if(o)i.push(o);else{var a=this.expectTemplateBindingKey(),s=this.parseAsBinding(a);s?i.push(s):(a.source=e.source+a.source.charAt(0).toUpperCase()+a.source.substring(1),i.push.apply(i,(0,cn.Z)(this.parseDirectiveKeywordBindings(a))))}this.consumeStatementTerminator()}return new q3(i,[],this.errors)}},{key:"parseKeyedReadOrWrite",value:function(e,i,o){var a=this;return this.withContext(Id.Writable,function(){a.rbracketsExpected++;var s=a.parsePipe();if(s instanceof Mu&&a.error("Key access cannot be empty"),a.rbracketsExpected--,a.expectCharacter(93),!a.consumeOptionalOperator("="))return o?new Lc(a.span(i),a.sourceSpan(i),e,s):new iy(a.span(i),a.sourceSpan(i),e,s);if(!o){var l=a.parseConditional();return new qM(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new Mu(a.span(i),a.sourceSpan(i))})}},{key:"parseDirectiveKeywordBindings",value:function(e){var i=[];this.consumeOptionalCharacter(58);var o=this.getDirectiveBoundTarget(),a=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),a=this.currentAbsoluteOffset);var l=new Rs(e.span.start,a);return i.push(new q5(l,e,o)),s&&i.push(s),i}},{key:"getDirectiveBoundTarget",value:function(){if(this.next===zC||this.peekKeywordAs()||this.peekKeywordLet())return null;var e=this.parsePipe(),i=e.span,o=i.start,a=i.end,s=this.input.substring(o,a);return new Nf(e,s,this.location,this.absoluteOffset+o,this.errors)}},{key:"parseAsBinding",value:function(e){if(!this.peekKeywordAs())return null;this.advance();var i=this.expectTemplateBindingKey();this.consumeStatementTerminator();var o=new Rs(e.span.start,this.currentAbsoluteOffset);return new QM(o,i,e)}},{key:"parseLetBinding",value:function(){if(!this.peekKeywordLet())return null;var e=this.currentAbsoluteOffset;this.advance();var i=this.expectTemplateBindingKey(),o=null;this.consumeOptionalOperator("=")&&(o=this.expectTemplateBindingKey()),this.consumeStatementTerminator();var a=new Rs(e,this.currentAbsoluteOffset);return new QM(a,i,o)}},{key:"consumeStatementTerminator",value:function(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}},{key:"error",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new ey(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),e<this.tokens.length?"at column ".concat(this.tokens[e].index+1," in"):"at the end of the expression"}},{key:"_reportErrorForPrivateIdentifier",value:function(e,i){var o="Private identifiers are not supported. Unexpected private identifier: ".concat(e);null!==i&&(o+=", ".concat(i)),this.error(o)}},{key:"skip",value:function(){for(var e=this.next;!(!(this.index<this.tokens.length)||e.isCharacter(59)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(41)||!(this.rbracesExpected<=0)&&e.isCharacter(Rc)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Id.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new ey(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}]),n}(),J3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,U.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}(J5);function S4(n){for(var r=new Map,e=0,i=0,o=0;o<n.length;){var a=n[o];if(9===a.type){var s=(0,Yn.Z)(a.parts,2),l=s[0];e+=s[1].length,i+=l.length}else{var d=a.parts.reduce(function(h,g){return h+g.length},0);i+=d,e+=d}r.set(i,e),o++}return r}var Oh=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.sourceSpan=r,this.i18n=e}),Eu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitText(this,a)}}]),e}(Oh),O_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,s,u)).switchValue=i,d.type=o,d.cases=a,d.switchValueSourceSpan=l,d}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitExpansion(this,a)}}]),e}(Oh),Q3=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),n}(),cS=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,a,d)).name=i,h.value=o,h.keySpan=s,h.valueSpan=l,h.valueTokens=u,h}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(Oh),X3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,B.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,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Oh),fy=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),n}();function Nc(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 Ph={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"};Ph.ngsp="\ue500";var py=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,U.Z)(e)}(kh),fS=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var my,E4=/\r\n?/g;function hy(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function $3(n){return'Unknown entity "'.concat(n,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(my||(my={}));var e6=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.error=r}),D4=function(){function n(r,e,i){(0,B.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||Vl,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 hV(r,o):new P4(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,U.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(E4,"\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 dV(n){return n!==Rc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Rc){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 py("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 py("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 py(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new e6(o)}},{key:"handleError",value:function(e){if(e instanceof n6&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof e6))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 fV(n,r){return O4(n)===O4(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(hy(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()<i)return!1;for(var o=this._cursor.clone(),a=0;a<i;a++)if(!this._attemptCharCode(e.charCodeAt(a)))return this._cursor=o,!1;return!0}},{key:"_attemptStrCaseInsensitive",value:function(e){for(var i=0;i<e.length;i++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(i)))return!1;return!0}},{key:"_requireStr",value:function(e){var i=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptCharCodeUntilFn",value:function(e){for(;!e(this._cursor.peek());)this._cursor.advance()}},{key:"_requireCharCodeUntilFn",value:function(e,i){var o=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(o)<i)throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(o))}},{key:"_attemptUntilChar",value:function(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}},{key:"_readChar",value:function(){var e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}},{key:"_consumeEntity",value:function(e){this._beginToken(9);var i=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){var o=this._attemptCharCode(120)||this._attemptCharCode(88),a=this._cursor.clone();if(this._attemptCharCodeUntilFn(A4),59!=this._cursor.peek()){this._cursor.advance();var s=o?my.HEX:my.DEC;throw this._createError(function x4(n,r){return'Unable to parse entity "'.concat(r,'" - ').concat(n,' character reference entities must end with ";"')}(s,this._cursor.getChars(i)),this._cursor.getSpan())}var l=this._cursor.getChars(a);this._cursor.advance();try{var u=parseInt(l,o?16:10);this._endToken([String.fromCharCode(u),this._cursor.getChars(i)])}catch(y){throw this._createError($3(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var d=this._cursor.clone();if(this._attemptCharCodeUntilFn(hS),59!=this._cursor.peek())this._beginToken(e,i),this._cursor=d,this._endToken(["&"]);else{var h=this._cursor.getChars(d);this._cursor.advance();var g=Ph[h];if(!g)throw this._createError($3(h),this._cursor.getSpan(i));this._endToken([g,"&".concat(h,";")])}}}},{key:"_consumeRawText",value:function(e,i){this._beginToken(e?6:7);for(var o=[];;){var a=this._cursor.clone(),s=i();if(this._cursor=a,s)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(o.join(""))]),o.length=0,this._consumeEntity(6),this._beginToken(6)):o.push(this._readChar())}this._endToken([this._processCarriageReturns(o.join(""))])}},{key:"_consumeComment",value:function(e){var i=this;this._beginToken(10,e),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("--\x3e")}),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}},{key:"_consumeCdata",value:function(e){var i=this;this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("]]>")}),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()&&!t6(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(pS,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!y_(this._cursor.peek()))throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(xu);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(xu),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(xu),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(xu);this._consumeTagOpenEnd()}catch(l){if(l instanceof e6)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===Ji.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===Ji.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(xu),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(xu),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(hy(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 pS(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(xu);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(xu),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(Rf),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(xu),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(xu)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Rf).trim();this._endToken([e]),this._attemptCharCodeUntilFn(xu),this._beginToken(21),this._requireCharCode(Rf),this._endToken([]),this._attemptCharCodeUntilFn(xu),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Rc),this._endToken([]),this._attemptCharCodeUntilFn(xu),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(Rc),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()===Rc&&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()!==Rf)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 xu(n){return!HM(n)||0===n}function pS(n){return HM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function t6(n){return(n<97||122<n)&&(n<65||90<n)&&(n<48||n>57)}function A4(n){return 59===n||0===n||!function xd(n){return n>=97&&n<=102||n>=65&&n<=70||Lf(n)}(n)}function hS(n){return 59===n||0===n||!y_(n)}function O4(n){return n>=97&&n<=122?n-97+65:n}function pV(n){for(var r=[],e=void 0,i=0;i<n.length;i++){var o=n[i];e&&5===e.type&&5===o.type||e&&16===e.type&&16===o.type?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,r.push(e))}return r}var P4=function(){function n(r,e){if((0,B.Z)(this,n),r instanceof n){this.file=r.file,this.input=r.input,this.end=r.end;var i=r.state;this.state={peek:i.peek,offset:i.offset,line:i.line,column:i.column}}else{if(!e)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=r,this.input=r.content,this.end=e.endPos,this.state={peek:-1,offset:e.startPos,line:e.startLine,column:e.startCol}}}return(0,U.Z)(n,[{key:"clone",value:function(){return new n(this)}},{key:"peek",value:function(){return this.state.peek}},{key:"charsLeft",value:function(){return this.end-this.state.offset}},{key:"diff",value:function(e){return this.state.offset-e.state.offset}},{key:"advance",value:function(){this.advanceState(this.state)}},{key:"init",value:function(){this.updatePeek(this.state)}},{key:"getSpan",value:function(e,i){var o=e=e||this;if(i)for(;this.diff(e)>0&&-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 Xa(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 n6('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):b_(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 C_(e.file,e.state.offset,e.state.line,e.state.column)}}]),n}(),hV=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.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,Ti.Z)(a)}return(0,U.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,Ut.Z)((0,Wt.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ut.Z)((0,Wt.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.offset<this.internalState.offset;)s+=String.fromCodePoint(a.peek()),a.advance();return s}},{key:"processEscapeSequence",value:function(){var o=this,a=function(){return o.internalState.peek};if(92===a())if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),110===a())this.state.peek=10;else if(114===a())this.state.peek=13;else if(118===a())this.state.peek=11;else if(116===a())this.state.peek=9;else if(98===a())this.state.peek=8;else if(102===a())this.state.peek=12;else if(117===a())if(this.advanceState(this.internalState),a()===Rf){this.advanceState(this.internalState);for(var s=this.clone(),l=0;a()!==Rc;)this.advanceState(this.internalState),l++;this.state.peek=this.decodeHexDigits(s,l)}else{var u=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(u,4)}else if(120===a()){this.advanceState(this.internalState);var d=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(d,2)}else if(GM(a())){for(var h="",g=0,y=this.clone();GM(a())&&g<3;)y=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),g++;this.state.peek=parseInt(h,8),this.internalState=y.internalState}else b_(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}},{key:"decodeHexDigits",value:function(o,a){var s=this.input.slice(o.internalState.offset,o.internalState.offset+a),l=parseInt(s,16);if(isNaN(l))throw o.state=o.internalState,new n6("Invalid hexadecimal escape sequence",o);return l}}]),e}(P4),n6=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.msg=r,this.cursor=e}),Uf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,U.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(kh),r6=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.rootNodes=r,this.errors=e}),mV=function(){function n(r){(0,B.Z)(this,n),this.getTagDefinition=r}return(0,U.Z)(n,[{key:"parse",value:function(e,i,o){var a=function cV(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new D4(new zM(n,r),e,i);return o.tokenize(),new fS(pV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new jf(a.tokens,this.getTagDefinition);return s.build(),new r6(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),jf=function(){function n(r,e){(0,B.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,U.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._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}},{key:"_advanceIf",value:function(e){return this._peek.type===e?this._advance():null}},{key:"_consumeCdata",value:function(e){this._consumeText(this._advance()),this._advanceIf(13)}},{key:"_consumeComment",value:function(e){var i=this._advanceIf(7);this._advanceIf(11);var o=null!=i?i.parts[0].trim():null;this._addToParent(new fy(o,e.sourceSpan))}},{key:"_consumeExpansion",value:function(e){for(var i=this._advance(),o=this._advance(),a=[];20===this._peek.type;){var s=this._parseExpansionCase();if(!s)return;a.push(s)}if(23===this._peek.type){var l=new Xa(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new O_(i.parts[0],o.parts[0],a,l,i.sourceSpan)),this._advance()}else this.errors.push(Uf.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))}},{key:"_parseExpansionCase",value:function(){var e=this._advance();if(21!==this._peek.type)return this.errors.push(Uf.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var i=this._advance(),o=this._collectExpansionExpTokens(i);if(!o)return null;var a=this._advance();o.push({type:24,parts:[],sourceSpan:a.sourceSpan});var s=new n(o,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;var l=new Xa(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new Xa(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new Q3(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(!YC(o,21))return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!YC(o,19))return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Uf.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,i6):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new Eu(a,new Xa(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,Yn.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!==Mi(l)||d.isVoid||this.errors.push(Uf.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 Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),y=new Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),L=new X3(l,s,[],g,y,void 0);this._pushElement(L),u?this._popElement(l,g):4===e.type&&(this._popElement(l,null),this.errors.push(Uf.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(Uf.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(Uf.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=ji(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,i6):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 y=l&&u&&new Xa(l.start,u,l.fullStart);return new cS(i,a,new Xa(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,y,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=Oi(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=Mi(o.name))}return ji(e,i)}}]),n}();function YC(n,r){return n.length>0&&n[n.length-1]===r}function i6(n,r){return void 0!==Ph[r]?Ph[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 o6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.call(this,ka)}return(0,U.Z)(e,[{key:"parse",value:function(o,a,s){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(mV),KC="ngPreserveWhitespaces",a6=new Set(["pre","template","textarea","script","style"]),qC=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",I4=new RegExp("[^".concat(qC,"]")),Hf=new RegExp("[".concat(qC,"]{2,}"),"g");function l6(n){return n.replace(new RegExp("\ue500","g")," ")}var u6=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitElement",value:function(e,i){return a6.has(e.name)||function s6(n){return n.some(function(r){return r.name===KC})}(e.attrs)?new X3(e.name,Nc(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new X3(e.name,e.attrs,function JC(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!==KC?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(I4),a=i&&(i.prev instanceof O_||i.next instanceof O_);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function c6(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[d6(e[0])],sourceSpan:i}}(u):u}),l=d6(e.value);return new Eu(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 d6(n){return l6(n).replace(Hf," ")}function P_(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return As(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var I_=(0,U.Z)(function n(){(0,B.Z)(this,n)}),_S=["[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:|"],gS=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),vS=Array.from(gS).reduce(function(n,r){var e=(0,Yn.Z)(r,2),i=e[0],o=e[1];return n.set(i,o),n},new Map),m6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,_S.forEach(function(o){var a=new Map,s=new Set,l=o.split("|"),u=(0,Yn.Z)(l,2),d=u[0],g=u[1].split(","),y=d.split("^"),L=(0,Yn.Z)(y,2),z=L[0],q=L[1];z.split(",").forEach(function(ft){i._schema.set(ft.toLowerCase(),a),i._eventSchema.set(ft.toLowerCase(),s)});var re=q&&i._schema.get(q.toLowerCase());if(re){var Se,ae=(0,An.Z)(re);try{for(ae.s();!(Se=ae.n()).done;){var Ce=(0,Yn.Z)(Se.value,2),Ee=Ce[0],Ke=Ce[1];a.set(Ee,Ke)}}catch(ft){ae.e(ft)}finally{ae.f()}var De,st=(0,An.Z)(i._eventSchema.get(q.toLowerCase()));try{for(st.s();!(De=st.n()).done;){var it=De.value;s.add(it)}}catch(ft){st.e(ft)}finally{st.f()}}g.forEach(function(ft){if(ft.length>0)switch(ft[0]){case"*":s.add(ft.substring(1));break;case"!":a.set(ft.substring(1),"boolean");break;case"#":a.set(ft.substring(1),"number");break;case"%":a.set(ft.substring(1),"object");break;default:a.set(ft,"string")}})}),i}return(0,U.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===ec.name}))return!0;if(o.indexOf("-")>-1){if(Qi(o)||Pi(o))return!1;if(s.some(function(u){return u.name===_u.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===ec.name})||o.indexOf("-")>-1&&(Qi(o)||Pi(o)||a.some(function(s){return s.name===_u.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=E3()[o+"|"+a];return l||((l=E3()["*|"+a])||Br.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=gS.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=vS.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 Ul(n){return n.replace(ks,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}(o)}},{key:"normalizeAnimationStyleValue",value:function(o,a,s){var l="",u=s.toString().trim(),d=null;if(function gV(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(o)&&0!==s&&"0"!==s)if("number"==typeof s)l="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&(d="Please provide a CSS unit value for ".concat(a,":").concat(s))}return{error:d,value:u+l}}}]),e}(I_);var _6=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function yS(n,r){return n=n.toLowerCase(),r=r.toLowerCase(),_6.has(n+"|"+r)||_6.has("*|"+r)}var XC="animate-",L4=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,U.Z)(n,[{key:"interpolationConfig",get:function(){return this._interpolationConfig}},{key:"createBoundHostProperties",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parsePropertyBinding(l,u,!0,i,i.start.offset,void 0,[],o,i):this._reportError('Value of the host property binding "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"createDirectiveHostEventAsts",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parseEvent(l,u,!1,i,i,[],o,i):this._reportError('Value of the host listener "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"parseInterpolation",value:function(e,i,o){var a=i.start.toString(),s=i.fullStart.offset;try{var l=this._exprParser.parseInterpolation(e,a,s,o,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,i),l}catch(u){return this._reportError("".concat(u),i),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"parseInterpolationExpression",value:function(e,i){var o=i.start.toString(),a=i.start.offset;try{var s=this._exprParser.parseInterpolationExpression(e,o,a);return s&&this._reportExpressionParserErrors(s.errors,i),s}catch(l){return this._reportError("".concat(l),i),this._exprParser.wrapLiteralPrimitive("ERROR",o,a)}}},{key:"parseInlineTemplateBinding",value:function(e,i,o,a,s,l,u,d){var L,h=o.start.offset+"*".length,g=this._parseTemplateBindings(e,i,o,h,a),y=(0,An.Z)(g);try{for(y.s();!(L=y.n()).done;){var z=L.value,q=Rd(o,z.sourceSpan),re=z.key.source,ae=Rd(o,z.key.span);if(z instanceof QM){var Se=z.value?z.value.source:"$implicit",Ce=z.value?Rd(o,z.value.span):void 0;u.push(new aV(re,Se,q,ae,Ce))}else if(z.value){var Ee=d?q:o,Ke=Rd(o,z.value.ast.sourceSpan);this._parsePropertyAst(re,z.value,Ee,ae,Ke,s,l)}else s.push([re,""]),this.parseLiteralAttr(re,null,ae,a,void 0,s,l,ae)}}catch(st){y.e(st)}finally{y.f()}}},{key:"_parseTemplateBindings",value:function(e,i,o,a,s){var l=this,u=o.start.toString();try{var d=this._exprParser.parseTemplateBindings(e,i,u,a,s);return this._reportExpressionParserErrors(d.errors,o),d.warnings.forEach(function(h){l._reportError(h,o,Dd.WARNING)}),d.templateBindings}catch(h){return this._reportError("".concat(h),o),[]}}},{key:"parseLiteralAttr",value:function(e,i,o,a,s,l,u,d){bS(e)?(e=e.substring(1),void 0!==d&&(d=Rd(d,new Rs(d.start.offset+1,d.end.offset))),i&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',o,Dd.ERROR),this._parseAnimation(e,i,o,a,d,s,l,u)):u.push(new BC(e,this._exprParser.wrapLiteralPrimitive(i,"",a),Eh.LITERAL_ATTR,o,d,s))}},{key:"parsePropertyBinding",value:function(e,i,o,a,s,l,u,d,h){0===e.length&&this._reportError("Property name is missing in binding",a);var g=!1;e.startsWith(XC)?(g=!0,e=e.substring(XC.length),void 0!==h&&(h=Rd(h,new Rs(h.start.offset+XC.length,h.end.offset)))):bS(e)&&(g=!0,e=e.substring(1),void 0!==h&&(h=Rd(h,new Rs(h.start.offset+1,h.end.offset)))),g?this._parseAnimation(e,i,a,s,h,l,u,d):this._parsePropertyAst(e,this._parseBinding(i,o,l||a,s),a,h,l,u,d)}},{key:"parsePropertyInterpolation",value:function(e,i,o,a,s,l,u,d){var h=this.parseInterpolation(i,a||o,d);return!!h&&(this._parsePropertyAst(e,h,o,u,a,s,l),!0)}},{key:"_parsePropertyAst",value:function(e,i,o,a,s,l,u){l.push([e,i.source]),u.push(new BC(e,i,Eh.DEFAULT,o,a,s))}},{key:"_parseAnimation",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Animation trigger is missing",o);var h=this._parseBinding(i||"undefined",!1,l||o,a);u.push([e,h.source]),d.push(new BC(e,h,Eh.ANIMATION,o,s,l))}},{key:"_parseBinding",value:function(e,i,o,a){var s=(o&&o.start||"(unknown)").toString();try{var l=i?this._exprParser.parseSimpleBinding(e,s,a,this._interpolationConfig):this._exprParser.parseBinding(e,s,a,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",s,a)}}},{key:"createBoundElementProperty",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(i.isAnimation)return new C3(i.name,4,Br.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=gy(this._schemaRegistry,e,u,!0);var g=u.indexOf(":");if(g>-1){var y=u.substring(0,g),L=u.substring(g+1);u=ji(y,L)}l=1}else"class"==d[0]?(u=d[1],l=2,h=[Br.NONE]):"style"==d[0]&&(s=d.length>2?d[2]:null,u=d[1],l=3,h=[Br.STYLE]);if(null===u){var z=this._schemaRegistry.getMappedPropName(i.name);u=a?z:i.name,h=gy(this._schemaRegistry,e,z,!1),l=0,o||this._validatePropertyOrAttributeName(z,i.sourceSpan,!1)}return new C3(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),bS(e)?(e=e.slice(1),void 0!==d&&(d=Rd(d,new Rs(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 gy(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var d=function xo(n,r){return yu(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),y=this._parseAction(i,o,s);l.push(new $M(h,g,1,y,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 Dc(n,r){return yu(n,":",r)}(e,[null,e]),g=(0,Yn.Z)(h,2),y=g[0],L=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new $M(L,y,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 Mu?(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 kh(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,An.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 bS(n){return"@"==n[0]}function gy(n,r,e,i){var o=[];return fo.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,cn.Z)(u.map(function(d){return n.securityContext(d,e,i)})))}),0===o.length?[Br.NONE]:Array.from(new Set(o)).sort()}function Rd(n,r){var e=r.start-n.start.offset,i=r.end-n.end.offset;return new Xa(n.start.moveBy(e),n.end.moveBy(i),n.fullStart.moveBy(e),n.details)}var Ls,N4=/^([^:/?#]+):/;function uc(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 z4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=Ls.OTHER;return Pi(s)?l=Ls.NG_CONTENT:"style"==s?l=Ls.STYLE:"script"==s?l=Ls.SCRIPT:"link"==s&&"stylesheet"==i&&(l=Ls.STYLESHEET),new G4(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"}(Ls||(Ls={}));var G4=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var vV=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,cc_BANANA_BOX={start:"[(",end:")]"},cc_PROPERTY={start:"[",end:"]"},cc_EVENT={start:"(",end:")"};function t1(n,r,e){var i=new yV(r,e),s={nodes:Nc(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 es,yV=function(){function n(r,e){(0,B.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,U.Z)(n,[{key:"visitElement",value:function(e){var i=this,o=zv(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=uc(e);if(a.type===Ls.SCRIPT)return null;if(a.type===Ls.STYLE){var s=function TS(n){return 1===n.children.length&&n.children[0]instanceof Eu?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===Ls.STYLESHEET&&function Z4(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(N4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function ai(n){return"ng-template"===Oi(n)[1]}(e.name),u=[],d=[],h=[],g=[],y=[],L={},z=[],q=[],re=!1,ae=(0,An.Z)(e.attrs);try{for(ae.s();!(Se=ae.n()).done;){var Ce=Se.value,Ee=!1,Ke=kS(Ce.name),st=!1;if(Ce.i18n&&(L[Ce.name]=Ce.i18n),Ke.startsWith("*")){re&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ce.sourceSpan),st=!0,re=!0;var De=Ce.value,it=Ke.substring("*".length),ft=[],bt=Ce.valueSpan?Ce.valueSpan.start.offset:Ce.sourceSpan.start.offset+Ce.name.length;this.bindingParser.parseInlineTemplateBinding(it,De,Ce.sourceSpan,bt,[],z,ft,!0),q.push.apply(q,(0,cn.Z)(ft.map(function(_r){return new wM(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else Ee=this.parseAttribute(l,Ce,[],u,d,h,g);!Ee&&!st&&y.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Ie,$e=Nc(a.nonBindable?bV:this,e.children);if(a.type===Ls.NG_CONTENT){e.children&&!e.children.every(function(_r){return function E6(n){return n instanceof Eu&&0==n.value.trim().length}(_r)||function x6(n){return n instanceof fy}(_r)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var ct=a.selectAttr,Bt=e.attrs.map(function(_r){return i.visitAttribute(_r)});Ie=new ZI(ct,Bt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(ct)}else if(l){var jt=this.extractAttributes(e.name,u,L);Ie=new Sd(e.name,y,jt.bound,d,[],$e,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var It=this.extractAttributes(e.name,u,L);Ie=new hh(e.name,y,It.bound,d,$e,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,L),Hn=[];Tn.literal.forEach(function(_r){return Hn.push(_r)}),Tn.bound.forEach(function(_r){return Hn.push(_r)});var zn=Ie instanceof hh?{attributes:Ie.attributes,inputs:Ie.inputs,outputs:Ie.outputs}:{attributes:[],inputs:[],outputs:[]},ar=l&&o?void 0:e.i18n,kr=Ie instanceof Sd?null:Ie.name;Ie=new Sd(kr,zn.attributes,zn.inputs,zn.outputs,Hn,[Ie],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,ar)}return o&&(this.inI18nBlock=!1),Ie}},{key:"visitAttribute",value:function(e){return new CM(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(!zv(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 bM(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new Hv(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 Fv(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 CM(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,d));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(Uv.fromBoundElementProperty(h,d))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var d,h=kS(i.name),g=i.value,y=i.sourceSpan,L=i.valueSpan?i.valueSpan.start.offset:y.start.offset;function z(Hn,zn,ar){var kr=i.name.length-h.length,_r=Hn.start.moveBy(zn.length+kr),Wr=_r.moveBy(ar.length);return new Xa(_r,Wr,_r,ar)}var q=h.match(vV);if(q){if(null!=q[1]){var re=q[7],ae=z(y,q[1],re);this.bindingParser.parsePropertyBinding(re,g,!1,y,L,i.valueSpan,o,a,ae)}else if(q[2])if(e){var Se=q[7],Ce=z(y,q[2],Se);this.parseVariable(Se,g,y,Ce,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',y);else if(q[3]){var Ee=q[7],Ke=z(y,q[3],Ee);this.parseReference(Ee,g,y,Ke,i.valueSpan,u)}else if(q[4]){var st=[],De=q[7],it=z(y,q[4],De);this.bindingParser.parseEvent(De,g,!1,y,i.valueSpan||y,o,st,it),n1(st,s)}else if(q[5]){var ft=q[7],bt=z(y,q[5],ft);this.bindingParser.parsePropertyBinding(ft,g,!1,y,L,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ft,g,y,i.valueSpan,o,s,bt)}else if(q[6]){var $e=z(y,"",h);this.bindingParser.parseLiteralAttr(h,g,y,L,i.valueSpan,o,a,$e)}return!0}var Ie=null;if(h.startsWith(cc_BANANA_BOX.start)?Ie=cc_BANANA_BOX:h.startsWith(cc_PROPERTY.start)?Ie=cc_PROPERTY:h.startsWith(cc_EVENT.start)&&(Ie=cc_EVENT),null!==Ie&&h.endsWith(Ie.end)&&h.length>Ie.start.length+Ie.end.length){var ct=h.substring(Ie.start.length,h.length-Ie.end.length),Bt=z(y,Ie.start,ct);if(Ie.start===cc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(ct,g,!1,y,L,i.valueSpan,o,a,Bt),this.parseAssignmentEvent(ct,g,y,i.valueSpan,o,s,Bt);else if(Ie.start===cc_PROPERTY.start)this.bindingParser.parsePropertyBinding(ct,g,!1,y,L,i.valueSpan,o,a,Bt);else{var jt=[];this.bindingParser.parseEvent(ct,g,!1,y,i.valueSpan||y,o,jt,Bt),n1(jt,s)}return!0}var It=z(y,"",h);return this.bindingParser.parsePropertyInterpolation(h,g,y,i.valueSpan,o,a,It,null!==(d=i.valueTokens)&&void 0!==d?d:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=l6(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new bM(l,i,a):new vC(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 wM(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 jv(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 kh(i,e,o))}}]),n}(),wS=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitElement",value:function(e){var i=uc(e);if(i.type===Ls.SCRIPT||i.type===Ls.STYLE||i.type===Ls.STYLESHEET)return null;var o=Nc(this,e.children,null);return new hh(e.name,Nc(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new CM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new vC(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),n}(),bV=new wS;function kS(n){return/^data-/i.test(n)?n.substring(5):n}function n1(n,r){r.push.apply(r,(0,cn.Z)(n.map(function(e){return u_.fromParsedEvent(e)})))}function r1(){return{getUniqueId:Wv(),icus:new Map}}!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(es||(es={}));var i1=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,B.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||r1(),this.id=this._registry.getUniqueId()}return(0,U.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};kC(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(D6))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){kC(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;VI(e,this.bindings.size,this.id).forEach(function(a,s){return kC.apply(void 0,[i.placeholders,s].concat((0,cn.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(es.TEMPLATE,e,i,!1),this.appendTag(es.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(es.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(es.ELEMENT,e,i,!1),this.appendTag(es.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(o1(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(o1(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,cn.Z)(a)));else a[d?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,cn.Z)(a)))}else l.push.apply(l,(0,cn.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),n}();function Ih(n,r,e,i){var o=i?"/":"";return d_("".concat(o).concat(n).concat(r),e)}function MS(n,r,e){var i=r.index,o=r.ctx;return r.isVoid?Ih(n,i,o)+Ih(n,i,o,!0):Ih(n,i,o,e)}function o1(n,r){return function(e){return"object"==typeof e&&e.type===es.TEMPLATE&&e.index===r&&e.ctx===n}}function D6(n){var r=function(a,s){return MS("#",a,s)},e=function(a,s){return MS("*",a,s)};switch(n.type){case es.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 es.TEMPLATE:return e(n,n.closed);default:return n}}var V4=function(){function n(){(0,B.Z)(this,n)}return(0,U.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(Vv(e,!1),"}")}}]),n}(),Y4=new V4;function R_(n){return n.visit(Y4)}var A6={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"},CV=function(){function n(){(0,B.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,U.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=A6[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=A6[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?"/>":"></".concat(e,">"))}},{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}(),K4=new uS(new z3);function wV(n){var r=new J4(K4,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function q4(n,r){return r}var J4=function(){function n(r,e){(0,B.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,U.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 O_,icuDepth:0,placeholderRegistry:new CV,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||q4},u=Nc(this,e,l);return new Tf(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=Nc(this,e.children,i),s={};e.attrs.forEach(function(g){s[g.name]=g.value});var l=ka(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:"</".concat(e.name,">"),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new JW(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 kM(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 kM(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 NI(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new c_(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 bC(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,An.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],y=ES(g)||"INTERPOLATION",L=o.placeholderRegistry.getPlaceholderName(y,g);o.placeholderToContent[L]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new BI(g,L,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof kM?(z.value+=h.parts[0],z.sourceSpan=new Xa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new kM(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function Q4(n,r){if(r instanceof Tf&&(function O6(n){var r=n.nodes;if(1!==r.length||!(r[0]instanceof c_))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof c_){!function SS(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;e<n.length;e++)n[e].sourceSpan=r.children[e].sourceSpan}}(s,a),new c_(s,i)):s[0]}}]),n}();var X4=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function ES(n){return n.split(X4)[2]}var $4=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){return(0,B.Z)(this,e),r.call(this,i,o)}return(0,U.Z)(e)}(kh),e8=function(r,e){return r instanceof Oh&&(e instanceof bC&&r.i18n instanceof Tf&&(e.previousMessage=r.i18n),r.i18n=e),e},P6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vl,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,B.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=wV(this.interpolationConfig)}return(0,U.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 r6(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function EM(n){return n.attrs.some(function(r){return SM(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,An.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,e8)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(Gv)){var h=u.name.slice(Gv.length);yS(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 y,g=(0,An.Z)(o);try{for(g.s();!(y=g.n()).done;){var L=y.value,z=a[L.name];void 0!==z&&L.value&&(L.i18n=this._generateI18nMessage([L],L.i18n||z))}}catch(q){g.e(q)}finally{g.f()}}this.keepI18nAttrs||(e.attrs=o)}return Nc(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof bC){var s=a.name;xM(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 r8(){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,Yn.Z)(l,2);s=u[0],r=u[1];var d=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Yn.Z)(d,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof Tf?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof Tf&&i.id||_f(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[ih(e),Ss(e)];else if("string"!=typeof i){var o=i instanceof Tf?i:i instanceof bC?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new $4(e.sourceSpan,i))}}]),n}();function kV(n,r,e,i){var o=function o8(n){return n.nodes.map(function(r){return r.visit(i8,null)}).join("")}(r),a=[on(o)];Object.keys(i).length&&(a.push(P_(TC(i,!0),!0)),a.push(P_({original_code:As(Object.keys(i).map(function(u){return{key:Vv(u),quoted:!0,value:r.placeholders[u]?on(r.placeholders[u].sourceSpan.toString()):on(r.placeholderToMessage[u].nodes.map(function(d){return d.sourceSpan.toString()}).join(""))}}))})));var s=e.set(qr("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function a1(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}),hM(r)}(r)),[s,new uh(n.set(e))]}var yy=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"formatPh",value:function(e){return"{$".concat(Vv(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 R_(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}(),i8=new yy;function xS(n,r,e){var i=function Bc(n){var r=[],e=new a8(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function Zs(n){var r=[],e=[];n[0]instanceof rn&&r.push(Ld(n[0].sourceSpan.start));for(var i=0;i<n.length;i++){var o=n[i];o instanceof Pt?r.push(o):(e.push(o),n[i-1]instanceof rn&&r.push(Ld(n[i-1].sourceSpan.end)))}return n[n.length-1]instanceof rn&&r.push(Ld(n[n.length-1].sourceSpan.end)),{messageParts:r,placeHolders:e}}(r)}(r),o=i.messageParts,a=i.placeHolders,s=function by(n){var r=n.nodes[0],e=n.nodes[n.nodes.length-1];return new Xa(r.sourceSpan.fullStart,e.sourceSpan.end,r.sourceSpan.fullStart,r.sourceSpan.details)}(r),l=a.map(function(h){return e[h.text]}),u=kd(r,o,a,l,s),d=n.set(u);return[new uh(d)]}var a8=function(){function n(r,e){(0,B.Z)(this,n),this.placeholderToMessage=r,this.pieces=e}return(0,U.Z)(n,[{key:"visitText",value:function(e){if(this.pieces[this.pieces.length-1]instanceof Pt)this.pieces[this.pieces.length-1].text+=e.value;else{var i=new Xa(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Pt(e.value,i))}}},{key:"visitContainer",value:function(e){var i=this;e.children.forEach(function(o){return o.visit(i)})}},{key:"visitIcu",value:function(e){this.pieces.push(new Pt(R_(e),e.sourceSpan))}},{key:"visitTagPlaceholder",value:function(e){var o,a,i=this;this.pieces.push(this.createPlaceholderPiece(e.startName,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan)),e.isVoid||(e.children.forEach(function(s){return s.visit(i)}),this.pieces.push(this.createPlaceholderPiece(e.closeName,null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan)))}},{key:"visitPlaceholder",value:function(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}},{key:"visitIcuPlaceholder",value:function(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}},{key:"createPlaceholderPiece",value:function(e,i,o){return new rn(Vv(e,!1),i,o)}}]),n}();function Ld(n){return new Pt("",new Xa(n,n))}var Du="ngProjectAs",l1=new Set(["$event"]),Gf=new Map([["window",Ne.resolveWindow],["document",Ne.resolveDocument],["body",Ne.resolveBody]]),L_=[" ","\n","\r","\t"];function ql(n,r){return Cf(qr(_h).bitwiseAnd(on(n),null,!1),r)}function Lh(n){var r=arguments.length>1&&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&&!Gf.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(Gf.keys()),"."));var u="$event",d=new Set,h=null===e||0===e.bindingLevel?qr(sc):e.getOrCreateSharedContextVar(0),g=X5(e,h,l,"b",n.handlerSpan,d,l1),y=[],L=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(L&&y.push.apply(y,(0,cn.Z)(L)),y.push.apply(y,(0,cn.Z)(g)),z){y.unshift(z);var q=y[y.length-1];q instanceof Sa?y[y.length-1]=new Sa(gh(q.value.sourceSpan,Ne.resetView,[q.value])):y.push(new uh(gh(null,Ne.resetView,[])))}var re=1===i?m5(o,s):o,ae=r&&Th(r),Se=[];d.has(u)&&Se.push(new ma(u,vl));var Ce=oa(Se,y,Ma,null,ae),Ee=[on(re),Ce];return a&&Ee.push(on(!1),Xn(Gf.get(a))),Ee}function Z_(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var N_=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,y=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Z_();(0,B.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=y,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=vh,this.visitVariable=vh,this.visitTextAttribute=vh,this.visitBoundAttribute=vh,this.visitBoundEvent=vh,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Zh(r,function(){return i.allocateDataSlot()},function(L){return i.allocatePureFunctionSlots(L)},function(L,z,q,re){i._bindingScope.set(i.level,z,re),i.creationInstruction(null,Ne.pipe,[on(q),on(L)])})}return(0,U.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!==Ne.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(ae){return o.registerContextVariables(ae)});var l=this.i18nContext||zv(s)&&!wC(s)&&!(d1(e)&&e[0].i18n===s),u=RS(e);if(l&&this.i18nStart(null,s,u),mh(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?vu(ae):ae});d.push(this.constantPool.getConstLiteral(Wl(h),!0))}this.creationInstruction(null,Ne.projectionDef,d,!0)}l&&this.i18nEnd(null,u);var g=SC(this._creationCodeFns),y=SC(this._updateCodeFns),L=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[ql(1,L.concat(g))]:[],re=y.length>0?[ql(2,z.concat(y))]:[];return oa([new ma(_h,_e),new ma(sc,null)],[].concat((0,cn.Z)(this._prefixCode),q,re),Ma,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=LS(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,cn.Z)(d)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=qr(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=qr(qI),s.notifyRestoredViewContextUse()):u=qr(sc):u=s.getSharedContextName(o)||u1(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 vC)o[a]=on(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof $a){var u=l.strings,d=l.expressions,h=i.i18n,g=h.id,L=function Os(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;a<o;a++)i+="".concat(n[a]).concat(d_(r+a,e));return i+n[o]}(u,h.bindings.size,g);i.i18nAppendBindings(d),o[a]=on(L)}}}),o}},{key:"i18nGenerateMainBlockVar",value:function(){return qr(this.constantPool.uniqueName("i18n_"))}},{key:"i18nGenerateClosureVar",value:function(e){var i,o=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var a=AM("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(Th(e),"$$").concat(s)}else{var l=AM(o);i=this.constantPool.uniqueName(l)}return qr(i)}},{key:"i18nUpdateRef",value:function(e){var i=e.icus,o=e.meta,a=e.isRoot,s=e.isResolved,l=e.isEmitted;if(a&&s&&!l&&!wC(o)){e.isEmitted=!0;var y,u=e.getSerializedPlaceholders(),d={},h=u.size?DM(u):{};i.size&&i.forEach(function(L,z){if(1===L.length)h[z]=L[0];else{var q=d_("".concat("I18N_EXP_").concat(z));h[z]=on(q),d[z]=pi(L)}}),(Array.from(u.values()).some(function(L){return L.length>1})||Object.keys(d).length)&&(y=function(z){var q=[z];return Object.keys(d).length&&q.push(P_(d,!0)),gh(null,Ne.i18nPostprocess,q)}),this.i18nTranslate(o,h,e.ref,y)}}},{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 i1(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,d=[on(a),this.addToConsts(u)];l>0&&d.push(on(l)),this.creationInstruction(e,o?Ne.i18n:Ne.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,An.Z)(l);try{var h=function(){var y=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Ne.i18nExp,function(){return e.convertPropertyBinding(y)})};for(u.s();!(d=u.n()).done;)h()}catch(g){u.e(g)}finally{u.f()}this.updateInstruction(i,Ne.i18nApply,[on(s)])}o||this.creationInstruction(i,Ne.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,y=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(y),y instanceof $a){var z=DM(VI(g));l.push(on(h.name),a.i18nTranslate(g,z)),y.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,Ne.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=on(this.allocateDataSlot()),d=this.addToConsts(pi(l));this.creationInstruction(o,Ne.i18nAttributes,[u,d]),s&&this.updateInstruction(o,Ne.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return Ne.namespaceMathML;case"svg":return Ne.namespaceSVG;default:return Ne.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[on(o)].concat((0,cn.Z)(u.getUpdateInstructionArguments(s)),(0,cn.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[on(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(on(o),pi(l)):0!==o&&a.push(on(o)),this.creationInstruction(e.sourceSpan,Ne.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 GC(null),u=!1,d=zv(e.i18n)&&!wC(e.i18n),h=[],g=Oi(e.name),y=(0,Yn.Z)(g,2),L=y[0],z=y[1],q=Qi(e.name),re=(0,An.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 Ke=[on(s)];q||Ke.push(on(z));var st=[],De=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?De.push(un):st.push(un))});var it=this.getAttributeExpressions(e.name,h,st,e.outputs,l,[],De);Ke.push(this.addAttrsToConsts(it));var ft=this.prepareRefsArray(e.references);Ke.push(this.addToConsts(ft));var bt=this._namespace,$e=this.getNamespaceInstruction(L);$e!==bt&&this.addNamespaceInstruction($e,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Ie=!d&&this.i18n?!RS(e.children):e.children.length>0,ct=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===De.length&&!Ie,Bt=!ct&&RS(e.children);if(ct)this.creationInstruction(e.sourceSpan,q?Ne.elementContainer:Ne.element,Kv(Ke));else{if(this.creationInstruction(e.startSourceSpan,q?Ne.elementContainerStart:Ne.elementStart,Kv(Ke)),u&&this.creationInstruction(e.startSourceSpan,Ne.disableBindings),De.length>0&&this.i18nAttributesInstruction(s,De,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var It,jt=(0,An.Z)(e.outputs);try{for(jt.s();!(It=jt.n()).done;){var Tn=It.value;this.creationInstruction(Tn.sourceSpan,Ne.listener,this.prepareListenerParameter(e.name,Tn,s))}}catch(un){jt.e(un)}finally{jt.f()}}d&&this.i18nStart(e.startSourceSpan,e.i18n,Bt)}for(var Hn=l.buildUpdateLevelInstructions(this._valueConverter),zn=Hn.length-1,ar=0;ar<=zn;ar++){var kr=Hn[ar];this._bindingSlots+=this.processStylingUpdateInstruction(s,kr)}var _r=on(void 0),Wr=[],jr=[];st.forEach(function(un){var bn=un.type;if(4===bn){var Nn=un.value.visit(i._valueConverter),rr=!(Nn instanceof Ps)||!!Nn.value;i.allocateBindingSlots(Nn),Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return rr?i.convertPropertyBinding(Nn):_r},II(un.name))})}else{if(un.i18n)return;var gr=un.value.visit(i._valueConverter);if(void 0!==gr){var eo=[],Xu=Oi(un.name),Dv=(0,Yn.Z)(Xu,2),Av=Dv[0],Qm=Dv[1],cC=1===bn,Ia=c1(un.securityContext,cC);if(Ia||function IS(n){return"iframe"===n.toLowerCase()}(e.name)&&x3(un.name)&&(Ia=Xn(Ne.validateIframeAttribute)),Ia&&eo.push(Ia),Av){var CI=on(Av);Ia?eo.push(CI):eo.push(on(null),CI)}if(i.allocateBindingSlots(gr),0===bn)gr instanceof $a?i.interpolatedUpdateInstruction(Z6(gr),s,Qm,un,gr,eo):Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(gr)},Qm,eo)});else if(1===bn)if(gr instanceof $a&&yh(gr)>1)i.interpolatedUpdateInstruction(function l8(n){switch(yh(n)){case 3:return Ne.attributeInterpolate1;case 5:return Ne.attributeInterpolate2;case 7:return Ne.attributeInterpolate3;case 9:return Ne.attributeInterpolate4;case 11:return Ne.attributeInterpolate5;case 13:return Ne.attributeInterpolate6;case 15:return Ne.attributeInterpolate7;case 17:return Ne.attributeInterpolate8;default:return Ne.attributeInterpolateV}}(gr),s,Qm,un,gr,eo);else{var WW=gr instanceof $a?gr.expressions[0]:gr;jr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(WW)},Qm,eo)})}else i.updateInstructionWithAdvance(s,un.sourceSpan,Ne.classProp,function(){return[on(s),on(Qm),i.convertPropertyBinding(gr)].concat(eo)})}}});for(var Kr=0,jo=Wr;Kr<jo.length;Kr++){var tr=jo[Kr];this.updateInstructionWithAdvance(s,tr.span,Ne.property,tr.paramsOrFn)}for(var br=0,Mn=jr;br<Mn.length;br++){var gn=Mn[br];this.updateInstructionWithAdvance(s,gn.span,Ne.attribute,gn.paramsOrFn)}if(mh(this,e.children),!d&&this.i18n&&this.i18n.appendElement(e.i18n,s,!0),!ct){var nr=null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan;d&&this.i18nEnd(nr,Bt),u&&this.creationInstruction(nr,Ne.enableBindings),this.creationInstruction(nr,q?Ne.elementContainerEnd:Ne.elementEnd)}}},{key:"visitTemplate",value:function(e){var o,i=this,a="ng-template",s=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,s);var l=e.tagName?Oi(e.tagName)[1]:e.tagName,u="".concat(this.contextName).concat(e.tagName?"_"+Th(e.tagName):"","_").concat(s),d="".concat(u,"_Template"),h=[on(s),qr(d),on(l)],g=this.getAttributeExpressions(a,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(h.push(this.addAttrsToConsts(g)),e.references&&e.references.length){var y=this.prepareRefsArray(e.references);h.push(this.addToConsts(y)),h.push(Xn(Ne.templateRefExtractor))}var L=new n(this.constantPool,this._bindingScope,this.level+1,u,this.i18n,s,d,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(function(){var st,Ke=L.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(Ke.toDeclStmt(d)),L._ngContentReservedSlots.length)&&(st=i._ngContentReservedSlots).push.apply(st,(0,cn.Z)(L._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,Ne.templateCreate,function(){return h.splice(2,0,on(L.getConstCount()),on(L.getVarCount())),Kv(h)}),this.templatePropertyBindings(s,e.templateAttrs),l===a){var z=function Ms(n,r){var a,e=[],i=[],o=(0,An.Z)(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;(r(s)?e:i).push(s)}}catch(l){o.e(l)}finally{o.f()}return[e,i]}(e.inputs,ku),q=(0,Yn.Z)(z,2),re=q[0],ae=q[1];re.length>0&&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,An.Z)(e.outputs);try{for(Se.s();!(Ce=Se.n()).done;){var Ee=Ce.value;this.creationInstruction(Ee.sourceSpan,Ne.listener,this.prepareListenerParameter("ng_template",Ee,s))}}catch(Ke){Se.e(Ke)}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 $a&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Ne.text,[on(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof $a?this.updateInstructionWithAdvance(a,e.sourceSpan,function N6(n){switch(yh(n)){case 1:return Ne.textInterpolate;case 3:return Ne.textInterpolate1;case 5:return Ne.textInterpolate2;case 7:return Ne.textInterpolate3;case 9:return Ne.textInterpolate4;case 11:return Ne.textInterpolate5;case 13:return Ne.textInterpolate6;case 15:return Ne.textInterpolate7;case 17:return Ne.textInterpolate8;default:return Ne.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):pa("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,Ne.text,[on(this.allocateDataSlot()),on(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 L=TC(Object.assign(Object.assign({},a),s),!1);return gh(null,Ne.i18nPostprocess,[g,P_(L,!0)])};if(wC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(xM(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(Wl(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,An.Z)(i);try{var u=function(){var z=l.value;if(!(z instanceof Uv))return 0;var q=z.value.visit(o._valueConverter);if(void 0===q)return 0;if(o.allocateBindingSlots(q),q instanceof $a){o.interpolatedUpdateInstruction(Z6(q),e,z.name,z,q,[])}else a.push({span:z.sourceSpan,paramsOrFn:Bh(function(){return o.convertPropertyBinding(q)},z.name)})};for(s.s();!(l=s.n()).done;)u()}catch(L){s.e(L)}finally{s.f()}for(var h=0,g=a;h<g.length;h++){var y=g[h];this.updateInstructionWithAdvance(e,y.span,Ne.property,y.paramsOrFn)}}},{key:"instructionFn",value:function(e,i,o,a){var s=arguments.length>4&&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,An.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 $a?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,Ne.advance,[on(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 $a?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?qr(sc):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=w3(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,cn.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function sV(n,r,e,i){var o=new xh(n,r,i,!0),a=o.visitInterpolation(e,Hi.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:eS(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,cn.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var g,L,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=new Set,h=[],y=(0,An.Z)(i);try{for(y.s();!(L=y.n()).done;){var z=L.value;if(z.name===Du&&(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(on(z.name),re)}else h.push.apply(h,(0,cn.Z)(OS(z.name)).concat([c8(e,z)]))}}catch(De){y.e(De)}finally{y.f()}function ae(De,it){"string"==typeof De?d.has(De)||(h.push.apply(h,(0,cn.Z)(OS(De))),void 0!==it&&h.push(it),d.add(De)):h.push(on(De))}if(g&&h.push.apply(h,(0,cn.Z)(L6(g))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Se=h.length,Ce=0;Ce<o.length;Ce++){var Ee=o[Ce];4!==Ee.type&&1!==Ee.type&&ae(Ee.name)}for(var Ke=0;Ke<a.length;Ke++){var st=a[Ke];1!==st.type&&ae(st.name)}h.length!==Se&&h.splice(Se,0,on(3))}return l.length&&(h.push(on(4)),l.forEach(function(De){return ae(De.name)})),u.length&&(h.push(on(6)),u.forEach(function(De){return ae(De.name)})),h}},{key:"addToConsts",value:function(e){if(mC(e))return yf;for(var i=this._constants.constExpressions,o=0;o<i.length;o++)if(i[o].isEquivalent(e))return on(o);return on(i.push(e)-1)}},{key:"addAttrsToConsts",value:function(e){return e.length>0?this.addToConsts(pi(e)):yf}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?Wl(p1(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,d=qr(l);return i._bindingScope.set(u,a.name,d,0,function(h,g){var y=g>0?[u1(g).toStmt()]:[],L=d.set(Xn(Ne.reference).callFn([on(s)]));return y.concat(L.toConstDecl())},!0),[a.name,a.value]}))):yf}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?RI(s,i.phase):Th(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),d=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,l1);return Lh(i,u,d)}}}]),n}(),Zh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,U.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 Zf(o.span,o.sourceSpan,o.nameSpan,new k_(o.span,o.sourceSpan),l),h=function F_(n){var r=B_[n.length];return{identifier:r||Ne.pipeBindV,isVarLength:!r}}(o.args),g=h.identifier,y=h.isVarLength;this.definePipe(o.name,l,s,Xn(g));var L=[o.exp].concat((0,cn.Z)(o.args)),z=y?this.visitAll([new NC(o.span,o.sourceSpan,L)]):this.visitAll(L),q=new M_(o.span,o.sourceSpan,d,[new Ps(o.span,o.sourceSpan,s),new Ps(o.span,o.sourceSpan,u)].concat((0,cn.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 Dh(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=pi(l);return AS(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new Dh(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=As(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return AS(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(Q5),B_=[Ne.pipeBind1,Ne.pipeBind2,Ne.pipeBind3,Ne.pipeBind4];var I6=[Ne.pureFunction0,Ne.pureFunction1,Ne.pureFunction2,Ne.pureFunction3,Ne.pureFunction4,Ne.pureFunction5,Ne.pureFunction6,Ne.pureFunction7,Ne.pureFunction8];function u1(n){return Xn(Ne.nextContext).callFn(n>1?[on(n)]:[])}function AS(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function DS(n){var r=I6[n.length];return{identifier:r||Ne.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,d=l.isVarLength,h=[on(s),o];return d?h.push(pi(a)):h.push.apply(h,(0,cn.Z)(a)),Xn(u).callFn(h)}function OS(n){var r=Oi(n),e=(0,Yn.Z)(r,2),i=e[0],a=on(e[1]);return i?[on(0),on(i),a]:[a]}var Nh="$$shared_ctx$$",R6=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,B.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,An.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,qr(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,U.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;pa("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(Nh+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=Nh+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(Nh+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){var i=this.map.get(Nh+e.retrievalLevel);i?i.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}},{key:"generateSharedContextVar",value:function(e){var i=qr(sc+this.freshReferenceName());this.map.set(Nh+e,{retrievalLevel:e,lhs:i,declareLocalCallback:function(a,s){return[i.set(u1(s)).toConstDecl()]},declare:!1,priority:2})}},{key:"getComponentProperty",value:function(e){var i=this.map.get(Nh+0);return i.declare=!0,this.maybeRestoreView(),i.lhs.prop(e)}},{key:"maybeRestoreView",value:function(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=qr(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}},{key:"restoreViewStatement",value:function(){if(this.restoreViewVariable){var e=gh(null,Ne.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?qr(qI).set(e).toConstDecl():e.toStmt()}return null}},{key:"viewSnapshotStatements",value:function(){return this.restoreViewVariable?[this.restoreViewVariable.set(gh(null,Ne.getCurrentView,[])).toConstDecl()]:[]}},{key:"isListenerScope",value:function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}},{key:"variableDeclarations",value:function(){var e=this,i=0;return Array.from(this.map.values()).filter(function(o){return o.declare}).sort(function(o,a){return a.retrievalLevel-o.retrievalLevel||a.priority-o.priority}).reduce(function(o,a){var s=e.bindingLevel-a.retrievalLevel,l=a.declareLocalCallback(e,s-i);return i=s,o.concat(l)},[])}},{key:"freshReferenceName",value:function(){for(var e=this;e.parent;)e=e.parent;return"".concat("_r").concat(e.referenceNameIndex++)}},{key:"hasRestoreViewVariable",value:function(){return!!this.restoreViewVariable}},{key:"notifyRestoredViewContextUse",value:function(){this.usesRestoredViewContext=!0}}],[{key:"createRootScope",value:function(){return new n}}]),n}();function L6(n){var r=vu(n.value)[0];return[on(5),Wl(r)]}function Z6(n){switch(yh(n)){case 1:return Ne.propertyInterpolate;case 3:return Ne.propertyInterpolate1;case 5:return Ne.propertyInterpolate2;case 7:return Ne.propertyInterpolate3;case 9:return Ne.propertyInterpolate4;case 11:return Ne.propertyInterpolate5;case 13:return Ne.propertyInterpolate6;case 15:return Ne.propertyInterpolate7;case 17:return Ne.propertyInterpolate8;default:return Ne.propertyInterpolateV}}var PS=new m6;function U_(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vl;return new L4(new uS(new z3),n,PS,[])}function c1(n,r){switch(n){case Br.HTML:return Xn(Ne.sanitizeHtml);case Br.SCRIPT:return Xn(Ne.sanitizeScript);case Br.STYLE:return r?Xn(Ne.sanitizeStyle):null;case Br.URL:return Xn(Ne.sanitizeUrl);case Br.RESOURCE_URL:return Xn(Ne.sanitizeResourceUrl);default:return null}}function c8(n,r){var e=Wl(r.value);if(!yS(n,r.name))return e;switch(PS.securityContext(n,r.name,!0)){case Br.HTML:return Rv(Xn(Ne.trustConstantHtml),new Ue([new Xe(r.value)],[]),void 0,r.valueSpan);case Br.RESOURCE_URL:return Rv(Xn(Ne.trustConstantResourceUrl),new Ue([new Xe(r.value)],[]),void 0,r.valueSpan);default:return e}}function d1(n){return 1===n.length&&n[0]instanceof hh}function f1(n){return n instanceof vC||n instanceof bM||n instanceof Hv}function RS(n){return n.every(f1)}function Bh(n,r,e){return function(){var i=n(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,cn.Z)(e)),r&&o.unshift(on(r)),o}}var Cy="ngI18nClosureMode";function LS(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[O5(r),Cf(B6(),kV(r,n,e,i),xS(r,n,TC(i,!1)))];return o&&a.push(new uh(r.set(o(r)))),a}function B6(){return hC(qr(Cy)).notIdentical(on("undefined",xe)).and(qr(Cy))}function p1(n){return n.reduce(function(r,e){var i=Array.isArray(e)?p1(e):e;return r.concat(i)},[])}var F6=/attr\.([^\]]+)/,NS="_nghost-".concat("%COMP%"),BS="_ngcontent-".concat("%COMP%");function U6(n,r,e){var i=new Ba,o=vu(n.selector);return i.set("type",n.internalType),o.length>0&&i.set("selectors",Wl(o)),n.queries.length>0&&i.set("contentQueries",function h1(n,r,e){var l,i=[],o=[],a=MC(o,"_t"),s=(0,An.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(Xn(Ne.contentQuery).callFn([qr("dirIndex")].concat((0,cn.Z)(jS(u,r)))).toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),y=qr(sc).prop(u.propertyName).set(u.first?d.prop("first"):d);o.push(g.and(y).toStmt())}}catch(z){s.e(z)}finally{s.f()}var L=e?"".concat(e,"_ContentQueries"):null;return oa([new ma(_h,_e),new ma(sc,null),new ma("dirIndex",null)],[ql(1,i),ql(2,o)],Ma,null,L)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function z6(n,r,e){var i=[],o=[],a=MC(o,OM);n.forEach(function(l){var u=Xn(Ne.viewQuery).callFn(jS(l,r));i.push(u.toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),y=qr(sc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(y).toStmt())});var s=e?"".concat(e,"_Query"):null;return oa([new ma(_h,_e),new ma(sc,null)],[ql(1,i),ql(2,o)],Ma,null,s)}(n.viewQueries,r,n.name)),i.set("hostBindings",function W6(n,r,e,i,o,a,s){var l=qr(sc),u=new GC(l),d=n.specialAttributes,h=d.styleAttr,g=d.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==g&&u.registerClassAttr(g);var y=[],L=[],z=[],q=r,re=e.createDirectiveHostEventAsts(n.listeners,q);re&&re.length&&y.push.apply(y,(0,cn.Z)(function p8(n,r){var s,e=[],i=[],o=[],a=(0,An.Z)(n);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&Th(l.name),d=1===l.type?RI(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(d,"_HostBindingHandler"):null,g=Lh(u_.fromParsedEvent(l),h);1==l.type?i.push(g):e.push(g)}}catch(Se){a.e(Se)}finally{a.f()}for(var y=0,L=i;y<L.length;y++){var z=L[y];o.push({reference:Ne.syntheticHostListener,paramsOrFn:z,span:null})}for(var q=0,re=e;q<re.length;q++){var ae=re[q];o.push({reference:Ne.listener,paramsOrFn:ae,span:null})}return o}(re,a)));var ae=e.createBoundHostProperties(n.properties,q),Se=[],Ce=0;ae&&ae.forEach(function(bn){u.registerInputBasedOnName(bn.name,bn.expression,q)?Ce+=2:(Se.push(bn),Ce++)});for(var Ee,Ke=function(){Ee||(Ee=new Zh(i,function(){return pa("Unexpected node")},function(gr){var eo=Ce;return Ce+=gr,eo},function(){return pa("Unexpected pipe")}));return Ee},st=[],De=[],it=[],ft=0,bt=Se;ft<bt.length;ft++){var $e=bt[ft],Ie=$e.expression.visit(Ke()),ct=YS(l,Ie),Bt=f8($e),jt=Bt.bindingName,It=Bt.instruction,Tn=Bt.isAttribute,Hn=e.calcPossibleSecurityContexts(o,jt,Tn).filter(function(bn){return bn!==Br.NONE}),zn=null;Hn.length&&(zn=2===Hn.length&&Hn.indexOf(Br.URL)>-1&&Hn.indexOf(Br.RESOURCE_URL)>-1?Xn(Ne.sanitizeUrlOrResourceUrl):c1(Hn[0],Tn));var ar=[on(jt),ct.currValExpr];zn?ar.push(zn):x3(jt)&&ar.push(Xn(Ne.validateIframeAttribute)),z.push.apply(z,(0,cn.Z)(ct.stmts)),It===Ne.hostProperty?st.push(ar):It===Ne.attribute?De.push(ar):It===Ne.syntheticHostProperty?it.push(ar):L.push({reference:It,paramsOrFn:ar,span:null})}for(var kr=0,_r=st;kr<_r.length;kr++){var Wr=_r[kr];L.push({reference:Ne.hostProperty,paramsOrFn:Wr,span:null})}for(var jr=0,Kr=De;jr<Kr.length;jr++){var jo=Kr[jr];L.push({reference:Ne.attribute,paramsOrFn:jo,span:null})}for(var tr=0,br=it;tr<br.length;tr++){var Mn=br[tr];L.push({reference:Ne.syntheticHostProperty,paramsOrFn:Mn,span:null})}var gn=function HS(n){var i,r=[],e=(0,An.Z)(Object.getOwnPropertyNames(n));try{for(e.s();!(i=e.n()).done;){var o=i.value,a=n[o];r.push(on(o),a)}}catch(s){e.e(s)}finally{e.f()}return r}(n.attributes);if(u.assignHostAttrs(gn,s),u.hasBindings&&u.buildUpdateLevelInstructions(Ke()).forEach(function(bn){var rr,Nn=(0,An.Z)(bn.calls);try{for(Nn.s();!(rr=Nn.n()).done;){var gr=rr.value;Ce+=Math.max(gr.allocateBindingSlots-2,0),L.push({reference:bn.reference,paramsOrFn:TV(gr,l,YS),span:null})}}catch(eo){Nn.e(eo)}finally{Nn.f()}}),Ce&&s.set("hostVars",on(Ce)),y.length>0||L.length>0){var nr=a?"".concat(a,"_HostBindings"):null,un=[];return y.length>0&&un.push(ql(1,SC(y))),L.length>0&&un.push(ql(2,z.concat(SC(L)))),oa([new ma(_h,_e),new ma(sc,null)],un,Ma,null,nr)}return null}(n.host,n.typeSourceSpan,e,r,n.selector||"",n.name,i)),i.set("inputs",IM(n.inputs,!0)),i.set("outputs",IM(n.outputs)),null!==n.exportAs&&i.set("exportAs",pi(n.exportAs.map(function(a){return on(a)}))),n.isStandalone&&i.set("standalone",on(!0)),i}function FS(n,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new Hl([])];o&&a.push(o),e.push(Xn(Ne.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(Xn(Ne.InheritDefinitionFeature)),r.fullInheritance&&e.push(Xn(Ne.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(Xn(Ne.NgOnChangesFeature)),r.hasOwnProperty("template")&&r.isStandalone&&e.push(Xn(Ne.StandaloneFeature)),e.length&&n.set("features",pi(e))}function H6(n,r,e){var i=U6(n,r,e);FS(i,n);var o=n.selector&&fo.parse(n.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(pi(s.map(function(st){return on(null!=st?st:void 0)})),!0))}var l=n.name,u=l?"".concat(l,"_Template"):null,d=n.changeDetection,h=n.template,g=new N_(r,R6.createRootScope(),0,l,null,null,u,Ne.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),y=g.buildTemplateFunction(h.nodes,[]),L=g.getNgContentSelectors();L&&i.set("ngContentSelectors",L),i.set("decls",on(g.getConstCount())),i.set("vars",on(g.getVarCount()));var z=g.getConsts(),q=z.constExpressions,re=z.prepareStatements;if(q.length>0){var ae=pi(q);re.length>0&&(ae=oa([],[].concat((0,cn.Z)(re),[new Sa(ae)]))),i.set("consts",ae)}if(i.set("template",y),n.declarations.length>0&&i.set("dependencies",function d8(n,r){switch(r){case 0:return n;case 1:return oa([],[new Sa(n)]);case 2:var e=n.prop("map").callFn([Xn(Ne.resolveForwardRef)]);return oa([],[new Sa(e)])}}(pi(n.declarations.map(function(st){return st.type})),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=Qo.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==Qo.Emulated?function Y6(n,r,e){var i=new e4;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,BS,NS):n.styles,Ce=Se.reduce(function(st,De){return De.trim().length>0&&st.push(r.getConstLiteral(on(De))),st},[]);Ce.length>0&&i.set("styles",pi(Ce))}else n.encapsulation===Qo.Emulated&&(n.encapsulation=Qo.None);return n.encapsulation!==Qo.Emulated&&i.set("encapsulation",on(n.encapsulation)),null!==n.animations&&i.set("data",As([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==Xo.Default&&i.set("changeDetection",on(d)),{expression:Xn(Ne.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:US(n),statements:[]}}function US(n){var r=WS(n);return r.push(m1(n.template.ngContentSelectors)),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.ComponentDeclaration,r))}function jS(n,r){var e=[JI(n,r),on(G6(n))];return n.read&&e.push(n.read),e}function G6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function GS(n){return ps(on(n))}function zS(n){return ps(As(Object.keys(n).map(function(e){return{key:e,value:on(Array.isArray(n[e])?n[e][0]:n[e]),quoted:!0}})))}function m1(n){return n.length>0?ps(pi(n.map(function(r){return on(r)}))):ze}function WS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[mM(n.type.type,n.typeArgumentCount),null!==r?GS(r):ze,null!==n.exportAs?m1(n.exportAs):ze,zS(n.inputs),zS(n.outputs),m1(n.queries.map(function(e){return e.propertyName}))]}function VS(n){var r=WS(n);return r.push(ze),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.DirectiveDeclaration,r))}function YS(n,r){return w3(null,n,r,"b")}function TV(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function f8(n){var e,r=n.name,i=r.match(F6);return i?(r=i[1],e=Ne.attribute):n.isAnimation?(r=II(r),e=Ne.syntheticHostProperty):e=Ne.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var V6=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var m8=(0,U.Z)(function n(){(0,B.Z)(this,n)}),_8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new _3;(0,B.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ac,this.ResourceLoader=m8,this.elementSchemaRegistry=new m6}return(0,U.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=Y5({name:o.name,type:Na(o.type),internalType:new Ar(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 wy(n){var r,e;return{name:n.type.name,type:Na(n.type),internalType:new Ar(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=Y5(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=XI({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:XS(o.providedIn),useClass:Ns(o,"useClass"),useFactory:J6(o,"useFactory"),useValue:Ns(o,"useValue"),useExisting:Ns(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Au)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=XI({name:o.type.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,providedIn:XS(o.providedIn),useClass:Ns(o,"useClass"),useFactory:J6(o,"useFactory"),useValue:Ns(o,"useValue"),useExisting:Ns(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=Ad({name:o.name,type:Na(o.type),internalType:new Ar(o.type),providers:o.providers&&o.providers.length>0?new Ar(o.providers):null,imports:o.imports.map(function(l){return new Ar(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function T8(n){return{name:n.type.name,type:Na(n.type),internalType:new Ar(n.type),providers:void 0!==n.providers&&n.providers.length>0?new Ar(n.providers):null,imports:void 0!==n.imports?n.imports.map(function(r){return new Ar(r)}):[]}}(o),s=Ad(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=v3({type:Na(o.type),internalType:new Ar(o.type),adjacentType:new Ar(o.type),bootstrap:o.bootstrap.map(Na),declarations:o.declarations.map(Na),publicDeclarationTypes:null,imports:o.imports.map(Na),includeImportTypes:!0,exports:o.exports.map(Na),selectorScopeMode:Mh.Inline,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(Na):null,id:o.id?new Ar(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function z5(n){var r=new Ba;return r.set("type",new Ar(n.type)),void 0!==n.bootstrap&&r.set("bootstrap",new Ar(n.bootstrap)),void 0!==n.declarations&&r.set("declarations",new Ar(n.declarations)),void 0!==n.imports&&r.set("imports",new Ar(n.imports)),void 0!==n.exports&&r.set("exports",new Ar(n.exports)),void 0!==n.schemas&&r.set("schemas",new Ar(n.schemas)),void 0!==n.id&&r.set("id",new Ar(n.id)),Xn(Ne.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=JS(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=Fh(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new wf,l=function j6(n,r,e){var i=U6(n,r,e);return FS(i,n),{expression:Xn(Ne.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:VS(n),statements:[]}}(o,a,U_());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=g1(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),JS(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(y8),declarationListEmitMode:0,styles:[].concat((0,cn.Z)(o.styles),(0,cn.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new Ar(o.animations):null,viewProviders:null!=o.viewProviders?new Ar(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 q6(n,r,e){var i,o,a,s,l=g1(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 y,g=(0,An.Z)(n.dependencies);try{for(g.s();!(y=g.n()).done;){var L=y.value;switch(L.kind){case"directive":case"component":h.push(_1(L));break;case"pipe":h.push(QS(L))}}}catch(z){g.e(z)}finally{g.f()}}else(n.components||n.directives||n.pipes)&&(n.components&&h.push.apply(h,(0,cn.Z)(n.components.map(function(z){return _1(z,!0)}))),n.directives&&h.push.apply(h,(0,cn.Z)(n.directives.map(function(z){return _1(z)}))),n.pipes&&h.push.apply(h,(0,cn.Z)(function MV(n){return n?Object.keys(n).map(function(r){return{kind:Tu.Pipe,name:r,type:new Ar(n[r])}}):[]}(n.pipes))));return Object.assign(Object.assign({},Fh(n,r)),{template:u,styles:null!==(o=n.styles)&&void 0!==o?o:[],declarations:h,viewProviders:void 0!==n.viewProviders?new Ar(n.viewProviders):null,animations:void 0!==n.animations?new Ar(n.animations):null,changeDetection:null!==(a=n.changeDetection)&&void 0!==a?a:Xo.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:Qo.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 wf,l=H6(o,a,U_(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:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,deps:Fc(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:Na(o.type),internalType:new Ar(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 WM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new zM("",i);return new Xa(new C_(o,-1,-1,-1),new C_(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,cn.Z)(a),[new bf("$def",e,void 0,Ds.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new g3(i),!0).$def}}]),n}();function KS(n){return Object.assign(Object.assign({},n),{predicate:qS(n.predicate),read:n.read?new Ar(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function K6(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:qS(n.predicate),descendants:null!==(e=n.descendants)&&void 0!==e&&e,read:n.read?new Ar(n.read):null,static:null!==(i=n.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=n.emitDistinctChangesOnly)||void 0===o||o}}function qS(n){return Array.isArray(n)?n:Oc(new Ar(n),1)}function JS(n){var r=v1(n.inputs||[]),e=v1(n.outputs||[]),i=n.propMetadata,o={},a={},s=function(d){i.hasOwnProperty(d)&&i[d].forEach(function(h){!function w8(n){return"Input"===n.ngMetadataName}(h)?function k8(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:Na(n.type),internalType:new Ar(n.type),deps:null,host:Q6(n.propMetadata,n.typeSourceSpan,n.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:n.queries.map(KS),providers:null!=n.providers?new Ar(n.providers):null,viewQueries:n.viewQueries.map(KS),fullInheritance:!1})}function Fh(n,r){var e,i,o,a,s,l,u,d,h;return{name:n.type.name,type:Na(n.type),typeSourceSpan:r,internalType:new Ar(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:g8(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(K6),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(K6),providers:void 0!==n.providers?new Ar(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 g8(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:v8(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 v8(n){for(var r={},e=0,i=Object.keys(n);e<i.length;e++){var o=i[e];r[o]=new Ar(n[o])}return r}function y8(n){return Object.assign(Object.assign({},n),{type:new Ar(n.type)})}function _1(n){var e,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{kind:Tu.Directive,isComponent:r||"component"===n.kind,selector:n.selector,type:new Ar(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 QS(n){return{kind:Tu.Pipe,name:n.name,type:new Ar(n.type)}}function g1(n,r,e,i,o){var a=o?LM.fromArray(o):Vl,s=function u8(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=U_(i),u=(new o6).parse(n,r,Object.assign(Object.assign({leadingTriviaChars:L_},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 P6(i,!o,a),y=g.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&y.errors&&y.errors.length>0){var L={interpolationConfig:i,preserveWhitespaces:o,errors:y.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(L.commentNodes=[]),L}h=y.rootNodes,o||(h=Nc(new u6,h),g.hasI18nMeta&&(h=Nc(new P6(i,!1),h)));var z=t1(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,cn.Z)(u.errors).concat((0,cn.Z)(y.errors)));var Ke={interpolationConfig:i,preserveWhitespaces:o,errors:re.length>0?re:null,nodes:q,styleUrls:ae,styles:Se,ngContentSelectors:Ce};return e.collectCommentNodes&&(Ke.commentNodes=Ee),Ke}(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 Ns(n,r){if(n.hasOwnProperty(r))return Oc(new Ar(n[r]),0)}function J6(n,r){if(n.hasOwnProperty(r))return new Ar(n[r])}function XS(n){return Oc("function"==typeof n?new Ar(n):new me(null!=n?n:null),0)}function Fc(n){return null==n?null:n.map(Au)}function Au(n){var r=null!=n.attribute,e=null===n.token?null:new Ar(n.token);return $S(r?new Ar(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 $S(null===n.token?null:new Ar(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 $S(n,r,e,i,o,a){return{token:n,attributeNameType:r?on("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function Q6(n,r,e){var i=function h8(n){for(var r={},e={},i={},o={},a=0,s=Object.keys(n);a<s.length;a++){var l=s[a],u=n[l],d=l.match(V6);if(null===d)switch(l){case"class":if("string"!=typeof u)throw new Error("Class binding must be string");o.classAttr=u;break;case"style":if("string"!=typeof u)throw new Error("Style binding must be string");o.styleAttr=u;break;default:r[l]="string"==typeof u?on(u):u}else if(null!=d[1]){if("string"!=typeof u)throw new Error("Property binding must be string");i[d[1]]=u}else if(null!=d[2]){if("string"!=typeof u)throw new Error("Event binding must be string");e[d[2]]=u}}return{attributes:r,listeners:e,properties:i,specialAttributes:o}}(e||{}),o=function Ua(n,r){var e=U_();return e.createDirectiveHostEventAsts(n.listeners,r),e.createBoundHostProperties(n.properties,r),e.errors}(i,r);if(o.length)throw new Error(o.map(function(l){return l.msg}).join("\n"));var a=function(u){n.hasOwnProperty(u)&&n[u].forEach(function(d){!function b8(n){return"HostBinding"===n.ngMetadataName}(d)?function C8(n){return"HostListener"===n.ngMetadataName}(d)&&(i.listeners[d.eventName||u]="".concat(u,"(").concat((d.args||[]).join(","),")")):i.properties[d.hostPropertyName||u]=function _5(n,r){var e=Md(r,!1,!1);return e!==r?"".concat(n,"[").concat(e,"]"):"".concat(n,".").concat(r)}("this",u)})};for(var s in n)a(s);return i}function v1(n){return n.reduce(function(r,e){var i=e.split(":",2).map(function(l){return l.trim()}),o=(0,Yn.Z)(i,2),a=o[0],s=o[1];return r[a]=s||a,r},{})}new Xm("14.3.0");var nE;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(nE||(nE={}));var P8=function(){function n(){(0,B.Z)(this,n),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,U.Z)(n,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return Ji.PARSABLE_DATA}}]),n}();new P8;var sR;!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"}(sR||(sR={}));!function X6(n){(n.ng||(n.ng={})).\u0275compilerFacade=new _8}(Ja);var bi=m(925),En=m(3191),Yr=m(5664),On=m(8929),xa=m(4096),rU=m(1715),mR=m(352),oo=m(7451),Gi=m(6787),Pr=m(7625),Oo=m(1059),$n=m(4850),Ri=m(2986),aa=m(2994),Po=m(7545),sa=m(9071),nl=m(226);function xy(n,r,e){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,null!=e&&e.has(i)?"important":""):n.removeProperty(i)}return n}function z_(n,r){var e=r?"":"none";xy(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function lE(n,r,e){xy(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Dy(n,r){return r&&"none"!=r?n+" "+r:n}function _R(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function uE(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function Ay(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 cE(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 W_(n,r,e){n.top+=r,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function gR(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&&i<s+g&&e>l-h&&e<a+h}var vR=function(){function n(r){(0,B.Z)(this,n),this._document=r,this.positions=new Map}return(0,U.Z)(n,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var i=this;this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(function(o){i.positions.set(o,{scrollPosition:{top:o.scrollTop,left:o.scrollLeft},clientRect:Ay(o)})})}},{key:"handleScroll",value:function(e){var i=(0,bi.sA)(e),o=this.positions.get(i);if(!o)return null;var s,l,a=o.scrollPosition;if(i===this._document){var u=this.getViewportScrollPosition();s=u.top,l=u.left}else s=i.scrollTop,l=i.scrollLeft;var d=a.top-s,h=a.left-l;return this.positions.forEach(function(g,y){g.clientRect&&i!==y&&i.contains(y)&&W_(g.clientRect,d,h)}),a.top=s,a.left=l,{top:d,left:h}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),n}();function yR(n){var r=n.cloneNode(!0),e=r.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<e.length;o++)e[o].removeAttribute("id");return"canvas"===i?wR(n,r):("input"===i||"select"===i||"textarea"===i)&&CR(n,r),bR("canvas",n,r,wR),bR("input, textarea, select",n,r,CR),r}function bR(n,r,e,i){var o=r.querySelectorAll(n);if(o.length)for(var a=e.querySelectorAll(n),s=0;s<o.length;s++)i(o[s],a[s])}var oU=0;function CR(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(oU++))}function wR(n,r){var e=r.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch(i){}}var kR=(0,bi.i$)({passive:!0}),Oy=(0,bi.i$)({passive:!1}),dE=new Set(["position"]),aU=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this._config=e,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new On.xQ,this._pointerMoveSubscription=xa.w.EMPTY,this._pointerUpSubscription=xa.w.EMPTY,this._scrollSubscription=xa.w.EMPTY,this._resizeSubscription=xa.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new On.xQ,this.started=new On.xQ,this.released=new On.xQ,this.ended=new On.xQ,this.entered=new On.xQ,this.exited=new On.xQ,this.dropped=new On.xQ,this.moved=this._moveEvents,this._pointerDown=function(u){if(l.beforeStarted.next(),l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&l._initializeDragSequence(d,u)}else l.disabled||l._initializeDragSequence(l._rootElement,u)},this._pointerMove=function(u){var d=l._getPointerPositionOnPage(u);if(l._hasStartedDragging){u.preventDefault();var q=l._getConstrainedPointerPosition(d);if(l._hasMoved=!0,l._lastKnownPointerPosition=d,l._updatePointerDirectionDelta(q),l._dropContainer)l._updateActiveDropContainer(q,d);else{var re=l.constrainPosition?l._initialClientRect:l._pickupPositionOnPage,ae=l._activeTransform;ae.x=q.x-re.x+l._passiveTransform.x,ae.y=q.y-re.y+l._passiveTransform.y,l._applyRootElementTransform(ae.x,ae.y)}l._moveEvents.observers.length&&l._ngZone.run(function(){l._moveEvents.next({source:l,pointerPosition:q,event:u,distance:l._getDragDistance(q),delta:l._pointerDirectionDelta})})}else{if(Math.abs(d.x-l._pickupPositionOnPage.x)+Math.abs(d.y-l._pickupPositionOnPage.y)>=l._config.dragStartThreshold){var L=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),z=l._dropContainer;if(!L)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 vR(i),s.registerDragItem(this)}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,En.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return z_(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,En.fI)(a)}),this._handles.forEach(function(a){return z_(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,En.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Oy),o.addEventListener("touchstart",i._pointerDown,kR),o.addEventListener("dragstart",i._nativeDragStart,Oy)}),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,En.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),z_(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),z_(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){Iy(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(),lE(o,!1,dE),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=Iy(i),l=!s&&0!==i.button,u=this._rootElement,d=(0,bi.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 y=u.style;this._rootElementTapHighlight=y.webkitTapHighlightColor||"",y.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=Ay(this._boundaryElement));var L=this._previewTemplate;this._pickupPositionInElement=L&&L.template&&!L.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;lE(this._rootElement,!0,dE),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=SR(l,this._document),this._previewRef=l,e.matchSize?w1(a,s):a.style.transform=Py(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else w1(a=yR(this._rootElement),this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return xy(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},dE),z_(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 iU(n){var r=getComputedStyle(n),e=uE(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=uE(r,"transition-duration"),s=uE(r,"transition-delay");return _R(a[o])+_R(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,bi.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=SR(this._placeholderRef,this._document)):o=yR(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=Iy(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=Iy(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(),y=g.width,L=g.height,z=h.top+d,q=h.bottom-(L-d);a=MR(a,h.left+u,h.right-(y-u)),s=MR(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,z_(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,Oy),e.removeEventListener("touchstart",this._pointerDown,kR),e.removeEventListener("dragstart",this._nativeDragStart,Oy)}},{key:"_applyRootElementTransform",value:function(e,i){var o=Py(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Dy(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=Py(e,i);this._preview.style.transform=Dy(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:Iy(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,bi.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&W_(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,bi.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,En.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 Py(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function MR(n,r,e){return Math.max(r,Math.min(e,n))}function Iy(n){return"t"===n.type[0]}function SR(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 w1(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=Py(r.left,r.top)}function Ry(n,r){return Math.max(0,Math.min(r,n))}var lU=function(){function n(r,e){(0,B.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,U.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,y=h.clientRect,L=d>l?1:-1,z=this._getItemOffsetPx(g,y,L),q=this._getSiblingOffsetPx(d,s,L),re=s.slice();return function fE(n,r,e){var i=Ry(r,n.length-1),o=Ry(e,n.length-1);if(i!==o){for(var a=n[i],s=o<i?-1:1,l=i;l!==o;l+=s)n[l]=n[l+s];n[o]=a}}(s,d,l),s.forEach(function(ae,Se){if(re[Se]!==ae){var Ce=ae.drag===e,Ee=Ce?z:q,Ke=Ce?e.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=Ee,u?(Ke.style.transform=Dy("translate3d(".concat(Math.round(ae.offset),"px, 0, 0)"),ae.initialTransform),W_(ae.clientRect,0,Ee)):(Ke.style.transform=Dy("translate3d(0, ".concat(Math.round(ae.offset),"px, 0)"),ae.initialTransform),W_(ae.clientRect,Ee,0))}}),this._previousSwap.overlaps=cE(y,i,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=u?a.x:a.y,{previousIndex:d,currentIndex:l}}},{key:"enter",value:function(e,i,o,a){var s=null==a||a<0?this._getItemIndexFromPointerPosition(e,i,o):a,l=this._activeDraggables,u=l.indexOf(e),d=e.getPlaceholderElement(),h=l[s];if(h===e&&(h=l[s+1]),!h&&(null==s||-1===s||s<l.length-1)&&this._shouldEnterAsFirstChild(i,o)&&(h=l[0]),u>-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,En.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){W_(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:Ay(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 y=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&y===s._previousSwap.delta)return!1}return l?i>=Math.floor(g.left)&&i<Math.floor(g.right):o>=Math.floor(g.top)&&o<Math.floor(g.bottom)});return-1!==u&&this._sortPredicate(u,e)?u:-1}}]),n}(),DR=function(){function n(r,e,i,o,a){var s=this;(0,B.Z)(this,n),this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new On.xQ,this.entered=new On.xQ,this.exited=new On.xQ,this.dropped=new On.xQ,this.sorted=new On.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=xa.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new On.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,rU.F)(0,mR.Z).pipe((0,Pr.R)(s._stopScrollTimers)).subscribe(function(){var l=s._scrollNode,u=s.autoScrollStep;1===s._verticalScrollDirection?l.scrollBy(0,-u):2===s._verticalScrollDirection&&l.scrollBy(0,u),1===s._horizontalScrollDirection?l.scrollBy(-u,0):2===s._horizontalScrollDirection&&l.scrollBy(u,0)})},this.element=(0,En.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vR(i),this._sortStrategy=new lU(this.element,e),this._sortStrategy.withSortPredicate(function(l,u){return s.sortPredicate(l,u,s)})}return(0,U.Z)(n,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,i,o,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(e)),this._sortStrategy.enter(e,i,o,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,i,o,a,s,l,u){var d=arguments.length>7&&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,En.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,cn.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&&gR(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(y,L){if(L!==o._document&&y.clientRect&&!a&&gR(y.clientRect,.05,e,i)){var z=function uU(n,r,e,i){var o=Uh(r,i),a=pE(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]}(L,y.clientRect,e,i),q=(0,Yn.Z)(z,2);s=q[0],l=q[1],(s||l)&&(a=L)}}),!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=Uh(g,i),l=pE(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,En.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,En.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,En.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&&cE(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||!cE(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,En.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,bi.kV)((0,En.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 Uh(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 pE(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 hE=(0,bi.i$)({passive:!1,capture:!0}),jh=function(){function n(r,e){var i=this;(0,B.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 On.xQ,this.pointerUp=new On.xQ,this.scroll=new On.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,U.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,hE)})}},{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,hE)}},{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:hE}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:hE}),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 oo.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)}})})),Gi.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}();jh.\u0275fac=function(r){return new(r||jh)(t.LFG(t.R0b),t.LFG(se.K0))},jh.\u0275prov=t.Yz7({token:jh,factory:jh.\u0275fac,providedIn:"root"});var mE={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zf=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,U.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mE;return new aU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new DR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();zf.\u0275fac=function(r){return new(r||zf)(t.LFG(se.K0),t.LFG(t.R0b),t.LFG(sa.rL),t.LFG(jh))},zf.\u0275prov=t.Yz7({token:zf,factory:zf.\u0275fac,providedIn:"root"});var Ly=new t.OlP("CDK_DRAG_PARENT"),V_=new t.OlP("CdkDropListGroup"),Y_=function(){function n(){(0,B.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),n}();Y_.\u0275fac=function(r){return new(r||Y_)},Y_.\u0275dir=t.lG2({type:Y_,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[t._Bn([{provide:V_,useExisting:Y_}])]});var AR=new t.OlP("CDK_DRAG_CONFIG");var cU=0,_E=new t.OlP("CdkDropList"),K_=function(){function n(r,e,i,o,a,s,l){var u=this;(0,B.Z)(this,n),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new On.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(cU++),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,U.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,En.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,Oo.O)(this._dir.value),(0,Pr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,En.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,En.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,En.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,En.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}();K_._dropLists=[],K_.\u0275fac=function(r){return new(r||K_)(t.Y36(t.SBq),t.Y36(zf),t.Y36(t.sBO),t.Y36(sa.mF),t.Y36(nl.Is,8),t.Y36(V_,12),t.Y36(AR,8))},K_.\u0275dir=t.lG2({type:K_,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:V_,useValue:void 0},{provide:_E,useExisting:K_}])]});var OR=new t.OlP("CdkDragHandle"),Zy=function(){function n(r,e){(0,B.Z)(this,n),this.element=r,this._stateChanges=new On.xQ,this._disabled=!1,this._parentDrag=e}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}();Zy.\u0275fac=function(r){return new(r||Zy)(t.Y36(t.SBq),t.Y36(Ly,12))},Zy.\u0275dir=t.lG2({type:Zy,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:OR,useExisting:Zy}])]});var PR=new t.OlP("CdkDragPlaceholder"),T1=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.templateRef=r});T1.\u0275fac=function(r){return new(r||T1)(t.Y36(t.Rgc))},T1.\u0275dir=t.lG2({type:T1,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[t._Bn([{provide:PR,useExisting:T1}])]});var gE=new t.OlP("CdkDragPreview"),M1=function(){function n(r){(0,B.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,U.Z)(n,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,En.Ig)(e)}}]),n}();M1.\u0275fac=function(r){return new(r||M1)(t.Y36(t.Rgc))},M1.\u0275dir=t.lG2({type:M1,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[t._Bn([{provide:gE,useExisting:M1}])]});var q_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var y=this;(0,B.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 On.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 oo.y(function(L){var z=y._dragRef.moved.pipe((0,$n.U)(function(q){return{source:y,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(L);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,U.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,En.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,Ri.q)(1),(0,Pr.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,En.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,En.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,Ri.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,Oo.O)(this._handles),(0,aa.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,Po.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._stateChanges.pipe((0,Oo.O)(o))})))}),(0,Pr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),n}();q_._dragInstances=[],q_.\u0275fac=function(r){return new(r||q_)(t.Y36(t.SBq),t.Y36(_E,12),t.Y36(se.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(AR,8),t.Y36(nl.Is,8),t.Y36(zf),t.Y36(t.sBO),t.Y36(OR,10),t.Y36(Ly,12))},q_.\u0275dir=t.lG2({type:q_,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,gE,5),t.Suo(i,PR,5),t.Suo(i,OR,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:Ly,useExisting:q_}]),t.TTD]});var J_=(0,U.Z)(function n(){(0,B.Z)(this,n)});J_.\u0275fac=function(r){return new(r||J_)},J_.\u0275mod=t.oAB({type:J_}),J_.\u0275inj=t.cJS({providers:[zf],imports:[sa.ZD]});var Li=m(1314),Si=m(449),hs=m(3527),Wi=m(591),Ny=m(4715),qn=m(1086),IR=[[["caption"]],[["colgroup"],["col"]]];function pU(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 hU(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 vE(n){return function(r){(0,qe.Z)(i,r);var e=(0,Be.Z)(i);function i(){var o;(0,B.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(o=e.call.apply(e,[this].concat(s)))._sticky=!1,o._hasStickyChanged=!1,o}return(0,U.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,En.Ig)(a),this._hasStickyChanged=s!==this._sticky}},{key:"hasStickyChanged",value:function(){var a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),i}(n)}var Q_=new t.OlP("CDK_TABLE"),mU=new t.OlP("text-column-options"),Uc=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Uc.\u0275fac=function(r){return new(r||Uc)(t.Y36(t.Rgc))},Uc.\u0275dir=t.lG2({type:Uc,selectors:[["","cdkCellDef",""]]});var wl=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});wl.\u0275fac=function(r){return new(r||wl)(t.Y36(t.Rgc))},wl.\u0275dir=t.lG2({type:wl,selectors:[["","cdkHeaderCellDef",""]]});var Zd=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Zd.\u0275fac=function(r){return new(r||Zd)(t.Y36(t.Rgc))},Zd.\u0275dir=t.lG2({type:Zd,selectors:[["","cdkFooterCellDef",""]]});var RR=(0,U.Z)(function n(){(0,B.Z)(this,n)}),rl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,U.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(o){var a=this._stickyEnd;this._stickyEnd=(0,En.Ig)(o),this._hasStickyChanged=a!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),e}(vE(RR));rl.\u0275fac=function(r){return new(r||rl)(t.Y36(Q_,8))},rl.\u0275dir=t.lG2({type:rl,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Uc,5),t.Suo(i,wl,5),t.Suo(i,Zd,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.cell=o.first),t.iGM(o=t.CRH())&&(e.headerCell=o.first),t.iGM(o=t.CRH())&&(e.footerCell=o.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rl}]),t.qOj]});var S1=(0,U.Z)(function n(r,e){var i;(0,B.Z)(this,n),(i=e.nativeElement.classList).add.apply(i,(0,cn.Z)(r._columnCssClassName))}),Wf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){return(0,B.Z)(this,e),r.call(this,i,o)}return(0,U.Z)(e)}(S1);Wf.\u0275fac=function(r){return new(r||Wf)(t.Y36(rl),t.Y36(t.SBq))},Wf.\u0275dir=t.lG2({type:Wf,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]});var X_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s;if((0,B.Z)(this,e),a=r.call(this,i,o),1===(null===(s=i._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){var l=i._table._elementRef.nativeElement.getAttribute("role"),u="grid"===l||"treegrid"===l?"gridcell":"cell";o.nativeElement.setAttribute("role",u)}return a}return(0,U.Z)(e)}(S1);X_.\u0275fac=function(r){return new(r||X_)(t.Y36(rl),t.Y36(t.SBq))},X_.\u0275dir=t.lG2({type:X_,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]});var $_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s;if((0,B.Z)(this,e),a=r.call(this,i,o),1===(null===(s=i._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){var l=i._table._elementRef.nativeElement.getAttribute("role"),u="grid"===l||"treegrid"===l?"gridcell":"cell";o.nativeElement.setAttribute("role",u)}return a}return(0,U.Z)(e)}(S1);$_.\u0275fac=function(r){return new(r||$_)(t.Y36(rl),t.Y36(t.SBq))},$_.\u0275dir=t.lG2({type:$_,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]});var yE=(0,U.Z)(function n(){(0,B.Z)(this,n),this.tasks=[],this.endTasks=[]}),E1=new t.OlP("_COALESCED_STYLE_SCHEDULER"),Vf=function(){function n(r){(0,B.Z)(this,n),this._ngZone=r,this._currentSchedule=null,this._destroyed=new On.xQ}return(0,U.Z)(n,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new yE,this._getScheduleObservable().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new yE;var a,o=(0,An.Z)(i.tasks);try{for(o.s();!(a=o.n()).done;){(0,a.value)()}}catch(h){o.e(h)}finally{o.f()}var u,l=(0,An.Z)(i.endTasks);try{for(l.s();!(u=l.n()).done;){(0,u.value)()}}catch(h){l.e(h)}finally{l.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,hs.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Ri.q)(1))}}]),n}();Vf.\u0275fac=function(r){return new(r||Vf)(t.LFG(t.R0b))},Vf.\u0275prov=t.Yz7({token:Vf,factory:Vf.\u0275fac});var Hh=function(){function n(r,e){(0,B.Z)(this,n),this.template=r,this._differs=e}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof dc?e.headerCell.template:this instanceof Hc?e.footerCell.template:e.cell.template}}]),n}();Hh.\u0275fac=function(r){return new(r||Hh)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Hh.\u0275dir=t.lG2({type:Hh,features:[t.TTD]});var By=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Hh),dc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,U.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(vE(By));dc.\u0275fac=function(r){return new(r||dc)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Q_,8))},dc.\u0275dir=t.lG2({type:dc,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var jc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Hh),Hc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,U.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(vE(jc));Hc.\u0275fac=function(r){return new(r||Hc)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Q_,8))},Hc.\u0275dir=t.lG2({type:Hc,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var Jl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,U.Z)(e)}(Hh);Jl.\u0275fac=function(r){return new(r||Jl)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Q_,8))},Jl.\u0275dir=t.lG2({type:Jl,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]});var kl=function(){function n(r){(0,B.Z)(this,n),this._viewContainer=r,n.mostRecentCellOutlet=this}return(0,U.Z)(n,[{key:"ngOnDestroy",value:function(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}]),n}();kl.mostRecentCellOutlet=null,kl.\u0275fac=function(r){return new(r||kl)(t.Y36(t.s_b))},kl.\u0275dir=t.lG2({type:kl,selectors:[["","cdkCellOutlet",""]]});var Gh=(0,U.Z)(function n(){(0,B.Z)(this,n)});Gh.\u0275fac=function(r){return new(r||Gh)},Gh.\u0275cmp=t.Xpm({type:Gh,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var zh=(0,U.Z)(function n(){(0,B.Z)(this,n)});zh.\u0275fac=function(r){return new(r||zh)},zh.\u0275cmp=t.Xpm({type:zh,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Gc=(0,U.Z)(function n(){(0,B.Z)(this,n)});Gc.\u0275fac=function(r){return new(r||Gc)},Gc.\u0275cmp=t.Xpm({type:Gc,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Pu=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.templateRef=r,this._contentClassName="cdk-no-data-row"});Pu.\u0275fac=function(r){return new(r||Pu)(t.Y36(t.Rgc))},Pu.\u0275dir=t.lG2({type:Pu,selectors:[["ng-template","cdkNoDataRow",""]]});var ZR=["top","bottom","left","right"],vU=function(){function n(r,e,i,o){var a=!(arguments.length>4&&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,B.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,U.Z)(n,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,An.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;d<u.children.length;d++)a.push(u.children[d])}}}catch(h){s.e(h)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){for(var h=0,g=a;h<g.length;h++){var y=g[h];o._removeStickyStyle(y,i)}})}},{key:"updateStickyColumns",value:function(e,i,o){var a=this,s=!(arguments.length>3&&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),y=i.lastIndexOf(!0),L=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Se,z="rtl"===a.direction,q=z?"right":"left",re=z?"left":"right",ae=(0,An.Z)(e);try{for(ae.s();!(Se=ae.n()).done;)for(var Ce=Se.value,Ee=0;Ee<u;Ee++){var Ke=Ce.children[Ee];i[Ee]&&a._addStickyStyle(Ke,q,h[Ee],Ee===y),o[Ee]&&a._addStickyStyle(Ke,re,g[Ee],Ee===L)}}catch(st){ae.e(st)}finally{ae.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===y?[]:d.slice(0,y+1).map(function(st,De){return i[De]?st:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===L?[]:d.slice(L).map(function(st,De){return o[De+L]?st:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,i,o){var a=this;if(this._isBrowser){for(var s="bottom"===o?e.slice().reverse():e,l="bottom"===o?i.slice().reverse():i,u=[],d=[],h=[],g=0,y=0;g<s.length;g++)if(l[g]){u[g]=y;var L=s[g];h[g]=this._isNativeHtmlTable?Array.from(L.children):[L];var z=L.getBoundingClientRect().height;y+=z,d[g]=z}var q=l.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var re,ae,Se=0;Se<s.length;Se++)if(l[Se]){var st,Ce=u[Se],Ee=Se===q,Ke=(0,An.Z)(h[Se]);try{for(Ke.s();!(st=Ke.n()).done;){var De=st.value;a._addStickyStyle(De,o,Ce,Ee)}}catch(it){Ke.e(it)}finally{Ke.f()}}"top"===o?null===(re=a._positionListener)||void 0===re||re.stickyHeaderRowsUpdated({sizes:d,offsets:u,elements:h}):null===(ae=a._positionListener)||void 0===ae||ae.stickyFooterRowsUpdated({sizes:d,offsets:u,elements:h})})}}},{key:"updateStickyFooterContainer",value:function(e,i){var o=this;if(this._isNativeHtmlTable){var a=e.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){i.some(function(s){return!s})?o._removeStickyStyle(a,["bottom"]):o._addStickyStyle(a,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,i){var a,o=(0,An.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;e.style[s]="",e.classList.remove(this._borderCellCss[s])}}catch(u){o.e(u)}finally{o.f()}ZR.some(function(u){return-1===i.indexOf(u)&&e.style[u]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,i,o,a){e.classList.add(this._stickCellCss),a&&e.classList.add(this._borderCellCss[i]),e.style[i]="".concat(o,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){for(var i={top:100,bottom:10,left:1,right:1},o=0,a=0,s=ZR;a<s.length;a++){var l=s[a];e.style[l]&&(o+=i[l])}return o?"".concat(o):""}},{key:"_getCellWidths",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s<a.length;s++){var l=a[s];o.push(l.getBoundingClientRect().width)}return this._cachedCellWidths=o,o}},{key:"_getStickyStartColumnPositions",value:function(e,i){for(var o=[],a=0,s=0;s<e.length;s++)i[s]&&(o[s]=a,a+=e[s]);return o}},{key:"_getStickyEndColumnPositions",value:function(e,i){for(var o=[],a=0,s=e.length;s>0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),n}();var bE=new t.OlP("CDK_SPL"),eg=(0,U.Z)(function n(){(0,B.Z)(this,n)});eg.\u0275fac=function(r){return new(r||eg)},eg.\u0275dir=t.lG2({type:eg,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[t._Bn([{provide:Si.k,useClass:Si.eX}])]});var Yf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});Yf.\u0275fac=function(r){return new(r||Yf)(t.Y36(t.s_b),t.Y36(t.SBq))},Yf.\u0275dir=t.lG2({type:Yf,selectors:[["","rowOutlet",""]]});var Kf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});Kf.\u0275fac=function(r){return new(r||Kf)(t.Y36(t.s_b),t.Y36(t.SBq))},Kf.\u0275dir=t.lG2({type:Kf,selectors:[["","headerRowOutlet",""]]});var qf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});qf.\u0275fac=function(r){return new(r||qf)(t.Y36(t.s_b),t.Y36(t.SBq))},qf.\u0275dir=t.lG2({type:qf,selectors:[["","footerRowOutlet",""]]});var Jf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});Jf.\u0275fac=function(r){return new(r||Jf)(t.Y36(t.s_b),t.Y36(t.SBq))},Jf.\u0275dir=t.lG2({type:Jf,selectors:[["","noDataRowOutlet",""]]});t.a5r;var zc=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){(0,B.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=y,this._onDestroy=new On.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 Wi.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,U.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,En.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,En.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,Pr.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,Si.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,Ri.q)(1),(0,Pr.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,cn.Z)(i),(0,cn.Z)(o),(0,cn.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;u<o.length;u++)e._renderRows[u].rowDef===s&&l.push(o[u]);e._addStickyColumnStyles(l,s)}),a.forEach(function(s,l){e._addStickyColumnStyles([s],e._footerRowDefs[l])}),Array.from(this._columnDefsByName.values()).forEach(function(s){return s.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var o=0;o<this._data.length;o++){var a=this._data[o],s=this._getRenderRowsForData(a,o,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(var l=0;l<s.length;l++){var u=s[l],d=this._cachedRenderRowsMap.get(u.data);d.has(u.rowDef)?d.get(u.rowDef).push(u):d.set(u.rowDef,[u]),e.push(u)}}return e}},{key:"_getRenderRowsForData",value:function(e,i,o){return this._getRowDefs(e,i).map(function(s){var l=o&&o.has(s)?o.get(s):[];if(l.length){var u=l.shift();return u.dataIndex=i,u}return{data:e,rowDef:s,dataIndex:i}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),tg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(o){e._columnDefsByName.has(o.name),e._columnDefsByName.set(o.name,o)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=tg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(i){return!i.when});!this.multiTemplateDataRows&&e.length,this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(l,u){return l||!!u.getColumnsDiff()},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();var o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();var a=this._footerRowDefs.reduce(e,!1);return a&&this._forceRenderFooterRows(),i||o||a}},{key:"_switchDataSource",value:function(e){this._data=[],(0,Si.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var i,e=this;this.dataSource&&((0,Si.Z9)(this.dataSource)?i=this.dataSource.connect(this):(0,Ny.b)(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=(0,qn.of)(this.dataSource)),this._renderChangeSubscription=i.pipe((0,Pr.R)(this._onDestroy)).subscribe(function(o){e._data=o||[],e.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&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;o<e.viewContainer.length;o++){var a=e.viewContainer.get(o);i.push(a.rootNodes[0])}return i}},{key:"_getRowDefs",value:function(e,i){if(1==this._rowDefs.length)return[this._rowDefs[0]];var o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(function(s){return!s.when||s.when(i,e)});else{var a=this._rowDefs.find(function(s){return s.when&&s.when(i,e)})||this._defaultRowDef;a&&o.push(a)}return o.length,o}},{key:"_getEmbeddedViewArgs",value:function(e,i){var o=e.rowDef,a={$implicit:e.data};return{templateRef:o.template,context:a,index:i}}},{key:"_renderRow",value:function(e,i,o){var a=arguments.length>3&&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,An.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;kl.mostRecentCellOutlet&&kl.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<o;i++){var s=e.get(i).context;s.count=o,s.first=0===i,s.last=i===o-1,s.even=i%2==0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[i].dataIndex,s.renderIndex=i):s.index=this._renderRows[i].dataIndex}}},{key:"_getCellTemplates",value:function(e){var i=this;return e&&e.columns?Array.from(e.columns,function(o){var a=i._columnDefsByName.get(o);return e.extractCellTemplate(a)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),o=0,a=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];o<a.length;o++){var s=a[o],l=this._document.createElement(s.tag);l.setAttribute("role","rowgroup");var d,u=(0,An.Z)(s.outlets);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.appendChild(h.elementRef.nativeElement)}}catch(g){u.e(g)}finally{u.f()}e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(o,a){return o||a.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this,i=this._dir?this._dir.value:"ltr";this._stickyStyler=new vU(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,qn.of)()).pipe((0,Pr.R)(this._onDestroy)).subscribe(function(o){e._stickyStyler.direction=o,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var i=this;return e.filter(function(o){return!o._table||o._table===i})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){var o=this._noDataRowOutlet.viewContainer;if(i){var a=o.createEmbeddedView(e.templateRef),s=a.rootNodes[0];1===a.rootNodes.length&&(null==s?void 0:s.nodeType)===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}}}]),n}();function tg(n,r){return n.concat(Array.from(r))}zc.\u0275fac=function(r){return new(r||zc)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(nl.Is,8),t.Y36(se.K0),t.Y36(bi.t4),t.Y36(Si.k),t.Y36(E1),t.Y36(sa.rL),t.Y36(bE,12),t.Y36(t.R0b,8))},zc.\u0275cmp=t.Xpm({type:zc,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Pu,5),t.Suo(i,rl,5),t.Suo(i,Jl,5),t.Suo(i,dc,5),t.Suo(i,Hc,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._noDataRow=o.first),t.iGM(o=t.CRH())&&(e._contentColumnDefs=o),t.iGM(o=t.CRH())&&(e._contentRowDefs=o),t.iGM(o=t.CRH())&&(e._contentHeaderRowDefs=o),t.iGM(o=t.CRH())&&(e._contentFooterRowDefs=o))},viewQuery:function(r,e){var i;(1&r&&(t.Gf(Yf,7),t.Gf(Kf,7),t.Gf(qf,7),t.Gf(Jf,7)),2&r)&&(t.iGM(i=t.CRH())&&(e._rowOutlet=i.first),t.iGM(i=t.CRH())&&(e._headerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._footerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._noDataRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:Q_,useExisting:zc},{provide:Si.k,useClass:Si.yy},{provide:E1,useClass:Vf},{provide:bE,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(IR),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yf,Kf,qf,Jf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var Wh=function(){function n(r,e){(0,B.Z)(this,n),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,U.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}},{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,i){return e[i]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}}]),n}();Wh.\u0275fac=function(r){return new(r||Wh)(t.Y36(zc,8),t.Y36(mU,8))},Wh.\u0275cmp=t.Xpm({type:Wh,selectors:[["cdk-text-column"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(rl,7),t.Gf(Uc,7),t.Gf(wl,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.columnDef=i.first),t.iGM(i=t.CRH())&&(e.cell=i.first),t.iGM(i=t.CRH())&&(e.headerCell=i.first))},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,pU,2,3,"th",1),t.YNc(2,hU,2,3,"td",2),t.BQk())},dependencies:[Uc,wl,rl,$_,Wf],encapsulation:2});var Qf=(0,U.Z)(function n(){(0,B.Z)(this,n)});Qf.\u0275fac=function(r){return new(r||Qf)},Qf.\u0275mod=t.oAB({type:Qf}),Qf.\u0275inj=t.cJS({imports:[sa.Cl]});var fc=m(520),J=m(3075),Gt=m(508),Tr=m(1159),Xf=m(3753),$r=m(9664),x1=m(7604),ts=m(5778),ng=m(13),Zt=m(1777),D1=["*"],pY=["content"];function hY(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function BR(n,r){1&n&&(t.TgZ(0,"mat-drawer-content"),t.Hsn(1,2),t.qZA())}var FR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function kU(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function CE(n,r){1&n&&(t.TgZ(0,"mat-sidenav-content"),t.Hsn(1,2),t.qZA())}var TU=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],jR={transformDrawer:(0,Zt.X$)("transform",[(0,Zt.SB)("open, open-instant",(0,Zt.oB)({transform:"none",visibility:"visible"})),(0,Zt.SB)("void",(0,Zt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Zt.eR)("void => open-instant",(0,Zt.jt)("0ms")),(0,Zt.eR)("void <=> open, open-instant => void",(0,Zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var wE=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function HR(){return!1}}),A1=new t.OlP("MAT_DRAWER_CONTAINER");var Iu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,U.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(sa.PQ);Iu.\u0275fac=function(r){return new(r||Iu)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return rg})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},Iu.\u0275cmp=t.Xpm({type:Iu,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:sa.PQ,useExisting:Iu}]),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 $f=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,B.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 On.xQ,this._animationEnd=new On.xQ,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe((0,$r.h)(function(h){return h}),(0,$n.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,$r.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,x1.h)(void 0)),this._closedStream=this.openedChange.pipe((0,$r.h)(function(h){return!h}),(0,$n.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,$r.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,x1.h)(void 0)),this._destroyed=new On.xQ,this.onPositionChanged=new t.vpe,this._modeChanged=new On.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,Xf.R)(d._elementRef.nativeElement,"keydown").pipe((0,$r.h)(function(h){return h.keyCode===Tr.hY&&!d.disableClose&&!(0,Tr.Vb)(h)}),(0,Pr.R)(d._destroyed)).subscribe(function(h){return d._ngZone.run(function(){d.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,ts.x)(function(h,g){return h.fromState===g.fromState&&h.toState===g.toState})).subscribe(function(h){var g=h.fromState,y=h.toState;(0===y.indexOf("open")&&"void"===g||"void"===y&&0===g.indexOf("open"))&&d.openedChange.emit(d._opened)})}return(0,U.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,En.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,En.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,En.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,Ri.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}();$f.\u0275fac=function(r){return new(r||$f)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(Yr.tE),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(Yr.ic),t.Y36(se.K0,8),t.Y36(A1,8))},$f.\u0275cmp=t.Xpm({type:$f,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(pY,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:[sa.PQ],encapsulation:2,data:{animation:[jR.transformDrawer]},changeDetection:0});var rg=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,B.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 On.xQ,this._doCheckSubject=new On.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new On.xQ,r&&r.change.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,U.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,En.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,En.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,Oo.O)(this._allDrawers),(0,Pr.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,Oo.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,ng.b)(10),(0,Pr.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,$r.h)(function(o){return o.fromState!==o.toState}),(0,Pr.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,Pr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Pr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Pr.R)((0,Gi.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}();rg.\u0275fac=function(r){return new(r||rg)(t.Y36(nl.Is,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(sa.rL),t.Y36(wE),t.Y36(t.QbO,8))},rg.\u0275cmp=t.Xpm({type:rg,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Iu,5),t.Suo(i,$f,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(Iu,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:A1,useExisting:rg}])],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(FR),t.YNc(0,hY,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,BR,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[se.O5,Iu],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 ep=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){return(0,B.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,U.Z)(e)}(Iu);ep.\u0275fac=function(r){return new(r||ep)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return tp})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},ep.\u0275cmp=t.Xpm({type:ep,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:sa.PQ,useExisting:ep}]),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 ig=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,U.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,En.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,En.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,En.su)(o)}}]),e}($f);ig.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ig)))(e||ig)}}(),ig.\u0275cmp=t.Xpm({type:ig,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:[sa.PQ],encapsulation:2,data:{animation:[jR.transformDrawer]},changeDetection:0});var tp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(rg);tp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tp)))(e||tp)}}(),tp.\u0275cmp=t.Xpm({type:tp,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ep,5),t.Suo(i,ig,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:A1,useExisting:tp}]),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(TU),t.YNc(0,kU,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,CE,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[se.O5,ep],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 pc=(0,U.Z)(function n(){(0,B.Z)(this,n)});pc.\u0275fac=function(r){return new(r||pc)},pc.\u0275mod=t.oAB({type:pc}),pc.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,sa.ZD,sa.ZD,Gt.BQ]});function kE(n){return new t.vHH(3e3,!1)}function XR(n){return new t.vHH(3502,!1)}function ZU(){return new t.vHH(3300,!1)}function NU(n){return new t.vHH(3504,!1)}function P1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vh(n){switch(n.length){case 0:return new Zt.ZN;case 1:return n[0];default:return new Zt.ZE(n)}}function I1(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"),y=g==u,L=y&&d||new Map;h.forEach(function(z,q){var re=q,ae=z;if("offset"!==q)switch(re=r.normalizePropertyName(re,s),ae){case Zt.k1:ae=o.get(q);break;case Zt.l3:ae=a.get(q);break;default:ae=r.normalizeStyleValue(q,re,ae,s)}L.set(re,ae)}),y||l.push(L),d=L,u=g}),s.length)throw XR();return l}function R1(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&ME(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&ME(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&ME(e,"destroy",n))})}}function ME(n,r,e){var i=e.totalTime,o=!!e.disabled,a=L1(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 L1(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 Ru(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function nL(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var np=function(r,e){return!1},rL=function(r,e,i){return[]},Uy=null;function SE(n){var r=n.parentNode||n.host;return r===Uy?null:r}(P1()||"undefined"!=typeof Element)&&(function tL(){return"undefined"!=typeof window&&void 0!==window.document}()?(Uy=function(){return document.documentElement}(),np=function(r,e){for(;e;){if(e===r)return!0;e=SE(e)}return!1}):np=function(r,e){return r.contains(e)},rL=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var rp=null,iL=!1;function og(n){rp||(rp=function kY(){return"undefined"!=typeof document?document.body:null}()||{},iL=!!rp.style&&"WebkitAppearance"in rp.style);var r=!0;rp.style&&!function CY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in rp.style)&&iL)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in rp.style);return r}var oL=np,EE=rL;var ag=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"validateStyleProperty",value:function(e){return og(e)}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return oL(e,i)}},{key:"getParentElement",value:function(e){return SE(e)}},{key:"query",value:function(e,i,o){return EE(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 Zt.ZN(o,a)}}]),n}();ag.\u0275fac=function(r){return new(r||ag)},ag.\u0275prov=t.Yz7({token:ag,factory:ag.\u0275fac});var Tl=(0,U.Z)(function n(){(0,B.Z)(this,n)});Tl.NOOP=new ag;var Wc="ng-enter",xE="ng-leave",sg="ng-trigger",N1=".ng-trigger",aL="ng-animating",jy=".ng-animating";function Vc(n){if("number"==typeof n)return n;var r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:B1(parseFloat(r[1]),r[2])}function B1(n,r){return"s"===r?1e3*n:n}function F1(n,r,e){return n.hasOwnProperty("duration")?n:function sL(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(kE()),{duration:0,delay:0,easing:""};o=B1(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(a=B1(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 TE(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function SU(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,kE())}return{duration:o,delay:a,easing:s}}(n,r,e)}function lg(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 Yh(n){var r=new Map;return Object.keys(n).forEach(function(e){var i=n[e];r.set(e,i)}),r}function Kh(n){return n.length?n[0]instanceof Map?n:n.map(function(r){return Yh(r)}):[]}function Lu(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,An.Z)(e);try{for(i.s();!(o=i.n()).done;){var a=(0,Yn.Z)(o.value,2),s=a[0],l=a[1];r.set(s,l)}}catch(L){i.e(L)}finally{i.f()}}var d,u=(0,An.Z)(n);try{for(u.s();!(d=u.n()).done;){var h=(0,Yn.Z)(d.value,2),g=h[0],y=h[1];r.set(g,y)}}catch(L){u.e(L)}finally{u.f()}return r}function hc(n,r,e){return e?r+":"+e+";":""}function DE(n){for(var r="",e=0;e<n.style.length;e++){var i=n.style.item(e);r+=hc(0,i,n.style.getPropertyValue(i))}for(var o in n.style)if(n.style.hasOwnProperty(o)&&!o.startsWith("_")){r+=hc(0,dL(o),n.style[o])}n.setAttribute("style",r)}function Zu(n,r,e){n.style&&(r.forEach(function(i,o){var a=cL(o);e&&!e.has(o)&&e.set(o,n.style[a]),n.style[a]=i}),P1()&&DE(n))}function il(n,r){n.style&&(r.forEach(function(e,i){var o=cL(i);n.style[o]=""}),P1()&&DE(n))}function Hy(n){return Array.isArray(n)?1==n.length?n[0]:(0,Zt.vP)(n):n}function MY(n,r,e){var i=r.params||{},o=lL(n);o.length&&o.forEach(function(a){i.hasOwnProperty(a)||e.push(function EU(n){return new t.vHH(3001,!1)}())})}var AE=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function lL(n){var r=[];if("string"==typeof n){for(var e;e=AE.exec(n);)r.push(e[1]);AE.lastIndex=0}return r}function Gy(n,r,e){var i=n.toString(),o=i.replace(AE,function(a,s){var l=r[s];return null==l&&(e.push(function gY(n){return new t.vHH(3003,!1)}()),l=""),l.toString()});return o==i?n:o}function U1(n){for(var r=[],e=n.next();!e.done;)r.push(e.value),e=n.next();return r}var uL=/-+([a-z0-9])/g;function cL(n){return n.replace(uL,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}function dL(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function VU(n,r){return 0===n||0===r}function fL(n,r,e){if(e.size&&r.length){var i=r[0],o=[];if(e.forEach(function(l,u){i.has(u)||o.push(u),i.set(u,l)}),o.length)for(var a=function(){var u=r[s];o.forEach(function(d){return u.set(d,j1(n,d))})},s=1;s<r.length;s++)a()}return r}function Nu(n,r,e){switch(r.type){case 7:return n.visitTrigger(r,e);case 0:return n.visitState(r,e);case 1:return n.visitTransition(r,e);case 2:return n.visitSequence(r,e);case 3:return n.visitGroup(r,e);case 4:return n.visitAnimate(r,e);case 5:return n.visitKeyframes(r,e);case 6:return n.visitStyle(r,e);case 8:return n.visitReference(r,e);case 9:return n.visitAnimateChild(r,e);case 10:return n.visitAnimateRef(r,e);case 11:return n.visitQuery(r,e);case 12:return n.visitStagger(r,e);default:throw function xU(n){return new t.vHH(3004,!1)}(r.type)}}function j1(n,r){return window.getComputedStyle(n)[r]}function KU(n,r){var e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(function(i){return function mL(n,r,e){if(":"==n[0]){var i=function _L(n,r){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,i){return parseFloat(i)>parseFloat(e)};case":decrement":return function(e,i){return parseFloat(i)<parseFloat(e)};default:return r.push(function QR(n){return new t.vHH(3016,!1)}()),"* => *"}}(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 JR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(qU(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(qU(l,a))}(i,e,r)}):e.push(n),e}var PE=new Set(["true","1"]),H1=new Set(["false","0"]);function qU(n,r){var e=PE.has(n)||H1.has(n),i=PE.has(r)||H1.has(r);return function(o,a){var s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?PE.has(n):H1.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?PE.has(r):H1.has(r)),s&&l}}var JU=":self",gL=new RegExp("s*".concat(":self","s*,?"),"g");function G1(n,r,e,i){return new QU(n).build(r,e,i)}var QU=function(){function n(r){(0,B.Z)(this,n),this._driver=r}return(0,U.Z)(n,[{key:"build",value:function(e,i,o){var a=new SY(i);return this._resetContextStyleTimingState(a),Nu(this,Hy(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 GR(){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(L){h.name=L,l.push(o.visitState(h,i))}),h.name=g}else if(1==d.type){var y=o.visitTransition(d,i);a+=y.queryCount,s+=y.depCount,u.push(y)}else i.errors.push(function zR(){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){lL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){U1(s.values());i.errors.push(function WR(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=Nu(this,Hy(e.animation),i);return{type:1,matchers:KU(e.expr,i.errors),animation:o,queryCount:i.queryCount,depCount:i.depCount,options:qh(e.options)}}},{key:"visitSequence",value:function(e,i){var o=this;return{type:2,steps:e.steps.map(function(a){return Nu(o,a,i)}),options:qh(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=Nu(o,u,i);return s=Math.max(s,i.currentTime),d});return i.currentTime=s,{type:3,steps:l,options:qh(e.options)}}},{key:"visitAnimate",value:function(e,i){var o=function xY(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return Vy(F1(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=Vy(0,0,"");return a.dynamic=!0,a.strValue=i,a}var s=F1(i,r);return Vy(s.duration,s.delay,s.easing)}(e.timings,i.errors);i.currentAnimateTimings=o;var a,s=e.styles?e.styles:(0,Zt.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,Zt.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,An.Z)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value;"string"==typeof u?u===Zt.l3?o.push(u):i.errors.push(new t.vHH(3002,!1)):o.push(Yh(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 L,y=(0,An.Z)(g.values());try{for(y.s();!(L=y.n()).done;){if(L.value.toString().indexOf("{{")>=0){d=!0;break}}}catch(q){y.e(q)}finally{y.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),y=g.get(h),L=!0;y&&(l!=s&&l>=y.startTime&&s<=y.endTime&&(i.errors.push(function VR(n,r,e,i,o){return new t.vHH(3010,!1)}(0,y.startTime,y.endTime)),L=!1),l=y.startTime),L&&g.set(h,{startTime:l,endTime:s}),i.options&&MY(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 PU(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,y=e.steps.map(function(Ce){var Ee=o._makeStyleAst(Ce,i),Ke=null!=Ee.offset?Ee.offset:function EY(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),st=0;return null!=Ke&&(l++,st=Ee.offset=Ke),h=h||st<0||st>1,d=d||st<g,g=st,u.push(st),Ee});h&&i.errors.push(function IU(){return new t.vHH(3012,!1)}()),d&&i.errors.push(function YR(){return new t.vHH(3200,!1)}());var L=e.steps.length,z=0;l>0&&l<L?i.errors.push(function RU(){return new t.vHH(3202,!1)}()):0==l&&(z=1/(L-1));var q=L-1,re=i.currentTime,ae=i.currentAnimateTimings,Se=ae.duration;return y.forEach(function(Ce,Ee){var Ke=z>0?Ee==q?1:z*Ee:u[Ee],st=Ke*Se;i.currentTime=re+ae.delay+st,ae.duration=st,o._validateStyleAst(Ce,i),Ce.offset=Ke,a.styles.push(Ce)}),a}},{key:"visitReference",value:function(e,i){return{type:8,animation:Nu(this,Hy(e.animation),i),options:qh(e.options)}}},{key:"visitAnimateChild",value:function(e,i){return i.depCount++,{type:9,options:qh(e.options)}}},{key:"visitAnimateRef",value:function(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:qh(e.options)}}},{key:"visitQuery",value:function(e,i){var o=i.currentQuerySelector,a=e.options||{};i.queryCount++,i.currentQuery=e;var s=function XU(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==JU});return r&&(n=n.replace(gL,"")),n=n.replace(/@\*/g,N1).replace(/@\w+/g,function(e){return N1+"-"+e.slice(1)}).replace(/:animating/g,jy),[n,r]}(e.selector),l=(0,Yn.Z)(s,2),u=l[0],d=l[1];i.currentQuerySelector=o.length?o+" "+u:u,Ru(i.collectedStyles,i.currentQuerySelector,new Map);var h=Nu(this,Hy(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:qh(e.options)}}},{key:"visitStagger",value:function(e,i){i.currentQuery||i.errors.push(function KR(){return new t.vHH(3013,!1)}());var o="full"===e.timings?{duration:0,delay:0,easing:"full"}:F1(e.timings,i.errors,!0);return{type:12,animation:Nu(this,Hy(e.animation),i),timings:o,options:null}}}]),n}();var SY=(0,U.Z)(function n(r){(0,B.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 qh(n){return n?(n=lg(n)).params&&(n.params=function $U(n){return n?lg(n):null}(n.params)):n={},n}function Vy(n,r,e){return{duration:n,delay:r,easing:e}}function yL(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 IE=function(){function n(){(0,B.Z)(this,n),this._map=new Map}return(0,U.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,cn.Z)(i))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),n}(),bL=new RegExp(":enter","g"),LE=new RegExp(":leave","g");function e7(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 ZE).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var ZE=function(){function n(){(0,B.Z)(this,n)}return(0,U.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 IE;var y=new CL(e,i,h,a,s,g,[]);y.options=d;var L=d.delay?Vc(d.delay):0;y.currentTimeline.delayNextStep(L),y.currentTimeline.setStyles([l],null,y.errors,d),Nu(this,o,y);var z=y.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,y.errors,d)}return z.length?z.map(function(Se){return Se.buildKeyframes()}):[yL(i,[],[],[],0,L,"",!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,An.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:Vc(Gy(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?Vc(o.duration):null,u=null!=o.delay?Vc(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),Nu(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=ug);var u=Vc(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(d){return Nu(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?Vc(e.options.delay):0;e.steps.forEach(function(u){var d=i.createSubContext(e.options);l&&d.delayNextStep(l),Nu(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 F1(i.params?Gy(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?Vc(s.delay):0;l&&(6===i.previousNode.type||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ug);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,y){i.currentQueryIndex=y;var L=i.createSubContext(e.options,g);l&&L.delayNextStep(l),g===i.element&&(h=L.currentTimeline),Nu(o,e.animation,L),L.currentTimeline.applyStylesToKeyframe();var z=L.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 y=g.currentTime;Nu(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-y+(a.startTime-o.currentTimeline.startTime)}}]),n}(),ug={},CL=function(){function n(r,e,i,o,a,s,l,u){(0,B.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=ug,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new t7(this._driver,e,0),l.push(this.currentTimeline)}return(0,U.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=Vc(a.duration)),null!=a.delay&&(s.delay=Vc(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]=Gy(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=ug,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 AY(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(bL,"."+this._enterClassName)).replace(LE,"."+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,cn.Z)(h))}return!s&&0==u.length&&l.push(function qR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),t7=function(){function n(r,e,i,o){(0,B.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,U.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,An.Z)(this._globalTimelineStyles);try{for(i.s();!(o=i.n()).done;){var a=(0,Yn.Z)(o.value,2),s=a[0],l=a[1];this._backFill.set(s,l||Zt.l3),this._currentKeyframe.set(s,Zt.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 OY(n,r){var i,e=new Map;return n.forEach(function(o){if("*"===o){i=i||r.keys();var s,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.set(l,Zt.l3)}}catch(u){a.e(u)}finally{a.f()}}else Lu(o,e)}),e}(e,this._globalTimelineStyles),d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=(0,Yn.Z)(h.value,2),y=g[0],z=Gy(g[1],l,o);this._pendingStyles.set(y,z),this._localTimelineStyles.has(y)||this._backFill.set(y,null!==(s=this._globalTimelineStyles.get(y))&&void 0!==s?s:Zt.l3),this._updateStyle(y,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,An.Z)(this._localTimelineStyles);try{for(e.s();!(i=e.n()).done;){var o=(0,Yn.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,y){var L=Lu(g,new Map,e._backFill);L.forEach(function(z,q){z===Zt.k1?i.add(q):z===Zt.l3&&o.add(q)}),a||L.set("offset",y/e.duration),s.push(L)});var l=i.size?U1(i.values()):[],u=o.size?U1(o.values()):[];if(a){var d=s[0],h=new Map(d);d.set("offset",0),h.set("offset",1),s=[d,h]}return yL(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),AY=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,B.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,U.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,y=Lu(o[0]);y.set("offset",0),d.push(y);var L=Lu(o[0]);L.set("offset",n7(g)),d.push(L);for(var z=o.length-1,q=1;q<=z;q++){var re=Lu(o[q]),Se=s+re.get("offset")*l;re.set("offset",n7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return yL(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(t7);function n7(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 NE=(0,U.Z)(function n(){(0,B.Z)(this,n)}),i7=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"]),o7=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return cL(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(i7.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 DU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(NE);function BE(n,r,e,i,o,a,s,l,u,d,h,g,y){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:y}}var z1={},FE=function(){function n(r,e,i){(0,B.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,U.Z)(n,[{key:"match",value:function(e,i,o,a){return function a7(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 y,L=[],z=this.ast.options&&this.ast.options.params||z1,q=u&&u.params||z1,re=this.buildStyles(o,q,L),ae=d&&d.params||z1,Se=this.buildStyles(a,ae,L),Ce=new Set,Ee=new Map,Ke=new Map,st="void"===a,De={params:wL(ae,z),delay:null===(y=this.ast.options)||void 0===y?void 0:y.delay},it=g?[]:e7(e,i,this.ast.animation,s,l,re,Se,De,h,L),ft=0;if(it.forEach(function($e){ft=Math.max($e.duration+$e.delay,ft)}),L.length)return BE(i,this._triggerName,o,a,st,re,Se,[],[],Ee,Ke,ft,L);it.forEach(function($e){var Ie=$e.element,ct=Ru(Ee,Ie,new Set);$e.preStyleProps.forEach(function(jt){return ct.add(jt)});var Bt=Ru(Ke,Ie,new Set);$e.postStyleProps.forEach(function(jt){return Bt.add(jt)}),Ie!==i&&Ce.add(Ie)});var bt=U1(Ce.values());return BE(i,this._triggerName,o,a,st,re,Se,it,bt,Ee,Ke,ft)}}]),n}();function wL(n,r){var e=lg(r);for(var i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}var Yy=function(){function n(r,e,i){(0,B.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,U.Z)(n,[{key:"buildStyles",value:function(e,i){var o=this,a=new Map,s=lg(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=Gy(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 kL=function(){function n(r,e,i){var o=this;(0,B.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 Yy(a.style,s,i))}),TL(this.states,"true","1"),TL(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new FE(r,a,o.states))}),this.fallbackTransition=function Ky(n,r,e){return new FE(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,U.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 TL(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 s7=new IE,LY=function(){function n(r,e,i){(0,B.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,U.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=G1(this._driver,i,o,a);if(o.length)throw function $R(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=I1(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=e7(this._driver,i,l,Wc,xE,new Map,new Map,a,s7,s)).forEach(function(y){var L=Ru(d,y.element,new Map);y.postStyleProps.forEach(function(z){return L.set(z,null)})}):(s.push(ZU()),u=[]),s.length)throw NU();d.forEach(function(y,L){y.forEach(function(z,q){y.set(q,o._driver.computeStyle(L,q,Zt.l3))})});var h=u.map(function(y){var L=d.get(y.element);return o._buildPlayer(y,new Map,L)}),g=Vh(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 BU(n){return new t.vHH(3301,!1)}();return i}},{key:"listen",value:function(e,i,o,a){var s=L1(i,"","","");return R1(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}(),l7="ng-animate-queued",op="ng-animate-disabled",ZY="ng-star-inserted",BY=[],d7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bu="__ng_removed",ML=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,B.Z)(this,n),this.namespaceId=e;var i=r&&r.hasOwnProperty("value"),o=i?r.value:r;if(this.value=f(o),i){var a=lg(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,U.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}(),W1="void",SL=new ML(W1),UY=function(){function n(r,e,i){(0,B.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,ee(e,this._hostClassName)}return(0,U.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function FU(n,r){return new t.vHH(3302,!1)}();if(null==o||0==o.length)throw function UU(n){return new t.vHH(3303,!1)}();if(!function _(n){return"start"==n||"done"==n}(o))throw function jU(n,r){return new t.vHH(3400,!1)}();var l=Ru(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=Ru(this._engine.statesByElement,e,new Map);return d.has(i)||(ee(e,sg),ee(e,sg+"-"+i),d.set(i,SL)),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 HU(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 EL(this.id,i,e),d=this._engine.statesByElement.get(e);d||(ee(e,sg),ee(e,sg+"-"+i),this._engine.statesByElement.set(e,d=new Map));var h=d.get(i),g=new ML(o,this.id),y=o&&o.hasOwnProperty("value");!y&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=SL);var L=g.value===W1;if(L||h.value!==g.value){var ae=Ru(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||(ee(e,l7),u.onStart(function(){oe(e,l7)})),u.onDone(function(){var Ee=a.players.indexOf(u);Ee>=0&&a.players.splice(Ee,1);var Ke=a._engine.playersByElement.get(e);if(Ke){var st=Ke.indexOf(u);st>=0&&Ke.splice(st,1)}}),this.players.push(u),ae.push(u),u}if(!dt(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(){il(e,q),Zu(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,N1,!0);a.forEach(function(s){if(!s[Bu]){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 y=s.trigger(e,g,W1,a);y&&d.push(y)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,u),o&&Vh(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)||SL,y=new ML(W1),L=new EL(i.id,u,e);i._engine.totalQueuedPlayers++,i._queue.push({element:e,triggerName:u,transition:h,fromState:g,toState:y,player:L,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[Bu];(!h||h===d7)&&(a.afterFlush(function(){return o.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,i))}}}},{key:"insertNode",value:function(e,i){ee(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=L1(l,a.triggerName,a.fromState.value,a.toState.value);h._data=e,R1(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}(),jY=function(){function n(r,e,i){(0,B.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,U.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 UY(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,An.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(p(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(p(i)){var s=i[Bu];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),ee(e,op)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oe(e,op))}},{key:"removeNode",value:function(e,i,o,a){if(p(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[Bu]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:s}}},{key:"listen",value:function(e,i,o,a,s){return p(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,N1,!0);o.forEach(function(a){return i.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(o=this.driver.query(e,jy,!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 Vh(e.players).onDone(function(){return i()});i()})}},{key:"processLeaveNode",value:function(e){var o,i=this,a=e[Bu];if(a&&a.setForRemoval){if(e[Bu]=d7,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(op)&&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(y,L){return e._balanceNamespaceList(y,L)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a<this.collectedEnterElements.length;a++){var s=this.collectedEnterElements[a];ee(s,ZY)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var l=[];try{o=this._flushAnimations(l,i)}finally{for(var u=0;u<l.length;u++)l[u]()}}else for(var d=0;d<this.collectedLeaveElements.length;d++){var h=this.collectedLeaveElements[d];this.processLeaveNode(h)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(y){return y()}),this._flushFns=[],this._whenQuietFns.length){var g=this._whenQuietFns;this._whenQuietFns=[],o.length?Vh(o).onDone(function(){g.forEach(function(y){return y()})}):g.forEach(function(y){return y()})}}},{key:"reportError",value:function(e){throw function O1(n){return new t.vHH(3402,!1)}()}},{key:"_flushAnimations",value:function(e,i){var o=this,a=new IE,s=[],l=new Map,u=[],d=new Map,h=new Map,g=new Map,y=new Set;this.disabledNodes.forEach(function(bn){y.add(bn);for(var Nn=o.driver.query(bn,".ng-animate-queued",!0),rr=0;rr<Nn.length;rr++)y.add(Nn[rr])});var L=this.bodyNode,z=Array.from(this.statesByElement.keys()),q=Y(z,this.collectedEnterElements),re=new Map,ae=0;q.forEach(function(bn,Nn){var rr=Wc+ae++;re.set(Nn,rr),bn.forEach(function(gr){return ee(gr,rr)})});for(var Se=[],Ce=new Set,Ee=new Set,Ke=0;Ke<this.collectedLeaveElements.length;Ke++){var st=this.collectedLeaveElements[Ke],De=st[Bu];De&&De.setForRemoval&&(Se.push(st),Ce.add(st),De.hasAnimation?this.driver.query(st,".ng-star-inserted",!0).forEach(function(bn){return Ce.add(bn)}):Ee.add(st))}var it=new Map,ft=Y(z,Array.from(Ce));ft.forEach(function(bn,Nn){var rr=xE+ae++;it.set(Nn,rr),bn.forEach(function(gr){return ee(gr,rr)})}),e.push(function(){q.forEach(function(bn,Nn){var rr=re.get(Nn);bn.forEach(function(gr){return oe(gr,rr)})}),ft.forEach(function(bn,Nn){var rr=it.get(Nn);bn.forEach(function(gr){return oe(gr,rr)})}),Se.forEach(function(bn){o.processLeaveNode(bn)})});for(var bt=[],$e=[],Ie=this._namespaceList.length-1;Ie>=0;Ie--){this._namespaceList[Ie].drainQueuedTransitions(i).forEach(function(bn){var Nn=bn.player,rr=bn.element;if(bt.push(Nn),o.collectedEnterElements.length){var gr=rr[Bu];if(gr&&gr.setForMove){if(gr.previousTriggersValues&&gr.previousTriggersValues.has(bn.triggerName)){var eo=gr.previousTriggersValues.get(bn.triggerName),Xu=o.statesByElement.get(bn.element);if(Xu&&Xu.has(bn.triggerName)){var Dv=Xu.get(bn.triggerName);Dv.value=eo,Xu.set(bn.triggerName,Dv)}}return void Nn.destroy()}}var Av=!L||!o.driver.containsElement(L,rr),Qm=it.get(rr),cC=re.get(rr),Ia=o._buildInstruction(bn,a,cC,Qm,Av);if(Ia.errors&&Ia.errors.length)$e.push(Ia);else{if(Av)return Nn.onStart(function(){return il(rr,Ia.fromStyles)}),Nn.onDestroy(function(){return Zu(rr,Ia.toStyles)}),void s.push(Nn);if(bn.isFallbackTransition)return Nn.onStart(function(){return il(rr,Ia.fromStyles)}),Nn.onDestroy(function(){return Zu(rr,Ia.toStyles)}),void s.push(Nn);var CI=[];Ia.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||CI.push(th)}),Ia.timelines=CI,a.append(rr,Ia.timelines);var WW={instruction:Ia,player:Nn,element:rr};u.push(WW),Ia.queriedElements.forEach(function(th){return Ru(d,th,[]).push(Nn)}),Ia.preStyleProps.forEach(function(th,wI){if(th.size){var dC=h.get(wI);dC||h.set(wI,dC=new Set),th.forEach(function(V$e,VW){return dC.add(VW)})}}),Ia.postStyleProps.forEach(function(th,wI){var dC=g.get(wI);dC||g.set(wI,dC=new Set),th.forEach(function(V$e,VW){return dC.add(VW)})})}})}if($e.length){var Bt=[];$e.forEach(function(bn){Bt.push(function eL(n,r){return new t.vHH(3505,!1)}(bn.triggerName,bn.errors))}),bt.forEach(function(bn){return bn.destroy()}),this.reportError(Bt)}var jt=new Map,It=new Map;u.forEach(function(bn){var Nn=bn.element;a.has(Nn)&&(It.set(Nn,Nn),o._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,jt))}),s.forEach(function(bn){var Nn=bn.element;o._getPreviousPlayers(Nn,!1,bn.namespaceId,bn.triggerName,null).forEach(function(gr){Ru(jt,Nn,[]).push(gr),gr.destroy()})});var Tn=Se.filter(function(bn){return kt(bn,h,g)}),Hn=new Map;O(Hn,this.driver,Ee,g,Zt.l3).forEach(function(bn){kt(bn,h,g)&&Tn.push(bn)});var ar=new Map;q.forEach(function(bn,Nn){O(ar,o.driver,new Set(bn),h,Zt.k1)}),Tn.forEach(function(bn){var Nn,rr,gr=Hn.get(bn),eo=ar.get(bn);Hn.set(bn,new Map([].concat((0,cn.Z)(Array.from(null!==(Nn=null==gr?void 0:gr.entries())&&void 0!==Nn?Nn:[])),(0,cn.Z)(Array.from(null!==(rr=null==eo?void 0:eo.entries())&&void 0!==rr?rr:[])))))});var kr=[],_r=[],Wr={};u.forEach(function(bn){var Nn=bn.element,rr=bn.player,gr=bn.instruction;if(a.has(Nn)){if(y.has(Nn))return rr.onDestroy(function(){return Zu(Nn,gr.toStyles)}),rr.disabled=!0,rr.overrideTotalTime(gr.totalTime),void s.push(rr);var eo=Wr;if(It.size>1){for(var Xu=Nn,Dv=[];Xu=Xu.parentNode;){var Av=It.get(Xu);if(Av){eo=Av;break}Dv.push(Xu)}Dv.forEach(function(Ia){return It.set(Ia,eo)})}var Qm=o._buildAnimation(rr.namespaceId,gr,jt,l,ar,Hn);if(rr.setRealPlayer(Qm),eo===Wr)kr.push(rr);else{var cC=o.playersByElement.get(eo);cC&&cC.length&&(rr.parentPlayer=Vh(cC)),s.push(rr)}}else il(Nn,gr.fromStyles),rr.onDestroy(function(){return Zu(Nn,gr.toStyles)}),_r.push(rr),y.has(Nn)&&s.push(rr)}),_r.forEach(function(bn){var Nn=l.get(bn.element);if(Nn&&Nn.length){var rr=Vh(Nn);bn.setRealPlayer(rr)}}),s.forEach(function(bn){bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(var jr=0;jr<Se.length;jr++){var Kr=Se[jr],jo=Kr[Bu];if(oe(Kr,xE),!jo||!jo.hasAnimation){var tr=[];if(d.size){var br=d.get(Kr);br&&br.length&&tr.push.apply(tr,(0,cn.Z)(br));for(var Mn=this.driver.query(Kr,jy,!0),gn=0;gn<Mn.length;gn++){var nr=d.get(Mn[gn]);nr&&nr.length&&tr.push.apply(tr,(0,cn.Z)(nr))}}var un=tr.filter(function(bn){return!bn.destroyed});un.length?ve(this,Kr,un):this.processLeaveNode(Kr)}}return Se.length=0,kr.forEach(function(bn){o.players.push(bn),bn.onDone(function(){bn.destroy();var Nn=o.players.indexOf(bn);o.players.splice(Nn,1)}),bn.play()}),kr}},{key:"elementContainsData",value:function(e,i){var o=!1,a=i[Bu];return a&&a.setForRemoval&&(o=!0),this.playersByElement.has(i)&&(o=!0),this.playersByQueriedElement.has(i)&&(o=!0),this.statesByElement.has(i)&&(o=!0),this._fetchNamespace(e).elementContainsData(i)||o}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,i,o,a,s){var l=[];if(i){var u=this.playersByQueriedElement.get(e);u&&(l=u)}else{var d=this.playersByElement.get(e);if(d){var h=!s||s==W1;d.forEach(function(g){g.queued||!h&&g.triggerName!=a||l.push(g)})}}return(o||a)&&(l=l.filter(function(g){return!(o&&o!=g.namespaceId||a&&a!=g.triggerName)})),l}},{key:"_beforeAnimationBuild",value:function(e,i,o){var g,a=this,s=i.triggerName,l=i.element,u=i.isRemovalTransition?void 0:e,d=i.isRemovalTransition?void 0:s,h=(0,An.Z)(i.timelines);try{var y=function(){var q=g.value.element,re=q!==l,ae=Ru(o,q,[]);a._getPreviousPlayers(q,re,u,d,i.toState).forEach(function(Ce){var Ee=Ce.getRealPlayer();Ee.beforeDestroy&&Ee.beforeDestroy(),Ce.destroy(),ae.push(Ce)})};for(h.s();!(g=h.n()).done;)y()}catch(L){h.e(L)}finally{h.f()}il(l,i.fromStyles)}},{key:"_buildAnimation",value:function(e,i,o,a,s,l){var u=this,d=i.triggerName,h=i.element,g=[],y=new Set,L=new Set,z=i.timelines.map(function(re){var ae=re.element;y.add(ae);var Se=ae[Bu];if(Se&&Se.removedBeforeQueried)return new Zt.ZN(re.duration,re.delay);var Ce=ae!==h,Ee=function je(n){var r=[];return nt(n,r),r}((o.get(ae)||BY).map(function(bt){return bt.getRealPlayer()})).filter(function(bt){var $e=bt;return!!$e.element&&$e.element===ae}),Ke=s.get(ae),st=l.get(ae),De=I1(u.driver,u._normalizer,ae,re.keyframes,Ke,st),it=u._buildPlayer(re,De,Ee);if(re.subTimeline&&a&&L.add(ae),Ce){var ft=new EL(e,d,ae);ft.setRealPlayer(it),g.push(ft)}return it});g.forEach(function(re){Ru(u.playersByQueriedElement,re.element,[]).push(re),re.onDone(function(){return function c(n,r,e){var i=n.get(r);if(i){if(i.length){var o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(r)}return i}(u.playersByQueriedElement,re.element,re)})}),y.forEach(function(re){return ee(re,aL)});var q=Vh(z);return q.onDestroy(function(){y.forEach(function(re){return oe(re,aL)}),Zu(h,i.toStyles)}),L.forEach(function(re){Ru(a,re,[]).push(q)}),q}},{key:"_buildPlayer",value:function(e,i,o){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,o):new Zt.ZN(e.duration,e.delay)}}]),n}(),EL=function(){function n(r,e,i){(0,B.Z)(this,n),this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new Zt.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,U.Z)(n,[{key:"setRealPlayer",value:function(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(function(i,o){i.forEach(function(a){return R1(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){Ru(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 f(n){return null!=n?n:null}function p(n){return n&&1===n.nodeType}function C(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function O(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(C(u))});var s=[];i.forEach(function(u,d){var h=new Map;u.forEach(function(g){var y=r.computeStyle(d,g,o);h.set(g,y),(!y||0==y.length)&&(d[Bu]=FY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return C(u,a[l++])}),s}function Y(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 ee(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function oe(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function ve(n,r,e){Vh(e).onDone(function(){return n.processLeaveNode(r)})}function nt(n,r){for(var e=0;e<n.length;e++){var i=n[e];i instanceof Zt.ZE?nt(i.players,r):r.push(i)}}function dt(n,r){var e=Object.keys(n),i=Object.keys(r);if(e.length!=i.length)return!1;for(var o=0;o<e.length;o++){var a=e[o];if(!r.hasOwnProperty(a)||n[a]!==r[a])return!1}return!0}function kt(n,r,e){var i=e.get(n);if(!i)return!1;var o=r.get(n);return o?i.forEach(function(a){return o.add(a)}):r.set(n,i),e.delete(n),!0}var Xt=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(a,s){},this._transitionEngine=new jY(r,e,i),this._timelineEngine=new LY(r,e,i),this._transitionEngine.onRemovalComplete=function(a,s){return o.onRemovalComplete(a,s)}}return(0,U.Z)(n,[{key:"registerTrigger",value:function(e,i,o,a,s){var l=e+"-"+a,u=this._triggerCache[l];if(!u){var d=[],h=[],g=G1(this._driver,s,d,h);if(d.length)throw function LU(n,r){return new t.vHH(3404,!1)}();h.length,u=function RY(n,r,e){return new kL(n,r,e)}(a,g,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(i,a,u)}},{key:"register",value:function(e,i){this._transitionEngine.register(e,i)}},{key:"destroy",value:function(e,i){this._transitionEngine.destroy(e,i)}},{key:"onInsert",value:function(e,i,o,a){this._transitionEngine.insertNode(e,i,o,a)}},{key:"onRemove",value:function(e,i,o,a){this._transitionEngine.removeNode(e,i,a||!1,o)}},{key:"disableAnimations",value:function(e,i){this._transitionEngine.markElementAsDisabled(e,i)}},{key:"process",value:function(e,i,o,a){if("@"==o.charAt(0)){var s=nL(o),l=(0,Yn.Z)(s,2),u=l[0],d=l[1],h=a;this._timelineEngine.command(u,i,d,h)}else this._transitionEngine.trigger(e,i,o,a)}},{key:"listen",value:function(e,i,o,a,s){if("@"==o.charAt(0)){var l=nL(o),u=(0,Yn.Z)(l,2),d=u[0],h=u[1];return this._timelineEngine.listen(d,i,h,s)}return this._transitionEngine.listen(e,i,o,a,s)}},{key:"flush",value:function(){var e=arguments.length>0&&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 _n(n,r){var e=null,i=null;return Array.isArray(r)&&r.length?(e=Jn(r[0]),r.length>1&&(i=Jn(r[r.length-1]))):r instanceof Map&&(e=Jn(r)),e||i?new Fn(n,e,i):null}var Fn=function(){function n(r,e,i){(0,B.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,U.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Zu(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Zu(this._element,this._initialStyles),this._endStyles&&(Zu(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&&(il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(il(this._element,this._endStyles),this._endStyles=null),Zu(this._element,this._initialStyles),this._state=3)}}]),n}();function Jn(n){var r=null;return n.forEach(function(e,i){(function er(n){return"display"===n||"position"===n})(i)&&(r=r||new Map).set(i,e)}),r}Fn.initialStylesByElement=new WeakMap;var Cn=function(){function n(r,e,i,o){(0,B.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,U.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:j1(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}(),Or=function(){function n(){(0,B.Z)(this,n)}return(0,U.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 oL(e,i)}},{key:"getParentElement",value:function(e){return SE(e)}},{key:"query",value:function(e,i,o){return EE(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 Cn});VU(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var y=Kh(i).map(function(z){return Lu(z)}),L=_n(e,y=fL(e,y,h));return new Cn(e,y,d,L)}}]),n}(),ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;(0,B.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,U.Z)(e,[{key:"build",value:function(o){var a=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(o)?(0,Zt.vP)(o):o;return Bs(this._renderer,null,a,"register",[s]),new Ei(a,this._renderer)}}]),e}(Zt._j);ei.\u0275fac=function(r){return new(r||ei)(t.LFG(t.FYo),t.LFG(se.K0))},ei.\u0275prov=t.Yz7({token:ei,factory:ei.\u0275fac});var Ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,U.Z)(e,[{key:"create",value:function(o,a){return new ms(this._id,o,a||{},this._renderer)}}]),e}(Zt.LC),ms=function(){function n(r,e,i,o){(0,B.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,U.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<i;a++)o[a-1]=arguments[a];return Bs(this._renderer,this.element,this.id,e,o)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,i;return null!==(i=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==i?i:0}}]),n}();function Bs(n,r,e,i,o){return n.setProperty(r,"@@".concat(e,":").concat(i),o)}var Bd="@.disabled",Kc=function(){function n(r,e,i){(0,B.Z)(this,n),this.delegate=r,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(o,a){var s=null==a?void 0:a.parentNode(o);s&&a.removeChild(s,o)}}return(0,U.Z)(n,[{key:"createRenderer",value:function(e,i){var o=this,s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){var l=this._rendererCache.get(s);if(!l){l=new cg("",s,this.engine,function(){return o._rendererCache.delete(s)}),this._rendererCache.set(s,l)}return l}var d=i.id,h=i.id+"-"+this._currentId;this._currentId++,this.engine.register(h,e);return i.data.animation.forEach(function L(z){Array.isArray(z)?z.forEach(L):o.engine.registerTrigger(d,h,e,z.name,z)}),new qy(this,h,s,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,i,o){var a=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return i(o)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(s){var l=(0,Yn.Z)(s,2);(0,l[0])(l[1])}),a._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),n}();Kc.\u0275fac=function(r){return new(r||Kc)(t.LFG(t.FYo),t.LFG(Xt),t.LFG(t.R0b))},Kc.\u0275prov=t.Yz7({token:Kc,factory:Kc.\u0275fac});var cg=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.namespaceId=r,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?function(a){return e.destroyNode(a)}:null}return(0,U.Z)(n,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(e=this._onDestroy)||void 0===e||e.call(this)}},{key:"createElement",value:function(e,i){return this.delegate.createElement(e,i)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}},{key:"insertBefore",value:function(e,i,o){var a=!(arguments.length>3&&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==Bd?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}(),qy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,U.Z)(e,[{key:"setProperty",value:function(o,a,s){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Bd?(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 dg(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 Jy(n){var r=n.indexOf("."),e=n.substring(0,r),i=n.slice(r+1);return[e,i]}(d),y=(0,Yn.Z)(g,2);d=y[0],h=y[1]}return this.engine.listen(this.namespaceId,u,d,h,function(L){var z=L._data||-1;l.factory.scheduleListenerCallback(z,s,L)})}return this.delegate.listen(o,a,s)}}]),e}(cg);var ap=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){return(0,B.Z)(this,e),r.call(this,i.body,o,a)}return(0,U.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(Xt);ap.\u0275fac=function(r){return new(r||ap)(t.LFG(se.K0),t.LFG(Tl),t.LFG(NE),t.LFG(t.z2F))},ap.\u0275prov=t.Yz7({token:ap,factory:ap.\u0275fac});var HY=[{provide:Zt._j,useClass:ei},{provide:NE,useFactory:function Sue(){return new o7}},{provide:Xt,useClass:ap},{provide:t.FYo,useFactory:function Eue(n,r,e){return new Kc(n,r,e)},deps:[Ye,Xt,t.R0b]}],f7=[{provide:Tl,useFactory:function(){return new Or}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(HY),p7=[{provide:Tl,useClass:ag},{provide:t.QbO,useValue:"NoopAnimations"}].concat(HY),V1=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?p7:f7}}}]),n}();V1.\u0275fac=function(r){return new(r||V1)},V1.\u0275mod=t.oAB({type:V1}),V1.\u0275inj=t.cJS({providers:f7,imports:[na]});var UE=(0,U.Z)(function n(){(0,B.Z)(this,n)});UE.\u0275fac=function(r){return new(r||UE)},UE.\u0275mod=t.oAB({type:UE}),UE.\u0275inj=t.cJS({providers:p7,imports:[na]});var xue=m(839),Y1=m(6053),_s=m(1709),K1=m(8117),h7=m(2821),Due=m(3906),GY=m(519);function m7(n,r){return n=function Aue(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;s<o;s++)a[s]=i[s];return!!n.apply(this,a)}:n?function(){return!0}:function(){return!1}}var _7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},zY=function(r){return null!=r&&"object"===(void 0===r?"undefined":_7(r))&&1===r.nodeType&&"object"===_7(r.style)&&"object"===_7(r.ownerDocument)};function WY(n,r){if(r=v7(r,!0),!zY(r))return-1;for(var e=0;e<n.length;e++)if(n[e]===r)return e;return-1}function g7(n,r){return-1!==WY(n,r)}function Oue(n,r){for(var e=0;e<r.length;e++)g7(n,r[e])||n.push(r[e]);return r}function Pue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Oue(n,e=e.map(v7))}function Iue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(v7).reduce(function(o,a){var s=WY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function v7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!zY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function VY(n){if(n===window)return function Lue(){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,y7=void 0;"function"!=typeof Object.create?(r=function(){},y7=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}):y7=Object.create;var Nue=y7,Qy=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function b7(n,r){r=r||{};for(var e=Nue(n),i=0;i<Qy.length;i++)void 0!==r[Qy[i]]&&(e[Qy[i]]=r[Qy[i]]);return e}function C7(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var jE=["webkit","moz","ms","o"],HE=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=jE.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[jE[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var o=(new Date).getTime(),a=Math.max(0,16-o-e),s=window.setTimeout(function(){return i(o+a)},a);return e=o+a,s}}return window.requestAnimationFrame.bind(window)}(),q1=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=jE.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[jE[n]+"CancelAnimationFrame"]||window[jE[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function Fue(n,r){void 0===r&&(r={});var e=this,i=4,o=!1;if("object"!=typeof r.margin){var a=r.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=r.margin;this.scrollWhenOutside=r.scrollWhenOutside||!1;var s={},l=function Rue(n,r){var e=m7((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,n.target=o.target||o.srcElement||o.originalTarget,n.element=this,n.type=o.type,e(o)){if(o.targetTouches)n.x=o.targetTouches[0].clientX,n.y=o.targetTouches[0].clientY,n.pageX=o.targetTouches[0].pageX,n.pageY=o.targetTouches[0].pageY,n.screenX=o.targetTouches[0].screenX,n.screenY=o.targetTouches[0].screenY;else{if(null===o.pageX&&null!==o.clientX){var a=o.target&&o.target.ownerDocument||document,s=a.documentElement,l=a.body;n.pageX=o.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),n.pageY=o.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}else n.pageX=o.pageX,n.pageY=o.pageY;n.x=o.clientX,n.y=o.clientY,n.screenX=o.screenX,n.screenY=o.screenY}n.clientX=n.x,n.clientY=n.y}}}(s),u=function Bue(n){var r={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(a){for(var s=0;s<Qy.length;s++)r[Qy[s]]=a[Qy[s]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function o(){n&&n.removeEventListener("mousemove",e,!1),r=null},dispatch:MouseEvent?function(s,l,u){var d=new MouseEvent("mousemove",b7(r,l));return C7(d,u),s.dispatchEvent(d)}:"function"==typeof document.createEvent?function(s,l,u){var d=b7(r,l),h=document.createEvent("MouseEvents");return h.initMouseEvent("mousemove",!0,!0,window,0,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget),C7(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var d=document.createEventObject(),h=b7(r,l);for(var g in h)d[g]=h[g];return C7(d,u),s.dispatchEvent(d)}:void 0}}(),d=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(r.maxSpeed)||(i=r.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=m7(r.autoScroll),this.syncMove=m7(r.syncMove,!1),this.destroy=function($e){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",q,!1),window.removeEventListener("touchstart",q,!1),window.removeEventListener("mouseup",re,!1),window.removeEventListener("touchend",re,!1),window.removeEventListener("pointerup",re,!1),window.removeEventListener("mouseleave",Se,!1),window.removeEventListener("mousemove",Ke,!1),window.removeEventListener("touchmove",Ke,!1),window.removeEventListener("scroll",z,!0),n=[],$e&&ae()},this.add=function(){for(var $e=[],Ie=arguments.length;Ie--;)$e[Ie]=arguments[Ie];return Pue.apply(void 0,[n].concat($e)),this},this.remove=function(){for(var $e=[],Ie=arguments.length;Ie--;)$e[Ie]=arguments[Ie];return Iue.apply(void 0,[n].concat($e))};var g,$e,h=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),$e=n,n=[],$e.forEach(function(Ie){Ie===window?h=window:e.add(Ie)}),Object.defineProperties(this,{down:{get:function(){return d}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var L,y=null;function z($e){for(var Ie=0;Ie<n.length;Ie++)if(n[Ie]===$e.target){o=!0;break}o&&HE(function(){return o=!1})}function q(){d=!0}function re(){d=!1,ae()}function ae(){q1(L),q1(g)}function Se(){d=!1}function Ee(){for(var $e=null,Ie=0;Ie<n.length;Ie++)YY(s,n[Ie])&&($e=n[Ie]);return $e}function Ke($e){if(e.autoScroll()&&!$e.dispatched){var Ie=$e.target,ct=document.body;y&&!YY(s,y)&&(e.scrollWhenOutside||(y=null)),Ie&&Ie.parentNode===ct?Ie=Ee():(Ie=function Ce($e){if(!$e)return null;if(y===$e||g7(n,$e))return $e;for(;$e=$e.parentNode;)if(g7(n,$e))return $e;return null}(Ie),Ie||(Ie=Ee())),Ie&&Ie!==y&&(y=Ie),h&&(q1(g),g=HE(st)),y&&(q1(L),L=HE(De))}}function st(){it(h),q1(g),g=HE(st)}function De(){!y||(it(y),q1(L),L=HE(De))}function it($e){var ct,Bt,Ie=VY($e);ct=s.x<Ie.left+e.margin.left?Math.floor(Math.max(-1,(s.x-Ie.left)/e.margin.left-1)*e.maxSpeed.left):s.x>Ie.right-e.margin.right?Math.ceil(Math.min(1,(s.x-Ie.right)/e.margin.right+1)*e.maxSpeed.right):0,Bt=s.y<Ie.top+e.margin.top?Math.floor(Math.max(-1,(s.y-Ie.top)/e.margin.top-1)*e.maxSpeed.top):s.y>Ie.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-Ie.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch($e,{pageX:s.pageX+ct,pageY:s.pageY+Bt,clientX:s.x+ct,clientY:s.y+Bt}),setTimeout(function(){Bt&&function ft($e,Ie){$e===window?window.scrollTo($e.pageXOffset,$e.pageYOffset+Ie):$e.scrollTop+=Ie}($e,Bt),ct&&function bt($e,Ie){$e===window?window.scrollTo($e.pageXOffset+Ie,$e.pageYOffset):$e.scrollLeft+=Ie}($e,ct)})}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",Ke,!1),window.addEventListener("touchmove",Ke,!1),window.addEventListener("mouseleave",Se,!1),window.addEventListener("scroll",z,!0)}function YY(n,r,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function Zue(n,r){var e=VY(r);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,r)}var jue=function Uue(n,r){return new Fue(n,r)};function w7(n,r,e){e&&e.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}function xL(n,r,e){e&&e.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}var Xy=(0,U.Z)(function n(){(0,B.Z)(this,n),this.currentDrag=new On.xQ});Xy.\u0275fac=function(r){return new(r||Xy)},Xy.\u0275prov=t.Yz7({token:Xy,factory:Xy.\u0275fac,providedIn:"root"});var J1=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.elementRef=r});J1.\u0275fac=function(r){return new(r||J1)(t.Y36(t.SBq))},J1.\u0275dir=t.lG2({type:J1,selectors:[["","mwlDraggableScrollContainer",""]]});var GE=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.element=r,this.renderer=e,this.draggableHelper=i,this.zone=o,this.vcr=a,this.scrollContainer=s,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new t.vpe,this.dragStart=new t.vpe,this.ghostElementCreated=new t.vpe,this.dragging=new t.vpe,this.dragEnd=new t.vpe,this.pointerDown$=new On.xQ,this.pointerMove$=new On.xQ,this.pointerUp$=new On.xQ,this.eventListenerSubscriptions={},this.destroy$=new On.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var i=this.pointerDown$.pipe((0,$r.h)(function(){return e.canDrag()}),(0,_s.zg)(function(o){o.event.stopPropagation&&!e.scrollContainer&&o.event.stopPropagation();var a=e.renderer.createElement("style");e.renderer.setAttribute(a,"type","text/css"),e.renderer.appendChild(a,e.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(function(){e.document.head.appendChild(a)});var s=e.getScrollPosition(),l=new oo.y(function(z){var q=e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window";return e.renderer.listen(q,"scroll",function(re){return z.next(re)})}).pipe((0,Oo.O)(s),(0,$n.U)(function(){return e.getScrollPosition()})),u=new On.xQ,d=new xue.t;e.dragPointerDown.observers.length>0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,Gi.T)(e.pointerUp$,e.pointerDown$,d,e.destroy$).pipe((0,K1.B)()),g=(0,Y1.aj)([e.pointerMove$,l]).pipe((0,$n.U)(function(z){var q=(0,Yn.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,$r.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,Pr.R)(h),(0,K1.B)()),y=g.pipe((0,Ri.q)(1),(0,K1.B)()),L=g.pipe((0,h7.h)(1),(0,K1.B)());return y.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}})),w7(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 Ke=e.vcr.createEmbeddedView(e.ghostElementTemplate);Ee.innerHTML="",Ke.rootNodes.filter(function(st){return st instanceof Node}).forEach(function(st){Ee.appendChild(st)}),L.subscribe(function(){e.vcr.remove(e.vcr.indexOf(Ke))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-ae,clientY:re-Se,element:Ee})}),L.subscribe(function(){Ee.parentElement.removeChild(Ee),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),L.pipe((0,_s.zg)(function(z){var q=d.pipe((0,Due.Q)(),(0,Ri.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})}),xL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,Gi.T)(h,L).pipe((0,Ri.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),g}),(0,K1.B)());(0,Gi.T)(i.pipe((0,Ri.q)(1),(0,$n.U)(function(o){return[,o]})),i.pipe((0,GY.G)())).pipe((0,$r.h)(function(o){var a=(0,Yn.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,Yn.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,y=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var L="translate3d(".concat(h,"px, ").concat(g,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:L,"-webkit-transform":L,"-ms-transform":L,"-moz-transform":L,"-o-transform":L})}}),l.next({clientX:u,clientY:d,dropData:e.dropData,target:y})})}},{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,Xf.R)(this.document,"contextmenu").subscribe(function(d){d.preventDefault()}),u=(0,Xf.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 KY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}GE.\u0275fac=function(r){return new(r||GE)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Xy),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(J1,8),t.Y36(se.K0))},GE.\u0275dir=t.lG2({type:GE,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 DL=function(){function n(r,e,i,o,a){(0,B.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,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){w7(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,y=h.clientY,L=h.dropData,z=h.target;s={clientX:g,clientY:y,dropData:L,target:z},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=KY(g,y,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:y,target:z,dropData:L});return o.scrollContainerRect?q&&re&&KY(g,y,o.scrollContainerRect):q&&re})),u=l.pipe((0,ts.x)());u.pipe((0,$r.h)(function(h){return h})).subscribe(function(){d=!0,w7(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,$r.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,GY.G)(),(0,$r.h)(function(h){var g=(0,Yn.Z)(h,2),y=g[0],L=g[1];return y&&!L})).subscribe(function(){d=!1,xL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),xL(e.renderer,e.element,e.dragActiveClass),d&&(xL(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}();DL.\u0275fac=function(r){return new(r||DL)(t.Y36(t.SBq),t.Y36(Xy),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(J1,8))},DL.\u0275dir=t.lG2({type:DL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Q1=(0,U.Z)(function n(){(0,B.Z)(this,n)});Q1.\u0275fac=function(r){return new(r||Q1)},Q1.\u0275mod=t.oAB({type:Q1}),Q1.\u0275inj=t.cJS({});var qY=m(2072);function $y(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function k7(n){return 1===n.length&&(n=function Hue(n){return function(r,e){return $y(n(r),e)}}(n)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>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<a;){var s=o+a>>>1;n(e[s],i)>0?a=s:o=s+1}return o}}}var JY=k7($y),QY=JY.right,Gue=JY.left,X1=QY;function zue(n,r){null==r&&(r=XY);for(var e=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);e<i;)a[e]=r(o,o=n[++e]);return a}function XY(n,r){return[n,r]}function Wue(n,r,e){var s,l,u,d,i=n.length,o=r.length,a=new Array(i*o);for(null==e&&(e=XY),s=u=0;s<i;++s)for(d=n[s],l=0;l<o;++l,++u)a[u]=e(d,r[l]);return a}function Vue(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function fg(n){return null===n?NaN:+n}function $Y(n,r){var s,l,e=n.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o<e;)isNaN(s=fg(n[o]))||(u+=(l=s-a)*(s-(a+=l/++i)));else for(;++o<e;)isNaN(s=fg(r(n[o],o,n)))||(u+=(l=s-a)*(s-(a+=l/++i)));if(i>1)return u/(i-1)}function eK(n,r){var e=$Y(n,r);return e&&Math.sqrt(e)}function T7(n,r){var o,a,s,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=s=o;++i<e;)null!=(o=n[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=s=o;++i<e;)null!=(o=r(n[i],i,n))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var tK=Array.prototype,Yue=tK.slice,Kue=tK.map;function AL(n){return function(){return n}}function que(n){return n}function mc(n,r,e){n=+n,r=+r,e=(o=arguments.length)<2?(r=n,n=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((r-n)/e)),a=new Array(o);++i<o;)a[i]=n+i*e;return a}var M7=Math.sqrt(50),S7=Math.sqrt(10),E7=Math.sqrt(2);function x7(n,r,e){var i,a,s,l,o=-1;if(e=+e,(n=+n)===(r=+r)&&e>0)return[n];if((i=r<n)&&(a=n,n=r,r=a),0===(l=zE(n,r,e))||!isFinite(l))return[];if(l>0)for(n=Math.ceil(n/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-n+1));++o<a;)s[o]=(n+o)*l;else for(n=Math.floor(n*l),r=Math.ceil(r*l),s=new Array(a=Math.ceil(n-r+1));++o<a;)s[o]=(n-o)/l;return i&&s.reverse(),s}function zE(n,r,e){var i=(r-n)/Math.max(0,e),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=M7?10:a>=S7?5:a>=E7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=M7?10:a>=S7?5:a>=E7?2:1)}function e0(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>=M7?o*=10:a>=S7?o*=5:a>=E7&&(o*=2),r<n?-o:o}function D7(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Jue(){var n=que,r=T7,e=D7;function i(o){var a,l,s=o.length,u=new Array(s);for(a=0;a<s;++a)u[a]=n(o[a],a,o);var d=r(u),h=d[0],g=d[1],y=e(u,h,g);Array.isArray(y)||(y=e0(h,g,y),y=mc(Math.ceil(h/y)*y,g,y));for(var L=y.length;y[0]<=h;)y.shift(),--L;for(;y[L-1]>g;)y.pop(),--L;var q,z=new Array(L+1);for(a=0;a<=L;++a)(q=z[a]=[]).x0=a>0?y[a-1]:h,q.x1=a<L?y[a]:g;for(a=0;a<s;++a)h<=(l=u[a])&&l<=g&&z[X1(y,l,0,L)].push(o[a]);return z}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:AL(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:AL([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?AL(Yue.call(o)):AL(o),i):e},i}function WE(n,r,e){if(null==e&&(e=fg),i=n.length){if((r=+r)<=0||i<2)return+e(n[0],0,n);if(r>=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 Que(n,r,e){return n=Kue.call(n,fg).sort($y),Math.ceil((e-r)/(2*(WE(n,.75)-WE(n,.25))*Math.pow(n.length,-1/3)))}function Xue(n,r,e){return Math.ceil((e-r)/(3.5*eK(n)*Math.pow(n.length,-1/3)))}function nK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&o>a&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&o>a&&(a=o);return a}function $ue(n,r){var a,e=n.length,i=e,o=-1,s=0;if(null==r)for(;++o<e;)isNaN(a=fg(n[o]))?--i:s+=a;else for(;++o<e;)isNaN(a=fg(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function ece(n,r){var o,e=n.length,i=-1,a=[];if(null==r)for(;++i<e;)isNaN(o=fg(n[i]))||a.push(o);else for(;++i<e;)isNaN(o=fg(r(n[i],i,n)))||a.push(o);return WE(a.sort($y),.5)}function A7(n){for(var e,a,s,r=n.length,i=-1,o=0;++i<r;)o+=n[i].length;for(a=new Array(o);--r>=0;)for(e=(s=n[r]).length;--e>=0;)a[--o]=s[e];return a}function rK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&a>o&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&a>o&&(a=o);return a}function tce(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function nce(n,r){if(e=n.length){var e,a,i=0,o=0,s=n[o];for(null==r&&(r=$y);++i<e;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function rce(n,r,e){for(var o,a,i=(null==e?n.length:e)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=n[i+r],n[i+r]=n[a+r],n[a+r]=o;return n}function ice(n,r){var o,e=n.length,i=-1,a=0;if(null==r)for(;++i<e;)(o=+n[i])&&(a+=o);else for(;++i<e;)(o=+r(n[i],i,n))&&(a+=o);return a}function iK(n){if(!(a=n.length))return[];for(var r=-1,e=rK(n,oce),i=new Array(e);++r<e;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=n[o][r];return i}function oce(n){return n.length}function ace(){return iK(arguments)}var O7=Array.prototype.slice;function sce(n){return n}function lce(n){return"translate("+(n+.5)+",0)"}function uce(n){return"translate(0,"+(n+.5)+")"}function cce(n){return function(r){return+n(r)}}function dce(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(e){return+n(e)+r}}function fce(){return!this.__axis}function IL(n,r){var e=[],i=null,o=null,a=6,s=6,l=3,u=1===n||4===n?-1:1,d=4===n||2===n?"x":"y",h=1===n||3===n?lce:uce;function g(y){var L=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,z=null==o?r.tickFormat?r.tickFormat.apply(r,e):sce:o,q=Math.max(a,0)+l,re=r.range(),ae=+re[0]+.5,Se=+re[re.length-1]+.5,Ce=(r.bandwidth?dce:cce)(r.copy()),Ee=y.selection?y.selection():y,Ke=Ee.selectAll(".domain").data([null]),st=Ee.selectAll(".tick").data(L,r).order(),De=st.exit(),it=st.enter().append("g").attr("class","tick"),ft=st.select("line"),bt=st.select("text");Ke=Ke.merge(Ke.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),st=st.merge(it),ft=ft.merge(it.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),bt=bt.merge(it.append("text").attr("fill","currentColor").attr(d,u*q).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),y!==Ee&&(Ke=Ke.transition(y),st=st.transition(y),ft=ft.transition(y),bt=bt.transition(y),De=De.transition(y).attr("opacity",1e-6).attr("transform",function($e){return isFinite($e=Ce($e))?h($e):this.getAttribute("transform")}),it.attr("opacity",1e-6).attr("transform",function($e){var Ie=this.parentNode.__axis;return h(Ie&&isFinite(Ie=Ie($e))?Ie:Ce($e))})),De.remove(),Ke.attr("d",4===n||2==n?s?"M"+u*s+","+ae+"H0.5V"+Se+"H"+u*s:"M0.5,"+ae+"V"+Se:s?"M"+ae+","+u*s+"V0.5H"+Se+"V"+u*s:"M"+ae+",0.5H"+Se),st.attr("opacity",1).attr("transform",function($e){return h(Ce($e))}),ft.attr(d+"2",u*a),bt.attr(d,u*q).text(z),Ee.filter(fce).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),Ee.each(function(){this.__axis=Ce})}return g.scale=function(y){return arguments.length?(r=y,g):r},g.ticks=function(){return e=O7.call(arguments),g},g.tickArguments=function(y){return arguments.length?(e=null==y?[]:O7.call(y),g):e.slice()},g.tickValues=function(y){return arguments.length?(i=null==y?null:O7.call(y),g):i&&i.slice()},g.tickFormat=function(y){return arguments.length?(o=y,g):o},g.tickSize=function(y){return arguments.length?(a=s=+y,g):a},g.tickSizeInner=function(y){return arguments.length?(a=+y,g):a},g.tickSizeOuter=function(y){return arguments.length?(s=+y,g):s},g.tickPadding=function(y){return arguments.length?(l=+y,g):l},g}function pce(n){return IL(1,n)}function hce(n){return IL(2,n)}function mce(n){return IL(3,n)}function _ce(n){return IL(4,n)}var gce={value:function(){}};function aK(){for(var i,n=0,r=arguments.length,e={};n<r;++n){if(!(i=arguments[n]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new RL(e)}function RL(n){this._=n}function vce(n,r){return n.trim().split(/^|\s+/).map(function(e){var i="",o=e.indexOf(".");if(o>=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 yce(n,r){for(var o,e=0,i=n.length;e<i;++e)if((o=n[e]).name===r)return o.value}function sK(n,r,e){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=gce,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=e&&n.push({name:r,value:e}),n}RL.prototype=aK.prototype={constructor:RL,on:function(r,e){var a,i=this._,o=vce(r+"",i),s=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<l;)if(a=(r=o[s]).type)i[a]=sK(i[a],r.name,e);else if(null==e)for(a in i)i[a]=sK(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=yce(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new RL(r)},call:function(r,e){if((a=arguments.length-2)>0)for(var a,s,i=new Array(a),o=0;o<a;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(o=0,a=(s=this._[r]).length;o<a;++o)s[o].value.apply(e,i)},apply:function(r,e,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var o=this._[r],a=0,s=o.length;a<s;++a)o[a].value.apply(e,i)}};var t0=aK;function bce(){}function I7(n){return null==n?bce:function(){return this.querySelector(n)}}function wce(){return[]}function lK(n){return null==n?wce:function(){return this.querySelectorAll(n)}}function uK(n){return function(){return this.matches(n)}}function cK(n){return new Array(n.length)}function LL(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}LL.prototype={constructor:LL,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 Ece(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new LL(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function xce(n,r,e,i,o,a,s){var l,u,L,d={},h=r.length,g=a.length,y=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(y[l]=L="$"+s.call(u,u.__data__,l,r),L in d?o[l]=u:d[L]=u);for(l=0;l<g;++l)(u=d[L="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[L]=null):e[l]=new LL(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[y[l]]===u&&(o[l]=u)}function Lce(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var R7="http://www.w3.org/1999/xhtml",fK={svg:"http://www.w3.org/2000/svg",xhtml:R7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ZL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),fK.hasOwnProperty(r)?{space:fK[r],local:n}:n}function Hce(n){return function(){this.removeAttribute(n)}}function Gce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function zce(n,r){return function(){this.setAttribute(n,r)}}function Wce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Vce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Yce(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 pK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function qce(n){return function(){this.style.removeProperty(n)}}function Jce(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Qce(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function $1(n,r){return n.style.getPropertyValue(r)||pK(n).getComputedStyle(n,null).getPropertyValue(r)}function $ce(n){return function(){delete this[n]}}function ede(n,r){return function(){this[n]=r}}function tde(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function hK(n){return n.trim().split(/^|\s+/)}function L7(n){return n.classList||new mK(n)}function mK(n){this._node=n,this._names=hK(n.getAttribute("class")||"")}function _K(n,r){for(var e=L7(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function gK(n,r){for(var e=L7(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function rde(n){return function(){_K(this,n)}}function ide(n){return function(){gK(this,n)}}function ode(n,r){return function(){(r.apply(this,arguments)?_K:gK)(this,n)}}function sde(){this.textContent=""}function lde(n){return function(){this.textContent=n}}function ude(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function dde(){this.innerHTML=""}function fde(n){return function(){this.innerHTML=n}}function pde(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function mde(){this.nextSibling&&this.parentNode.appendChild(this)}function gde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yde(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===R7&&r.documentElement.namespaceURI===R7?r.createElement(n):r.createElementNS(e,n)}}function bde(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function vK(n){var r=ZL(n);return(r.local?bde:yde)(r)}function wde(){return null}function Tde(){var n=this.parentNode;n&&n.removeChild(this)}function Sde(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function Ede(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}mK.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var yK={},Ln=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(yK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Ode(n,r,e){return n=bK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function bK(n,r,e){return function(i){var o=Ln;Ln=i;try{n.call(this,this.__data__,r,e)}finally{Ln=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 Ide(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function Rde(n,r,e){var i=yK.hasOwnProperty(n.type)?Ode:bK;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function NL(n,r,e,i){var o=Ln;n.sourceEvent=Ln,Ln=n;try{return r.apply(e,i)}finally{Ln=o}}function CK(n,r,e){var i=pK(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function Zde(n,r){return function(){return CK(this,n,r)}}function Nde(n,r){return function(){return CK(this,n,r.apply(this,arguments))}}var wK=[null];function _c(n,r){this._groups=n,this._parents=r}function kK(){return new _c([[document.documentElement]],wK)}_c.prototype=kK.prototype={constructor:_c,select:function Cce(n){"function"!=typeof n&&(n=I7(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new _c(i,this._parents)},selectAll:function kce(n){"function"!=typeof n&&(n=lK(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new _c(i,o)},filter:function Tce(n){"function"!=typeof n&&(n=uK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new _c(i,this._parents)},data:function Dce(n,r){if(!n)return L=new Array(this.size()),d=-1,this.each(function(st){L[++d]=st}),L;var e=r?xce:Ece,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Sce(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],y=g.length,L=n.call(h,h&&h.__data__,d,i),z=L.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(y),L,r);for(var Ee,Ke,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce<z;);Ee._next=Ke||null}}return(s=new _c(s,i))._enter=l,s._exit=u,s},enter:function Mce(){return new _c(this._enter||this._groups.map(cK),this._parents)},exit:function Ace(){return new _c(this._exit||this._groups.map(cK),this._parents)},join:function Oce(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function Pce(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new _c(s,this._parents)},order:function Ice(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Rce(n){function r(g,y){return g&&y?n(g.__data__,y.__data__):!g-!y}n||(n=Lce);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new _c(o,this._parents).order()},call:function Zce(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Nce(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Bce(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Fce(){var n=0;return this.each(function(){++n}),n},empty:function Uce(){return!this.node()},each:function jce(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function Kce(n,r){var e=ZL(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?Gce:Hce:"function"==typeof r?e.local?Yce:Vce:e.local?Wce:zce)(e,r))},style:function Xce(n,r,e){return arguments.length>1?this.each((null==r?qce:"function"==typeof r?Qce:Jce)(n,r,null==e?"":e)):$1(this.node(),n)},property:function nde(n,r){return arguments.length>1?this.each((null==r?$ce:"function"==typeof r?tde:ede)(n,r)):this.node()[n]},classed:function ade(n,r){var e=hK(n+"");if(arguments.length<2){for(var i=L7(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?ode:r?rde:ide)(e,r))},text:function cde(n){return arguments.length?this.each(null==n?sde:("function"==typeof n?ude:lde)(n)):this.node().textContent},html:function hde(n){return arguments.length?this.each(null==n?dde:("function"==typeof n?pde:fde)(n)):this.node().innerHTML},raise:function _de(){return this.each(mde)},lower:function vde(){return this.each(gde)},append:function Cde(n){var r="function"==typeof n?n:vK(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function kde(n,r){var e="function"==typeof n?n:vK(n),i=null==r?wde:"function"==typeof r?r:I7(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function Mde(){return this.each(Tde)},clone:function xde(n){return this.select(n?Ede:Sde)},datum:function Dde(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function Lde(n,r,e){var o,s,i=Pde(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?Rde:Ide,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function Bde(n,r){return this.each(("function"==typeof r?Nde:Zde)(n,r))}};var pg=kK;function Ci(n){return"string"==typeof n?new _c([[document.querySelector(n)]],[document.documentElement]):new _c([[n]],wK)}function Z7(){Ln.stopImmediatePropagation()}function ew(){Ln.preventDefault(),Ln.stopImmediatePropagation()}function BL(n){var r=n.document.documentElement,e=Ci(n).on("dragstart.drag",ew,!0);"onselectstart"in r?e.on("selectstart.drag",ew,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function FL(n,r){var e=n.document.documentElement,i=Ci(n).on("dragstart.drag",null);r&&(i.on("click.drag",ew,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in e?i.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function UL(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function N7(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function tw(){}var nw=1/.7,rw="\\s*([+-]?\\d+)\\s*",YE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fde=/^#([0-9a-f]{3,8})$/,Ude=new RegExp("^rgb\\("+[rw,rw,rw]+"\\)$"),jde=new RegExp("^rgb\\("+[sp,sp,sp]+"\\)$"),Hde=new RegExp("^rgba\\("+[rw,rw,rw,YE]+"\\)$"),Gde=new RegExp("^rgba\\("+[sp,sp,sp,YE]+"\\)$"),zde=new RegExp("^hsl\\("+[YE,sp,sp]+"\\)$"),Wde=new RegExp("^hsla\\("+[YE,sp,sp,YE]+"\\)$"),TK={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 MK(){return this.rgb().formatHex()}function SK(){return this.rgb().formatRgb()}function r0(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Fde.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?EK(r):3===e?new Ql(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?jL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?jL(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=Ude.exec(n))?new Ql(r[1],r[2],r[3],1):(r=jde.exec(n))?new Ql(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Hde.exec(n))?jL(r[1],r[2],r[3],r[4]):(r=Gde.exec(n))?jL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=zde.exec(n))?OK(r[1],r[2]/100,r[3]/100,1):(r=Wde.exec(n))?OK(r[1],r[2]/100,r[3]/100,r[4]):TK.hasOwnProperty(n)?EK(TK[n]):"transparent"===n?new Ql(NaN,NaN,NaN,0):null}function EK(n){return new Ql(n>>16&255,n>>8&255,255&n,1)}function jL(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ql(n,r,e,i)}function xK(n){return n instanceof tw||(n=r0(n)),n?new Ql((n=n.rgb()).r,n.g,n.b,n.opacity):new Ql}function HL(n,r,e,i){return 1===arguments.length?xK(n):new Ql(n,r,e,null==i?1:i)}function Ql(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function DK(){return"#"+B7(this.r)+B7(this.g)+B7(this.b)}function AK(){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 B7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function OK(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 PK(n){if(n instanceof lp)return new lp(n.h,n.s,n.l,n.opacity);if(n instanceof tw||(n=r0(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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&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 F7(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 IK(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 GL(n){return function(){return n}}function RK(n,r){return function(e){return n+e*r}}function Xde(n){return 1==(n=+n)?iw:function(r,e){return e-r?function Jde(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):GL(isNaN(r)?e:r)}}function iw(n,r){var e=r-n;return e?RK(n,e):GL(isNaN(n)?r:n)}UL(tw,r0,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:MK,formatHex:MK,formatHsl:function Vde(){return PK(this).formatHsl()},formatRgb:SK,toString:SK}),UL(Ql,HL,N7(tw,{brighter:function(r){return r=null==r?nw:Math.pow(nw,r),new Ql(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ql(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:DK,formatHex:DK,formatRgb:AK,toString:AK})),UL(lp,function Yde(n,r,e,i){return 1===arguments.length?PK(n):new lp(n,r,e,null==i?1:i)},N7(tw,{brighter:function(r){return r=null==r?nw:Math.pow(nw,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 Ql(F7(r>=240?r-240:r+120,a,o),F7(r,a,o),F7(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 zL=function n(r){var e=Xde(r);function i(o,a){var s=e((o=HL(o)).r,(a=HL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=iw(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 LK(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<e;++s)l=HL(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var $de=LK(function Kde(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=i<r-1?n[i+2]:2*a-o;return IK((e-i/r)*r,s,o,a,l)}});LK(function qde(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return IK((e-i/r)*r,o,a,s,l)}});function ZK(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=WL(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function efe(n,r){var e=new Date;return n=+n,r=+r,function(i){return e.setTime(n*(1-i)+r*i),e}}function qc(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}function tfe(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=WL(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var U7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j7=new RegExp(U7.source,"g");function NK(n,r){var i,o,a,e=U7.lastIndex=j7.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=U7.exec(n))&&(o=j7.exec(r));)(a=o.index)>e&&(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:qc(i,o)})),e=j7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function rfe(n){return function(r){return n(r)+""}}(u[0].x):function nfe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function ife(n,r){r||(r=[]);var o,e=n?Math.min(r.length,n.length):0,i=r.slice();return function(a){for(o=0;o<e;++o)i[o]=n[o]*(1-a)+r[o]*a;return i}}function WL(n,r){var i,e=typeof r;return null==r||"boolean"===e?GL(r):("number"===e?qc:"string"===e?(i=r0(r))?(r=i,zL):NK:r instanceof r0?zL:r instanceof Date?efe:function ofe(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}(r)?ife:Array.isArray(r)?ZK:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?tfe:qc)(n,r)}function BK(){for(var r,n=Ln;r=n.sourceEvent;)n=r;return n}function FK(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function Fd(n){var r=BK();return r.changedTouches&&(r=r.changedTouches[0]),FK(n,r)}var VL,JE,ow=0,KE=0,qE=0,YL=0,i0=0,KL=0,QE="object"==typeof performance&&performance.now?performance:Date,jK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function hg(){return i0||(jK(afe),i0=QE.now()+KL)}function afe(){i0=0}function XE(){this._call=this._time=this._next=null}function $E(n,r,e){var i=new XE;return i.restart(n,r,e),i}function HK(){hg(),++ow;for(var r,n=VL;n;)(r=i0-n._time)>=0&&n._call.call(null,r),n=n._next;--ow}function GK(){i0=(YL=QE.now())+KL,ow=KE=0;try{HK()}finally{ow=0,function lfe(){for(var n,e,r=VL,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:VL=e);JE=n,H7(i)}(),i0=0}}function sfe(){var n=QE.now(),r=n-YL;r>1e3&&(KL-=r,YL=n)}function H7(n){ow||(KE&&(KE=clearTimeout(KE)),n-i0>24?(n<1/0&&(KE=setTimeout(GK,n-QE.now()-KL)),qE&&(qE=clearInterval(qE))):(qE||(YL=QE.now(),qE=setInterval(sfe,1e3)),ow=1,jK(GK)))}function ex(n,r,e){var i=new XE;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}XE.prototype=$E.prototype={constructor:XE,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?hg():+i)+(null==e?0:+e),!this._next&&JE!==this&&(JE?JE._next=this:VL=this,JE=this),this._call=r,this._time=i,H7()},stop:function(){this._call&&(this._call=null,this._time=1/0,H7())}};var ufe=t0("start","end","cancel","interrupt"),cfe=[];function QL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function dfe(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,y,L;if(1!==e.state)return u();for(h in i)if((L=i[h]).name===e.name){if(3===L.state)return ex(s);4===L.state?(L.state=6,L.timer.stop(),L.on.call("interrupt",n,n.__data__,L.index,L.group),delete i[h]):+h<r&&(L.state=6,L.timer.stop(),L.on.call("cancel",n,n.__data__,L.index,L.group),delete i[h])}if(ex(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(y=e.tween.length),h=0,g=-1;h<y;++h)(L=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=L);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,y=o.length;++g<y;)o[g].call(n,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=$E(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:ufe,tween:cfe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function W7(n,r){var e=Ud(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function Qh(n,r){var e=Ud(n,r);if(e.state>3)throw new Error("too late; already running");return e}function Ud(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function aw(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 tx,Y7,qK,XL,YK=180/Math.PI,V7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function KK(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*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*YK,skewX:Math.atan(u)*YK,scaleX:s,scaleY:l}}function JK(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],y=[];return d=n(d),h=n(h),function a(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push("translate(",null,r,null,e);z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,y)})}else(g||y)&&L.push("translate("+g+r+y+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,y),function s(d,h,g,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.push({i:g.push(o(g)+"rotate(",null,i)-2,x:qc(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,y),function l(d,h,g,y){d!==h?y.push({i:g.push(o(g)+"skewX(",null,i)-2,x:qc(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,y),function u(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push(o(L)+"scale(",null,",",null,")");z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,y)})}else(1!==g||1!==y)&&L.push(o(L)+"scale("+g+","+y+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,y),d=h=null,function(L){for(var re,z=-1,q=y.length;++z<q;)g[(re=y[z]).i]=re.x(L);return g.join("")}}}var mfe=JK(function pfe(n){return"none"===n?V7:(tx||(tx=document.createElement("DIV"),Y7=document.documentElement,qK=document.defaultView),tx.style.transform=n,n=qK.getComputedStyle(Y7.appendChild(tx),null).getPropertyValue("transform"),Y7.removeChild(tx),KK(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),_fe=JK(function hfe(n){return null!=n&&(XL||(XL=document.createElementNS("http://www.w3.org/2000/svg","g")),XL.setAttribute("transform",n),n=XL.transform.baseVal.consolidate())?KK((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):V7},", ",")",")");function gfe(n,r){var e,i;return function(){var o=Qh(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function vfe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=Qh(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function K7(n,r,e){var i=n._id;return n.each(function(){var o=Qh(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return Ud(o,i).value[r]}}function QK(n,r){var e;return("number"==typeof r?qc:r instanceof r0?zL:(e=r0(r))?(r=e,zL):NK)(n,r)}function bfe(n){return function(){this.removeAttribute(n)}}function Cfe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wfe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttribute(n);return s===o?null:s===i?a:a=r(i=s,e)}}function kfe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttributeNS(n.space,n.local);return s===o?null:s===i?a:a=r(i=s,e)}}function Tfe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Mfe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Efe(n,r){return function(e){this.setAttribute(n,r.call(this,e))}}function xfe(n,r){return function(e){this.setAttributeNS(n.space,n.local,r.call(this,e))}}function Dfe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&xfe(n,a)),e}return o._value=r,o}function Afe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Efe(n,a)),e}return o._value=r,o}function Pfe(n,r){return function(){W7(this,n).delay=+r.apply(this,arguments)}}function Ife(n,r){return r=+r,function(){W7(this,n).delay=r}}function Lfe(n,r){return function(){Qh(this,n).duration=+r.apply(this,arguments)}}function Zfe(n,r){return r=+r,function(){Qh(this,n).duration=r}}function Bfe(n,r){if("function"!=typeof r)throw new Error;return function(){Qh(this,n).ease=r}}function Gfe(n,r,e){var i,o,a=function Hfe(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?W7:Qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var qfe=pg.prototype.constructor;function XK(n){return function(){this.style.removeProperty(n)}}function npe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function rpe(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&npe(n,s,e)),i}return a._value=r,a}function lpe(n){return function(r){this.textContent=n.call(this,r)}}function upe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&lpe(o)),r}return i._value=n,i}var ppe=0;function Xh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function q7(n){return pg().transition(n)}function $K(){return++ppe}var sw=pg.prototype;function hpe(n){return n*n*n}function mpe(n){return--n*n*n+1}function $L(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Xh.prototype=q7.prototype={constructor:Xh,select:function Yfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=I7(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),y=0;y<u;++y)(h=l[y])&&(g=n.call(h,h.__data__,y,l))&&("__data__"in h&&(g.__data__=h.__data__),d[y]=g,QL(d[y],r,e,y,d,Ud(h,e)));return new Xh(a,this._parents,r,e)},selectAll:function Kfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=lK(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var L,y=n.call(h,h.__data__,g,u),z=Ud(h,e),q=0,re=y.length;q<re;++q)(L=y[q])&&QL(L,r,e,q,y,z);a.push(y),s.push(h)}return new Xh(a,s,r,e)},filter:function Ufe(n){"function"!=typeof n&&(n=uK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new Xh(i,this._parents,this._name,this._id)},merge:function jfe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new Xh(s,this._parents,this._name,this._id)},selection:function Jfe(){return new qfe(this._groups,this._parents)},transition:function dpe(){for(var n=this._name,r=this._id,e=$K(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=Ud(u,r);QL(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Xh(i,this._parents,n,e)},call:sw.call,nodes:sw.nodes,node:sw.node,size:sw.size,empty:sw.empty,each:sw.each,on:function zfe(n,r){var e=this._id;return arguments.length<2?Ud(this.node(),e).on.on(n):this.each(Gfe(e,n,r))},attr:function Sfe(n,r){var e=ZL(n),i="transform"===e?_fe:QK;return this.attrTween(n,"function"==typeof r?(e.local?Mfe:Tfe)(e,i,K7(this,"attr."+n,r)):null==r?(e.local?Cfe:bfe)(e):(e.local?kfe:wfe)(e,i,r))},attrTween:function Ofe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=ZL(n);return this.tween(e,(i.local?Dfe:Afe)(i,r))},style:function tpe(n,r,e){var i="transform"==(n+="")?mfe:QK;return null==r?this.styleTween(n,function Qfe(n,r){var e,i,o;return function(){var a=$1(this,n),s=(this.style.removeProperty(n),$1(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,XK(n)):"function"==typeof r?this.styleTween(n,function $fe(n,r,e){var i,o,a;return function(){var s=$1(this,n),l=e(this),u=l+"";return null==l&&(this.style.removeProperty(n),u=l=$1(this,n)),s===u?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}(n,i,K7(this,"style."+n,r))).each(function epe(n,r){var e,i,o,l,a="style."+r,s="end."+a;return function(){var u=Qh(this,n),d=u.on,h=null==u.value[a]?l||(l=XK(r)):void 0;(d!==e||o!==h)&&(i=(e=d).copy()).on(s,o=h),u.on=i}}(this._id,n)):this.styleTween(n,function Xfe(n,r,e){var i,a,o=e+"";return function(){var s=$1(this,n);return s===o?null:s===i?a:a=r(i=s,e)}}(n,i,r),e).on("end.style."+n,null)},styleTween:function ipe(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,rpe(n,r,null==e?"":e))},text:function spe(n){return this.tween("text","function"==typeof n?function ape(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(K7(this,"text",n)):function ope(n){return function(){this.textContent=n}}(null==n?"":n+""))},textTween:function cpe(n){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,upe(n))},remove:function Vfe(){return this.on("end.remove",function Wfe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function yfe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=Ud(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?gfe:vfe)(e,n,r))},delay:function Rfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Pfe:Ife)(r,n)):Ud(this.node(),r).delay},duration:function Nfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Lfe:Zfe)(r,n)):Ud(this.node(),r).duration},ease:function Ffe(n){var r=this._id;return arguments.length?this.each(Bfe(r,n)):Ud(this.node(),r).ease},end:function fpe(){var n,r,e=this,i=e._id,o=e.size();return new Promise(function(a,s){var l={value:s},u={value:function(){0==--o&&a()}};e.each(function(){var d=Qh(this,i),h=d.on;h!==n&&((r=(n=h).copy())._.cancel.push(l),r._.interrupt.push(l),r._.end.push(u)),d.on=r})})}};var J7={time:null,delay:0,duration:250,ease:$L};function _pe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return J7.time=hg(),J7;return e}pg.prototype.interrupt=function ffe(n){return this.each(function(){aw(this,n)})},pg.prototype.transition=function gpe(n){var r,e;n instanceof Xh?(r=n._id,n=n._name):(r=$K(),(e=J7).time=hg(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&QL(u,n,r,d,s,e||_pe(u,r));return new Xh(i,this._parents,n,r)};function eq(n){return function(){return n}}function ype(n,r,e){this.target=n,this.type=r,this.selection=e}function tq(){Ln.stopImmediatePropagation()}function eZ(){Ln.preventDefault(),Ln.stopImmediatePropagation()}var nq={name:"drag"},Q7={name:"space"},lw={name:"handle"},uw={name:"center"},tZ={name:"x",handles:["e","w"].map(nx),input:function(r,e){return r&&[[r[0],e[0][1]],[r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},nZ={name:"y",handles:["n","s"].map(nx),input:function(r,e){return r&&[[e[0][0],r[0]],[e[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},bpe={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(nx),input:function(r){return r},output:function(r){return r}},$h={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},rq={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},iq={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Cpe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},wpe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function nx(n){return{type:n}}function kpe(){return!Ln.button}function Tpe(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function X7(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function $7(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Mpe(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function Spe(){return ej(tZ)}function Epe(){return ej(nZ)}function xpe(){return ej(bpe)}function ej(n){var a,r=Tpe,e=kpe,i=t0(s,"start","brush","end"),o=6;function s(y){var L=y.property("__brush",g).selectAll(".overlay").data([nx("overlay")]);L.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",$h.overlay).merge(L).each(function(){var q=X7(this).extent;Ci(this).attr("x",q[0][0]).attr("y",q[0][1]).attr("width",q[1][0]-q[0][0]).attr("height",q[1][1]-q[0][1])}),y.selectAll(".selection").data([nx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",$h.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var z=y.selectAll(".handle").data(n.handles,function(q){return q.type});z.exit().remove(),z.enter().append("rect").attr("class",function(q){return"handle handle--"+q.type}).attr("cursor",function(q){return $h[q.type]}),y.each(l).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",h)}function l(){var y=Ci(this),L=X7(this).selection;L?(y.selectAll(".selection").style("display",null).attr("x",L[0][0]).attr("y",L[0][1]).attr("width",L[1][0]-L[0][0]).attr("height",L[1][1]-L[0][1]),y.selectAll(".handle").style("display",null).attr("x",function(z){return"e"===z.type[z.type.length-1]?L[1][0]-o/2:L[0][0]-o/2}).attr("y",function(z){return"s"===z.type[0]?L[1][1]-o/2:L[0][1]-o/2}).attr("width",function(z){return"n"===z.type||"s"===z.type?L[1][0]-L[0][0]+o:o}).attr("height",function(z){return"e"===z.type||"w"===z.type?L[1][1]-L[0][1]+o:o})):y.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(y,L){return y.__brush.emitter||new d(y,L)}function d(y,L){this.that=y,this.args=L,this.state=y.__brush,this.active=0}function h(){if(Ln.touches){if(Ln.changedTouches.length<Ln.touches.length)return eZ()}else if(a)return;if(e.apply(this,arguments)){var Ke,st,it,ft,$e,Ie,Bt,jt,It,Tn,Hn,ar,kr,y=this,L=Ln.target.__data__.type,z="selection"===(Ln.metaKey?L="overlay":L)?nq:Ln.altKey?uw:lw,q=n===nZ?null:Cpe[L],re=n===tZ?null:wpe[L],ae=X7(y),Se=ae.extent,Ce=ae.selection,Ee=Se[0][0],De=Se[0][1],bt=Se[1][0],ct=Se[1][1],zn=q&&re&&Ln.shiftKey,_r=Fd(y),Wr=_r,jr=u(y,arguments).beforestart();"overlay"===L?ae.selection=Ce=[[Ke=n===nZ?Ee:_r[0],it=n===tZ?De:_r[1]],[$e=n===nZ?bt:Ke,Bt=n===tZ?ct:it]]:(Ke=Ce[0][0],it=Ce[0][1],$e=Ce[1][0],Bt=Ce[1][1]),st=Ke,ft=it,Ie=$e,jt=Bt;var Kr=Ci(y).attr("pointer-events","none"),jo=Kr.selectAll(".overlay").attr("cursor",$h[L]);if(Ln.touches)Kr.on("touchmove.brush",br,!0).on("touchend.brush touchcancel.brush",gn,!0);else{var tr=Ci(Ln.view).on("keydown.brush",nr,!0).on("keyup.brush",un,!0).on("mousemove.brush",br,!0).on("mouseup.brush",gn,!0);BL(Ln.view)}tq(),aw(y),l.call(y),jr.start()}function br(){var bn=Fd(y);zn&&!ar&&!kr&&(Math.abs(bn[0]-Wr[0])>Math.abs(bn[1]-Wr[1])?kr=!0:ar=!0),Wr=bn,Hn=!0,eZ(),Mn()}function Mn(){var bn;switch(It=Wr[0]-_r[0],Tn=Wr[1]-_r[1],z){case Q7:case nq:q&&(It=Math.max(Ee-Ke,Math.min(bt-$e,It)),st=Ke+It,Ie=$e+It),re&&(Tn=Math.max(De-it,Math.min(ct-Bt,Tn)),ft=it+Tn,jt=Bt+Tn);break;case lw:q<0?(It=Math.max(Ee-Ke,Math.min(bt-Ke,It)),st=Ke+It,Ie=$e):q>0&&(It=Math.max(Ee-$e,Math.min(bt-$e,It)),st=Ke,Ie=$e+It),re<0?(Tn=Math.max(De-it,Math.min(ct-it,Tn)),ft=it+Tn,jt=Bt):re>0&&(Tn=Math.max(De-Bt,Math.min(ct-Bt,Tn)),ft=it,jt=Bt+Tn);break;case uw:q&&(st=Math.max(Ee,Math.min(bt,Ke-It*q)),Ie=Math.max(Ee,Math.min(bt,$e+It*q))),re&&(ft=Math.max(De,Math.min(ct,it-Tn*re)),jt=Math.max(De,Math.min(ct,Bt+Tn*re)))}Ie<st&&(q*=-1,bn=Ke,Ke=$e,$e=bn,bn=st,st=Ie,Ie=bn,L in rq&&jo.attr("cursor",$h[L=rq[L]])),jt<ft&&(re*=-1,bn=it,it=Bt,Bt=bn,bn=ft,ft=jt,jt=bn,L in iq&&jo.attr("cursor",$h[L=iq[L]])),ae.selection&&(Ce=ae.selection),ar&&(st=Ce[0][0],Ie=Ce[1][0]),kr&&(ft=Ce[0][1],jt=Ce[1][1]),(Ce[0][0]!==st||Ce[0][1]!==ft||Ce[1][0]!==Ie||Ce[1][1]!==jt)&&(ae.selection=[[st,ft],[Ie,jt]],l.call(y),jr.brush())}function gn(){if(tq(),Ln.touches){if(Ln.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Kr.on("touchmove.brush touchend.brush touchcancel.brush",null)}else FL(Ln.view,Hn),tr.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Kr.attr("pointer-events","all"),jo.attr("cursor",$h.overlay),ae.selection&&(Ce=ae.selection),$7(Ce)&&(ae.selection=null,l.call(y)),jr.end()}function nr(){switch(Ln.keyCode){case 16:zn=q&&re;break;case 18:z===lw&&(q&&($e=Ie-It*q,Ke=st+It*q),re&&(Bt=jt-Tn*re,it=ft+Tn*re),z=uw,Mn());break;case 32:(z===lw||z===uw)&&(q<0?$e=Ie-It:q>0&&(Ke=st-It),re<0?Bt=jt-Tn:re>0&&(it=ft-Tn),z=Q7,jo.attr("cursor",$h.selection),Mn());break;default:return}eZ()}function un(){switch(Ln.keyCode){case 16:zn&&(ar=kr=zn=!1,Mn());break;case 18:z===uw&&(q<0?$e=Ie:q>0&&(Ke=st),re<0?Bt=jt:re>0&&(it=ft),z=lw,Mn());break;case 32:z===Q7&&(Ln.altKey?(q&&($e=Ie-It*q,Ke=st+It*q),re&&(Bt=jt-Tn*re,it=ft+Tn*re),z=uw):(q<0?$e=Ie:q>0&&(Ke=st),re<0?Bt=jt:re>0&&(it=ft),z=lw),jo.attr("cursor",$h[L]),Mn());break;default:return}eZ()}}function g(){var y=this.__brush||{selection:null};return y.extent=r.apply(this,arguments),y.dim=n,y}return s.move=function(y,L){y.selection?y.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 L?L.apply(this,arguments):L,q.extent),Ce=WL(ae,Se);function Ee(Ke){q.selection=1===Ke&&$7(Se)?null:Ce(Ke),l.call(z),re.brush()}return ae&&Se?Ee:Ee(1)}):y.each(function(){var z=this,q=arguments,re=z.__brush,ae=n.input("function"==typeof L?L.apply(z,q):L,re.extent),Se=u(z,q).beforestart();aw(z),re.selection=null==ae||$7(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(L){NL(new ype(s,L,n.output(this.state.selection)),i.apply,i,[L,this.that,this.args])}},s.extent=function(y){return arguments.length?(r="function"==typeof y?y:eq([[+y[0][0],+y[0][1]],[+y[1][0],+y[1][1]]]),s):r},s.filter=function(y){return arguments.length?(e="function"==typeof y?y:eq(!!y),s):e},s.handleSize=function(y){return arguments.length?(o=+y,s):o},s.on=function(){var y=i.on.apply(i,arguments);return y===i?s:y},s}var oq=Math.cos,aq=Math.sin,sq=Math.PI,rZ=sq/2,lq=2*sq,uq=Math.max;function Dpe(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ape(){var n=0,r=null,e=null,i=null;function o(a){var L,z,q,re,ae,Se,s=a.length,l=[],u=mc(s),d=[],h=[],g=h.groups=new Array(s),y=new Array(s*s);for(L=0,ae=-1;++ae<s;){for(z=0,Se=-1;++Se<s;)z+=a[ae][Se];l.push(z),d.push(mc(s)),L+=z}for(r&&u.sort(function(bt,$e){return r(l[bt],l[$e])}),e&&d.forEach(function(bt,$e){bt.sort(function(Ie,ct){return e(a[$e][Ie],a[$e][ct])})}),re=(L=uq(0,lq-n*s)/L)?n:lq/s,z=0,ae=-1;++ae<s;){for(q=z,Se=-1;++Se<s;){var Ce=u[ae],Ee=d[Ce][Se],Ke=a[Ce][Ee],st=z,De=z+=Ke*L;y[Ee*s+Ce]={index:Ce,subindex:Ee,startAngle:st,endAngle:De,value:Ke}}g[Ce]={index:Ce,startAngle:q,endAngle:z,value:l[Ce]},z+=re}for(ae=-1;++ae<s;)for(Se=ae-1;++Se<s;){var it=y[Se*s+ae],ft=y[ae*s+Se];(it.value||ft.value)&&h.push(it.value<ft.value?{source:ft,target:it}:{source:it,target:ft})}return i?h.sort(i):h}return o.padAngle=function(a){return arguments.length?(n=uq(0,a),o):n},o.sortGroups=function(a){return arguments.length?(r=a,o):r},o.sortSubgroups=function(a){return arguments.length?(e=a,o):e},o.sortChords=function(a){return arguments.length?(null==a?i=null:(i=Dpe(a))._=a,o):i&&i._},o}var Ope=Array.prototype.slice;function tj(n){return function(){return n}}var nj=Math.PI,rj=2*nj,o0=1e-6,Ppe=rj-o0;function ij(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function cq(){return new ij}ij.prototype=cq.prototype={constructor:ij,moveTo:function(r,e){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,e){this._+="L"+(this._x1=+r)+","+(this._y1=+e)},quadraticCurveTo:function(r,e,i,o){this._+="Q"+ +r+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(r,e,i,o,a,s){this._+="C"+ +r+","+ +e+","+ +i+","+ +o+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(r,e,i,o,a){r=+r,e=+e,i=+i,o=+o,a=+a;var s=this._x1,l=this._y1,u=i-r,d=o-e,h=s-r,g=l-e,y=h*h+g*g;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=e);else if(y>o0)if(Math.abs(g*u-d*h)>o0&&a){var L=i-s,z=o-l,q=u*u+d*d,re=L*L+z*z,ae=Math.sqrt(q),Se=Math.sqrt(y),Ce=a*Math.tan((nj-Math.acos((q+y-re)/(2*ae*Se)))/2),Ee=Ce/Se,Ke=Ce/ae;Math.abs(Ee-1)>o0&&(this._+="L"+(r+Ee*h)+","+(e+Ee*g)),this._+="A"+a+","+a+",0,0,"+ +(g*L>h*z)+","+(this._x1=r+Ke*u)+","+(this._y1=e+Ke*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,y=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)>o0||Math.abs(this._y1-h)>o0)&&(this._+="L"+d+","+h),i&&(y<0&&(y=y%rj+rj),y>Ppe?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):y>o0&&(this._+="A"+i+","+i+",0,"+ +(y>=nj)+","+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=cq;function Ipe(n){return n.source}function Rpe(n){return n.target}function Lpe(n){return n.radius}function Zpe(n){return n.startAngle}function Npe(n){return n.endAngle}function Bpe(){var n=Ipe,r=Rpe,e=Lpe,i=Zpe,o=Npe,a=null;function s(){var l,u=Ope.call(arguments),d=n.apply(this,u),h=r.apply(this,u),g=+e.apply(this,(u[0]=d,u)),y=i.apply(this,u)-rZ,L=o.apply(this,u)-rZ,z=g*oq(y),q=g*aq(y),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-rZ,Se=o.apply(this,u)-rZ;if(a||(a=l=jd()),a.moveTo(z,q),a.arc(0,0,g,y,L),(y!==ae||L!==Se)&&(a.quadraticCurveTo(0,0,re*oq(ae),re*aq(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:tj(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:tj(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:tj(+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 Jc="$";function iZ(){}function dq(n,r){var e=new iZ;if(n instanceof iZ)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<o;)e.set(i,n[i]);else for(;++i<o;)e.set(r(a=n[i],i,n),a)}else if(n)for(var s in n)e.set(s,n[s]);return e}iZ.prototype=dq.prototype={constructor:iZ,has:function(r){return Jc+r in this},get:function(r){return this[Jc+r]},set:function(r,e){return this[Jc+r]=e,this},remove:function(r){var e=Jc+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===Jc&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===Jc&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===Jc&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===Jc&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===Jc&&++r;return r},empty:function(){for(var r in this)if(r[0]===Jc)return!1;return!0},each:function(r){for(var e in this)e[0]===Jc&&r(this[e],e.slice(1),this)}};var mg=dq;function Fpe(){var e,i,o,n=[],r=[];function a(l,u,d,h){if(u>=n.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var z,q,ae,g=-1,y=l.length,L=n[u++],re=mg(),Se=d();++g<y;)(ae=re.get(z=L(q=l[g])+""))?ae.push(q):re.set(z,[q]);return re.each(function(Ce,Ee){h(Se,Ee,a(Ce,u,d,h))}),Se}function s(l,u){if(++u>n.length)return l;var d,h=r[u-1];return null!=i&&u>=n.length?d=l.entries():(d=[],l.each(function(g,y){d.push({key:y,values:s(g,u)})})),null!=h?d.sort(function(g,y){return h(g.key,y.key)}):d}return o={object:function(u){return a(u,0,Upe,jpe)},map:function(u){return a(u,0,fq,pq)},entries:function(u){return s(a(u,0,fq,pq),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 Upe(){return{}}function jpe(n,r,e){n[r]=e}function fq(){return mg()}function pq(n,r,e){n.set(r,e)}function oZ(){}var a0=mg.prototype;function hq(n,r){var e=new oZ;if(n instanceof oZ)n.each(function(a){e.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i<o;)e.add(n[i]);else for(;++i<o;)e.add(r(n[i],i,n))}return e}oZ.prototype=hq.prototype={constructor:oZ,has:a0.has,add:function(r){return this[Jc+(r+="")]=r,this},remove:a0.remove,clear:a0.clear,values:a0.keys,size:a0.size,empty:a0.empty,each:a0.each};var Hpe=hq;function Gpe(n){var r=[];for(var e in n)r.push(e);return r}function zpe(n){var r=[];for(var e in n)r.push(n[e]);return r}function Wpe(n){var r=[];for(var e in n)r.push({key:e,value:n[e]});return r}function cw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function rx(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function _g(){}var dw=1/.7,fw="\\s*([+-]?\\d+)\\s*",ix="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",up="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vpe=/^#([0-9a-f]{3})$/,Ype=/^#([0-9a-f]{6})$/,Kpe=new RegExp("^rgb\\("+[fw,fw,fw]+"\\)$"),qpe=new RegExp("^rgb\\("+[up,up,up]+"\\)$"),Jpe=new RegExp("^rgba\\("+[fw,fw,fw,ix]+"\\)$"),Qpe=new RegExp("^rgba\\("+[up,up,up,ix]+"\\)$"),Xpe=new RegExp("^hsl\\("+[ix,up,up]+"\\)$"),$pe=new RegExp("^hsla\\("+[ix,up,up,ix]+"\\)$"),mq={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 aZ(n){var r;return n=(n+"").trim().toLowerCase(),(r=Vpe.exec(n))?new ol((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Ype.exec(n))?_q(parseInt(r[1],16)):(r=Kpe.exec(n))?new ol(r[1],r[2],r[3],1):(r=qpe.exec(n))?new ol(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Jpe.exec(n))?gq(r[1],r[2],r[3],r[4]):(r=Qpe.exec(n))?gq(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Xpe.exec(n))?yq(r[1],r[2]/100,r[3]/100,1):(r=$pe.exec(n))?yq(r[1],r[2]/100,r[3]/100,r[4]):mq.hasOwnProperty(n)?_q(mq[n]):"transparent"===n?new ol(NaN,NaN,NaN,0):null}function _q(n){return new ol(n>>16&255,n>>8&255,255&n,1)}function gq(n,r,e,i){return i<=0&&(n=r=e=NaN),new ol(n,r,e,i)}function oj(n){return n instanceof _g||(n=aZ(n)),n?new ol((n=n.rgb()).r,n.g,n.b,n.opacity):new ol}function vq(n,r,e,i){return 1===arguments.length?oj(n):new ol(n,r,e,null==i?1:i)}function ol(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function yq(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 ehe(n){if(n instanceof cp)return new cp(n.h,n.s,n.l,n.opacity);if(n instanceof _g||(n=aZ(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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new cp(s,l,u,n.opacity)}function bq(n,r,e,i){return 1===arguments.length?ehe(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 aj(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}cw(_g,aZ,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),cw(ol,vq,rx(_g,{brighter:function(r){return r=null==r?dw:Math.pow(dw,r),new ol(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new ol(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+")")}})),cw(cp,bq,rx(_g,{brighter:function(r){return r=null==r?dw:Math.pow(dw,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 ol(aj(r>=240?r-240:r+120,a,o),aj(r,a,o),aj(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 Cq=Math.PI/180,wq=180/Math.PI,Sq=4/29,pw=6/29,Eq=3*pw*pw;function sj(n){if(n instanceof dp)return new dp(n.l,n.a,n.b,n.opacity);if(n instanceof em){if(isNaN(n.h))return new dp(n.l,0,0,n.opacity);var r=n.h*Cq;return new dp(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof ol||(n=oj(n));var s,l,e=dj(n.r),i=dj(n.g),o=dj(n.b),a=lj((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=lj((.4360747*e+.3850649*i+.1430804*o)/.96422),l=lj((.0139322*e+.0971045*i+.7141733*o)/.82521)),new dp(116*a-16,500*(s-a),200*(a-l),n.opacity)}function xq(n,r,e,i){return 1===arguments.length?sj(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 lj(n){return n>.008856451679035631?Math.pow(n,1/3):n/Eq+Sq}function uj(n){return n>pw?n*n*n:Eq*(n-Sq)}function cj(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function dj(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function nhe(n){if(n instanceof em)return new em(n.h,n.c,n.l,n.opacity);if(n instanceof dp||(n=sj(n)),0===n.a&&0===n.b)return new em(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*wq;return new em(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Dq(n,r,e,i){return 1===arguments.length?nhe(n):new em(n,r,e,null==i?1:i)}function em(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}cw(dp,xq,rx(_g,{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 ol(cj(3.1338561*(e=.96422*uj(e))-1.6168667*(r=1*uj(r))-.4906146*(i=.82521*uj(i))),cj(-.9787684*e+1.9161415*r+.033454*i),cj(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),cw(em,Dq,rx(_g,{brighter:function(r){return new em(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new em(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return sj(this).rgb()}}));var fj=1.78277,pj=-.29227,lZ=-.90649,ox=1.97294,Oq=ox*lZ,Pq=ox*fj,Iq=fj*pj- -.14861*lZ;function rhe(n){if(n instanceof l0)return new l0(n.h,n.s,n.l,n.opacity);n instanceof ol||(n=oj(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(Iq*i+Oq*r-Pq*e)/(Iq+Oq-Pq),a=i-o,s=(ox*(e-o)-pj*a)/lZ,l=Math.sqrt(s*s+a*a)/(ox*o*(1-o)),u=l?Math.atan2(s,a)*wq-120:NaN;return new l0(u<0?u+360:u,l,o,n.opacity)}function Rq(n,r,e,i){return 1===arguments.length?rhe(n):new l0(n,r,e,null==i?1:i)}function l0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}cw(l0,Rq,rx(_g,{brighter:function(r){return r=null==r?dw:Math.pow(dw,r),new l0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new l0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Cq,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new ol(255*(e+i*(-.14861*o+fj*a)),255*(e+i*(pj*o+lZ*a)),255*(e+i*(ox*o)),this.opacity)}}));var Lq=Array.prototype.slice;function ohe(n,r){return n-r}function u0(n){return function(){return n}}function she(n,r){for(var o,e=-1,i=r.length;++e<i;)if(o=lhe(n,r[e]))return o;return 0}function lhe(n,r){for(var e=r[0],i=r[1],o=-1,a=0,s=n.length,l=s-1;a<s;l=a++){var u=n[a],d=u[0],h=u[1],g=n[l],y=g[0],L=g[1];if(uhe(u,g,r))return 0;h>i!=L>i&&e<(y-d)*(i-h)/(L-h)+d&&(o=-o)}return o}function uhe(n,r,e){var i;return function che(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function dhe(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function fhe(){}var tm=[[],[[[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 Zq(){var n=1,r=1,e=D7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(ohe);else{var g=T7(d),y=g[0],L=g[1];h=e0(y,L,h),h=mc(Math.floor(y/h)*h,Math.floor(L/h)*h,h)}return h.map(function(z){return a(d,z)})}function a(d,h){var g=[],y=[];return function s(d,h,g){var z,q,re,ae,Se,Ce,y=new Array,L=new Array;for(z=q=-1,ae=d[0]>=h,tm[ae<<1].forEach(Ee);++z<n-1;)re=ae,ae=d[z+1]>=h,tm[re|ae<<1].forEach(Ee);for(tm[ae<<0].forEach(Ee);++q<r-1;){for(z=-1,ae=d[q*n+n]>=h,Se=d[q*n]>=h,tm[ae<<1|Se<<2].forEach(Ee);++z<n-1;)re=ae,ae=d[q*n+n+z+1]>=h,Ce=Se,Se=d[q*n+z+1]>=h,tm[re|ae<<1|Se<<2|Ce<<3].forEach(Ee);tm[ae|Se<<3].forEach(Ee)}for(z=-1,Se=d[q*n]>=h,tm[Se<<2].forEach(Ee);++z<n-1;)Ce=Se,Se=d[q*n+z+1]>=h,tm[Se<<2|Ce<<3].forEach(Ee);function Ee(Ke){var bt,$e,st=[Ke[0][0]+z,Ke[0][1]+q],De=[Ke[1][0]+z,Ke[1][1]+q],it=l(st),ft=l(De);(bt=L[it])?($e=y[ft])?(delete L[bt.end],delete y[$e.start],bt===$e?(bt.ring.push(De),g(bt.ring)):y[bt.start]=L[$e.end]={start:bt.start,end:$e.end,ring:bt.ring.concat($e.ring)}):(delete L[bt.end],bt.ring.push(De),L[bt.end=ft]=bt):(bt=y[ft])?($e=L[it])?(delete y[bt.start],delete L[$e.end],bt===$e?(bt.ring.push(De),g(bt.ring)):y[$e.start]=L[bt.end]={start:$e.start,end:bt.end,ring:$e.ring.concat(bt.ring)}):(delete y[bt.start],bt.ring.unshift(st),y[bt.start=it]=bt):y[it]=L[ft]={start:it,end:ft,ring:[st,De]}}tm[Se<<3].forEach(Ee)}(d,h,function(L){i(L,d,h),function ahe(n){for(var r=0,e=n.length,i=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];++r<e;)i+=n[r-1][1]*n[r][0]-n[r-1][0]*n[r][1];return i}(L)>0?g.push([L]):y.push(L)}),y.forEach(function(L){for(var re,z=0,q=g.length;z<q;++z)if(-1!==she((re=g[z])[0],L))return void re.push(L)}),{type:"MultiPolygon",value:h,coordinates:g}}function l(d){return 2*d[0]+d[1]*(n+1)*4}function u(d,h,g){d.forEach(function(y){var ae,L=y[0],z=y[1],q=0|L,re=0|z,Se=h[re*n+q];L>0&&L<n&&q===L&&(ae=h[re*n+q-1],y[0]=L+(g-ae)/(Se-ae)-.5),z>0&&z<r&&re===z&&(ae=h[(re-1)*n+q],y[1]=z+(g-ae)/(Se-ae)-.5)})}return o.contour=a,o.size=function(d){if(!arguments.length)return[n,r];var h=Math.ceil(d[0]),g=Math.ceil(d[1]);if(!(h>0&&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)?u0(Lq.call(d)):u0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:fhe,o):i===u},o}function hj(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<o;++s)for(var l=0,u=0;l<i+e;++l)l<i&&(u+=n.data[l+s*i]),l>=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 mj(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<i;++s)for(var l=0,u=0;l<o+e;++l)l<o&&(u+=n.data[s+l*i]),l>=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 phe(n){return n[0]}function hhe(n){return n[1]}function mhe(){var n=phe,r=hhe,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,d=u0(20);function h(re){var ae=new Float32Array(l*u),Se=new Float32Array(l*u);re.forEach(function(Ke,st,De){var it=n(Ke,st,De)+s>>a,ft=r(Ke,st,De)+s>>a;it>=0&&it<l&&ft>=0&&ft<u&&++ae[it+ft*l]}),hj({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),mj({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),hj({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),mj({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),hj({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),mj({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var Ee=nK(ae);Ce=e0(0,Ee,Ce),(Ce=mc(0,Math.floor(Ee/Ce)*Ce,Ce)).shift()}return Zq().thresholds(Ce).size([l,u])(ae).map(g)}function g(re){return re.value*=Math.pow(2,-2*a),re.coordinates.forEach(y),re}function y(re){re.forEach(L)}function L(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:u0(+re),h):n},h.y=function(re){return arguments.length?(r="function"==typeof re?re:u0(+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<<a;if(!((re=+re)>=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)?u0(Lq.call(re)):u0(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 _j(n,r,e){arguments.length<3&&(e=r,r=BK().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return FK(n,a);return null}function uZ(n){return function(){return n}}function gj(n,r,e,i,o,a,s,l,u,d){this.target=n,this.type=r,this.subject=e,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=l,this.dy=u,this._=d}function _he(){return!Ln.ctrlKey&&!Ln.button}function ghe(){return this.parentNode}function vhe(n){return null==n?{x:Ln.x,y:Ln.y}:n}function yhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function gg(){var l,u,d,h,n=_he,r=ghe,e=vhe,i=yhe,o={},a=t0("start","drag","end"),s=0,g=0;function y(Ee){Ee.on("mousedown.drag",L).filter(i).on("touchstart.drag",re).on("touchmove.drag",ae).on("touchend.drag touchcancel.drag",Se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(){if(!h&&n.apply(this,arguments)){var Ee=Ce("mouse",r.apply(this,arguments),Fd,this,arguments);!Ee||(Ci(Ln.view).on("mousemove.drag",z,!0).on("mouseup.drag",q,!0),BL(Ln.view),Z7(),d=!1,l=Ln.clientX,u=Ln.clientY,Ee("start"))}}function z(){if(ew(),!d){var Ee=Ln.clientX-l,Ke=Ln.clientY-u;d=Ee*Ee+Ke*Ke>g}o.mouse("drag")}function q(){Ci(Ln.view).on("mousemove.drag mouseup.drag",null),FL(Ln.view,d),ew(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var De,it,Ee=Ln.changedTouches,Ke=r.apply(this,arguments),st=Ee.length;for(De=0;De<st;++De)(it=Ce(Ee[De].identifier,Ke,_j,this,arguments))&&(Z7(),it("start"))}}function ae(){var st,De,Ee=Ln.changedTouches,Ke=Ee.length;for(st=0;st<Ke;++st)(De=o[Ee[st].identifier])&&(ew(),De("drag"))}function Se(){var st,De,Ee=Ln.changedTouches,Ke=Ee.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),st=0;st<Ke;++st)(De=o[Ee[st].identifier])&&(Z7(),De("end"))}function Ce(Ee,Ke,st,De,it){var bt,$e,Ie,ft=st(Ke,Ee),ct=a.copy();if(NL(new gj(y,"beforestart",bt,Ee,s,ft[0],ft[1],0,0,ct),function(){return null!=(Ln.subject=bt=e.apply(De,it))&&($e=bt.x-ft[0]||0,Ie=bt.y-ft[1]||0,!0)}))return function Bt(jt){var Tn,It=ft;switch(jt){case"start":o[Ee]=Bt,Tn=s++;break;case"end":delete o[Ee],--s;case"drag":ft=st(Ke,Ee),Tn=s}NL(new gj(y,jt,bt,Ee,Tn,ft[0]+$e,ft[1]+Ie,ft[0]-It[0],ft[1]-It[1],ct),ct.apply,ct,[jt,De,it])}}return y.filter=function(Ee){return arguments.length?(n="function"==typeof Ee?Ee:uZ(!!Ee),y):n},y.container=function(Ee){return arguments.length?(r="function"==typeof Ee?Ee:uZ(Ee),y):r},y.subject=function(Ee){return arguments.length?(e="function"==typeof Ee?Ee:uZ(Ee),y):e},y.touchable=function(Ee){return arguments.length?(i="function"==typeof Ee?Ee:uZ(!!Ee),y):i},y.on=function(){var Ee=a.on.apply(a,arguments);return Ee===a?y:Ee},y.clickDistance=function(Ee){return arguments.length?(g=(Ee=+Ee)*Ee,y):Math.sqrt(g)},y}gj.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Nq={},vj={};function Bq(n){return new Function("d","return {"+n.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function Cj(n){var r=new RegExp('["'+n+"\n\r]"),e=n.charCodeAt(0);function o(d,h){var q,g=[],y=d.length,L=0,z=0,re=y<=0,ae=!1;function Se(){if(re)return vj;if(ae)return ae=!1,Nq;var Ee,st,Ke=L;if(34===d.charCodeAt(Ke)){for(;L++<y&&34!==d.charCodeAt(L)||34===d.charCodeAt(++L););return(Ee=L)>=y?re=!0:10===(st=d.charCodeAt(L++))?ae=!0:13===st&&(ae=!0,10===d.charCodeAt(L)&&++L),d.slice(Ke+1,Ee-1).replace(/""/g,'"')}for(;L<y;){if(10===(st=d.charCodeAt(Ee=L++)))ae=!0;else if(13===st)ae=!0,10===d.charCodeAt(L)&&++L;else if(st!==e)continue;return d.slice(Ke,Ee)}return re=!0,d.slice(Ke,y)}for(10===d.charCodeAt(y-1)&&--y,13===d.charCodeAt(y-1)&&--y;(q=Se())!==vj;){for(var Ce=[];q!==Nq&&q!==vj;)Ce.push(q),q=Se();h&&null==(Ce=h(Ce,z++))||g.push(Ce)}return g}function l(d){return d.map(u).join(n)}function u(d){return null==d?"":r.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:function i(d,h){var g,y,L=o(d,function(z,q){if(g)return g(z,q-1);y=z,g=h?function bhe(n,r){var e=Bq(n);return function(i,o){return r(e(i),o,n)}}(z,h):Bq(z)});return L.columns=y||[],L},parseRows:o,format:function a(d,h){return null==h&&(h=function Che(n){var r=Object.create(null),e=[];return n.forEach(function(i){for(var o in i)o in r||e.push(r[o]=o)}),e}(d)),[h.map(u).join(n)].concat(d.map(function(g){return h.map(function(y){return u(g[y])}).join(n)})).join("\n")},formatRows:function s(d){return d.map(l).join("\n")}}}var cZ=Cj(","),whe=cZ.parse,khe=cZ.parseRows,The=cZ.format,Mhe=cZ.formatRows,dZ=Cj("\t"),She=dZ.parse,Ehe=dZ.parseRows,xhe=dZ.format,Dhe=dZ.formatRows;function Ahe(n){return+n}function Ohe(n){return n*n}function Phe(n){return n*(2-n)}function Fq(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Ihe=function n(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=n,e}(3),Rhe=function n(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=n,e}(3),Uq=function n(r){function e(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,e.exponent=n,e}(3),jq=Math.PI,Hq=jq/2;function Lhe(n){return 1==+n?1:1-Math.cos(n*Hq)}function Zhe(n){return Math.sin(n*Hq)}function Gq(n){return(1-Math.cos(jq*n))/2}function vg(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Nhe(n){return vg(1-+n)}function Bhe(n){return 1-vg(n)}function zq(n){return((n*=2)<=1?vg(1-n):2-vg(n-1))/2}function Fhe(n){return 1-Math.sqrt(1-n*n)}function Uhe(n){return Math.sqrt(1- --n*n)}function Wq(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var kj=4/11,fZ=7.5625;function qhe(n){return 1-sx(1-n)}function sx(n){return(n=+n)<kj?fZ*n*n:n<.7272727272727273?fZ*(n-=.5454545454545454)*n+.75:n<.9090909090909091?fZ*(n-=.8181818181818182)*n+.9375:fZ*(n-=.9545454545454546)*n+.984375}function Jhe(n){return((n*=2)<=1?1-sx(1-n):sx(n-1)+1)/2}var Tj=1.70158,Qhe=function n(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=n,e}(Tj),Xhe=function n(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=n,e}(Tj),Vq=function n(r){function e(i){return((i*=2)<1?i*i*((r+1)*i-r):(i-=2)*i*((r+1)*i+r)+2)/2}return r=+r,e.overshoot=n,e}(Tj),hw=2*Math.PI,$he=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=hw);function o(a){return r*vg(- --a)*Math.sin((i-a)/e)}return o.amplitude=function(a){return n(a,e*hw)},o.period=function(a){return n(r,a)},o}(1,.3),Yq=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=hw);function o(a){return 1-r*vg(a=+a)*Math.sin((a+i)/e)}return o.amplitude=function(a){return n(a,e*hw)},o.period=function(a){return n(r,a)},o}(1,.3),eme=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=hw);function o(a){return((a=2*a-1)<0?r*vg(-a)*Math.sin((i-a)/e):2-r*vg(a)*Math.sin((i+a)/e))/2}return o.amplitude=function(a){return n(a,e*hw)},o.period=function(a){return n(r,a)},o}(1,.3);function tme(n,r){var e;function i(){var o,s,a=e.length,l=0,u=0;for(o=0;o<a;++o)l+=(s=e[o]).x,u+=s.y;for(l=l/a-n,u=u/a-r,o=0;o<a;++o)(s=e[o]).x-=l,s.y-=u}return null==n&&(n=0),null==r&&(r=0),i.initialize=function(o){e=o},i.x=function(o){return arguments.length?(n=+o,i):n},i.y=function(o){return arguments.length?(r=+o,i):r},i}function gs(n){return function(){return n}}function yg(){return 1e-6*(Math.random()-.5)}function Kq(n,r,e,i){if(isNaN(r)||isNaN(e))return n;var o,g,y,L,z,q,re,ae,Se,a=n._root,s={data:i},l=n._x0,u=n._y0,d=n._x1,h=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(y=(u+h)/2))?u=y:h=y,o=a,!(a=a[ae=re<<1|q]))return o[ae]=s,n;if(L=+n._x.call(null,a.data),z=+n._y.call(null,a.data),r===L&&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>=(y=(u+h)/2))?u=y:h=y}while((ae=re<<1|q)==(Se=(z>=y)<<1|L>=g));return o[Se]=a,o[ae]=s,n}function Xl(n,r,e,i,o){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function hme(n){return n[0]}function _me(n){return n[1]}function pZ(n,r,e){var i=new Ej(null==r?hme:r,null==e?_me:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function Ej(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 qq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var $l=pZ.prototype=Ej.prototype;function vme(n){return n.x+n.vx}function yme(n){return n.y+n.vy}function bme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,y,L,z,q,d=r.length,re=0;re<o;++re)for(h=pZ(r,vme,yme).visitAfter(s),u=0;u<d;++u)g=r[u],z=e[g.index],q=z*z,y=g.x+g.vx,L=g.y+g.vy,h.visit(ae);function ae(Se,Ce,Ee,Ke,st){var De=Se.data,it=Se.r,ft=z+it;if(!De)return Ce>y+ft||Ke<y-ft||Ee>L+ft||st<L-ft;if(De.index>g.index){var bt=y-De.x-De.vx,$e=L-De.y-De.vy,Ie=bt*bt+$e*$e;Ie<ft*ft&&(0===bt&&(Ie+=(bt=yg())*bt),0===$e&&(Ie+=($e=yg())*$e),Ie=(ft-(Ie=Math.sqrt(Ie)))/Ie*i,g.vx+=(bt*=Ie)*(ft=(it*=it)/(q+it)),g.vy+=($e*=Ie)*ft,De.vx-=bt*(ft=1-ft),De.vy-=$e*ft)}}}function s(u){if(u.data)return u.r=e[u.data.index];for(var d=u.r=0;d<4;++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function l(){if(r){var u,h,d=r.length;for(e=new Array(d),u=0;u<d;++u)h=r[u],e[h.index]=+n(h,u,r)}}return"function"!=typeof n&&(n=gs(null==n?1:+n)),a.initialize=function(u){r=u,l()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(i=+u,a):i},a.radius=function(u){return arguments.length?(n="function"==typeof u?u:gs(+u),l(),a):n},a}function Cme(n){return n.index}function Jq(n,r){var e=n.get(r);if(!e)throw new Error("missing: "+r);return e}function wme(n){var i,a,s,l,u,r=Cme,e=function h(q){return 1/Math.min(l[q.source.index],l[q.target.index])},o=gs(30),d=1;function g(q){for(var re=0,ae=n.length;re<d;++re)for(var Ce,Ee,Ke,st,De,it,ft,Se=0;Se<ae;++Se)Ee=(Ce=n[Se]).source,st=(Ke=Ce.target).x+Ke.vx-Ee.x-Ee.vx||yg(),De=Ke.y+Ke.vy-Ee.y-Ee.vy||yg(),st*=it=((it=Math.sqrt(st*st+De*De))-a[Se])/it*q*i[Se],De*=it,Ke.vx-=st*(ft=u[Se]),Ke.vy-=De*ft,Ee.vx+=st*(ft=1-ft),Ee.vy+=De*ft}function y(){if(s){var q,Ce,re=s.length,ae=n.length,Se=mg(s,r);for(q=0,l=new Array(re);q<ae;++q)(Ce=n[q]).index=q,"object"!=typeof Ce.source&&(Ce.source=Jq(Se,Ce.source)),"object"!=typeof Ce.target&&(Ce.target=Jq(Se,Ce.target)),l[Ce.source.index]=(l[Ce.source.index]||0)+1,l[Ce.target.index]=(l[Ce.target.index]||0)+1;for(q=0,u=new Array(ae);q<ae;++q)Ce=n[q],u[q]=l[Ce.source.index]/(l[Ce.source.index]+l[Ce.target.index]);i=new Array(ae),L(),a=new Array(ae),z()}}function L(){if(s)for(var q=0,re=n.length;q<re;++q)i[q]=+e(n[q],q,n)}function z(){if(s)for(var q=0,re=n.length;q<re;++q)a[q]=+o(n[q],q,n)}return null==n&&(n=[]),g.initialize=function(q){s=q,y()},g.links=function(q){return arguments.length?(n=q,y(),g):n},g.id=function(q){return arguments.length?(r=q,g):r},g.iterations=function(q){return arguments.length?(d=+q,g):d},g.strength=function(q){return arguments.length?(e="function"==typeof q?q:gs(+q),L(),g):e},g.distance=function(q){return arguments.length?(o="function"==typeof q?q:gs(+q),z(),g):o},g}function kme(n){return n.x}function Tme(n){return n.y}$l.copy=function(){var e,i,n=new Ej(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=qq(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(i=r.source[o])&&(i.length?e.push({source:i,target:r.target[o]=new Array(4)}):r.target[o]=qq(i));return n},$l.add=function nme(n){var r=+this._x.call(null,n),e=+this._y.call(null,n);return Kq(this.cover(r,e),r,e,n)},$l.addAll=function rme(n){var r,e,o,a,i=n.length,s=new Array(i),l=new Array(i),u=1/0,d=1/0,h=-1/0,g=-1/0;for(e=0;e<i;++e)isNaN(o=+this._x.call(null,r=n[e]))||isNaN(a=+this._y.call(null,r))||(s[e]=o,l[e]=a,o<u&&(u=o),o>h&&(h=o),a<d&&(d=a),a>g&&(g=a));if(u>h||d>g)return this;for(this.cover(u,d).cover(h,g),e=0;e<i;++e)Kq(this,s[e],l[e],n[e]);return this},$l.cover=function ime(n,r){if(isNaN(n=+n)||isNaN(r=+r))return this;var e=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(e))o=(e=Math.floor(n))+1,a=(i=Math.floor(r))+1;else{for(var u,d,s=o-e,l=this._root;e>n||n>=o||i>r||r>=a;)switch(d=(r<i)<<1|n<e,u=new Array(4),u[d]=l,l=u,s*=2,d){case 0:o=e+s,a=i+s;break;case 1:e=o-s,a=i+s;break;case 2:o=e+s,i=a-s;break;case 3:e=o-s,i=a-s}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=i,this._x1=o,this._y1=a,this},$l.data=function ome(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},$l.extent=function ame(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},$l.find=function sme(n,r,e){var i,s,l,u,d,z,q,o=this._x0,a=this._y0,h=this._x1,g=this._y1,y=[],L=this._root;for(L&&y.push(new Xl(L,o,a,h,g)),null==e?e=1/0:(o=n-e,a=r-e,h=n+e,g=r+e,e*=e);z=y.pop();)if(!(!(L=z.node)||(s=z.x0)>h||(l=z.y0)>g||(u=z.x1)<o||(d=z.y1)<a))if(L.length){var re=(s+u)/2,ae=(l+d)/2;y.push(new Xl(L[3],re,ae,u,d),new Xl(L[2],s,ae,re,d),new Xl(L[1],re,l,u,ae),new Xl(L[0],s,l,re,ae)),(q=(r>=ae)<<1|n>=re)&&(z=y[y.length-1],y[y.length-1]=y[y.length-1-q],y[y.length-1-q]=z)}else{var Se=n-+this._x.call(null,L.data),Ce=r-+this._y.call(null,L.data),Ee=Se*Se+Ce*Ce;if(Ee<e){var Ke=Math.sqrt(e=Ee);o=n-Ke,a=r-Ke,h=n+Ke,g=r+Ke,i=L.data}}return i},$l.remove=function lme(n){if(isNaN(h=+this._x.call(null,n))||isNaN(g=+this._y.call(null,n)))return this;var r,i,o,a,h,g,y,L,z,q,re,ae,e=this._root,s=this._x0,l=this._y0,u=this._x1,d=this._y1;if(!e)return this;if(e.length)for(;;){if((z=h>=(y=(s+u)/2))?s=y:u=y,(q=g>=(L=(l+d)/2))?l=L:d=L,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)},$l.removeAll=function ume(n){for(var r=0,e=n.length;r<e;++r)this.remove(n[r]);return this},$l.root=function cme(){return this._root},$l.size=function dme(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},$l.visit=function fme(n){var e,o,a,s,l,u,r=[],i=this._root;for(i&&r.push(new Xl(i,this._x0,this._y0,this._x1,this._y1));e=r.pop();)if(!n(i=e.node,a=e.x0,s=e.y0,l=e.x1,u=e.y1)&&i.length){var d=(a+l)/2,h=(s+u)/2;(o=i[3])&&r.push(new Xl(o,d,h,l,u)),(o=i[2])&&r.push(new Xl(o,a,h,d,u)),(o=i[1])&&r.push(new Xl(o,d,s,l,h)),(o=i[0])&&r.push(new Xl(o,a,s,d,h))}return this},$l.visitAfter=function pme(n){var i,r=[],e=[];for(this._root&&r.push(new Xl(this._root,this._x0,this._y0,this._x1,this._y1));i=r.pop();){var o=i.node;if(o.length){var a,s=i.x0,l=i.y0,u=i.x1,d=i.y1,h=(s+u)/2,g=(l+d)/2;(a=o[0])&&r.push(new Xl(a,s,l,h,g)),(a=o[1])&&r.push(new Xl(a,h,l,u,g)),(a=o[2])&&r.push(new Xl(a,s,g,h,d)),(a=o[3])&&r.push(new Xl(a,h,g,u,d))}e.push(i)}for(;i=e.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},$l.x=function mme(n){return arguments.length?(this._x=n,this):this._x},$l.y=function gme(n){return arguments.length?(this._y=n,this):this._y};var Qq,Sme=Math.PI*(3-Math.sqrt(5));function Eme(n){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=mg(),u=$E(h),d=t0("tick","end");function h(){g(),d.call("tick",r),e<i&&(u.stop(),d.call("end",r))}function g(){var z,re,q=n.length;for(e+=(a-e)*o,l.each(function(ae){ae(e)}),z=0;z<q;++z)null==(re=n[z]).fx?re.x+=re.vx*=s:(re.x=re.fx,re.vx=0),null==re.fy?re.y+=re.vy*=s:(re.y=re.fy,re.vy=0)}function y(){for(var re,z=0,q=n.length;z<q;++z){if((re=n[z]).index=z,isNaN(re.x)||isNaN(re.y)){var ae=10*Math.sqrt(z),Se=z*Sme;re.x=ae*Math.cos(Se),re.y=ae*Math.sin(Se)}(isNaN(re.vx)||isNaN(re.vy))&&(re.vx=re.vy=0)}}function L(z){return z.initialize&&z.initialize(n),z}return null==n&&(n=[]),y(),r={tick:g,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(n=q,y(),l.each(L),r):n},alpha:function(q){return arguments.length?(e=+q,r):e},alphaMin:function(q){return arguments.length?(i=+q,r):i},alphaDecay:function(q){return arguments.length?(o=+q,r):+o},alphaTarget:function(q){return arguments.length?(a=+q,r):a},velocityDecay:function(q){return arguments.length?(s=1-q,r):1-s},force:function(q,re){return arguments.length>1?(null==re?l.remove(q):l.set(q,L(re)),r):l.get(q)},find:function(q,re,ae){var Ee,Ke,st,De,it,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se<Ce;++Se)(st=(Ee=q-(De=n[Se]).x)*Ee+(Ke=re-De.y)*Ke)<ae&&(it=De,ae=st);return it},on:function(q,re){return arguments.length>1?(d.on(q,re),r):d.on(q)}}}function xme(){var n,r,e,o,i=gs(-30),a=1,s=1/0,l=.81;function u(y){var L,z=n.length,q=pZ(n,kme,Tme).visitAfter(h);for(e=y,L=0;L<z;++L)r=n[L],q.visit(g)}function d(){if(n){var y,z,L=n.length;for(o=new Array(L),y=0;y<L;++y)z=n[y],o[z.index]=+i(z,y,n)}}function h(y){var z,q,ae,Se,Ce,L=0,re=0;if(y.length){for(ae=Se=Ce=0;Ce<4;++Ce)(z=y[Ce])&&(q=Math.abs(z.value))&&(L+=z.value,re+=q,ae+=q*z.x,Se+=q*z.y);y.x=ae/re,y.y=Se/re}else{(z=y).x=z.data.x,z.y=z.data.y;do{L+=o[z.data.index]}while(z=z.next)}y.value=L}function g(y,L,z,q){if(!y.value)return!0;var re=y.x-r.x,ae=y.y-r.y,Se=q-L,Ce=re*re+ae*ae;if(Se*Se/l<Ce)return Ce<s&&(0===re&&(Ce+=(re=yg())*re),0===ae&&(Ce+=(ae=yg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)),r.vx+=re*y.value*e/Ce,r.vy+=ae*y.value*e/Ce),!0;if(!(y.length||Ce>=s)){(y.data!==r||y.next)&&(0===re&&(Ce+=(re=yg())*re),0===ae&&(Ce+=(ae=yg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)));do{y.data!==r&&(Se=o[y.data.index]*e/Ce,r.vx+=re*Se,r.vy+=ae*Se)}while(y=y.next)}}return u.initialize=function(y){n=y,d()},u.strength=function(y){return arguments.length?(i="function"==typeof y?y:gs(+y),d(),u):i},u.distanceMin=function(y){return arguments.length?(a=y*y,u):Math.sqrt(a)},u.distanceMax=function(y){return arguments.length?(s=y*y,u):Math.sqrt(s)},u.theta=function(y){return arguments.length?(l=y*y,u):Math.sqrt(l)},u}function Dme(n,r,e){var i,a,s,o=gs(.1);function l(d){for(var h=0,g=i.length;h<g;++h){var y=i[h],L=y.x-r||1e-6,z=y.y-e||1e-6,q=Math.sqrt(L*L+z*z),re=(s[h]-q)*a[h]*d/q;y.vx+=L*re,y.vy+=z*re}}function u(){if(i){var d,h=i.length;for(a=new Array(h),s=new Array(h),d=0;d<h;++d)s[d]=+n(i[d],d,i),a[d]=isNaN(s[d])?0:+o(i[d],d,i)}}return"function"!=typeof n&&(n=gs(+n)),null==r&&(r=0),null==e&&(e=0),l.initialize=function(d){i=d,u()},l.strength=function(d){return arguments.length?(o="function"==typeof d?d:gs(+d),u(),l):o},l.radius=function(d){return arguments.length?(n="function"==typeof d?d:gs(+d),u(),l):n},l.x=function(d){return arguments.length?(r=+d,l):r},l.y=function(d){return arguments.length?(e=+d,l):e},l}function Ame(n){var e,i,o,r=gs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vx+=(o[u]-h.x)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=gs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:gs(+l),s(),a):r},a.x=function(l){return arguments.length?(n="function"==typeof l?l:gs(+l),s(),a):n},a}function Ome(n){var e,i,o,r=gs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vy+=(o[u]-h.y)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=gs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:gs(+l),s(),a):r},a.y=function(l){return arguments.length?(n="function"==typeof l?l:gs(+l),s(),a):n},a}function hZ(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=hZ(Math.abs(n)))?n[1]:NaN}function Xq(n,r){var e=hZ(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 $q={"":function Rme(n,r){e:for(var a,e=(n=n.toPrecision(r)).length,i=1,o=-1;i<e;++i)switch(n[i]){case".":o=a=i;break;case"0":0===o&&(o=i),a=i;break;case"e":break e;default:o>0&&(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 Xq(100*r,e)},r:Xq,s:function Lme(n,r){var e=hZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Qq=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")+hZ(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)}},Zme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function mZ(n){return new xj(n)}function xj(n){if(!(r=Zme.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"):$q[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 eJ(n){return n}mZ.prototype=xj.prototype,xj.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 _Z,rJ,iJ,tJ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function nJ(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):eJ,e=n.currency,i=n.decimal,o=n.numerals?function Ime(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):eJ,a=n.percent||"%";function s(u){var d=(u=mZ(u)).fill,h=u.align,g=u.sign,y=u.symbol,L=u.zero,z=u.width,q=u.comma,re=u.precision,ae=u.type,Se="$"===y?e[0]:"#"===y&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",Ce="$"===y?e[1]:/[%p]/.test(ae)?a:"",Ee=$q[ae],Ke=!ae||/[defgprs%]/.test(ae);function st(De){var bt,$e,Ie,it=Se,ft=Ce;if("c"===ae)ft=Ee(De)+ft,De="";else{var ct=(De=+De)<0;if(De=Ee(Math.abs(De),re),ct&&0==+De&&(ct=!1),it=(ct?"("===g?g:"-":"-"===g||"("===g?"":g)+it,ft=("s"===ae?tJ[8+Qq/3]:"")+ft+(ct&&"("===g?")":""),Ke)for(bt=-1,$e=De.length;++bt<$e;)if(48>(Ie=De.charCodeAt(bt))||Ie>57){ft=(46===Ie?i+De.slice(bt+1):De.slice(bt))+ft,De=De.slice(0,bt);break}}q&&!L&&(De=r(De,1/0));var Bt=it.length+De.length+ft.length,jt=Bt<z?new Array(z-Bt+1).join(d):"";switch(q&&L&&(De=r(jt+De,jt.length?z-ft.length:1/0),jt=""),h){case"<":De=it+De+ft+jt;break;case"=":De=it+jt+De+ft;break;case"^":De=jt.slice(0,Bt=jt.length>>1)+it+De+ft+jt.slice(Bt);break;default:De=jt+it+De+ft}return o(De)}return re=null==re?ae?6:12:/[gprs]/.test(ae)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re)),st.toString=function(){return u+""},st}return{format:s,formatPrefix:function l(u,d){var h=s(((u=mZ(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(mw(d)/3))),y=Math.pow(10,-g),L=tJ[8+g/3];return function(z){return h(y*z)+L}}}}function oJ(n){return _Z=nJ(n),rJ=_Z.format,iJ=_Z.formatPrefix,_Z}function Nme(n){return Math.max(0,-mw(Math.abs(n)))}function Bme(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mw(r)/3)))-mw(Math.abs(n)))}function Fme(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,mw(r)-mw(n))+1}function bg(){return new gZ}function gZ(){this.reset()}oJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),gZ.prototype={constructor:gZ,reset:function(){this.s=this.t=0},add:function(r){aJ(vZ,r,this.t),aJ(this,vZ.s,this.s),this.s?this.t+=vZ.t:this.s=vZ.t},valueOf:function(){return this.s}};var vZ=new gZ;function aJ(n,r,e){var i=n.s=r+e,o=i-r,a=i-o;n.t=r-a+(e-o)}var Mr=1e-6,Zi=Math.PI,Da=Zi/2,yZ=Zi/4,Fu=2*Zi,zo=180/Zi,Lr=Zi/180,Xi=Math.abs,_w=Math.atan,eu=Math.atan2,Sr=Math.cos,bZ=Math.ceil,lJ=Math.exp,CZ=(Math.floor,Math.log),Dj=Math.pow,mr=Math.sin,lx=Math.sign||function(n){return n>0?1:n<0?-1:0},vs=Math.sqrt,Aj=Math.tan;function uJ(n){return n>1?0:n<-1?Zi:Math.acos(n)}function gc(n){return n>1?Da:n<-1?-Da:Math.asin(n)}function cJ(n){return(n=mr(n/2))*n}function _a(){}function wZ(n,r){n&&fJ.hasOwnProperty(n.type)&&fJ[n.type](n,r)}var dJ={Feature:function(r,e){wZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)wZ(i[o].geometry,e)}},fJ={Sphere:function(r,e){e.sphere()},Point:function(r,e){r=r.coordinates,e.point(r[0],r[1],r[2])},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)r=i[o],e.point(r[0],r[1],r[2])},LineString:function(r,e){Oj(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)Oj(i[o],e,0)},Polygon:function(r,e){pJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)pJ(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)wZ(i[o],e)}};function Oj(n,r,e){var a,i=-1,o=n.length-e;for(r.lineStart();++i<o;)a=n[i],r.point(a[0],a[1],a[2]);r.lineEnd()}function pJ(n,r){var e=-1,i=n.length;for(r.polygonStart();++e<i;)Oj(n[e],r,1);r.polygonEnd()}function Hd(n,r){n&&dJ.hasOwnProperty(n.type)?dJ[n.type](n,r):wZ(n,r)}var hJ,mJ,Pj,Ij,Rj,kZ=bg(),TZ=bg(),fp={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){kZ.reset(),fp.lineStart=Ume,fp.lineEnd=jme},polygonEnd:function(){var r=+kZ;TZ.add(r<0?Fu+r:r),this.lineStart=this.lineEnd=this.point=_a},sphere:function(){TZ.add(Fu)}};function Ume(){fp.point=Hme}function jme(){_J(hJ,mJ)}function Hme(n,r){fp.point=_J,hJ=n,mJ=r,Pj=n*=Lr,Ij=Sr(r=(r*=Lr)/2+yZ),Rj=mr(r)}function _J(n,r){var e=(n*=Lr)-Pj,i=e>=0?1:-1,o=i*e,a=Sr(r=(r*=Lr)/2+yZ),s=mr(r),l=Rj*s,u=Ij*a+l*Sr(o),d=l*i*mr(o);kZ.add(eu(d,u)),Pj=n,Ij=a,Rj=s}function Gme(n){return TZ.reset(),Hd(n,fp),2*TZ}function MZ(n){return[eu(n[1],n[0]),gc(n[2])]}function c0(n){var r=n[0],e=n[1],i=Sr(e);return[i*Sr(r),i*mr(r),mr(e)]}function SZ(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function gw(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 Lj(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function EZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function xZ(n){var r=vs(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Aa,vc,ja,Qc,d0,gJ,vJ,vw,Cg,nm,ux=bg(),rm={point:Zj,lineStart:bJ,lineEnd:CJ,polygonStart:function(){rm.point=wJ,rm.lineStart=zme,rm.lineEnd=Wme,ux.reset(),fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),rm.point=Zj,rm.lineStart=bJ,rm.lineEnd=CJ,kZ<0?(Aa=-(ja=180),vc=-(Qc=90)):ux>Mr?Qc=90:ux<-Mr&&(vc=-90),nm[0]=Aa,nm[1]=ja}};function Zj(n,r){Cg.push(nm=[Aa=n,ja=n]),r<vc&&(vc=r),r>Qc&&(Qc=r)}function yJ(n,r){var e=c0([n*Lr,r*Lr]);if(vw){var i=gw(vw,e),a=gw([i[1],-i[0],0],i);xZ(a),a=MZ(a);var d,s=n-d0,l=s>0?1:-1,u=a[0]*zo*l,h=Xi(s)>180;h^(l*d0<u&&u<l*n)?(d=a[1]*zo)>Qc&&(Qc=d):h^(l*d0<(u=(u+360)%360-180)&&u<l*n)?(d=-a[1]*zo)<vc&&(vc=d):(r<vc&&(vc=r),r>Qc&&(Qc=r)),h?n<d0?yc(Aa,n)>yc(Aa,ja)&&(ja=n):yc(n,ja)>yc(Aa,ja)&&(Aa=n):ja>=Aa?(n<Aa&&(Aa=n),n>ja&&(ja=n)):n>d0?yc(Aa,n)>yc(Aa,ja)&&(ja=n):yc(n,ja)>yc(Aa,ja)&&(Aa=n)}else Cg.push(nm=[Aa=n,ja=n]);r<vc&&(vc=r),r>Qc&&(Qc=r),vw=e,d0=n}function bJ(){rm.point=yJ}function CJ(){nm[0]=Aa,nm[1]=ja,rm.point=Zj,vw=null}function wJ(n,r){if(vw){var e=n-d0;ux.add(Xi(e)>180?e+(e>0?360:-360):e)}else gJ=n,vJ=r;fp.point(n,r),yJ(n,r)}function zme(){fp.lineStart()}function Wme(){wJ(gJ,vJ),fp.lineEnd(),Xi(ux)>Mr&&(Aa=-(ja=180)),nm[0]=Aa,nm[1]=ja,vw=null}function yc(n,r){return(r-=n)<0?r+360:r}function Vme(n,r){return n[0]-r[0]}function kJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function Yme(n){var r,e,i,o,a,s,l;if(Qc=ja=-(Aa=vc=1/0),Cg=[],Hd(n,rm),e=Cg.length){for(Cg.sort(Vme),r=1,a=[i=Cg[0]];r<e;++r)kJ(i,(o=Cg[r])[0])||kJ(i,o[1])?(yc(i[0],o[1])>yc(i[0],i[1])&&(i[1]=o[1]),yc(o[0],i[1])>yc(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=yc(i[1],o[0]))>s&&(s=l,Aa=o[0],ja=i[1])}return Cg=nm=null,Aa===1/0||vc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Aa,vc],[ja,Qc]]}var cx,DZ,AZ,OZ,PZ,IZ,RZ,LZ,Nj,Bj,Fj,TJ,MJ,tu,nu,ru,Gd={sphere:_a,point:Uj,lineStart:SJ,lineEnd:EJ,polygonStart:function(){Gd.lineStart=Jme,Gd.lineEnd=Qme},polygonEnd:function(){Gd.lineStart=SJ,Gd.lineEnd=EJ}};function Uj(n,r){n*=Lr;var e=Sr(r*=Lr);dx(e*Sr(n),e*mr(n),mr(r))}function dx(n,r,e){++cx,AZ+=(n-AZ)/cx,OZ+=(r-OZ)/cx,PZ+=(e-PZ)/cx}function SJ(){Gd.point=Kme}function Kme(n,r){n*=Lr;var e=Sr(r*=Lr);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),Gd.point=qme,dx(tu,nu,ru)}function qme(n,r){n*=Lr;var e=Sr(r*=Lr),i=e*Sr(n),o=e*mr(n),a=mr(r),s=eu(vs((s=nu*a-ru*o)*s+(s=ru*i-tu*a)*s+(s=tu*o-nu*i)*s),tu*i+nu*o+ru*a);DZ+=s,IZ+=s*(tu+(tu=i)),RZ+=s*(nu+(nu=o)),LZ+=s*(ru+(ru=a)),dx(tu,nu,ru)}function EJ(){Gd.point=Uj}function Jme(){Gd.point=Xme}function Qme(){xJ(TJ,MJ),Gd.point=Uj}function Xme(n,r){TJ=n,MJ=r,n*=Lr,r*=Lr,Gd.point=xJ;var e=Sr(r);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),dx(tu,nu,ru)}function xJ(n,r){n*=Lr;var e=Sr(r*=Lr),i=e*Sr(n),o=e*mr(n),a=mr(r),s=nu*a-ru*o,l=ru*i-tu*a,u=tu*o-nu*i,d=vs(s*s+l*l+u*u),h=gc(d),g=d&&-h/d;Nj+=g*s,Bj+=g*l,Fj+=g*u,DZ+=h,IZ+=h*(tu+(tu=i)),RZ+=h*(nu+(nu=o)),LZ+=h*(ru+(ru=a)),dx(tu,nu,ru)}function $me(n){cx=DZ=AZ=OZ=PZ=IZ=RZ=LZ=Nj=Bj=Fj=0,Hd(n,Gd);var r=Nj,e=Bj,i=Fj,o=r*r+e*e+i*i;return o<1e-12&&(r=IZ,e=RZ,i=LZ,DZ<Mr&&(r=AZ,e=OZ,i=PZ),(o=r*r+e*e+i*i)<1e-12)?[NaN,NaN]:[eu(e,r)*zo,gc(i/vs(o))*zo]}function yw(n){return function(){return n}}function jj(n,r){function e(i,o){return i=n(i,o),r(i[0],i[1])}return n.invert&&r.invert&&(e.invert=function(i,o){return(i=r.invert(i,o))&&n.invert(i[0],i[1])}),e}function Hj(n,r){return[n>Zi?n-Fu:n<-Zi?n+Fu:n,r]}function Gj(n,r,e){return(n%=Fu)?r||e?jj(AJ(n),OJ(r,e)):AJ(n):r||e?OJ(r,e):Hj}function DJ(n){return function(r,e){return[(r+=n)>Zi?r-Fu:r<-Zi?r+Fu:r,e]}}function AJ(n){var r=DJ(n);return r.invert=DJ(-n),r}function OJ(n,r){var e=Sr(n),i=mr(n),o=Sr(r),a=mr(r);function s(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,y=mr(u),L=y*e+h*i;return[eu(g*o-L*a,h*e-y*i),gc(L*o+g*a)]}return s.invert=function(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,y=mr(u),L=y*o-g*a;return[eu(g*o+y*a,h*e+L*i),gc(L*e-h*i)]},s}function PJ(n){function r(e){return(e=n(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e}return n=Gj(n[0]*Lr,n[1]*Lr,n.length>2?n[2]*Lr:0),r.invert=function(e){return(e=n.invert(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e},r}function IJ(n,r,e,i,o,a){if(e){var s=Sr(r),l=mr(r),u=i*e;null==o?(o=r+i*Fu,a=r-u/2):(o=RJ(s,o),a=RJ(s,a),(i>0?o<a:o>a)&&(o+=i*Fu));for(var d,h=o;i>0?h>a:h<a;h-=u)d=MZ([s,-l*Sr(h),-l*mr(h)]),n.point(d[0],d[1])}}function RJ(n,r){(r=c0(r))[0]-=n,xZ(r);var e=uJ(-r[1]);return((-r[2]<0?-e:e)+Fu-Mr)%Fu}function e_e(){var i,o,n=yw([0,0]),r=yw(90),e=yw(6),a={point:function s(u,d){i.push(u=o(u,d)),u[0]*=zo,u[1]*=zo}};function l(){var u=n.apply(this,arguments),d=r.apply(this,arguments)*Lr,h=e.apply(this,arguments)*Lr;return i=[],o=Gj(-u[0]*Lr,-u[1]*Lr,0).invert,IJ(a,d,h,1),u={type:"Polygon",coordinates:[i]},i=o=null,u}return l.center=function(u){return arguments.length?(n="function"==typeof u?u:yw([+u[0],+u[1]]),l):n},l.radius=function(u){return arguments.length?(r="function"==typeof u?u:yw(+u),l):r},l.precision=function(u){return arguments.length?(e="function"==typeof u?u:yw(+u),l):e},l}function LJ(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:_a,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function ZZ(n,r){return Xi(n[0]-r[0])<Mr&&Xi(n[1]-r[1])<Mr}function NZ(n,r,e,i){this.x=n,this.z=r,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function ZJ(n,r,e,i,o){var l,u,a=[],s=[];if(n.forEach(function(z){if(!((q=z.length-1)<=0)){var q,Se,re=z[0],ae=z[q];if(ZZ(re,ae)){for(o.lineStart(),l=0;l<q;++l)o.point((re=z[l])[0],re[1]);return void o.lineEnd()}a.push(Se=new NZ(re,z,null,!0)),s.push(Se.o=new NZ(re,null,Se,!1)),a.push(Se=new NZ(ae,z,null,!1)),s.push(Se.o=new NZ(ae,null,Se,!0))}}),a.length){for(s.sort(r),NJ(a),NJ(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,g,d=a[0];;){for(var y=d,L=!0;y.v;)if((y=y.n)===d)return;h=y.z,o.lineStart();do{if(y.v=y.o.v=!0,y.e){if(L)for(l=0,u=h.length;l<u;++l)o.point((g=h[l])[0],g[1]);else i(y.x,y.n.x,1,o);y=y.n}else{if(L)for(h=y.p.z,l=h.length-1;l>=0;--l)o.point((g=h[l])[0],g[1]);else i(y.x,y.p.x,-1,o);y=y.p}h=(y=y.o).z,L=!L}while(!y.v);o.lineEnd()}}}function NJ(n){if(r=n.length){for(var r,o,e=0,i=n[0];++e<r;)i.n=o=n[e],o.p=i,i=o;i.n=o=n[0],o.p=i}}Hj.invert=Hj;var zj=bg();function BJ(n,r){var e=r[0],i=r[1],o=mr(i),a=[mr(e),-Sr(e),0],s=0,l=0;zj.reset(),1===o?i=Da+Mr:-1===o&&(i=-Da-Mr);for(var u=0,d=n.length;u<d;++u)if(g=(h=n[u]).length)for(var h,g,y=h[g-1],L=y[0],z=y[1]/2+yZ,q=mr(z),re=Sr(z),ae=0;ae<g;++ae,L=Ce,q=Ke,re=st,y=Se){var Se=h[ae],Ce=Se[0],Ee=Se[1]/2+yZ,Ke=mr(Ee),st=Sr(Ee),De=Ce-L,it=De>=0?1:-1,ft=it*De,bt=ft>Zi,$e=q*Ke;if(zj.add(eu($e*it*mr(ft),re*st+$e*Sr(ft))),s+=bt?De+it*Fu:De,bt^L>=e^Ce>=e){var Ie=gw(c0(y),c0(Se));xZ(Ie);var ct=gw(a,Ie);xZ(ct);var Bt=(bt^De>=0?-1:1)*gc(ct[2]);(i>Bt||i===Bt&&(Ie[0]||Ie[1]))&&(l+=bt^De>=0?1:-1)}}return(s<-Mr||s<Mr&&zj<-Mr)^1&l}function FJ(n,r,e,i){return function(o){var d,h,g,a=r(o),s=LJ(),l=r(s),u=!1,y={point:L,lineStart:q,lineEnd:re,polygonStart:function(){y.point=ae,y.lineStart=Se,y.lineEnd=Ce,h=[],d=[]},polygonEnd:function(){y.point=L,y.lineStart=q,y.lineEnd=re,h=A7(h);var Ke=BJ(d,i);h.length?(u||(o.polygonStart(),u=!0),ZJ(h,n_e,Ke,e,o)):Ke&&(u||(o.polygonStart(),u=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function L(Ee,Ke){n(Ee,Ke)&&o.point(Ee,Ke)}function z(Ee,Ke){a.point(Ee,Ke)}function q(){y.point=z,a.lineStart()}function re(){y.point=L,a.lineEnd()}function ae(Ee,Ke){g.push([Ee,Ke]),l.point(Ee,Ke)}function Se(){l.lineStart(),g=[]}function Ce(){ae(g[0][0],g[0][1]),l.lineEnd();var st,it,ft,bt,Ee=l.clean(),Ke=s.result(),De=Ke.length;if(g.pop(),d.push(g),g=null,De){if(1&Ee){if((it=(ft=Ke[0]).length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),st=0;st<it;++st)o.point((bt=ft[st])[0],bt[1]);o.lineEnd()}return}De>1&&2&Ee&&Ke.push(Ke.pop().concat(Ke.shift())),h.push(Ke.filter(t_e))}}return y}}function t_e(n){return n.length>1}function n_e(n,r){return((n=n.x)[0]<0?n[1]-Da-Mr:Da-n[1])-((r=r.x)[0]<0?r[1]-Da-Mr:Da-r[1])}var Wj=FJ(function(){return!0},function r_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?Zi:-Zi,d=Xi(s-r);Xi(d-Zi)<Mr?(n.point(r,e=(e+l)/2>0?Da:-Da),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),n.point(s,e),o=0):i!==u&&d>=Zi&&(Xi(r-i)<Mr&&(r-=i*Mr),Xi(s-u)<Mr&&(s-=u*Mr),e=function i_e(n,r,e,i){var o,a,s=mr(n-e);return Xi(s)>Mr?_w((mr(r)*(a=Sr(i))*mr(e)-mr(i)*(o=Sr(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 o_e(n,r,e,i){var o;if(null==n)o=e*Da,i.point(-Zi,o),i.point(0,o),i.point(Zi,o),i.point(Zi,0),i.point(Zi,-o),i.point(0,-o),i.point(-Zi,-o),i.point(-Zi,0),i.point(-Zi,o);else if(Xi(n[0]-r[0])>Mr){var a=n[0]<r[0]?Zi:-Zi;o=e*a/2,i.point(-a,o),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Zi,-Da]);function UJ(n){var r=Sr(n),e=6*Lr,i=r>0,o=Xi(r)>Mr;function s(h,g){return Sr(h)*Sr(g)>r}function u(h,g,y){var q=[1,0,0],re=gw(c0(h),c0(g)),ae=SZ(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!y&&h;var Ee=r*ae/Ce,Ke=-r*Se/Ce,st=gw(q,re),De=EZ(q,Ee);Lj(De,EZ(re,Ke));var ft=st,bt=SZ(De,ft),$e=SZ(ft,ft),Ie=bt*bt-$e*(SZ(De,De)-1);if(!(Ie<0)){var ct=vs(Ie),Bt=EZ(ft,(-bt-ct)/$e);if(Lj(Bt,De),Bt=MZ(Bt),!y)return Bt;var zn,jt=h[0],It=g[0],Tn=h[1],Hn=g[1];It<jt&&(zn=jt,jt=It,It=zn);var ar=It-jt,kr=Xi(ar-Zi)<Mr;if(!kr&&Hn<Tn&&(zn=Tn,Tn=Hn,Hn=zn),kr||ar<Mr?kr?Tn+Hn>0^Bt[1]<(Xi(Bt[0]-jt)<Mr?Tn:Hn):Tn<=Bt[1]&&Bt[1]<=Hn:ar>Zi^(jt<=Bt[0]&&Bt[0]<=It)){var Wr=EZ(ft,(-bt+ct)/$e);return Lj(Wr,De),[Bt,MZ(Wr)]}}}function d(h,g){var y=i?n:Zi-n,L=0;return h<-y?L|=1:h>y&&(L|=2),g<-y?L|=4:g>y&&(L|=8),L}return FJ(s,function l(h){var g,y,L,z,q;return{lineStart:function(){z=L=!1,q=1},point:function(ae,Se){var Ee,Ce=[ae,Se],Ke=s(ae,Se),st=i?Ke?0:d(ae,Se):Ke?d(ae+(ae<0?Zi:-Zi),Se):0;if(!g&&(z=L=Ke)&&h.lineStart(),Ke!==L&&((!(Ee=u(g,Ce))||ZZ(g,Ee)||ZZ(Ce,Ee))&&(Ce[0]+=Mr,Ce[1]+=Mr,Ke=s(Ce[0],Ce[1]))),Ke!==L)q=0,Ke?(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^Ke){var De;!(st&y)&&(De=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(De[0][0],De[0][1]),h.point(De[1][0],De[1][1]),h.lineEnd()):(h.point(De[1][0],De[1][1]),h.lineEnd(),h.lineStart(),h.point(De[0][0],De[0][1])))}Ke&&(!g||!ZZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,L=Ke,y=st},lineEnd:function(){L&&h.lineEnd(),g=null},clean:function(){return q|(z&&L)<<1}}},function a(h,g,y,L){IJ(L,n,e,y,h,g)},i?[0,-n]:[-Zi,n-Zi])}var fx=1e9,BZ=-fx;function FZ(n,r,e,i){function o(d,h){return n<=d&&d<=e&&r<=h&&h<=i}function a(d,h,g,y){var L=0,z=0;if(null==d||(L=s(d,g))!==(z=s(h,g))||u(d,h)<0^g>0)do{y.point(0===L||3===L?n:e,L>1?i:r)}while((L=(L+g+4)%4)!==z);else y.point(h[0],h[1])}function s(d,h){return Xi(d[0]-n)<Mr?h>0?0:3:Xi(d[0]-e)<Mr?h>0?2:1:Xi(d[1]-r)<Mr?h>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),y=s(h,1);return g!==y?g-y: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 y,L,z,q,re,ae,Se,Ce,Ee,Ke,st,h=d,g=LJ(),De={point:it,lineStart:function Ie(){De.point=Bt,L&&L.push(z=[]),Ke=!0,Ee=!1,Se=Ce=NaN},lineEnd:function ct(){y&&(Bt(q,re),ae&&Ee&&g.rejoin(),y.push(g.result())),De.point=it,Ee&&h.lineEnd()},polygonStart:function bt(){h=g,y=[],L=[],st=!0},polygonEnd:function $e(){var jt=function ft(){for(var jt=0,It=0,Tn=L.length;It<Tn;++It)for(var _r,Wr,Hn=L[It],zn=1,ar=Hn.length,kr=Hn[0],jr=kr[0],Kr=kr[1];zn<ar;++zn)_r=jr,Wr=Kr,kr=Hn[zn],jr=kr[0],Kr=kr[1],Wr<=i?Kr>i&&(jr-_r)*(i-Wr)>(Kr-Wr)*(n-_r)&&++jt:Kr<=i&&(jr-_r)*(i-Wr)<(Kr-Wr)*(n-_r)&&--jt;return jt}(),It=st&&jt,Tn=(y=A7(y)).length;(It||Tn)&&(d.polygonStart(),It&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&ZJ(y,l,jt,a,d),d.polygonEnd()),h=d,y=L=z=null}};function it(jt,It){o(jt,It)&&h.point(jt,It)}function Bt(jt,It){var Tn=o(jt,It);if(L&&z.push([jt,It]),Ke)q=jt,re=It,ae=Tn,Ke=!1,Tn&&(h.lineStart(),h.point(jt,It));else if(Tn&&Ee)h.point(jt,It);else{var Hn=[Se=Math.max(BZ,Math.min(fx,Se)),Ce=Math.max(BZ,Math.min(fx,Ce))],zn=[jt=Math.max(BZ,Math.min(fx,jt)),It=Math.max(BZ,Math.min(fx,It))];!function a_e(n,r,e,i,o,a){var z,s=n[0],l=n[1],h=0,g=1,y=r[0]-s,L=r[1]-l;if(z=e-s,y||!(z>0)){if(z/=y,y<0){if(z<h)return;z<g&&(g=z)}else if(y>0){if(z>g)return;z>h&&(h=z)}if(z=o-s,y||!(z<0)){if(z/=y,y<0){if(z>g)return;z>h&&(h=z)}else if(y>0){if(z<h)return;z<g&&(g=z)}if(z=i-l,L||!(z>0)){if(z/=L,L<0){if(z<h)return;z<g&&(g=z)}else if(L>0){if(z>g)return;z>h&&(h=z)}if(z=a-l,L||!(z<0)){if(z/=L,L<0){if(z>g)return;z>h&&(h=z)}else if(L>0){if(z<h)return;z<g&&(g=z)}return h>0&&(n[0]=s+h*y,n[1]=l+h*L),g<1&&(r[0]=s+g*y,r[1]=l+g*L),!0}}}}}(Hn,zn,n,r,e,i)?Tn&&(h.lineStart(),h.point(jt,It),st=!1):(Ee||(h.lineStart(),h.point(Hn[0],Hn[1])),h.point(zn[0],zn[1]),Tn||h.lineEnd(),st=!1)}Se=jt,Ce=It,Ee=Tn}return De}}function s_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=FZ(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 Yj,UZ,jZ,Vj=bg(),bw={sphere:_a,point:_a,lineStart:function l_e(){bw.point=c_e,bw.lineEnd=u_e},lineEnd:_a,polygonStart:_a,polygonEnd:_a};function u_e(){bw.point=bw.lineEnd=_a}function c_e(n,r){Yj=n*=Lr,UZ=mr(r*=Lr),jZ=Sr(r),bw.point=d_e}function d_e(n,r){n*=Lr;var e=mr(r*=Lr),i=Sr(r),o=Xi(n-Yj),a=Sr(o),l=i*mr(o),u=jZ*e-UZ*i*a,d=UZ*e+jZ*i*a;Vj.add(eu(vs(l*l+u*u),d)),Yj=n,UZ=e,jZ=i}function jJ(n){return Vj.reset(),Hd(n,bw),+Vj}var Kj=[null,null],f_e={type:"LineString",coordinates:Kj};function px(n,r){return Kj[0]=n,Kj[1]=r,jJ(f_e)}var HJ={Feature:function(r,e){return HZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(HZ(i[o].geometry,e))return!0;return!1}},GJ={Sphere:function(){return!0},Point:function(r,e){return zJ(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(zJ(i[o],e))return!0;return!1},LineString:function(r,e){return WJ(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(WJ(i[o],e))return!0;return!1},Polygon:function(r,e){return VJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(VJ(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(HZ(i[o],e))return!0;return!1}};function HZ(n,r){return!(!n||!GJ.hasOwnProperty(n.type))&&GJ[n.type](n,r)}function zJ(n,r){return 0===px(n,r)}function WJ(n,r){var e=px(n[0],n[1]);return px(n[0],r)+px(r,n[1])<=e+Mr}function VJ(n,r){return!!BJ(n.map(p_e),YJ(r))}function p_e(n){return(n=n.map(YJ)).pop(),n}function YJ(n){return[n[0]*Lr,n[1]*Lr]}function h_e(n,r){return(n&&HJ.hasOwnProperty(n.type)?HJ[n.type]:HZ)(n,r)}function KJ(n,r,e){var i=mc(n,r-Mr,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function qJ(n,r,e){var i=mc(n,r-Mr,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function JJ(){var n,r,e,i,o,a,s,l,y,L,z,q,u=10,d=u,h=90,g=360,re=2.5;function ae(){return{type:"MultiLineString",coordinates:Se()}}function Se(){return mc(bZ(i/h)*h,e,h).map(z).concat(mc(bZ(l/g)*g,s,g).map(q)).concat(mc(bZ(r/u)*u,n,u).filter(function(Ce){return Xi(Ce%h)>Mr}).map(y)).concat(mc(bZ(a/d)*d,o,d).filter(function(Ce){return Xi(Ce%g)>Mr}).map(L))}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,y=KJ(a,o,90),L=qJ(r,n,re),z=KJ(l,s,90),q=qJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Mr],[180,90-Mr]]).extentMinor([[-180,-80-Mr],[180,80+Mr]])}function m_e(){return JJ()()}function __e(n,r){var e=n[0]*Lr,i=n[1]*Lr,o=r[0]*Lr,a=r[1]*Lr,s=Sr(i),l=mr(i),u=Sr(a),d=mr(a),h=s*Sr(e),g=s*mr(e),y=u*Sr(o),L=u*mr(o),z=2*gc(vs(cJ(a-i)+s*u*cJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,Ee=Ce*h+Se*y,Ke=Ce*g+Se*L,st=Ce*l+Se*d;return[eu(Ke,Ee)*zo,eu(st,vs(Ee*Ee+Ke*Ke))*zo]}:function(){return[e*zo,i*zo]};return re.distance=z,re}function f0(n){return n}var QJ,XJ,Qj,Xj,qj=bg(),Jj=bg(),wg={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){wg.lineStart=g_e,wg.lineEnd=y_e},polygonEnd:function(){wg.lineStart=wg.lineEnd=wg.point=_a,qj.add(Xi(Jj)),Jj.reset()},result:function(){var r=qj/2;return qj.reset(),r}};function g_e(){wg.point=v_e}function v_e(n,r){wg.point=$J,QJ=Qj=n,XJ=Xj=r}function $J(n,r){Jj.add(Xj*n-Qj*r),Qj=n,Xj=r}function y_e(){$J(QJ,XJ)}var eQ=wg,Cw=1/0,GZ=Cw,hx=-Cw,zZ=hx,b_e={point:function C_e(n,r){n<Cw&&(Cw=n),n>hx&&(hx=n),r<GZ&&(GZ=r),r>zZ&&(zZ=r)},lineStart:_a,lineEnd:_a,polygonStart:_a,polygonEnd:_a,result:function(){var r=[[Cw,GZ],[hx,zZ]];return hx=zZ=-(GZ=Cw=1/0),r}};var tQ,nQ,pp,hp,WZ=b_e,$j=0,e9=0,mx=0,VZ=0,YZ=0,ww=0,t9=0,n9=0,_x=0,zd={point:p0,lineStart:rQ,lineEnd:iQ,polygonStart:function(){zd.lineStart=T_e,zd.lineEnd=M_e},polygonEnd:function(){zd.point=p0,zd.lineStart=rQ,zd.lineEnd=iQ},result:function(){var r=_x?[t9/_x,n9/_x]:ww?[VZ/ww,YZ/ww]:mx?[$j/mx,e9/mx]:[NaN,NaN];return $j=e9=mx=VZ=YZ=ww=t9=n9=_x=0,r}};function p0(n,r){$j+=n,e9+=r,++mx}function rQ(){zd.point=w_e}function w_e(n,r){zd.point=k_e,p0(pp=n,hp=r)}function k_e(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);VZ+=o*(pp+n)/2,YZ+=o*(hp+r)/2,ww+=o,p0(pp=n,hp=r)}function iQ(){zd.point=p0}function T_e(){zd.point=S_e}function M_e(){oQ(tQ,nQ)}function S_e(n,r){zd.point=oQ,p0(tQ=pp=n,nQ=hp=r)}function oQ(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);VZ+=o*(pp+n)/2,YZ+=o*(hp+r)/2,ww+=o,t9+=(o=hp*n-pp*r)*(pp+n),n9+=o*(hp+r),_x+=3*o,p0(pp=n,hp=r)}var aQ=zd;function sQ(n){this._context=n}sQ.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,Fu)}},result:_a};var i9,lQ,uQ,gx,vx,r9=bg(),KZ={point:_a,lineStart:function(){KZ.point=E_e},lineEnd:function(){i9&&cQ(lQ,uQ),KZ.point=_a},polygonStart:function(){i9=!0},polygonEnd:function(){i9=null},result:function(){var r=+r9;return r9.reset(),r}};function E_e(n,r){KZ.point=cQ,lQ=gx=n,uQ=vx=r}function cQ(n,r){gx-=n,vx-=r,r9.add(vs(gx*gx+vx*vx)),gx=n,vx=r}var dQ=KZ;function fQ(){this._string=[]}function pQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function x_e(n,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Hd(s,i(o))),o.result()}return a.area=function(s){return Hd(s,i(eQ)),eQ.result()},a.measure=function(s){return Hd(s,i(dQ)),dQ.result()},a.bounds=function(s){return Hd(s,i(WZ)),WZ.result()},a.centroid=function(s){return Hd(s,i(aQ)),aQ.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,f0):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new fQ):new sQ(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 D_e(n){return{stream:yx(n)}}function yx(n){return function(r){var e=new o9;for(var i in n)e[i]=n[i];return e.stream=r,e}}function o9(){}function a9(n,r,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Hd(e,n.stream(WZ)),r(WZ.result()),null!=i&&n.clipExtent(i),n}function qZ(n,r,e){return a9(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 s9(n,r,e){return qZ(n,[[0,0],r],e)}function l9(n,r,e){return a9(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 u9(n,r,e){return a9(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)}fQ.prototype={_radius:4.5,_circle:pQ(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=pQ(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}},o9.prototype={constructor:o9,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 A_e=Sr(30*Lr);function mQ(n,r){return+r?function P_e(n,r){function e(i,o,a,s,l,u,d,h,g,y,L,z,q,re){var ae=d-i,Se=h-o,Ce=ae*ae+Se*Se;if(Ce>4*r&&q--){var Ee=s+y,Ke=l+L,st=u+z,De=vs(Ee*Ee+Ke*Ke+st*st),it=gc(st/=De),ft=Xi(Xi(st)-1)<Mr||Xi(a-g)<Mr?(a+g)/2:eu(Ke,Ee),bt=n(ft,it),$e=bt[0],Ie=bt[1],ct=$e-i,Bt=Ie-o,jt=Se*ct-ae*Bt;(jt*jt/Ce>r||Xi((ae*ct+Se*Bt)/Ce-.5)>.3||s*y+l*L+u*z<A_e)&&(e(i,o,a,s,l,u,$e,Ie,ft,Ee/=De,Ke/=De,st,q,re),re.point($e,Ie),e($e,Ie,ft,Ee,Ke,st,d,h,g,y,L,z,q,re))}}return function(i){var o,a,s,l,u,d,h,g,y,L,z,q,re={point:ae,lineStart:Se,lineEnd:Ee,polygonStart:function(){i.polygonStart(),re.lineStart=Ke},polygonEnd:function(){i.polygonEnd(),re.lineStart=Se}};function ae(it,ft){it=n(it,ft),i.point(it[0],it[1])}function Se(){g=NaN,re.point=Ce,i.lineStart()}function Ce(it,ft){var bt=c0([it,ft]),$e=n(it,ft);e(g,y,h,L,z,q,g=$e[0],y=$e[1],h=it,L=bt[0],z=bt[1],q=bt[2],16,i),i.point(g,y)}function Ee(){re.point=ae,i.lineEnd()}function Ke(){Se(),re.point=st,re.lineEnd=De}function st(it,ft){Ce(o=it,ft),a=g,s=y,l=L,u=z,d=q,re.point=Ce}function De(){e(g,y,h,L,z,q,a,s,o,l,u,d,16,i),re.lineEnd=Ee,Ee()}return re}}(n,r):function O_e(n){return yx({point:function(e,i){e=n(e,i),this.stream.point(e[0],e[1])}})}(n)}var I_e=yx({point:function(r,e){this.stream.point(r*Lr,e*Lr)}});function L_e(n,r,e){function i(o,a){return[r+n*o,e-n*a]}return i.invert=function(o,a){return[(o-r)/n,(e-a)/n]},i}function _Q(n,r,e,i){var o=Sr(i),a=mr(i),s=o*n,l=a*n,u=o/n,d=a/n,h=(a*e-o*r)/n,g=(a*r+o*e)/n;function y(L,z){return[s*L-l*z+r,e-l*L-s*z]}return y.invert=function(L,z){return[u*L-d*z+h,g-d*L-u*z]},y}function im(n){return c9(function(){return n})()}function c9(n){var r,h,q,re,ae,Ee,Ke,st,De,it,e=150,i=480,o=250,a=0,s=0,l=0,u=0,d=0,g=0,y=null,L=Wj,z=null,Se=f0,Ce=.5;function ft(ct){return st(ct[0]*Lr,ct[1]*Lr)}function bt(ct){return(ct=st.invert(ct[0],ct[1]))&&[ct[0]*zo,ct[1]*zo]}function $e(){var ct=_Q(e,0,0,g).apply(null,r(a,s)),Bt=(g?_Q:L_e)(e,i-ct[0],o-ct[1],g);return h=Gj(l,u,d),Ke=jj(r,Bt),st=jj(h,Ke),Ee=mQ(Ke,Ce),Ie()}function Ie(){return De=it=null,ft}return ft.stream=function(ct){return De&&it===ct?De:De=I_e(function R_e(n){return yx({point:function(e,i){var o=n(e,i);return this.stream.point(o[0],o[1])}})}(h)(L(Ee(Se(it=ct)))))},ft.preclip=function(ct){return arguments.length?(L=ct,y=void 0,Ie()):L},ft.postclip=function(ct){return arguments.length?(Se=ct,z=q=re=ae=null,Ie()):Se},ft.clipAngle=function(ct){return arguments.length?(L=+ct?UJ(y=ct*Lr):(y=null,Wj),Ie()):y*zo},ft.clipExtent=function(ct){return arguments.length?(Se=null==ct?(z=q=re=ae=null,f0):FZ(z=+ct[0][0],q=+ct[0][1],re=+ct[1][0],ae=+ct[1][1]),Ie()):null==z?null:[[z,q],[re,ae]]},ft.scale=function(ct){return arguments.length?(e=+ct,$e()):e},ft.translate=function(ct){return arguments.length?(i=+ct[0],o=+ct[1],$e()):[i,o]},ft.center=function(ct){return arguments.length?(a=ct[0]%360*Lr,s=ct[1]%360*Lr,$e()):[a*zo,s*zo]},ft.rotate=function(ct){return arguments.length?(l=ct[0]%360*Lr,u=ct[1]%360*Lr,d=ct.length>2?ct[2]%360*Lr:0,$e()):[l*zo,u*zo,d*zo]},ft.angle=function(ct){return arguments.length?(g=ct%360*Lr,$e()):g*zo},ft.precision=function(ct){return arguments.length?(Ee=mQ(Ke,Ce=ct*ct),Ie()):vs(Ce)},ft.fitExtent=function(ct,Bt){return qZ(ft,ct,Bt)},ft.fitSize=function(ct,Bt){return s9(ft,ct,Bt)},ft.fitWidth=function(ct,Bt){return l9(ft,ct,Bt)},ft.fitHeight=function(ct,Bt){return u9(ft,ct,Bt)},function(){return r=n.apply(this,arguments),ft.invert=r.invert&&bt,$e()}}function d9(n){var r=0,e=Zi/3,i=c9(n),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Lr,e=a[1]*Lr):[r*zo,e*zo]},o}function gQ(n,r){var e=mr(n),i=(e+mr(r))/2;if(Xi(i)<Mr)return function Z_e(n){var r=Sr(n);function e(i,o){return[i*r,mr(o)/r]}return e.invert=function(i,o){return[i/r,gc(o*r)]},e}(n);var o=1+e*(2*i-e),a=vs(o)/i;function s(l,u){var d=vs(o-2*i*mr(u))/i;return[d*mr(l*=i),a-d*Sr(l)]}return s.invert=function(l,u){var d=a-u;return[eu(l,Xi(d))/i*lx(d),gc((o-(l*l+d*d)*i*i)/(2*i))]},s}function JZ(){return d9(gQ).scale(155.424).center([0,33.6442])}function vQ(){return JZ().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function B_e(){var n,r,i,a,l,u,e=vQ(),o=JZ().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=JZ().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(L,z){u=[L,z]}};function h(y){var L=y[0],z=y[1];return u=null,i.point(L,z),u||(a.point(L,z),u)||(l.point(L,z),u)}function g(){return n=r=null,h}return h.invert=function(y){var L=e.scale(),z=e.translate(),q=(y[0]-z[0])/L,re=(y[1]-z[1])/L;return(re>=.12&&re<.234&&q>=-.425&&q<-.214?o:re>=.166&&re<.234&&q>=-.214&&q<-.115?s:e).invert(y)},h.stream=function(y){return n&&r===y?n:n=function N_e(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a<r;)n[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)n[i].polygonEnd()}}}([e.stream(r=y),o.stream(y),s.stream(y)])},h.precision=function(y){return arguments.length?(e.precision(y),o.precision(y),s.precision(y),g()):e.precision()},h.scale=function(y){return arguments.length?(e.scale(y),o.scale(.35*y),s.scale(y),h.translate(e.translate())):e.scale()},h.translate=function(y){if(!arguments.length)return e.translate();var L=e.scale(),z=+y[0],q=+y[1];return i=e.translate(y).clipExtent([[z-.455*L,q-.238*L],[z+.455*L,q+.238*L]]).stream(d),a=o.translate([z-.307*L,q+.201*L]).clipExtent([[z-.425*L+Mr,q+.12*L+Mr],[z-.214*L-Mr,q+.234*L-Mr]]).stream(d),l=s.translate([z-.205*L,q+.212*L]).clipExtent([[z-.214*L+Mr,q+.166*L+Mr],[z-.115*L-Mr,q+.234*L-Mr]]).stream(d),g()},h.fitExtent=function(y,L){return qZ(h,y,L)},h.fitSize=function(y,L){return s9(h,y,L)},h.fitWidth=function(y,L){return l9(h,y,L)},h.fitHeight=function(y,L){return u9(h,y,L)},h.scale(1070)}function yQ(n){return function(r,e){var i=Sr(r),o=Sr(e),a=n(i*o);return[a*o*mr(r),a*mr(e)]}}function bx(n){return function(r,e){var i=vs(r*r+e*e),o=n(i),a=mr(o),s=Sr(o);return[eu(r*a,i*s),gc(i&&e*a/i)]}}var f9=yQ(function(n){return vs(2/(1+n))});function F_e(){return im(f9).scale(124.75).clipAngle(179.999)}f9.invert=bx(function(n){return 2*gc(n/2)});var p9=yQ(function(n){return(n=uJ(n))&&n/mr(n)});function U_e(){return im(p9).scale(79.4188).clipAngle(179.999)}function Cx(n,r){return[n,CZ(Aj((Da+r)/2))]}function j_e(){return bQ(Cx).scale(961/Fu)}function bQ(n){var l,u,d,r=im(n),e=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function h(){var g=Zi*i(),y=r(PJ(r.rotate()).invert([0,0]));return a(null==s?[[y[0]-g,y[1]-g],[y[0]+g,y[1]+g]]:n===Cx?[[Math.max(y[0]-g,s),l],[Math.min(y[0]+g,u),d]]:[[s,Math.max(y[1]-g,l)],[u,Math.min(y[1]+g,d)]])}return r.scale=function(g){return arguments.length?(i(g),h()):i()},r.translate=function(g){return arguments.length?(o(g),h()):o()},r.center=function(g){return arguments.length?(e(g),h()):e()},r.clipExtent=function(g){return arguments.length?(null==g?s=l=u=d=null:(s=+g[0][0],l=+g[0][1],u=+g[1][0],d=+g[1][1]),h()):null==s?null:[[s,l],[u,d]]},h()}function QZ(n){return Aj((Da+n)/2)}function CQ(n,r){var e=Sr(n),i=n===r?mr(n):CZ(e/Sr(r))/CZ(QZ(r)/QZ(n)),o=e*Dj(QZ(n),i)/i;if(!i)return Cx;function a(s,l){o>0?l<-Da+Mr&&(l=-Da+Mr):l>Da-Mr&&(l=Da-Mr);var u=o/Dj(QZ(l),i);return[u*mr(i*s),o-u*Sr(i*s)]}return a.invert=function(s,l){var u=o-l,d=lx(i)*vs(s*s+u*u);return[eu(s,Xi(u))/i*lx(u),2*_w(Dj(o/d,1/i))-Da]},a}function H_e(){return d9(CQ).scale(109.5).parallels([30,30])}function wx(n,r){return[n,r]}function G_e(){return im(wx).scale(152.63)}function wQ(n,r){var e=Sr(n),i=n===r?mr(n):(e-Sr(r))/(r-n),o=e/i+n;if(Xi(i)<Mr)return wx;function a(s,l){var u=o-l,d=i*s;return[u*mr(d),o-u*Sr(d)]}return a.invert=function(s,l){var u=o-l;return[eu(s,Xi(u))/i*lx(u),o-lx(i)*vs(s*s+u*u)]},a}function z_e(){return d9(wQ).scale(131.154).center([0,13.9389])}function h9(n,r){var e=Sr(r),i=Sr(n)*e;return[e*mr(n)/i,mr(r)/i]}function W_e(){return im(h9).scale(144.049).clipAngle(60)}function XZ(n,r,e,i){return 1===n&&1===r&&0===e&&0===i?f0:yx({point:function(a,s){this.stream.point(a*n+e,s*r+i)}})}function V_e(){var l,u,d,g,y,L,n=1,r=0,e=0,i=1,o=1,a=f0,s=null,h=f0;function z(){return g=y=null,L}return L={stream:function(re){return g&&y===re?g:g=a(h(y=re))},postclip:function(re){return arguments.length?(h=re,s=l=u=d=null,z()):h},clipExtent:function(re){return arguments.length?(h=null==re?(s=l=u=d=null,f0):FZ(s=+re[0][0],l=+re[0][1],u=+re[1][0],d=+re[1][1]),z()):null==s?null:[[s,l],[u,d]]},scale:function(re){return arguments.length?(a=XZ((n=+re)*i,n*o,r,e),z()):n},translate:function(re){return arguments.length?(a=XZ(n*i,n*o,r=+re[0],e=+re[1]),z()):[r,e]},reflectX:function(re){return arguments.length?(a=XZ(n*(i=re?-1:1),n*o,r,e),z()):i<0},reflectY:function(re){return arguments.length?(a=XZ(n*i,n*(o=re?-1:1),r,e),z()):o<0},fitExtent:function(re,ae){return qZ(L,re,ae)},fitSize:function(re,ae){return s9(L,re,ae)},fitWidth:function(re,ae){return l9(L,re,ae)},fitHeight:function(re,ae){return u9(L,re,ae)}}}function m9(n,r){var e=r*r,i=e*e;return[n*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),r*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function Y_e(){return im(m9).scale(175.295)}function _9(n,r){return[Sr(r)*mr(n),mr(r)]}function K_e(){return im(_9).scale(249.5).clipAngle(90+Mr)}function g9(n,r){var e=Sr(r),i=1+Sr(n)*e;return[e*mr(n)/i,mr(r)/i]}function q_e(){return im(g9).scale(250).clipAngle(142)}function v9(n,r){return[CZ(Aj((Da+r)/2)),-n]}function J_e(){var n=bQ(v9),r=n.center,e=n.rotate;return n.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},n.rotate=function(i){return arguments.length?e([i[0],i[1],i.length>2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function Q_e(n,r){return n.parent===r.parent?1:2}function $_e(n,r){return n+r.x}function tge(n,r){return Math.max(n,r.y)}function ige(){var n=Q_e,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(y){var L=y.children;L?(y.x=function X_e(n){return n.reduce($_e,0)/n.length}(L),y.y=function ege(n){return 1+n.reduce(tge,0)}(L)):(y.x=s?l+=n(y,s):0,y.y=0,s=y)});var u=function nge(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function rge(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(y){y.x=(y.x-a.x)*r,y.y=(a.y-y.y)*e}:function(y){y.x=(y.x-h)/(g-h)*r,y.y=(1-(a.y?y.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 oge(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 y9(n,r){var o,s,l,u,d,e=new kw(n),i=+n.value&&(e.value=n.value),a=[e];for(null==r&&(r=yge);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 kw(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(kQ)}function yge(n){return n.children}function bge(n){n.data=n.data.data}function kQ(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function kw(n){this.data=n,this.depth=this.height=0,this.parent=null}p9.invert=bx(function(n){return n}),Cx.invert=function(n,r){return[n,2*_w(lJ(r))-Da]},wx.invert=wx,h9.invert=bx(_w),m9.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(Xi(o)>Mr&&--i>0);return[n/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},_9.invert=bx(gc),g9.invert=bx(function(n){return 2*_w(n)}),v9.invert=function(n,r){return[-r,2*_w(lJ(n))-Da]},kw.prototype=y9.prototype={constructor:kw,count:function age(){return this.eachAfter(oge)},each:function sge(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<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function uge(n){for(var o,a,s,r=this,e=[r],i=[];r=e.pop();)if(i.push(r),o=r.children)for(a=0,s=o.length;a<s;++a)e.push(o[a]);for(;r=i.pop();)n(r);return this},eachBefore:function lge(n){for(var i,o,r=this,e=[r];r=e.pop();)if(n(r),i=r.children)for(o=i.length-1;o>=0;--o)e.push(i[o]);return this},sum:function cge(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 dge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function fge(n){for(var r=this,e=function pge(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 hge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function mge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function _ge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function gge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function vge(){return y9(this).eachBefore(bge)}};var Cge=Array.prototype.slice;function TQ(n){for(var o,a,r=0,e=(n=function wge(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}(Cge.call(n))).length,i=[];r<e;)o=n[r],a&&MQ(a,o)?++r:(a=Tge(i=kge(i,o)),r=0);return a}function kge(n,r){var e,i;if(b9(r,n))return[r];for(e=0;e<n.length;++e)if($Z(r,n[e])&&b9(kx(n[e],r),n))return[n[e],r];for(e=0;e<n.length-1;++e)for(i=e+1;i<n.length;++i)if($Z(kx(n[e],n[i]),r)&&$Z(kx(n[e],r),n[i])&&$Z(kx(n[i],r),n[e])&&b9(SQ(n[e],n[i],r),n))return[n[e],n[i],r];throw new Error}function $Z(n,r){var e=n.r-r.r,i=r.x-n.x,o=r.y-n.y;return e<0||e*e<i*i+o*o}function MQ(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 b9(n,r){for(var e=0;e<r.length;++e)if(!MQ(n,r[e]))return!1;return!0}function Tge(n){switch(n.length){case 1:return function Mge(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return kx(n[0],n[1]);case 3:return SQ(n[0],n[1],n[2])}}function kx(n,r){var e=n.x,i=n.y,o=n.r,a=r.x,s=r.y,l=r.r,u=a-e,d=s-i,h=l-o,g=Math.sqrt(u*u+d*d);return{x:(e+a+u/g*h)/2,y:(i+s+d/g*h)/2,r:(g+o+l)/2}}function SQ(n,r,e){var i=n.x,o=n.y,a=n.r,s=r.x,l=r.y,u=r.r,d=e.x,h=e.y,g=e.r,y=i-s,L=i-d,z=o-l,q=o-h,re=u-a,ae=g-a,Se=i*i+o*o-a*a,Ce=Se-s*s-l*l+u*u,Ee=Se-d*d-h*h+g*g,Ke=L*z-y*q,st=(z*Ee-q*Ce)/(2*Ke)-i,De=(q*re-z*ae)/Ke,it=(L*Ce-y*Ee)/(2*Ke)-o,ft=(y*ae-L*re)/Ke,bt=De*De+ft*ft-1,$e=2*(a+st*De+it*ft),Ie=st*st+it*it-a*a,ct=-(bt?($e+Math.sqrt($e*$e-4*bt*Ie))/(2*bt):Ie/$e);return{x:i+st+De*ct,y:o+it+ft*ct,r:ct}}function EQ(n,r,e){var o,a,l,u,i=n.x-r.x,s=n.y-r.y,d=i*i+s*s;d?(a=r.r+e.r,a*=a,u=n.r+e.r,a>(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 xQ(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 DQ(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 eN(n){this._=n,this.next=null,this.previous=null}function AQ(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;EQ(e,r,i=n[2]),r=new eN(r),e=new eN(e),i=new eN(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){EQ(r._,e._,i=n[l]),i=new eN(i),u=e.next,d=r.previous,h=e._.r,g=r._.r;do{if(h<=g){if(xQ(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(xQ(d._,i._)){(r=d).next=e,e.previous=r,--l;continue e}g+=d._.r,d=d.previous}}while(u!==d.next);for(i.previous=r,i.next=e,r.next=e.previous=e=i,a=DQ(r);(i=i.next)!==e;)(s=DQ(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=TQ(r),l=0;l<o;++l)(r=n[l]).x-=i.x,r.y-=i.y;return i.r}function Sge(n){return AQ(n),n}function Ege(n){return null==n?null:tN(n)}function tN(n){if("function"!=typeof n)throw new Error;return n}function h0(){return 0}function Tw(n){return function(){return n}}function xge(n){return Math.sqrt(n.value)}function Dge(){var n=null,r=1,e=1,i=h0;function o(a){return a.x=r/2,a.y=e/2,n?a.eachBefore(OQ(n)).eachAfter(C9(i,.5)).eachBefore(PQ(1)):a.eachBefore(OQ(xge)).eachAfter(C9(h0,1)).eachAfter(C9(i,a.r/Math.min(r,e))).eachBefore(PQ(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=Ege(a),o):n},o.size=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.padding=function(a){return arguments.length?(i="function"==typeof a?a:Tw(+a),o):i},o}function OQ(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function C9(n,r){return function(e){if(i=e.children){var i,o,l,a=i.length,s=n(e)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(l=AQ(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function PQ(n){return function(r){var e=r.parent;r.r*=n,e&&(r.x=e.x+n*r.x,r.y=e.y+n*r.y)}}function IQ(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Tx(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(i-r)/n.value;++l<u;)(s=a[l]).y0=e,s.y1=o,s.x0=r,s.x1=r+=s.value*d}function Age(){var n=1,r=1,e=0,i=!1;function o(s){var l=s.height+1;return s.x0=s.y0=e,s.x1=n,s.y1=r/l,s.eachBefore(function a(s,l){return function(u){u.children&&Tx(u,u.x0,s*(u.depth+1)/l,u.x1,s*(u.depth+2)/l);var d=u.x0,h=u.y0,g=u.x1-e,y=u.y1-e;g<d&&(d=g=(d+g)/2),y<h&&(h=y=(h+y)/2),u.x0=d,u.y0=h,u.x1=g,u.y1=y}}(r,l)),i&&s.eachBefore(IQ),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(n=+s[0],r=+s[1],o):[n,r]},o.padding=function(s){return arguments.length?(e=+s,o):e},o}var Oge={depth:-1},LQ={};function Pge(n){return n.id}function Ige(n){return n.parentId}function Rge(){var n=Pge,r=Ige;function e(i){var o,a,l,u,d,g,y,s=i.length,h=new Array(s),L={};for(a=0;a<s;++a)o=i[a],d=h[a]=new kw(o),null!=(g=n(o,a,i))&&(g+="")&&(L[y="$"+(d.id=g)]=y in L?LQ:d);for(a=0;a<s;++a)if(d=h[a],null!=(g=r(i[a],a,i))&&(g+="")){if(!(u=L["$"+g]))throw new Error("missing: "+g);if(u===LQ)throw new Error("ambiguous: "+g);u.children?u.children.push(d):u.children=[d],d.parent=u}else{if(l)throw new Error("multiple roots");l=d}if(!l)throw new Error("no root");if(l.parent=Oge,l.eachBefore(function(z){z.depth=z.parent.depth+1,--s}).eachBefore(kQ),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=tN(i),e):n},e.parentId=function(i){return arguments.length?(r=tN(i),e):r},e}function Lge(n,r){return n.parent===r.parent?1:2}function w9(n){var r=n.children;return r?r[0]:n.t}function k9(n){var r=n.children;return r?r[r.length-1]:n.t}function Zge(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 Bge(n,r,e){return n.a.parent===r.parent?n.a:e}function nN(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 Uge(){var n=Lge,r=1,e=1,i=null;function o(d){var h=function Fge(n){for(var e,o,a,s,l,r=new nN(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 nN(a[s],s)),o.parent=e;return(r.parent=new nN(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,y=d,L=d;d.eachBefore(function(Se){Se.x<g.x&&(g=Se),Se.x>y.x&&(y=Se),Se.depth>L.depth&&(L=Se)});var z=g===y?1:n(g,y)/2,q=z-g.x,re=r/(y.x+z+q),ae=e/(L.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,y=d.i?g[d.i-1]:null;if(h){!function Nge(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 L=(h[0].z+h[h.length-1].z)/2;y?(d.z=y.z+n(d._,y._),d.m=d.z-L):d.z=L}else y&&(d.z=y.z+n(d._,y._));d.parent.A=function l(d,h,g){if(h){for(var Ee,y=d,L=d,z=h,q=y.parent.children[0],re=y.m,ae=L.m,Se=z.m,Ce=q.m;z=k9(z),y=w9(y),z&&y;)q=w9(q),(L=k9(L)).a=d,(Ee=z.z+Se-y.z-re+n(z._,y._))>0&&(Zge(Bge(z,d,g),d,Ee),re+=Ee,ae+=Ee),Se+=z.m,re+=y.m,Ce+=q.m,ae+=L.m;z&&!k9(L)&&(L.t=z,L.m+=Se-ae),y&&!w9(q)&&(q.t=y,q.m+=re-Ce,g=d)}return g}(d,y,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 rN(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(o-e)/n.value;++l<u;)(s=a[l]).x0=r,s.x1=i,s.y0=e,s.y1=e+=s.value*d}nN.prototype=Object.create(kw.prototype);var ZQ=(1+Math.sqrt(5))/2;function NQ(n,r,e,i,o,a){for(var u,d,L,z,re,ae,Se,Ce,Ee,Ke,st,s=[],l=r.children,h=0,g=0,y=l.length,q=r.value;h<y;){L=o-e,z=a-i;do{re=l[g++].value}while(!re&&g<y);for(ae=Se=re,st=re*re*(Ke=Math.max(z/L,L/z)/(q*n)),Ee=Math.max(Se/st,st/ae);g<y;++g){if(re+=d=l[g].value,d<ae&&(ae=d),d>Se&&(Se=d),st=re*re*Ke,(Ce=Math.max(Se/st,st/ae))>Ee){re-=d;break}Ee=Ce}s.push(u={value:re,dice:L<z,children:l.slice(h,g)}),u.dice?Tx(u,e,i,o,q?i+=z*re/q:a):rN(u,e,i,q?e+=L*re/q:o,a),q-=re,h=g}return s}var BQ=function n(r){function e(i,o,a,s,l){NQ(r,i,o,a,s,l)}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(ZQ);function jge(){var n=BQ,r=!1,e=1,i=1,o=[0],a=h0,s=h0,l=h0,u=h0,d=h0;function h(y){return y.x0=y.y0=0,y.x1=e,y.y1=i,y.eachBefore(g),o=[0],r&&y.eachBefore(IQ),y}function g(y){var L=o[y.depth],z=y.x0+L,q=y.y0+L,re=y.x1-L,ae=y.y1-L;re<z&&(z=re=(z+re)/2),ae<q&&(q=ae=(q+ae)/2),y.x0=z,y.y0=q,y.x1=re,y.y1=ae,y.children&&(L=o[y.depth+1]=a(y)/2,z+=d(y)-L,q+=s(y)-L,(re-=l(y)-L)<z&&(z=re=(z+re)/2),(ae-=u(y)-L)<q&&(q=ae=(q+ae)/2),n(y,z,q,re,ae))}return h.round=function(y){return arguments.length?(r=!!y,h):r},h.size=function(y){return arguments.length?(e=+y[0],i=+y[1],h):[e,i]},h.tile=function(y){return arguments.length?(n=tN(y),h):n},h.padding=function(y){return arguments.length?h.paddingInner(y).paddingOuter(y):h.paddingInner()},h.paddingInner=function(y){return arguments.length?(a="function"==typeof y?y:Tw(+y),h):a},h.paddingOuter=function(y){return arguments.length?h.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):h.paddingTop()},h.paddingTop=function(y){return arguments.length?(s="function"==typeof y?y:Tw(+y),h):s},h.paddingRight=function(y){return arguments.length?(l="function"==typeof y?y:Tw(+y),h):l},h.paddingBottom=function(y){return arguments.length?(u="function"==typeof y?y:Tw(+y),h):u},h.paddingLeft=function(y){return arguments.length?(d="function"==typeof y?y:Tw(+y),h):d},h}function Hge(n,r,e,i,o){var s,u,a=n.children,l=a.length,d=new Array(l+1);for(d[0]=u=s=0;s<l;++s)d[s+1]=u+=a[s].value;!function h(g,y,L,z,q,re,ae){if(g>=y-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=L/2+Ce,Ke=g+1,st=y-1;Ke<st;){var De=Ke+st>>>1;d[De]<Ee?Ke=De+1:st=De}Ee-d[Ke-1]<d[Ke]-Ee&&g+1<Ke&&--Ke;var it=d[Ke]-Ce,ft=L-it;if(re-z>ae-q){var bt=(z*ft+re*it)/L;h(g,Ke,it,z,q,bt,ae),h(Ke,y,ft,bt,q,re,ae)}else{var $e=(q*ft+ae*it)/L;h(g,Ke,it,z,q,re,$e),h(Ke,y,ft,z,$e,re,ae)}}(0,l,n.value,r,e,i,o)}function Gge(n,r,e,i,o){(1&n.depth?rN:Tx)(n,r,e,i,o)}var zge=function n(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,d,h,g,L,y=-1,z=u.length,q=i.value;++y<z;){for(h=(d=u[y]).children,g=d.value=0,L=h.length;g<L;++g)d.value+=h[g].value;d.dice?Tx(d,o,a,s,a+=(l-a)*d.value/q):rN(d,o,a,o+=(s-o)*d.value/q,l),q-=d.value}else i._squarify=u=NQ(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(ZQ);function Mw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Mx(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function kg(){}var Sw=1/.7,Ew="\\s*([+-]?\\d+)\\s*",Sx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wge=/^#([0-9a-f]{3,8})$/,Vge=new RegExp("^rgb\\("+[Ew,Ew,Ew]+"\\)$"),Yge=new RegExp("^rgb\\("+[mp,mp,mp]+"\\)$"),Kge=new RegExp("^rgba\\("+[Ew,Ew,Ew,Sx]+"\\)$"),qge=new RegExp("^rgba\\("+[mp,mp,mp,Sx]+"\\)$"),Jge=new RegExp("^hsl\\("+[Sx,mp,mp]+"\\)$"),Qge=new RegExp("^hsla\\("+[Sx,mp,mp,Sx]+"\\)$"),FQ={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 UQ(){return this.rgb().formatHex()}function jQ(){return this.rgb().formatRgb()}function Ex(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Wge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?HQ(r):3===e?new al(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?iN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?iN(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=Vge.exec(n))?new al(r[1],r[2],r[3],1):(r=Yge.exec(n))?new al(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Kge.exec(n))?iN(r[1],r[2],r[3],r[4]):(r=qge.exec(n))?iN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Jge.exec(n))?WQ(r[1],r[2]/100,r[3]/100,1):(r=Qge.exec(n))?WQ(r[1],r[2]/100,r[3]/100,r[4]):FQ.hasOwnProperty(n)?HQ(FQ[n]):"transparent"===n?new al(NaN,NaN,NaN,0):null}function HQ(n){return new al(n>>16&255,n>>8&255,255&n,1)}function iN(n,r,e,i){return i<=0&&(n=r=e=NaN),new al(n,r,e,i)}function T9(n){return n instanceof kg||(n=Ex(n)),n?new al((n=n.rgb()).r,n.g,n.b,n.opacity):new al}function oN(n,r,e,i){return 1===arguments.length?T9(n):new al(n,r,e,null==i?1:i)}function al(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function GQ(){return"#"+M9(this.r)+M9(this.g)+M9(this.b)}function zQ(){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 M9(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function WQ(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 VQ(n){if(n instanceof _p)return new _p(n.h,n.s,n.l,n.opacity);if(n instanceof kg||(n=Ex(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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new _p(s,l,u,n.opacity)}function S9(n,r,e,i){return 1===arguments.length?VQ(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 E9(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 YQ(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 KQ(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=i<r-1?n[i+2]:2*a-o;return YQ((e-i/r)*r,s,o,a,l)}}function qQ(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return YQ((e-i/r)*r,o,a,s,l)}}function aN(n){return function(){return n}}function JQ(n,r){return function(e){return n+e*r}}function x9(n,r){var e=r-n;return e?JQ(n,e>180||e<-180?e-360*Math.round(e/360):e):aN(isNaN(n)?r:n)}function eve(n){return 1==(n=+n)?Us:function(r,e){return e-r?function $ge(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):aN(isNaN(r)?e:r)}}function Us(n,r){var e=r-n;return e?JQ(n,e):aN(isNaN(n)?r:n)}Mw(kg,Ex,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:UQ,formatHex:UQ,formatHsl:function Xge(){return VQ(this).formatHsl()},formatRgb:jQ,toString:jQ}),Mw(al,oN,Mx(kg,{brighter:function(r){return r=null==r?Sw:Math.pow(Sw,r),new al(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new al(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:GQ,formatHex:GQ,formatRgb:zQ,toString:zQ})),Mw(_p,S9,Mx(kg,{brighter:function(r){return r=null==r?Sw:Math.pow(Sw,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 al(E9(r>=240?r-240:r+120,a,o),E9(r,a,o),E9(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 D9=function n(r){var e=eve(r);function i(o,a){var s=e((o=oN(o)).r,(a=oN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Us(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 QQ(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<e;++s)l=oN(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var tve=QQ(KQ),nve=QQ(qQ);function XQ(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=P9(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function $Q(n,r){var e=new Date;return r-=n=+n,function(i){return e.setTime(n+r*i),e}}function gp(n,r){return r-=n=+n,function(e){return n+r*e}}function eX(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=P9(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var A9=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,O9=new RegExp(A9.source,"g");function tX(n,r){var i,o,a,e=A9.lastIndex=O9.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=A9.exec(n))&&(o=O9.exec(r));)(a=o.index)>e&&(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=O9.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function ive(n){return function(r){return n(r)+""}}(u[0].x):function rve(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function P9(n,r){var i,e=typeof r;return null==r||"boolean"===e?aN(r):("number"===e?gp:"string"===e?(i=Ex(r))?(r=i,D9):tX:r instanceof Ex?D9:r instanceof Date?$Q:Array.isArray(r)?XQ:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?eX:gp)(n,r)}function ove(n,r){return r-=n=+n,function(e){return Math.round(n+r*e)}}var xx,R9,iX,sN,nX=180/Math.PI,I9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rX(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*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*nX,skewX:Math.atan(u)*nX,scaleX:s,scaleY:l}}function oX(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],y=[];return d=n(d),h=n(h),function a(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push("translate(",null,r,null,e);z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,y)})}else(g||y)&&L.push("translate("+g+r+y+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,y),function s(d,h,g,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.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,y),function l(d,h,g,y){d!==h?y.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,y),function u(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push(o(L)+"scale(",null,",",null,")");z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,y)})}else(1!==g||1!==y)&&L.push(o(L)+"scale("+g+","+y+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,y),d=h=null,function(L){for(var re,z=-1,q=y.length;++z<q;)g[(re=y[z]).i]=re.x(L);return g.join("")}}}var lve=oX(function ave(n){return"none"===n?I9:(xx||(xx=document.createElement("DIV"),R9=document.documentElement,iX=document.defaultView),xx.style.transform=n,n=iX.getComputedStyle(R9.appendChild(xx),null).getPropertyValue("transform"),R9.removeChild(xx),rX(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),uve=oX(function sve(n){return null!=n&&(sN||(sN=document.createElementNS("http://www.w3.org/2000/svg","g")),sN.setAttribute("transform",n),n=sN.transform.baseVal.consolidate())?rX((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):I9},", ",")",")"),Dx=Math.SQRT2;function sX(n){return((n=Math.exp(n))+1/n)/2}function pve(n,r){var g,y,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)y=Math.log(l/o)/Dx,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(Dx*Ce*y)]};else{var L=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*L),q=(l*l-o*o-4*h)/(2*l*2*L),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);y=(ae-re)/Dx,g=function(Ce){var Ee=Ce*y,Ke=sX(re),st=o/(2*L)*(Ke*function fve(n){return((n=Math.exp(2*n))-1)/(n+1)}(Dx*Ee+re)-function dve(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+st*u,i+st*d,o*Ke/sX(Dx*Ee+re)]}}return g.duration=1e3*y,g}function lX(n){return function(r,e){var i=n((r=S9(r)).h,(e=S9(e)).h),o=Us(r.s,e.s),a=Us(r.l,e.l),s=Us(r.opacity,e.opacity);return function(l){return r.h=i(l),r.s=o(l),r.l=a(l),r.opacity=s(l),r+""}}}var hve=lX(x9),mve=lX(Us),uX=Math.PI/180,cX=180/Math.PI,hX=4/29,xw=6/29,mX=3*xw*xw;function _X(n){if(n instanceof Wd)return new Wd(n.l,n.a,n.b,n.opacity);if(n instanceof vp)return vX(n);n instanceof al||(n=T9(n));var a,s,r=U9(n.r),e=U9(n.g),i=U9(n.b),o=N9((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=N9((.4360747*r+.3850649*e+.1430804*i)/.96422),s=N9((.0139322*r+.0971045*e+.7141733*i)/.82521)),new Wd(116*o-16,500*(a-o),200*(o-s),n.opacity)}function Z9(n,r,e,i){return 1===arguments.length?_X(n):new Wd(n,r,e,null==i?1:i)}function Wd(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function N9(n){return n>.008856451679035631?Math.pow(n,1/3):n/mX+hX}function B9(n){return n>xw?n*n*n:mX*(n-hX)}function F9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function U9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function gX(n){if(n instanceof vp)return new vp(n.h,n.c,n.l,n.opacity);if(n instanceof Wd||(n=_X(n)),0===n.a&&0===n.b)return new vp(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*cX;return new vp(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function j9(n,r,e,i){return 1===arguments.length?gX(n):new vp(n,r,e,null==i?1:i)}function vp(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}function vX(n){if(isNaN(n.h))return new Wd(n.l,0,0,n.opacity);var r=n.h*uX;return new Wd(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function gve(n,r){var e=Us((n=Z9(n)).l,(r=Z9(r)).l),i=Us(n.a,r.a),o=Us(n.b,r.b),a=Us(n.opacity,r.opacity);return function(s){return n.l=e(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function yX(n){return function(r,e){var i=n((r=j9(r)).h,(e=j9(e)).h),o=Us(r.c,e.c),a=Us(r.l,e.l),s=Us(r.opacity,e.opacity);return function(l){return r.h=i(l),r.c=o(l),r.l=a(l),r.opacity=s(l),r+""}}}Mw(Wd,Z9,Mx(kg,{brighter:function(r){return new Wd(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Wd(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 al(F9(3.1338561*(e=.96422*B9(e))-1.6168667*(r=1*B9(r))-.4906146*(i=.82521*B9(i))),F9(-.9787684*e+1.9161415*r+.033454*i),F9(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),Mw(vp,j9,Mx(kg,{brighter:function(r){return new vp(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new vp(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return vX(this).rgb()}}));var vve=yX(x9),yve=yX(Us),H9=1.78277,G9=-.29227,uN=-.90649,Ax=1.97294,CX=Ax*uN,wX=Ax*H9,kX=H9*G9- -.14861*uN;function bve(n){if(n instanceof _0)return new _0(n.h,n.s,n.l,n.opacity);n instanceof al||(n=T9(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(kX*i+CX*r-wX*e)/(kX+CX-wX),a=i-o,s=(Ax*(e-o)-G9*a)/uN,l=Math.sqrt(s*s+a*a)/(Ax*o*(1-o)),u=l?Math.atan2(s,a)*cX-120:NaN;return new _0(u<0?u+360:u,l,o,n.opacity)}function z9(n,r,e,i){return 1===arguments.length?bve(n):new _0(n,r,e,null==i?1:i)}function _0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function TX(n){return function r(e){function i(o,a){var s=n((o=z9(o)).h,(a=z9(a)).h),l=Us(o.s,a.s),u=Us(o.l,a.l),d=Us(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}Mw(_0,z9,Mx(kg,{brighter:function(r){return r=null==r?Sw:Math.pow(Sw,r),new _0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*uX,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new al(255*(e+i*(-.14861*o+H9*a)),255*(e+i*(G9*o+uN*a)),255*(e+i*(Ax*o)),this.opacity)}}));var Cve=TX(x9),wve=TX(Us);function kve(n,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=n(i/(r-1));return e}function Tve(n){for(var i,r=-1,e=n.length,o=n[e-1],a=0;++r<e;)i=o,o=n[r],a+=i[1]*o[0]-i[0]*o[1];return a/2}function Mve(n){for(var a,l,r=-1,e=n.length,i=0,o=0,s=n[e-1],u=0;++r<e;)a=s,s=n[r],u+=l=a[0]*s[1]-s[0]*a[1],i+=(a[0]+s[0])*l,o+=(a[1]+s[1])*l;return[i/(u*=3),o/u]}function Sve(n,r,e){return(r[0]-n[0])*(e[1]-n[1])-(r[1]-n[1])*(e[0]-n[0])}function Eve(n,r){return n[0]-r[0]||n[1]-r[1]}function MX(n){for(var r=n.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Sve(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function xve(n){if((e=n.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r<e;++r)i[r]=[+n[r][0],+n[r][1],r];for(i.sort(Eve),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=MX(i),s=MX(o),l=s[0]===a[0],u=s[s.length-1]===a[a.length-1],d=[];for(r=a.length-1;r>=0;--r)d.push(n[i[a[r]][2]]);for(r=+l;r<s.length-u;++r)d.push(n[i[s[r]][2]]);return d}function Dve(n,r){for(var u,d,e=n.length,i=n[e-1],o=r[0],a=r[1],s=i[0],l=i[1],h=!1,g=0;g<e;++g)u=(i=n[g])[0],(d=i[1])>a!=l>a&&o<(s-u)*(a-d)/(l-d)+u&&(h=!h),s=u,l=d;return h}function Ave(n){for(var o,a,r=-1,e=n.length,i=n[e-1],s=i[0],l=i[1],u=0;++r<e;)o=s,a=l,o-=s=(i=n[r])[0],a-=l=i[1],u+=Math.sqrt(o*o+a*a);return u}function Dw(){return Math.random()}var Ove=function n(r){function e(i,o){return i=null==i?0:+i,o=null==o?1:+o,1===arguments.length?(o=i,i=0):o-=i,function(){return r()*o+i}}return e.source=n,e}(Dw),SX=function n(r){function e(i,o){var a,s;return i=null==i?0:+i,o=null==o?1:+o,function(){var l;if(null!=a)l=a,a=null;else do{a=2*r()-1,l=2*r()-1,s=a*a+l*l}while(!s||s>1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=n,e}(Dw),Pve=function n(r){function e(){var i=SX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Dw),EX=function n(r){function e(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return e.source=n,e}(Dw),Ive=function n(r){function e(i){var o=EX.source(r)(i);return function(){return o()/i}}return e.source=n,e}(Dw),Rve=function n(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=n,e}(Dw),xX=Array.prototype,W9=xX.map,Tg=xX.slice,V9={name:"implicit"};function Y9(n){var r=mg(),e=[],i=V9;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==V9)return i;r.set(s,l=e.push(a))}return n[(l-1)%n.length]}return n=null==n?[]:Tg.call(n),o.domain=function(a){if(!arguments.length)return e.slice();e=[],r=mg();for(var u,d,s=-1,l=a.length;++s<l;)r.has(d=(u=a[s])+"")||r.set(d,e.push(u));return o},o.range=function(a){return arguments.length?(n=Tg.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return Y9().domain(e).range(n).unknown(i)},o}function K9(){var o,a,n=Y9().unknown(void 0),r=n.domain,e=n.range,i=[0,1],s=!1,l=0,u=0,d=.5;function h(){var g=r().length,y=i[1]<i[0],L=i[y-0],z=i[1-y];o=(z-L)/Math.max(1,g-l+2*u),s&&(o=Math.floor(o)),L+=(z-L-o*(g-l))*d,a=o*(1-l),s&&(L=Math.round(L),a=Math.round(a));var q=mc(g).map(function(re){return L+o*re});return e(y?q.reverse():q)}return delete n.unknown,n.domain=function(g){return arguments.length?(r(g),h()):r()},n.range=function(g){return arguments.length?(i=[+g[0],+g[1]],h()):i.slice()},n.rangeRound=function(g){return i=[+g[0],+g[1]],s=!0,h()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(g){return arguments.length?(s=!!g,h()):s},n.padding=function(g){return arguments.length?(l=u=Math.max(0,Math.min(1,g)),h()):l},n.paddingInner=function(g){return arguments.length?(l=Math.max(0,Math.min(1,g)),h()):l},n.paddingOuter=function(g){return arguments.length?(u=Math.max(0,Math.min(1,g)),h()):u},n.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),h()):d},n.copy=function(){return K9().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(d)},h()}function DX(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return DX(r())},n}function Lve(){return DX(K9().paddingInner(1))}function Zve(n,r){return n=+n,r=+r,function(e){return Math.round(n*(1-e)+r*e)}}function q9(n){return function(){return n}}function AX(n){return+n}var OX=[0,1];function J9(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:q9(r)}function Fve(n,r,e,i){var o=n[0],a=n[1],s=r[0],l=r[1];return a<o?(o=e(a,o),s=i(l,s)):(o=e(o,a),s=i(s,l)),function(u){return s(o(u))}}function Uve(n,r,e,i){var o=Math.min(n.length,r.length)-1,a=new Array(o),s=new Array(o),l=-1;for(n[o]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++l<o;)a[l]=e(n[l],n[l+1]),s[l]=i(r[l],r[l+1]);return function(u){var d=X1(n,u,1,o)-1;return s[d](a[d](u))}}function cN(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function dN(n,r){var s,l,u,e=OX,i=OX,o=WL,a=!1;function d(){return s=Math.min(e.length,i.length)>2?Uve:Fve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function Nve(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,J9,a?function Bve(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=W9.call(g,AX),d()):e.slice()},h.range=function(g){return arguments.length?(i=Tg.call(g),d()):i.slice()},h.rangeRound=function(g){return i=Tg.call(g),o=Zve,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 PX,jve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fN(n){if(!(r=jve.exec(n)))throw new Error("invalid format: "+n);var r;return new Q9({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 Q9(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 pN(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 Aw(n){return(n=pN(Math.abs(n)))?n[1]:NaN}function IX(n,r){var e=pN(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")}fN.prototype=Q9.prototype,Q9.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 RX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Hve(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 IX(100*r,e)},r:IX,s:function Yve(n,r){var e=pN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(PX=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")+pN(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 LX(n){return n}var hN,X9,BX,ZX=Array.prototype.map,NX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Kve(n){var r=void 0===n.grouping||void 0===n.thousands?LX:function zve(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)}}(ZX.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?LX:function Wve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(ZX.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 y=(g=fN(g)).fill,L=g.align,z=g.sign,q=g.symbol,re=g.zero,ae=g.width,Se=g.comma,Ce=g.precision,Ee=g.trim,Ke=g.type;"n"===Ke?(Se=!0,Ke="g"):RX[Ke]||(void 0===Ce&&(Ce=12),Ee=!0,Ke="g"),(re||"0"===y&&"="===L)&&(re=!0,y="0",L="=");var st="$"===q?e:"#"===q&&/[boxX]/.test(Ke)?"0"+Ke.toLowerCase():"",De="$"===q?i:/[%p]/.test(Ke)?s:"",it=RX[Ke],ft=/[defgprs%]/.test(Ke);function bt($e){var Bt,jt,It,Ie=st,ct=De;if("c"===Ke)ct=it($e)+ct,$e="";else{var Tn=($e=+$e)<0||1/$e<0;if($e=isNaN($e)?u:it(Math.abs($e),Ce),Ee&&($e=function Vve(n){e:for(var o,r=n.length,e=1,i=-1;e<r;++e)switch(n[e]){case".":i=o=e;break;case"0":0===i&&(i=e),o=e;break;default:if(!+n[e])break e;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(o+1):n}($e)),Tn&&0==+$e&&"+"!==z&&(Tn=!1),Ie=(Tn?"("===z?z:l:"-"===z||"("===z?"":z)+Ie,ct=("s"===Ke?NX[8+PX/3]:"")+ct+(Tn&&"("===z?")":""),ft)for(Bt=-1,jt=$e.length;++Bt<jt;)if(48>(It=$e.charCodeAt(Bt))||It>57){ct=(46===It?o+$e.slice(Bt+1):$e.slice(Bt))+ct,$e=$e.slice(0,Bt);break}}Se&&!re&&($e=r($e,1/0));var Hn=Ie.length+$e.length+ct.length,zn=Hn<ae?new Array(ae-Hn+1).join(y):"";switch(Se&&re&&($e=r(zn+$e,zn.length?ae-ct.length:1/0),zn=""),L){case"<":$e=Ie+$e+ct+zn;break;case"=":$e=Ie+zn+$e+ct;break;case"^":$e=zn.slice(0,Hn=zn.length>>1)+Ie+$e+ct+zn.slice(Hn);break;default:$e=zn+Ie+$e+ct}return a($e)}return Ce=void 0===Ce?6:/[gprs]/.test(Ke)?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,y){var L=d(((g=fN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Aw(y)/3))),q=Math.pow(10,-z),re=NX[8+z/3];return function(ae){return L(q*ae)+re}}}}function Xve(n,r,e){var s,i=n[0],o=n[n.length-1],a=e0(i,o,null==r?10:r);switch((e=fN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function Gve(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Aw(r)/3)))-Aw(Math.abs(n)))}(a,l))&&(e.precision=s),BX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Jve(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,Aw(r)-Aw(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 Qve(n){return Math.max(0,-Aw(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return X9(e)}function Ox(n){var r=n.domain;return n.ticks=function(e){var i=r();return x7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return Xve(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 l<s&&(u=s,s=l,l=u,u=o,o=a,a=u),(u=zE(s,l,e))>0?u=zE(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=zE(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 FX(){var n=dN(J9,qc);return n.copy=function(){return cN(n,FX())},Ox(n)}function UX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=W9.call(e,AX),r):n.slice()},r.copy=function(){return UX().domain(n)},Ox(r)}function jX(n,r){var s,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a<o&&(s=e,e=i,i=s,s=o,o=a,a=s),n[e]=r.floor(o),n[i]=r.ceil(a),n}function $ve(n,r){return(r=Math.log(r/n))?function(e){return Math.log(e/n)/r}:q9(r)}function eye(n,r){return n<0?function(e){return-Math.pow(-r,e)*Math.pow(-n,1-e)}:function(e){return Math.pow(r,e)*Math.pow(n,1-e)}}function tye(n){return isFinite(n)?+("1e"+n):n<0?0:n}function HX(n){return 10===n?tye:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function GX(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(r){return Math.log(r)/n})}function zX(n){return function(r){return-n(-r)}}function WX(){var n=dN($ve,eye).domain([1,10]),r=n.domain,e=10,i=GX(10),o=HX(10);function a(){return i=GX(e),o=HX(e),r()[0]<0&&(i=zX(i),o=zX(o)),n}return n.base=function(s){return arguments.length?(e=+s,a()):e},n.domain=function(s){return arguments.length?(r(s),a()):r()},n.ticks=function(s){var h,l=r(),u=l[0],d=l[l.length-1];(h=d<u)&&(g=u,u=d,d=g);var L,z,q,g=i(u),y=i(d),re=null==s?10:+s,ae=[];if(!(e%1)&&y-g<re){if(g=Math.round(g)-1,y=Math.round(y)+1,u>0){for(;g<y;++g)for(z=1,L=o(g);z<e;++z)if(!((q=L*z)<u)){if(q>d)break;ae.push(q)}}else for(;g<y;++g)for(z=e-1,L=o(g);z>=1;--z)if(!((q=L*z)<u)){if(q>d)break;ae.push(q)}}else ae=x7(g,y,Math.min(y-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=X9(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*e<e-.5&&(h*=e),h<=u?l(d):""}},n.nice=function(){return r(jX(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},n.copy=function(){return cN(n,WX().base(e))},n}function Ow(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function $9(){var n=1,r=dN(function i(a,s){return(s=Ow(s,n)-(a=Ow(a,n)))?function(l){return(Ow(l,n)-a)/s}:q9(s)},function o(a,s){return s=Ow(s,n)-(a=Ow(a,n)),function(l){return Ow(a+s*l,1/n)}}),e=r.domain;return r.exponent=function(a){return arguments.length?(n=+a,e(e())):n},r.copy=function(){return cN(r,$9().exponent(n))},Ox(r)}function nye(){return $9().exponent(.5)}function VX(){var n=[],r=[],e=[];function i(){var a=0,s=Math.max(1,r.length);for(e=new Array(s-1);++a<s;)e[a-1]=WE(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[X1(e,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?e[s-1]:n[0],s<e.length?e[s]:n[n.length-1]]},o.domain=function(a){if(!arguments.length)return n.slice();n=[];for(var u,s=0,l=a.length;s<l;++s)null!=(u=a[s])&&!isNaN(u=+u)&&n.push(u);return n.sort($y),i()},o.range=function(a){return arguments.length?(r=Tg.call(a),i()):r.slice()},o.quantiles=function(){return e.slice()},o.copy=function(){return VX().domain(n).range(r)},o}function YX(){var n=0,r=1,e=1,i=[.5],o=[0,1];function a(l){if(l<=l)return o[X1(i,l,0,e)]}function s(){var l=-1;for(i=new Array(e);++l<e;)i[l]=((l+1)*r-(l-e)*n)/(e+1);return a}return a.domain=function(l){return arguments.length?(n=+l[0],r=+l[1],s()):[n,r]},a.range=function(l){return arguments.length?(e=(o=Tg.call(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[n,i[0]]:u>=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return YX().domain([n,r]).range(o)},Ox(a)}function KX(){var n=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[X1(n,o,0,e)]}return i.domain=function(o){return arguments.length?(n=Tg.call(o),e=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Tg.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 KX().domain(n).range(r)},i}!function qve(n){return hN=Kve(n),X9=hN.format,BX=hN.formatPrefix,hN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var eH=new Date,tH=new Date;function js(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-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return js(function(s){if(s>=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 eH.setTime(+a),tH.setTime(+s),n(eH),n(tH),Math.floor(e(eH,tH))},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 nH=js(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()});nH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?js(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 Vd=nH,qX=(nH.range,js(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()})),rye=qX,g0=(qX.range,6e4),_N=36e5,QX=6048e5;function v0(n){return js(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())*g0)/QX})}var gN=v0(0),y0=v0(1),iye=v0(2),oye=v0(3),om=v0(4),aye=v0(5),sye=v0(6),XX=(gN.range,y0.range,iye.range,oye.range,om.range,aye.range,sye.range,js(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())*g0)/864e5},function(n){return n.getDate()-1})),Px=XX,$X=(XX.range,js(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*g0)},function(n,r){n.setTime(+n+r*_N)},function(n,r){return(r-n)/_N},function(n){return n.getHours()})),lye=$X,e$=($X.range,js(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*g0)},function(n,r){return(r-n)/g0},function(n){return n.getMinutes()})),uye=e$,t$=(e$.range,js(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()})),n$=t$,vN=(t$.range,js(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));vN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?js(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):vN:null};var r$=vN;vN.range;function b0(n){return js(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)/QX})}var yN=b0(0),C0=b0(1),cye=b0(2),dye=b0(3),am=b0(4),fye=b0(5),pye=b0(6),i$=(yN.range,C0.range,cye.range,dye.range,am.range,fye.range,pye.range,js(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})),Ix=i$,rH=(i$.range,js(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()}));rH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?js(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 Yd=rH;rH.range;function iH(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 oH(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 Rx(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Pw,y$,b$,o$={"-":"",_:" ",0:"0"},Hs=/^\s*\d+/,mye=/^%/,_ye=/[\\^$*+?|[\]().{}]/g;function Vi(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function gye(n){return n.replace(_ye,"\\$&")}function Lx(n){return new RegExp("^(?:"+n.map(gye).join("|")+")","i")}function Zx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function vye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function yye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function bye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function Cye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function wye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function a$(n,r,e){var i=Hs.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function s$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function kye(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 Tye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function Mye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function l$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Sye(n,r,e){var i=Hs.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function u$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Eye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Dye(n,r,e){var i=Hs.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Aye(n,r,e){var i=Hs.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Oye(n,r,e){var i=mye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Pye(n,r,e){var i=Hs.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Iye(n,r,e){var i=Hs.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function c$(n,r){return Vi(n.getDate(),r,2)}function Rye(n,r){return Vi(n.getHours(),r,2)}function Lye(n,r){return Vi(n.getHours()%12||12,r,2)}function Zye(n,r){return Vi(1+Px.count(Vd(n),n),r,3)}function d$(n,r){return Vi(n.getMilliseconds(),r,3)}function Nye(n,r){return d$(n,r)+"000"}function Bye(n,r){return Vi(n.getMonth()+1,r,2)}function Fye(n,r){return Vi(n.getMinutes(),r,2)}function Uye(n,r){return Vi(n.getSeconds(),r,2)}function jye(n){var r=n.getDay();return 0===r?7:r}function Hye(n,r){return Vi(gN.count(Vd(n)-1,n),r,2)}function f$(n){var r=n.getDay();return r>=4||0===r?om(n):om.ceil(n)}function Gye(n,r){return n=f$(n),Vi(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function zye(n){return n.getDay()}function Wye(n,r){return Vi(y0.count(Vd(n)-1,n),r,2)}function Vye(n,r){return Vi(n.getFullYear()%100,r,2)}function Yye(n,r){return Vi((n=f$(n)).getFullYear()%100,r,2)}function Kye(n,r){return Vi(n.getFullYear()%1e4,r,4)}function qye(n,r){var e=n.getDay();return Vi((n=e>=4||0===e?om(n):om.ceil(n)).getFullYear()%1e4,r,4)}function Jye(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Vi(r/60|0,"0",2)+Vi(r%60,"0",2)}function p$(n,r){return Vi(n.getUTCDate(),r,2)}function Qye(n,r){return Vi(n.getUTCHours(),r,2)}function Xye(n,r){return Vi(n.getUTCHours()%12||12,r,2)}function $ye(n,r){return Vi(1+Ix.count(Yd(n),n),r,3)}function h$(n,r){return Vi(n.getUTCMilliseconds(),r,3)}function e0e(n,r){return h$(n,r)+"000"}function t0e(n,r){return Vi(n.getUTCMonth()+1,r,2)}function n0e(n,r){return Vi(n.getUTCMinutes(),r,2)}function r0e(n,r){return Vi(n.getUTCSeconds(),r,2)}function i0e(n){var r=n.getUTCDay();return 0===r?7:r}function o0e(n,r){return Vi(yN.count(Yd(n)-1,n),r,2)}function m$(n){var r=n.getUTCDay();return r>=4||0===r?am(n):am.ceil(n)}function a0e(n,r){return n=m$(n),Vi(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function s0e(n){return n.getUTCDay()}function l0e(n,r){return Vi(C0.count(Yd(n)-1,n),r,2)}function u0e(n,r){return Vi(n.getUTCFullYear()%100,r,2)}function c0e(n,r){return Vi((n=m$(n)).getUTCFullYear()%100,r,2)}function d0e(n,r){return Vi(n.getUTCFullYear()%1e4,r,4)}function f0e(n,r){var e=n.getUTCDay();return Vi((n=e>=4||0===e?am(n):am.ceil(n)).getUTCFullYear()%1e4,r,4)}function p0e(){return"+0000"}function _$(){return"%"}function g$(n){return+n}function v$(n){return Math.floor(+n/1e3)}!function _0e(n){return Pw=function hye(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=Lx(o),h=Zx(o),g=Lx(a),y=Zx(a),L=Lx(s),z=Zx(s),q=Lx(l),re=Zx(l),ae=Lx(u),Se=Zx(u),Ce={a:function Tn(Mn){return s[Mn.getDay()]},A:function Hn(Mn){return a[Mn.getDay()]},b:function zn(Mn){return u[Mn.getMonth()]},B:function ar(Mn){return l[Mn.getMonth()]},c:null,d:c$,e:c$,f:Nye,g:Yye,G:qye,H:Rye,I:Lye,j:Zye,L:d$,m:Bye,M:Fye,p:function kr(Mn){return o[+(Mn.getHours()>=12)]},q:function _r(Mn){return 1+~~(Mn.getMonth()/3)},Q:g$,s:v$,S:Uye,u:jye,U:Hye,V:Gye,w:zye,W:Wye,x:null,X:null,y:Vye,Y:Kye,Z:Jye,"%":_$},Ee={a:function Wr(Mn){return s[Mn.getUTCDay()]},A:function jr(Mn){return a[Mn.getUTCDay()]},b:function Kr(Mn){return u[Mn.getUTCMonth()]},B:function jo(Mn){return l[Mn.getUTCMonth()]},c:null,d:p$,e:p$,f:e0e,g:c0e,G:f0e,H:Qye,I:Xye,j:$ye,L:h$,m:t0e,M:n0e,p:function tr(Mn){return o[+(Mn.getUTCHours()>=12)]},q:function br(Mn){return 1+~~(Mn.getUTCMonth()/3)},Q:g$,s:v$,S:r0e,u:i0e,U:o0e,V:a0e,w:s0e,W:l0e,x:null,X:null,y:u0e,Y:d0e,Z:p0e,"%":_$},Ke={a:function bt(Mn,gn,nr){var un=L.exec(gn.slice(nr));return un?(Mn.w=z[un[0].toLowerCase()],nr+un[0].length):-1},A:function $e(Mn,gn,nr){var un=g.exec(gn.slice(nr));return un?(Mn.w=y[un[0].toLowerCase()],nr+un[0].length):-1},b:function Ie(Mn,gn,nr){var un=ae.exec(gn.slice(nr));return un?(Mn.m=Se[un[0].toLowerCase()],nr+un[0].length):-1},B:function ct(Mn,gn,nr){var un=q.exec(gn.slice(nr));return un?(Mn.m=re[un[0].toLowerCase()],nr+un[0].length):-1},c:function Bt(Mn,gn,nr){return it(Mn,r,gn,nr)},d:l$,e:l$,f:Aye,g:s$,G:a$,H:u$,I:u$,j:Sye,L:Dye,m:Mye,M:Eye,p:function ft(Mn,gn,nr){var un=d.exec(gn.slice(nr));return un?(Mn.p=h[un[0].toLowerCase()],nr+un[0].length):-1},q:Tye,Q:Pye,s:Iye,S:xye,u:yye,U:bye,V:Cye,w:vye,W:wye,x:function jt(Mn,gn,nr){return it(Mn,e,gn,nr)},X:function It(Mn,gn,nr){return it(Mn,i,gn,nr)},y:s$,Y:a$,Z:kye,"%":Oye};function st(Mn,gn){return function(nr){var gr,eo,Xu,un=[],bn=-1,Nn=0,rr=Mn.length;for(nr instanceof Date||(nr=new Date(+nr));++bn<rr;)37===Mn.charCodeAt(bn)&&(un.push(Mn.slice(Nn,bn)),null!=(eo=o$[gr=Mn.charAt(++bn)])?gr=Mn.charAt(++bn):eo="e"===gr?" ":"0",(Xu=gn[gr])&&(gr=Xu(nr,eo)),un.push(gr),Nn=bn+1);return un.push(Mn.slice(Nn,bn)),un.join("")}}function De(Mn,gn){return function(nr){var Nn,rr,un=Rx(1900,void 0,1);if(it(un,Mn,nr+="",0)!=nr.length)return null;if("Q"in un)return new Date(un.Q);if("s"in un)return new Date(1e3*un.s+("L"in un?un.L:0));if(gn&&!("Z"in un)&&(un.Z=0),"p"in un&&(un.H=un.H%12+12*un.p),void 0===un.m&&(un.m="q"in un?un.q:0),"V"in un){if(un.V<1||un.V>53)return null;"w"in un||(un.w=1),"Z"in un?(rr=(Nn=oH(Rx(un.y,0,1))).getUTCDay(),Nn=rr>4||0===rr?C0.ceil(Nn):C0(Nn),Nn=Ix.offset(Nn,7*(un.V-1)),un.y=Nn.getUTCFullYear(),un.m=Nn.getUTCMonth(),un.d=Nn.getUTCDate()+(un.w+6)%7):(rr=(Nn=iH(Rx(un.y,0,1))).getDay(),Nn=rr>4||0===rr?y0.ceil(Nn):y0(Nn),Nn=Px.offset(Nn,7*(un.V-1)),un.y=Nn.getFullYear(),un.m=Nn.getMonth(),un.d=Nn.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),rr="Z"in un?oH(Rx(un.y,0,1)).getUTCDay():iH(Rx(un.y,0,1)).getDay(),un.m=0,un.d="W"in un?(un.w+6)%7+7*un.W-(rr+5)%7:un.w+7*un.U-(rr+6)%7);return"Z"in un?(un.H+=un.Z/100|0,un.M+=un.Z%100,oH(un)):iH(un)}}function it(Mn,gn,nr,un){for(var gr,eo,bn=0,Nn=gn.length,rr=nr.length;bn<Nn;){if(un>=rr)return-1;if(37===(gr=gn.charCodeAt(bn++))){if(gr=gn.charAt(bn++),!(eo=Ke[gr in o$?gn.charAt(bn++):gr])||(un=eo(Mn,nr,un))<0)return-1}else if(gr!=nr.charCodeAt(un++))return-1}return un}return Ce.x=st(e,Ce),Ce.X=st(i,Ce),Ce.c=st(r,Ce),Ee.x=st(e,Ee),Ee.X=st(i,Ee),Ee.c=st(r,Ee),{format:function(gn){var nr=st(gn+="",Ce);return nr.toString=function(){return gn},nr},parse:function(gn){var nr=De(gn+="",!1);return nr.toString=function(){return gn},nr},utcFormat:function(gn){var nr=st(gn+="",Ee);return nr.toString=function(){return gn},nr},utcParse:function(gn){var nr=De(gn+="",!0);return nr.toString=function(){return gn},nr}}}(n),y$=Pw.format,Pw.parse,b$=Pw.utcFormat,Pw.utcParse,Pw}({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 Nx=1e3,Bx=6e4,Fx=60*Bx,Ux=24*Fx,C$=30*Ux,aH=365*Ux;function v0e(n){return new Date(n)}function y0e(n){return n instanceof Date?+n:+new Date(+n)}function sH(n,r,e,i,o,a,s,l,u){var d=dN(J9,qc),h=d.invert,g=d.domain,y=u(".%L"),L=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,Nx],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Bx],[a,5,5*Bx],[a,15,15*Bx],[a,30,30*Bx],[o,1,Fx],[o,3,3*Fx],[o,6,6*Fx],[o,12,12*Fx],[i,1,Ux],[i,2,2*Ux],[e,1,6048e5],[r,1,C$],[r,3,3*C$],[n,1,aH]];function Ke(De){return(s(De)<De?y:a(De)<De?L:o(De)<De?z:i(De)<De?q:r(De)<De?e(De)<De?re:ae:n(De)<De?Se:Ce)(De)}function st(De,it,ft,bt){if(null==De&&(De=10),"number"==typeof De){var $e=Math.abs(ft-it)/De,Ie=k7(function(ct){return ct[2]}).right(Ee,$e);Ie===Ee.length?(bt=e0(it/aH,ft/aH,De),De=n):Ie?(bt=(Ie=Ee[$e/Ee[Ie-1][2]<Ee[Ie][2]/$e?Ie-1:Ie])[1],De=Ie[0]):(bt=Math.max(e0(it,ft,De),1),De=l)}return null==bt?De:De.every(bt)}return d.invert=function(De){return new Date(h(De))},d.domain=function(De){return arguments.length?g(W9.call(De,y0e)):g().map(v0e)},d.ticks=function(De,it){var ct,ft=g(),bt=ft[0],$e=ft[ft.length-1],Ie=$e<bt;return Ie&&(ct=bt,bt=$e,$e=ct),ct=(ct=st(De,bt,$e,it))?ct.range(bt,$e+1):[],Ie?ct.reverse():ct},d.tickFormat=function(De,it){return null==it?Ke:u(it)},d.nice=function(De,it){var ft=g();return(De=st(De,ft[0],ft[ft.length-1],it))?g(jX(ft,De)):d},d.copy=function(){return cN(d,sH(n,r,e,i,o,a,s,l,u))},d}function b0e(){return sH(Vd,rye,gN,Px,lye,uye,n$,r$,y$).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var w$=js(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()}),C0e=w$,k$=(w$.range,js(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*_N)},function(n,r){return(r-n)/_N},function(n){return n.getUTCHours()})),w0e=k$,T$=(k$.range,js(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*g0)},function(n,r){return(r-n)/g0},function(n){return n.getUTCMinutes()})),k0e=T$;T$.range;function T0e(){return sH(Yd,C0e,yN,Ix,w0e,k0e,n$,r$,b$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function M$(n){var r=0,e=1,i=!1;function o(a){var s=(a-r)/(e-r);return n(i?Math.max(0,Math.min(1,s)):s)}return o.domain=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.clamp=function(a){return arguments.length?(i=!!a,o):i},o.interpolator=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return M$(n).domain([r,e]).clamp(i)},Ox(o)}function ci(n){for(var r=n.length/6|0,e=new Array(r),i=0;i<r;)e[i]="#"+n.slice(6*i,6*++i);return e}var M0e=ci("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),S0e=ci("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),E0e=ci("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),x0e=ci("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),D0e=ci("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),A0e=ci("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),O0e=ci("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),P0e=ci("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),I0e=ci("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Io(n){return $de(n[n.length-1])}var S$=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ci),R0e=Io(S$),E$=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ci),L0e=Io(E$),x$=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ci),Z0e=Io(x$),D$=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ci),N0e=Io(D$),A$=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ci),B0e=Io(A$),O$=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ci),F0e=Io(O$),P$=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ci),U0e=Io(P$),I$=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ci),j0e=Io(I$),R$=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ci),H0e=Io(R$),L$=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ci),G0e=Io(L$),Z$=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ci),z0e=Io(Z$),N$=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ci),W0e=Io(N$),B$=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ci),V0e=Io(B$),F$=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ci),Y0e=Io(F$),U$=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ci),K0e=Io(U$),j$=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ci),q0e=Io(j$),H$=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ci),J0e=Io(H$),G$=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ci),Q0e=Io(G$),z$=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ci),X0e=Io(z$),W$=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ci),$0e=Io(W$),V$=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ci),ebe=Io(V$),Y$=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ci),tbe=Io(Y$),K$=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ci),nbe=Io(K$),q$=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ci),rbe=Io(q$),J$=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ci),ibe=Io(J$),Q$=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ci),obe=Io(Q$),X$=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ci),abe=Io(X$),sbe=Math.PI/180,lbe=180/Math.PI,lH=1.78277,uH=-.29227,bN=-.90649,jx=1.97294,eee=jx*bN,tee=jx*lH,nee=lH*uH- -.14861*bN;function ube(n){if(n instanceof w0)return new w0(n.h,n.s,n.l,n.opacity);n instanceof Ql||(n=xK(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(nee*i+eee*r-tee*e)/(nee+eee-tee),a=i-o,s=(jx*(e-o)-uH*a)/bN,l=Math.sqrt(s*s+a*a)/(jx*o*(1-o)),u=l?Math.atan2(s,a)*lbe-120:NaN;return new w0(u<0?u+360:u,l,o,n.opacity)}function yp(n,r,e,i){return 1===arguments.length?ube(n):new w0(n,r,e,null==i?1:i)}function w0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function ree(n){return function r(e){function i(o,a){var s=n((o=yp(o)).h,(a=yp(a)).h),l=iw(o.s,a.s),u=iw(o.l,a.l),d=iw(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}UL(w0,yp,N7(tw,{brighter:function(r){return r=null==r?nw:Math.pow(nw,r),new w0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new w0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*sbe,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new Ql(255*(e+i*(-.14861*o+lH*a)),255*(e+i*(uH*o+bN*a)),255*(e+i*(jx*o)),this.opacity)}}));ree(function Qde(n,r){var e=r-n;return e?RK(n,e>180||e<-180?e-360*Math.round(e/360):e):GL(isNaN(n)?r:n)});var cH=ree(iw),cbe=cH(yp(300,.5,0),yp(-240,.5,1)),dbe=cH(yp(-100,.75,.35),yp(80,1.5,.8)),fbe=cH(yp(260,.75,.35),yp(80,1.5,.8)),CN=yp();function pbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return CN.h=360*n-100,CN.s=1.5-1.5*r,CN.l=.8-.9*r,CN+""}function wN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var hbe=wN(ci("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),mbe=wN(ci("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_be=wN(ci("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gbe=wN(ci("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),dH="http://www.w3.org/1999/xhtml",fH={svg:"http://www.w3.org/2000/svg",xhtml:dH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pH(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),fH.hasOwnProperty(r)?{space:fH[r],local:n}:n}function vbe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===dH&&r.documentElement.namespaceURI===dH?r.createElement(n):r.createElementNS(e,n)}}function ybe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function kN(n){var r=pH(n);return(r.local?ybe:vbe)(r)}function bbe(){}function hH(n){return null==n?bbe:function(){return this.querySelector(n)}}function wbe(){return[]}function iee(n){return null==n?wbe:function(){return this.querySelectorAll(n)}}var oee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var Hx=document.documentElement;if(!Hx.matches){var Tbe=Hx.webkitMatchesSelector||Hx.msMatchesSelector||Hx.mozMatchesSelector||Hx.oMatchesSelector;oee=function(r){return function(){return Tbe.call(this,r)}}}}var aee=oee;function see(n){return new Array(n.length)}function TN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}TN.prototype={constructor:TN,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 xbe(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new TN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Dbe(n,r,e,i,o,a,s){var l,u,L,d={},h=r.length,g=a.length,y=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(y[l]=L="$"+s.call(u,u.__data__,l,r),L in d?o[l]=u:d[L]=u);for(l=0;l<g;++l)(u=d[L="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[L]=null):e[l]=new TN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[y[l]]===u&&(o[l]=u)}function Lbe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function Hbe(n){return function(){this.removeAttribute(n)}}function Gbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function zbe(n,r){return function(){this.setAttribute(n,r)}}function Wbe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Vbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Ybe(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 mH(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function qbe(n){return function(){this.style.removeProperty(n)}}function Jbe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Qbe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function uee(n,r){return n.style.getPropertyValue(r)||mH(n).getComputedStyle(n,null).getPropertyValue(r)}function $be(n){return function(){delete this[n]}}function eCe(n,r){return function(){this[n]=r}}function tCe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function cee(n){return n.trim().split(/^|\s+/)}function _H(n){return n.classList||new dee(n)}function dee(n){this._node=n,this._names=cee(n.getAttribute("class")||"")}function fee(n,r){for(var e=_H(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function pee(n,r){for(var e=_H(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function rCe(n){return function(){fee(this,n)}}function iCe(n){return function(){pee(this,n)}}function oCe(n,r){return function(){(r.apply(this,arguments)?fee:pee)(this,n)}}function sCe(){this.textContent=""}function lCe(n){return function(){this.textContent=n}}function uCe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function dCe(){this.innerHTML=""}function fCe(n){return function(){this.innerHTML=n}}function pCe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function mCe(){this.nextSibling&&this.parentNode.appendChild(this)}function gCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bCe(){return null}function wCe(){var n=this.parentNode;n&&n.removeChild(this)}function TCe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function MCe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}dee.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var hee={},sm=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(hee={mouseenter:"mouseover",mouseleave:"mouseout"}));function DCe(n,r,e){return n=mee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function mee(n,r,e){return function(i){var o=sm;sm=i;try{n.call(this,this.__data__,r,e)}finally{sm=o}}}function ACe(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 OCe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function PCe(n,r,e){var i=hee.hasOwnProperty(n.type)?DCe:mee;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function RCe(n,r,e,i){var o=sm;n.sourceEvent=sm,sm=n;try{return r.apply(e,i)}finally{sm=o}}function _ee(n,r,e){var i=mH(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function LCe(n,r){return function(){return _ee(this,n,r)}}function ZCe(n,r){return function(){return _ee(this,n,r.apply(this,arguments))}}var gH=[null];function iu(n,r){this._groups=n,this._parents=r}function gee(){return new iu([[document.documentElement]],gH)}iu.prototype=gee.prototype={constructor:iu,select:function Cbe(n){"function"!=typeof n&&(n=hH(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new iu(i,this._parents)},selectAll:function kbe(n){"function"!=typeof n&&(n=iee(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new iu(i,o)},filter:function Mbe(n){"function"!=typeof n&&(n=aee(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new iu(i,this._parents)},data:function Abe(n,r){if(!n)return L=new Array(this.size()),d=-1,this.each(function(st){L[++d]=st}),L;var e=r?Dbe:xbe,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Ebe(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],y=g.length,L=n.call(h,h&&h.__data__,d,i),z=L.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(y),L,r);for(var Ee,Ke,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce<z;);Ee._next=Ke||null}}return(s=new iu(s,i))._enter=l,s._exit=u,s},enter:function Sbe(){return new iu(this._enter||this._groups.map(see),this._parents)},exit:function Obe(){return new iu(this._exit||this._groups.map(see),this._parents)},merge:function Pbe(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new iu(s,this._parents)},order:function Ibe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Rbe(n){function r(g,y){return g&&y?n(g.__data__,y.__data__):!g-!y}n||(n=Lbe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new iu(o,this._parents).order()},call:function Zbe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Nbe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Bbe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Fbe(){var n=0;return this.each(function(){++n}),n},empty:function Ube(){return!this.node()},each:function jbe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function Kbe(n,r){var e=pH(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?Gbe:Hbe:"function"==typeof r?e.local?Ybe:Vbe:e.local?Wbe:zbe)(e,r))},style:function Xbe(n,r,e){return arguments.length>1?this.each((null==r?qbe:"function"==typeof r?Qbe:Jbe)(n,r,null==e?"":e)):uee(this.node(),n)},property:function nCe(n,r){return arguments.length>1?this.each((null==r?$be:"function"==typeof r?tCe:eCe)(n,r)):this.node()[n]},classed:function aCe(n,r){var e=cee(n+"");if(arguments.length<2){for(var i=_H(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?oCe:r?rCe:iCe)(e,r))},text:function cCe(n){return arguments.length?this.each(null==n?sCe:("function"==typeof n?uCe:lCe)(n)):this.node().textContent},html:function hCe(n){return arguments.length?this.each(null==n?dCe:("function"==typeof n?pCe:fCe)(n)):this.node().innerHTML},raise:function _Ce(){return this.each(mCe)},lower:function vCe(){return this.each(gCe)},append:function yCe(n){var r="function"==typeof n?n:kN(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function CCe(n,r){var e="function"==typeof n?n:kN(n),i=null==r?bCe:"function"==typeof r?r:hH(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function kCe(){return this.each(wCe)},clone:function SCe(n){return this.select(n?MCe:TCe)},datum:function ECe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function ICe(n,r,e){var o,s,i=ACe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?PCe:OCe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function NCe(n,r){return this.each(("function"==typeof r?ZCe:LCe)(n,r))}};var BCe=gee;function vee(n){return"string"==typeof n?new iu([[document.querySelector(n)]],[document.documentElement]):new iu([[n]],gH)}function FCe(n){return vee(kN(n).call(document.documentElement))}var UCe=0;function yee(){return new vH}function vH(){this._="@"+(++UCe).toString(36)}function yH(){for(var r,n=sm;r=n.sourceEvent;)n=r;return n}function MN(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function jCe(n){var r=yH();return r.changedTouches&&(r=r.changedTouches[0]),MN(n,r)}function HCe(n){return"string"==typeof n?new iu([document.querySelectorAll(n)],[document.documentElement]):new iu([null==n?[]:n],gH)}function GCe(n,r,e){arguments.length<3&&(e=r,r=yH().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return MN(n,a);return null}function zCe(n,r){null==r&&(r=yH().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=MN(n,r[e]);return o}function WCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=Ci(this);for(var o in e)i.attr(o,e[o])})}function VCe(n,r){for(var e in r)n.attr(e,r[e]);return n}function KCe(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=Ci(this);for(var a in i)o.style(a,i[a],e)})}function qCe(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function QCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=Ci(this);for(var o in e)i.property(o,e[o])})}function XCe(n,r){for(var e in r)n.property(e,r[e]);return n}function e1e(n,r){return n.each(function(){var e=r.apply(this,arguments),i=Ci(this).transition(n);for(var o in e)i.attr(o,e[o])})}function t1e(n,r){for(var e in r)n.attr(e,r[e]);return n}function r1e(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=Ci(this).transition(n);for(var a in i)o.style(a,i[a],e)})}function i1e(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function gi(n){return function(){return n}}vH.prototype=yee.prototype={constructor:vH,get:function(r){for(var e=this._;!(e in r);)if(!(r=r.parentNode))return;return r[e]},set:function(r,e){return r[this._]=e},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}},pg.prototype.attrs=function YCe(n){return("function"==typeof n?WCe:VCe)(this,n)},pg.prototype.styles=function JCe(n,r){return("function"==typeof n?KCe:qCe)(this,n,null==r?"":r)},pg.prototype.properties=function $Ce(n){return("function"==typeof n?QCe:XCe)(this,n)},q7.prototype.attrs=function n1e(n){return("function"==typeof n?e1e:t1e)(this,n)},q7.prototype.styles=function o1e(n,r){return("function"==typeof n?r1e:i1e)(this,n,null==r?"":r)};var bee=Math.abs,Ml=Math.atan2,k0=Math.cos,a1e=Math.max,bH=Math.min,bp=Math.sin,Iw=Math.sqrt,sl=1e-12,T0=Math.PI,SN=T0/2,lm=2*T0;function s1e(n){return n>1?0:n<-1?T0:Math.acos(n)}function Cee(n){return n>=1?SN:n<=-1?-SN:Math.asin(n)}function l1e(n){return n.innerRadius}function u1e(n){return n.outerRadius}function c1e(n){return n.startAngle}function d1e(n){return n.endAngle}function f1e(n){return n&&n.padAngle}function p1e(n,r,e,i,o,a,s,l){var u=e-n,d=i-r,h=s-o,g=l-a,y=g*u-h*d;if(!(y*y<sl))return[n+(y=(h*(r-a)-g*(n-o))/y)*u,r+y*d]}function EN(n,r,e,i,o,a,s){var l=n-e,u=r-i,d=(s?a:-a)/Iw(l*l+u*u),h=d*u,g=-d*l,y=n+h,L=r+g,z=e+h,q=i+g,re=(y+z)/2,ae=(L+q)/2,Se=z-y,Ce=q-L,Ee=Se*Se+Ce*Ce,Ke=o-a,st=y*q-z*L,De=(Ce<0?-1:1)*Iw(a1e(0,Ke*Ke*Ee-st*st)),it=(st*Ce-Se*De)/Ee,ft=(-st*Se-Ce*De)/Ee,bt=(st*Ce+Se*De)/Ee,$e=(-st*Se+Ce*De)/Ee,Ie=it-re,ct=ft-ae,Bt=bt-re,jt=$e-ae;return Ie*Ie+ct*ct>Bt*Bt+jt*jt&&(it=bt,ft=$e),{cx:it,cy:ft,x01:-h,y01:-g,x11:it*(o/Ke-1),y11:ft*(o/Ke-1)}}function h1e(){var n=l1e,r=u1e,e=gi(0),i=null,o=c1e,a=d1e,s=f1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),y=+r.apply(this,arguments),L=o.apply(this,arguments)-SN,z=a.apply(this,arguments)-SN,q=bee(z-L),re=z>L;if(l||(l=d=jd()),y<g&&(h=y,y=g,g=h),y>sl)if(q>lm-sl)l.moveTo(y*k0(L),y*bp(L)),l.arc(0,0,y,L,z,!re),g>sl&&(l.moveTo(g*k0(z),g*bp(z)),l.arc(0,0,g,z,L,re));else{var Ie,ct,ae=L,Se=z,Ce=L,Ee=z,Ke=q,st=q,De=s.apply(this,arguments)/2,it=De>sl&&(i?+i.apply(this,arguments):Iw(g*g+y*y)),ft=bH(bee(y-g)/2,+e.apply(this,arguments)),bt=ft,$e=ft;if(it>sl){var Bt=Cee(it/g*bp(De)),jt=Cee(it/y*bp(De));(Ke-=2*Bt)>sl?(Ce+=Bt*=re?1:-1,Ee-=Bt):(Ke=0,Ce=Ee=(L+z)/2),(st-=2*jt)>sl?(ae+=jt*=re?1:-1,Se-=jt):(st=0,ae=Se=(L+z)/2)}var It=y*k0(ae),Tn=y*bp(ae),Hn=g*k0(Ee),zn=g*bp(Ee);if(ft>sl){var jr,ar=y*k0(Se),kr=y*bp(Se),_r=g*k0(Ce),Wr=g*bp(Ce);if(q<=lm-sl&&(jr=p1e(It,Tn,_r,Wr,ar,kr,Hn,zn))){var Kr=It-jr[0],jo=Tn-jr[1],tr=ar-jr[0],br=kr-jr[1],Mn=1/bp(s1e((Kr*tr+jo*br)/(Iw(Kr*Kr+jo*jo)*Iw(tr*tr+br*br)))/2),gn=Iw(jr[0]*jr[0]+jr[1]*jr[1]);bt=bH(ft,(g-gn)/(Mn-1)),$e=bH(ft,(y-gn)/(Mn+1))}}st>sl?$e>sl?(Ie=EN(_r,Wr,It,Tn,y,$e,re),ct=EN(ar,kr,Hn,zn,y,$e,re),l.moveTo(Ie.cx+Ie.x01,Ie.cy+Ie.y01),$e<ft?l.arc(Ie.cx,Ie.cy,$e,Ml(Ie.y01,Ie.x01),Ml(ct.y01,ct.x01),!re):(l.arc(Ie.cx,Ie.cy,$e,Ml(Ie.y01,Ie.x01),Ml(Ie.y11,Ie.x11),!re),l.arc(0,0,y,Ml(Ie.cy+Ie.y11,Ie.cx+Ie.x11),Ml(ct.cy+ct.y11,ct.cx+ct.x11),!re),l.arc(ct.cx,ct.cy,$e,Ml(ct.y11,ct.x11),Ml(ct.y01,ct.x01),!re))):(l.moveTo(It,Tn),l.arc(0,0,y,ae,Se,!re)):l.moveTo(It,Tn),g>sl&&Ke>sl?bt>sl?(Ie=EN(Hn,zn,ar,kr,g,-bt,re),ct=EN(It,Tn,_r,Wr,g,-bt,re),l.lineTo(Ie.cx+Ie.x01,Ie.cy+Ie.y01),bt<ft?l.arc(Ie.cx,Ie.cy,bt,Ml(Ie.y01,Ie.x01),Ml(ct.y01,ct.x01),!re):(l.arc(Ie.cx,Ie.cy,bt,Ml(Ie.y01,Ie.x01),Ml(Ie.y11,Ie.x11),!re),l.arc(0,0,g,Ml(Ie.cy+Ie.y11,Ie.cx+Ie.x11),Ml(ct.cy+ct.y11,ct.cx+ct.x11),re),l.arc(ct.cx,ct.cy,bt,Ml(ct.y11,ct.x11),Ml(ct.y01,ct.x01),!re))):l.arc(0,0,g,Ee,Ce,re):l.lineTo(Hn,zn)}else l.moveTo(0,0);if(l.closePath(),d)return l=null,d+""||null}return u.centroid=function(){var d=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-T0/2;return[k0(h)*d,bp(h)*d]},u.innerRadius=function(d){return arguments.length?(n="function"==typeof d?d:gi(+d),u):n},u.outerRadius=function(d){return arguments.length?(r="function"==typeof d?d:gi(+d),u):r},u.cornerRadius=function(d){return arguments.length?(e="function"==typeof d?d:gi(+d),u):e},u.padRadius=function(d){return arguments.length?(i=null==d?null:"function"==typeof d?d:gi(+d),u):i},u.startAngle=function(d){return arguments.length?(o="function"==typeof d?d:gi(+d),u):o},u.endAngle=function(d){return arguments.length?(a="function"==typeof d?d:gi(+d),u):a},u.padAngle=function(d){return arguments.length?(s="function"==typeof d?d:gi(+d),u):s},u.context=function(d){return arguments.length?(l=null==d?null:d,u):l},u}function wee(n){this._context=n}function xN(n){return new wee(n)}function CH(n){return n[0]}function wH(n){return n[1]}function DN(){var n=CH,r=wH,e=gi(!0),i=null,o=xN,a=null;function s(l){var u,h,y,d=l.length,g=!1;for(null==i&&(a=o(y=jd())),u=0;u<=d;++u)!(u<d&&e(h=l[u],u,l))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+n(h,u,l),+r(h,u,l));if(y)return a=null,y+""||null}return s.x=function(l){return arguments.length?(n="function"==typeof l?l:gi(+l),s):n},s.y=function(l){return arguments.length?(r="function"==typeof l?l:gi(+l),s):r},s.defined=function(l){return arguments.length?(e="function"==typeof l?l:gi(!!l),s):e},s.curve=function(l){return arguments.length?(o=l,null!=i&&(a=o(i)),s):o},s.context=function(l){return arguments.length?(null==l?i=a=null:a=o(i=l),s):i},s}function kee(){var n=CH,r=null,e=gi(0),i=wH,o=gi(!0),a=null,s=xN,l=null;function u(h){var g,y,L,q,ae,z=h.length,re=!1,Se=new Array(z),Ce=new Array(z);for(null==a&&(l=s(ae=jd())),g=0;g<=z;++g){if(!(g<z&&o(q=h[g],g,h))===re)if(re=!re)y=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),L=g-1;L>=y;--L)l.point(Se[L],Ce[L]);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 DN().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(n="function"==typeof h?h:gi(+h),r=null,u):n},u.x0=function(h){return arguments.length?(n="function"==typeof h?h:gi(+h),u):n},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:gi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:gi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:gi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:gi(+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:gi(!!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 m1e(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function _1e(n){return n}function g1e(){var n=_1e,r=m1e,e=null,i=gi(0),o=gi(lm),a=gi(0);function s(l){var u,h,g,ae,Ee,d=l.length,y=0,L=new Array(d),z=new Array(d),q=+i.apply(this,arguments),re=Math.min(lm,Math.max(-lm,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;u<d;++u)(Ee=z[L[u]=u]=+n(l[u],u,l))>0&&(y+=Ee);for(null!=r?L.sort(function(Ke,st){return r(z[Ke],z[st])}):null!=e&&L.sort(function(Ke,st){return e(l[Ke],l[st])}),u=0,g=y?(re-d*Ce)/y:0;u<d;++u,q=ae)h=L[u],ae=q+((Ee=z[h])>0?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:gi(+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:gi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:gi(+l),s):a},s}wee.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 Tee=kH(xN);function Mee(n){this._curve=n}function kH(n){function r(e){return new Mee(n(e))}return r._curve=n,r}function Gx(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(kH(e)):r()._curve},n}function See(){return Gx(DN().curve(Tee))}function Eee(){var n=kee().curve(Tee),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 Gx(e())},delete n.lineX0,n.lineEndAngle=function(){return Gx(i())},delete n.lineX1,n.lineInnerRadius=function(){return Gx(o())},delete n.lineY0,n.lineOuterRadius=function(){return Gx(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(kH(s)):r()._curve},n}function zx(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}Mee.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 TH=Array.prototype.slice;function v1e(n){return n.source}function y1e(n){return n.target}function MH(n){var r=v1e,e=y1e,i=CH,o=wH,a=null;function s(){var l,u=TH.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:gi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function b1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function C1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function w1e(n,r,e,i,o){var a=zx(r,e),s=zx(r,e=(e+o)/2),l=zx(i,e),u=zx(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function k1e(){return MH(b1e)}function T1e(){return MH(C1e)}function M1e(){var n=MH(w1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var SH={draw:function(r,e){var i=Math.sqrt(e/T0);r.moveTo(i,0),r.arc(0,0,i,0,lm)}},xee={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()}},Dee=Math.sqrt(1/3),S1e=2*Dee,Aee={draw:function(r,e){var i=Math.sqrt(e/S1e),o=i*Dee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},Oee=Math.sin(T0/10)/Math.sin(7*T0/10),x1e=Math.sin(lm/10)*Oee,D1e=-Math.cos(lm/10)*Oee,Pee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=x1e*i,a=D1e*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=lm*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()}},Iee={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},EH=Math.sqrt(3),Ree={draw:function(r,e){var i=-Math.sqrt(e/(3*EH));r.moveTo(0,2*i),r.lineTo(-EH*i,-i),r.lineTo(EH*i,-i),r.closePath()}},Xc=-.5,$c=Math.sqrt(3)/2,xH=1/Math.sqrt(12),A1e=3*(xH/2+1),Lee={draw:function(r,e){var i=Math.sqrt(e/A1e),o=i/2,a=i*xH,s=o,l=i*xH+i,u=-s,d=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,d),r.lineTo(Xc*o-$c*a,$c*o+Xc*a),r.lineTo(Xc*s-$c*l,$c*s+Xc*l),r.lineTo(Xc*u-$c*d,$c*u+Xc*d),r.lineTo(Xc*o+$c*a,Xc*a-$c*o),r.lineTo(Xc*s+$c*l,Xc*l-$c*s),r.lineTo(Xc*u+$c*d,Xc*d-$c*u),r.closePath()}},O1e=[SH,xee,Aee,Iee,Pee,Ree,Lee];function P1e(){var n=gi(SH),r=gi(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:gi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:gi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function Mg(){}function AN(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 ON(n){this._context=n}function I1e(n){return new ON(n)}function Zee(n){this._context=n}function R1e(n){return new Zee(n)}function Nee(n){this._context=n}function L1e(n){return new Nee(n)}function Bee(n,r){this._basis=new ON(n),this._beta=r}ON.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:AN(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:AN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Zee.prototype={areaStart:Mg,areaEnd:Mg,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:AN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Nee.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:AN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Bee.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 Z1e=function n(r){function e(i){return 1===r?new ON(i):new Bee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function PN(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 DH(n,r){this._context=n,this._k=(1-r)/6}DH.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:PN(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:PN(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 N1e=function n(r){function e(i){return new DH(i,r)}return e.tension=function(i){return n(+i)},e}(0);function AH(n,r){this._context=n,this._k=(1-r)/6}AH.prototype={areaStart:Mg,areaEnd:Mg,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:PN(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 AH(i,r)}return e.tension=function(i){return n(+i)},e}(0);function OH(n,r){this._context=n,this._k=(1-r)/6}OH.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:PN(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 OH(i,r)}return e.tension=function(i){return n(+i)},e}(0);function PH(n,r,e){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>sl){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>sl){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 Fee(n,r){this._context=n,this._alpha=r}Fee.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:PH(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 U1e=function n(r){function e(i){return r?new Fee(i,r):new DH(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Uee(n,r){this._context=n,this._alpha=r}Uee.prototype={areaStart:Mg,areaEnd:Mg,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:PH(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 Uee(i,r):new AH(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function jee(n,r){this._context=n,this._alpha=r}jee.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:PH(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 jee(i,r):new OH(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Hee(n){this._context=n}function G1e(n){return new Hee(n)}function Gee(n){return n<0?-1:1}function zee(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(Gee(a)+Gee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function Wee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function IH(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 IN(n){this._context=n}function Vee(n){this._context=new Yee(n)}function Yee(n){this._context=n}function z1e(n){return new IN(n)}function W1e(n){return new Vee(n)}function Kee(n){this._context=n}function qee(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<e-1;++r)o[r]=1,a[r]=4,s[r]=4*n[r]+2*n[r+1];for(o[e-1]=2,a[e-1]=7,s[e-1]=8*n[e-1]+n[e],r=1;r<e;++r)i=o[r]/a[r-1],a[r]-=i,s[r]-=i*s[r-1];for(o[e-1]=s[e-1]/a[e-1],r=e-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(n[e]+o[e-1])/2,r=0;r<e-1;++r)a[r]=2*n[r+1]-o[r+1];return[o,a]}function V1e(n){return new Kee(n)}function RN(n,r){this._context=n,this._t=r}function Y1e(n){return new RN(n,.5)}function K1e(n){return new RN(n,0)}function q1e(n){return new RN(n,1)}function Rw(n,r){if((s=n.length)>1)for(var i,o,s,e=1,a=n[r[0]],l=a.length;e<s;++e)for(o=a,a=n[r[e]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Lw(n){for(var r=n.length,e=new Array(r);--r>=0;)e[r]=r;return e}function J1e(n,r){return n[r]}function Q1e(){var n=gi([]),r=Lw,e=Rw,i=J1e;function o(a){var l,g,s=n.apply(this,arguments),u=a.length,d=s.length,h=new Array(d);for(l=0;l<d;++l){for(var q,y=s[l],L=h[l]=new Array(u),z=0;z<u;++z)L[z]=q=[0,+i(a[z],y,z,a)],q.data=a[z];L.key=y}for(l=0,g=r(h);l<d;++l)h[g[l]].index=l;return e(h,g),h}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:gi(TH.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:gi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?Lw:"function"==typeof a?a:gi(TH.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?Rw:a,o):e},o}function X1e(n,r){if((i=n.length)>0){for(var e,i,s,o=0,a=n[0].length;o<a;++o){for(s=e=0;e<i;++e)s+=n[e][o][1]||0;if(s)for(e=0;e<i;++e)n[e][o][1]/=s}Rw(n,r)}}function $1e(n,r){if((u=n.length)>1)for(var e,o,a,s,l,u,i=0,d=n[r[0]].length;i<d;++i)for(s=l=0,e=0;e<u;++e)(a=(o=n[r[e]][i])[1]-o[0])>=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function ewe(n,r){if((o=n.length)>0){for(var o,e=0,i=n[r[0]],a=i.length;e<a;++e){for(var s=0,l=0;s<o;++s)l+=n[s][e][1]||0;i[e][1]+=i[e][0]=-l/2}Rw(n,r)}}function twe(n,r){if((s=n.length)>0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i<a;++i){for(var l=0,u=0,d=0;l<s;++l){for(var h=n[r[l]],g=h[i][1]||0,L=(g-(h[i-1][1]||0))/2,z=0;z<l;++z){var q=n[r[z]];L+=(q[i][1]||0)-(q[i-1][1]||0)}u+=g,d+=L*g}o[i-1][1]+=o[i-1][0]=e,u&&(e-=d/u)}o[i-1][1]+=o[i-1][0]=e,Rw(n,r)}}function Jee(n){var r=n.map(Qee);return Lw(n).sort(function(e,i){return r[e]-r[i]})}function Qee(n){for(var o,r=0,e=-1,i=n.length;++e<i;)(o=+n[e][1])&&(r+=o);return r}function nwe(n){return Jee(n).reverse()}function rwe(n){var e,i,r=n.length,o=n.map(Qee),a=Lw(n).sort(function(h,g){return o[g]-o[h]}),s=0,l=0,u=[],d=[];for(e=0;e<r;++e)i=a[e],s<l?(s+=o[i],u.push(i)):(l+=o[i],d.push(i));return d.reverse().concat(u)}function iwe(n){return Lw(n).reverse()}Hee.prototype={areaStart:Mg,areaEnd:Mg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,e){r=+r,e=+e,this._point?this._context.lineTo(r,e):(this._point=1,this._context.moveTo(r,e))}},IN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:IH(this,this._t0,Wee(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){var i=NaN;if(e=+e,(r=+r)!==this._x1||e!==this._y1){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,IH(this,Wee(this,i=zee(this,r,e)),i);break;default:IH(this,this._t0,i=zee(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(Vee.prototype=Object.create(IN.prototype)).point=function(n,r){IN.prototype.point.call(this,r,n)},Yee.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,i,o,a,s){this._context.bezierCurveTo(e,r,o,i,s,a)}},Kee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),2===i)this._context.lineTo(r[1],e[1]);else for(var o=qee(r),a=qee(e),s=0,l=1;l<i;++s,++l)this._context.bezierCurveTo(o[0][s],a[0][s],o[1][s],a[1][s],r[l],e[l]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}},RN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=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 RH=new Date,LH=new Date;function ys(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-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return ys(function(s){if(s>=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 RH.setTime(+a),LH.setTime(+s),n(RH),n(LH),Math.floor(e(RH,LH))},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 LN=ys(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?ys(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 Xee=LN,$ee=LN.range,M0=6e4,NN=36e5,nte=ys(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()}),rte=nte,ite=nte.range,ote=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*M0)},function(n,r){return(r-n)/M0},function(n){return n.getMinutes()}),owe=ote,awe=ote.range,ate=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*M0)},function(n,r){n.setTime(+n+r*NN)},function(n,r){return(r-n)/NN},function(n){return n.getHours()}),swe=ate,lwe=ate.range,ste=ys(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())*M0)/864e5},function(n){return n.getDate()-1}),uwe=ste,cwe=ste.range;function S0(n){return ys(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())*M0)/6048e5})}var ZH=S0(0),lte=S0(1),ute=S0(2),cte=S0(3),dte=S0(4),fte=S0(5),pte=S0(6),hte=ZH.range,dwe=lte.range,fwe=ute.range,pwe=cte.range,hwe=dte.range,mwe=fte.range,_we=pte.range,mte=ys(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()}),gwe=mte,vwe=mte.range,NH=ys(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()});NH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ys(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 ywe=NH,bwe=NH.range,_te=ys(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*M0)},function(n,r){return(r-n)/M0},function(n){return n.getUTCMinutes()}),Cwe=_te,wwe=_te.range,gte=ys(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*NN)},function(n,r){return(r-n)/NN},function(n){return n.getUTCHours()}),kwe=gte,Twe=gte.range,vte=ys(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}),Mwe=vte,Swe=vte.range;function E0(n){return ys(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 BH=E0(0),yte=E0(1),bte=E0(2),Cte=E0(3),wte=E0(4),kte=E0(5),Tte=E0(6),Mte=BH.range,Ewe=yte.range,xwe=bte.range,Dwe=Cte.range,Awe=wte.range,Owe=kte.range,Pwe=Tte.range,Ste=ys(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()}),Iwe=Ste,Rwe=Ste.range,FH=ys(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()});FH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ys(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 Lwe=FH,Zwe=FH.range;function Nwe(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 BN(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 Wx(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function Ete(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=Vx(o),h=Yx(o),g=Vx(a),y=Yx(a),L=Vx(s),z=Yx(s),q=Vx(l),re=Yx(l),ae=Vx(u),Se=Yx(u),Ce={a:function Tn(tr){return s[tr.getDay()]},A:function Hn(tr){return a[tr.getDay()]},b:function zn(tr){return u[tr.getMonth()]},B:function ar(tr){return l[tr.getMonth()]},c:null,d:Ote,e:Ote,f:ske,H:ike,I:oke,j:ake,L:Pte,m:lke,M:uke,p:function kr(tr){return o[+(tr.getHours()>=12)]},Q:Zte,s:Nte,S:cke,u:dke,U:fke,V:pke,w:hke,W:mke,x:null,X:null,y:_ke,Y:gke,Z:vke,"%":Lte},Ee={a:function _r(tr){return s[tr.getUTCDay()]},A:function Wr(tr){return a[tr.getUTCDay()]},b:function jr(tr){return u[tr.getUTCMonth()]},B:function Kr(tr){return l[tr.getUTCMonth()]},c:null,d:Ite,e:Ite,f:wke,H:yke,I:bke,j:Cke,L:Rte,m:kke,M:Tke,p:function jo(tr){return o[+(tr.getUTCHours()>=12)]},Q:Zte,s:Nte,S:Mke,u:Ske,U:Eke,V:xke,w:Dke,W:Ake,x:null,X:null,y:Oke,Y:Pke,Z:Ike,"%":Lte},Ke={a:function bt(tr,br,Mn){var gn=L.exec(br.slice(Mn));return gn?(tr.w=z[gn[0].toLowerCase()],Mn+gn[0].length):-1},A:function $e(tr,br,Mn){var gn=g.exec(br.slice(Mn));return gn?(tr.w=y[gn[0].toLowerCase()],Mn+gn[0].length):-1},b:function Ie(tr,br,Mn){var gn=ae.exec(br.slice(Mn));return gn?(tr.m=Se[gn[0].toLowerCase()],Mn+gn[0].length):-1},B:function ct(tr,br,Mn){var gn=q.exec(br.slice(Mn));return gn?(tr.m=re[gn[0].toLowerCase()],Mn+gn[0].length):-1},c:function Bt(tr,br,Mn){return it(tr,r,br,Mn)},d:Dte,e:Dte,f:eke,H:Ate,I:Ate,j:Jwe,L:$we,m:qwe,M:Qwe,p:function ft(tr,br,Mn){var gn=d.exec(br.slice(Mn));return gn?(tr.p=h[gn[0].toLowerCase()],Mn+gn[0].length):-1},Q:nke,s:rke,S:Xwe,u:Hwe,U:Gwe,V:zwe,w:jwe,W:Wwe,x:function jt(tr,br,Mn){return it(tr,e,br,Mn)},X:function It(tr,br,Mn){return it(tr,i,br,Mn)},y:Ywe,Y:Vwe,Z:Kwe,"%":tke};function st(tr,br){return function(Mn){var Nn,rr,gr,gn=[],nr=-1,un=0,bn=tr.length;for(Mn instanceof Date||(Mn=new Date(+Mn));++nr<bn;)37===tr.charCodeAt(nr)&&(gn.push(tr.slice(un,nr)),null!=(rr=xte[Nn=tr.charAt(++nr)])?Nn=tr.charAt(++nr):rr="e"===Nn?" ":"0",(gr=br[Nn])&&(Nn=gr(Mn,rr)),gn.push(Nn),un=nr+1);return gn.push(tr.slice(un,nr)),gn.join("")}}function De(tr,br){return function(Mn){var un,bn,gn=Wx(1900);if(it(gn,tr,Mn+="",0)!=Mn.length)return null;if("Q"in gn)return new Date(gn.Q);if("p"in gn&&(gn.H=gn.H%12+12*gn.p),"V"in gn){if(gn.V<1||gn.V>53)return null;"w"in gn||(gn.w=1),"Z"in gn?(bn=(un=BN(Wx(gn.y))).getUTCDay(),un=bn>4||0===bn?C0.ceil(un):C0(un),un=Ix.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=br(Wx(gn.y))).getDay(),un=bn>4||0===bn?y0.ceil(un):y0(un),un=Px.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?BN(Wx(gn.y)).getUTCDay():br(Wx(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,BN(gn)):br(gn)}}function it(tr,br,Mn,gn){for(var Nn,rr,nr=0,un=br.length,bn=Mn.length;nr<un;){if(gn>=bn)return-1;if(37===(Nn=br.charCodeAt(nr++))){if(Nn=br.charAt(nr++),!(rr=Ke[Nn in xte?br.charAt(nr++):Nn])||(gn=rr(tr,Mn,gn))<0)return-1}else if(Nn!=Mn.charCodeAt(gn++))return-1}return gn}return Ce.x=st(e,Ce),Ce.X=st(i,Ce),Ce.c=st(r,Ce),Ee.x=st(e,Ee),Ee.X=st(i,Ee),Ee.c=st(r,Ee),{format:function(br){var Mn=st(br+="",Ce);return Mn.toString=function(){return br},Mn},parse:function(br){var Mn=De(br+="",Nwe);return Mn.toString=function(){return br},Mn},utcFormat:function(br){var Mn=st(br+="",Ee);return Mn.toString=function(){return br},Mn},utcParse:function(br){var Mn=De(br,BN);return Mn.toString=function(){return br},Mn}}}var Zw,Bte,Fte,UH,jH,xte={"-":"",_:" ",0:"0"},ll=/^\s*\d+/,Bwe=/^%/,Fwe=/[\\^$*+?|[\]().{}]/g;function vo(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function Uwe(n){return n.replace(Fwe,"\\$&")}function Vx(n){return new RegExp("^(?:"+n.map(Uwe).join("|")+")","i")}function Yx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function jwe(n,r,e){var i=ll.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function Hwe(n,r,e){var i=ll.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function Gwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function zwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function Wwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Vwe(n,r,e){var i=ll.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Ywe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Kwe(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 qwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Dte(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Jwe(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Ate(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Qwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function $we(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function eke(n,r,e){var i=ll.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function tke(n,r,e){var i=Bwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function nke(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function rke(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Ote(n,r){return vo(n.getDate(),r,2)}function ike(n,r){return vo(n.getHours(),r,2)}function oke(n,r){return vo(n.getHours()%12||12,r,2)}function ake(n,r){return vo(1+Px.count(Vd(n),n),r,3)}function Pte(n,r){return vo(n.getMilliseconds(),r,3)}function ske(n,r){return Pte(n,r)+"000"}function lke(n,r){return vo(n.getMonth()+1,r,2)}function uke(n,r){return vo(n.getMinutes(),r,2)}function cke(n,r){return vo(n.getSeconds(),r,2)}function dke(n){var r=n.getDay();return 0===r?7:r}function fke(n,r){return vo(gN.count(Vd(n),n),r,2)}function pke(n,r){var e=n.getDay();return n=e>=4||0===e?om(n):om.ceil(n),vo(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function hke(n){return n.getDay()}function mke(n,r){return vo(y0.count(Vd(n),n),r,2)}function _ke(n,r){return vo(n.getFullYear()%100,r,2)}function gke(n,r){return vo(n.getFullYear()%1e4,r,4)}function vke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function Ite(n,r){return vo(n.getUTCDate(),r,2)}function yke(n,r){return vo(n.getUTCHours(),r,2)}function bke(n,r){return vo(n.getUTCHours()%12||12,r,2)}function Cke(n,r){return vo(1+Ix.count(Yd(n),n),r,3)}function Rte(n,r){return vo(n.getUTCMilliseconds(),r,3)}function wke(n,r){return Rte(n,r)+"000"}function kke(n,r){return vo(n.getUTCMonth()+1,r,2)}function Tke(n,r){return vo(n.getUTCMinutes(),r,2)}function Mke(n,r){return vo(n.getUTCSeconds(),r,2)}function Ske(n){var r=n.getUTCDay();return 0===r?7:r}function Eke(n,r){return vo(yN.count(Yd(n),n),r,2)}function xke(n,r){var e=n.getUTCDay();return n=e>=4||0===e?am(n):am.ceil(n),vo(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function Dke(n){return n.getUTCDay()}function Ake(n,r){return vo(C0.count(Yd(n),n),r,2)}function Oke(n,r){return vo(n.getUTCFullYear()%100,r,2)}function Pke(n,r){return vo(n.getUTCFullYear()%1e4,r,4)}function Ike(){return"+0000"}function Lte(){return"%"}function Zte(n){return+n}function Nte(n){return Math.floor(+n/1e3)}function Ute(n){return Zw=Ete(n),Bte=Zw.format,Fte=Zw.parse,UH=Zw.utcFormat,jH=Zw.utcParse,Zw}Ute({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 jte="%Y-%m-%dT%H:%M:%S.%LZ";var Lke=Date.prototype.toISOString?function Rke(n){return n.toISOString()}:UH(jte),Zke=Lke;var Bke=+new Date("2000-01-01T00:00:00.000Z")?function Nke(n){var r=new Date(n);return isNaN(r)?null:r}:jH(jte),Fke=Bke;function Uke(n,r,e){var i=new XE,o=r;return null==r?(i.restart(n,r,e),i):(r=+r,e=null==e?hg():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),n(s)},r,e),i)}function jke(){}function HH(n){return null==n?jke:function(){return this.querySelector(n)}}function Gke(){return[]}function Hte(n){return null==n?Gke:function(){return this.querySelectorAll(n)}}function Gte(n){return function(){return this.matches(n)}}function zte(n){return new Array(n.length)}function FN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}FN.prototype={constructor:FN,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 Kke(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new FN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function qke(n,r,e,i,o,a,s){var l,u,L,d={},h=r.length,g=a.length,y=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(y[l]=L="$"+s.call(u,u.__data__,l,r),L in d?o[l]=u:d[L]=u);for(l=0;l<g;++l)(u=d[L="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[L]=null):e[l]=new FN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[y[l]]===u&&(o[l]=u)}function nTe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var GH="http://www.w3.org/1999/xhtml",Vte={svg:"http://www.w3.org/2000/svg",xhtml:GH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function UN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Vte.hasOwnProperty(r)?{space:Vte[r],local:n}:n}function uTe(n){return function(){this.removeAttribute(n)}}function cTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function dTe(n,r){return function(){this.setAttribute(n,r)}}function fTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function pTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function hTe(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 Yte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function _Te(n){return function(){this.style.removeProperty(n)}}function gTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function vTe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Nw(n,r){return n.style.getPropertyValue(r)||Yte(n).getComputedStyle(n,null).getPropertyValue(r)}function bTe(n){return function(){delete this[n]}}function CTe(n,r){return function(){this[n]=r}}function wTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Kte(n){return n.trim().split(/^|\s+/)}function zH(n){return n.classList||new qte(n)}function qte(n){this._node=n,this._names=Kte(n.getAttribute("class")||"")}function Jte(n,r){for(var e=zH(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function Qte(n,r){for(var e=zH(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function TTe(n){return function(){Jte(this,n)}}function MTe(n){return function(){Qte(this,n)}}function STe(n,r){return function(){(r.apply(this,arguments)?Jte:Qte)(this,n)}}function xTe(){this.textContent=""}function DTe(n){return function(){this.textContent=n}}function ATe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function PTe(){this.innerHTML=""}function ITe(n){return function(){this.innerHTML=n}}function RTe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function ZTe(){this.nextSibling&&this.parentNode.appendChild(this)}function BTe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UTe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===GH&&r.documentElement.namespaceURI===GH?r.createElement(n):r.createElementNS(e,n)}}function jTe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Xte(n){var r=UN(n);return(r.local?jTe:UTe)(r)}function GTe(){return null}function WTe(){var n=this.parentNode;n&&n.removeChild(this)}function YTe(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function KTe(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}qte.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var $te={},x0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||($te={mouseenter:"mouseover",mouseleave:"mouseout"}));function XTe(n,r,e){return n=ene(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function ene(n,r,e){return function(i){var o=x0;x0=i;try{n.call(this,this.__data__,r,e)}finally{x0=o}}}function $Te(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 eMe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function tMe(n,r,e){var i=$te.hasOwnProperty(n.type)?XTe:ene;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function tne(n,r,e){var i=Yte(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function rMe(n,r){return function(){return tne(this,n,r)}}function iMe(n,r){return function(){return tne(this,n,r.apply(this,arguments))}}var aMe=[null];function Kd(n,r){this._groups=n,this._parents=r}function nne(){return new Kd([[document.documentElement]],aMe)}Kd.prototype=nne.prototype={constructor:Kd,select:function Hke(n){"function"!=typeof n&&(n=HH(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new Kd(i,this._parents)},selectAll:function zke(n){"function"!=typeof n&&(n=Hte(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new Kd(i,o)},filter:function Wke(n){"function"!=typeof n&&(n=Gte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new Kd(i,this._parents)},data:function Jke(n,r){if(!n)return L=new Array(this.size()),d=-1,this.each(function(st){L[++d]=st}),L;var e=r?qke:Kke,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Yke(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],y=g.length,L=n.call(h,h&&h.__data__,d,i),z=L.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(y),L,r);for(var Ee,Ke,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce<z;);Ee._next=Ke||null}}return(s=new Kd(s,i))._enter=l,s._exit=u,s},enter:function Vke(){return new Kd(this._enter||this._groups.map(zte),this._parents)},exit:function Qke(){return new Kd(this._exit||this._groups.map(zte),this._parents)},join:function Xke(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function $ke(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new Kd(s,this._parents)},order:function eTe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function tTe(n){function r(g,y){return g&&y?n(g.__data__,y.__data__):!g-!y}n||(n=nTe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new Kd(o,this._parents).order()},call:function rTe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function iTe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function oTe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function aTe(){var n=0;return this.each(function(){++n}),n},empty:function sTe(){return!this.node()},each:function lTe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function mTe(n,r){var e=UN(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?cTe:uTe:"function"==typeof r?e.local?hTe:pTe:e.local?fTe:dTe)(e,r))},style:function yTe(n,r,e){return arguments.length>1?this.each((null==r?_Te:"function"==typeof r?vTe:gTe)(n,r,null==e?"":e)):Nw(this.node(),n)},property:function kTe(n,r){return arguments.length>1?this.each((null==r?bTe:"function"==typeof r?wTe:CTe)(n,r)):this.node()[n]},classed:function ETe(n,r){var e=Kte(n+"");if(arguments.length<2){for(var i=zH(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?STe:r?TTe:MTe)(e,r))},text:function OTe(n){return arguments.length?this.each(null==n?xTe:("function"==typeof n?ATe:DTe)(n)):this.node().textContent},html:function LTe(n){return arguments.length?this.each(null==n?PTe:("function"==typeof n?RTe:ITe)(n)):this.node().innerHTML},raise:function NTe(){return this.each(ZTe)},lower:function FTe(){return this.each(BTe)},append:function HTe(n){var r="function"==typeof n?n:Xte(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function zTe(n,r){var e="function"==typeof n?n:Xte(n),i=null==r?GTe:"function"==typeof r?r:HH(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function VTe(){return this.each(WTe)},clone:function qTe(n){return this.select(n?KTe:YTe)},datum:function JTe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function nMe(n,r,e){var o,s,i=$Te(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?tMe:eMe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function oMe(n,r){return this.each(("function"==typeof r?iMe:rMe)(n,r))}};var Kx=nne,sMe=t0("start","end","interrupt"),lMe=[];function GN(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function uMe(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,y,L;if(1!==e.state)return u();for(h in i)if((L=i[h]).name===e.name){if(3===L.state)return ex(s);4===L.state?(L.state=6,L.timer.stop(),L.on.call("interrupt",n,n.__data__,L.index,L.group),delete i[h]):+h<r&&(L.state=6,L.timer.stop(),delete i[h])}if(ex(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(y=e.tween.length),h=0,g=-1;h<y;++h)(L=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=L);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,y=o.length;++g<y;)o[g].call(null,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=$E(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:sMe,tween:lMe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function KH(n,r){var e=qd(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function D0(n,r){var e=qd(n,r);if(e.state>2)throw new Error("too late; already started");return e}function qd(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function one(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 Sg(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var qx,JH,lne,zN,ane=180/Math.PI,qH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function sne(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*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*ane,skewX:Math.atan(u)*ane,scaleX:s,scaleY:l}}function une(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],y=[];return d=n(d),h=n(h),function a(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push("translate(",null,r,null,e);z.push({i:q-4,x:Sg(d,g)},{i:q-2,x:Sg(h,y)})}else(g||y)&&L.push("translate("+g+r+y+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,y),function s(d,h,g,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Sg(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,y),function l(d,h,g,y){d!==h?y.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Sg(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,y),function u(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push(o(L)+"scale(",null,",",null,")");z.push({i:q-4,x:Sg(d,g)},{i:q-2,x:Sg(h,y)})}else(1!==g||1!==y)&&L.push(o(L)+"scale("+g+","+y+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,y),d=h=null,function(L){for(var re,z=-1,q=y.length;++z<q;)g[(re=y[z]).i]=re.x(L);return g.join("")}}}var pMe=une(function dMe(n){return"none"===n?qH:(qx||(qx=document.createElement("DIV"),JH=document.documentElement,lne=document.defaultView),qx.style.transform=n,n=lne.getComputedStyle(JH.appendChild(qx),null).getPropertyValue("transform"),JH.removeChild(qx),sne(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),hMe=une(function fMe(n){return null!=n&&(zN||(zN=document.createElementNS("http://www.w3.org/2000/svg","g")),zN.setAttribute("transform",n),n=zN.transform.baseVal.consolidate())?sne((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):qH},", ",")",")");function mMe(n,r){var e,i;return function(){var o=D0(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function _Me(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=D0(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function QH(n,r,e){var i=n._id;return n.each(function(){var o=D0(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return qd(o,i).value[r]}}function XH(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function cne(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function Jx(){}var WN=1/.7,Bw="\\s*([+-]?\\d+)\\s*",Xx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vMe=/^#([0-9a-f]{3,8})$/,yMe=new RegExp("^rgb\\("+[Bw,Bw,Bw]+"\\)$"),bMe=new RegExp("^rgb\\("+[Cp,Cp,Cp]+"\\)$"),CMe=new RegExp("^rgba\\("+[Bw,Bw,Bw,Xx]+"\\)$"),wMe=new RegExp("^rgba\\("+[Cp,Cp,Cp,Xx]+"\\)$"),kMe=new RegExp("^hsl\\("+[Xx,Cp,Cp]+"\\)$"),TMe=new RegExp("^hsla\\("+[Xx,Cp,Cp,Xx]+"\\)$"),dne={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 fne(){return this.rgb().formatHex()}function pne(){return this.rgb().formatRgb()}function $x(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=vMe.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?hne(r):3===e?new bc(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?VN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?VN(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=yMe.exec(n))?new bc(r[1],r[2],r[3],1):(r=bMe.exec(n))?new bc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=CMe.exec(n))?VN(r[1],r[2],r[3],r[4]):(r=wMe.exec(n))?VN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=kMe.exec(n))?gne(r[1],r[2]/100,r[3]/100,1):(r=TMe.exec(n))?gne(r[1],r[2]/100,r[3]/100,r[4]):dne.hasOwnProperty(n)?hne(dne[n]):"transparent"===n?new bc(NaN,NaN,NaN,0):null}function hne(n){return new bc(n>>16&255,n>>8&255,255&n,1)}function VN(n,r,e,i){return i<=0&&(n=r=e=NaN),new bc(n,r,e,i)}function SMe(n){return n instanceof Jx||(n=$x(n)),n?new bc((n=n.rgb()).r,n.g,n.b,n.opacity):new bc}function YN(n,r,e,i){return 1===arguments.length?SMe(n):new bc(n,r,e,null==i?1:i)}function bc(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function mne(){return"#"+$H(this.r)+$H(this.g)+$H(this.b)}function _ne(){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 $H(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function gne(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 vne(n){if(n instanceof wp)return new wp(n.h,n.s,n.l,n.opacity);if(n instanceof Jx||(n=$x(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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&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 eG(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 yne(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 bne(n){return function(){return n}}function Cne(n,r){return function(e){return n+e*r}}function OMe(n){return 1==(n=+n)?wne:function(r,e){return e-r?function AMe(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):bne(isNaN(r)?e:r)}}function wne(n,r){var e=r-n;return e?Cne(n,e):bne(isNaN(n)?r:n)}XH(Jx,$x,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:fne,formatHex:fne,formatHsl:function MMe(){return vne(this).formatHsl()},formatRgb:pne,toString:pne}),XH(bc,YN,cne(Jx,{brighter:function(r){return r=null==r?WN:Math.pow(WN,r),new bc(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new bc(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:mne,formatHex:mne,formatRgb:_ne,toString:_ne})),XH(wp,function EMe(n,r,e,i){return 1===arguments.length?vne(n):new wp(n,r,e,null==i?1:i)},cne(Jx,{brighter:function(r){return r=null==r?WN:Math.pow(WN,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 bc(eG(r>=240?r-240:r+120,a,o),eG(r,a,o),eG(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 kne=function n(r){var e=OMe(r);function i(o,a){var s=e((o=YN(o)).r,(a=YN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=wne(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 Tne(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<e;++s)l=YN(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}Tne(function xMe(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=i<r-1?n[i+2]:2*a-o;return yne((e-i/r)*r,s,o,a,l)}}),Tne(function DMe(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return yne((e-i/r)*r,o,a,s,l)}});var tG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nG=new RegExp(tG.source,"g");function RMe(n,r){var i,o,a,e=tG.lastIndex=nG.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=tG.exec(n))&&(o=nG.exec(r));)(a=o.index)>e&&(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:Sg(i,o)})),e=nG.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function IMe(n){return function(r){return n(r)+""}}(u[0].x):function PMe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function Mne(n,r){var e;return("number"==typeof r?Sg:r instanceof $x?kne:(e=$x(r))?(r=e,kne):RMe)(n,r)}function LMe(n){return function(){this.removeAttribute(n)}}function ZMe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function NMe(n,r,e){var i,o;return function(){var a=this.getAttribute(n);return a===e?null:a===i?o:o=r(i=a,e)}}function BMe(n,r,e){var i,o;return function(){var a=this.getAttributeNS(n.space,n.local);return a===e?null:a===i?o:o=r(i=a,e)}}function FMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function UMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function HMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(n.space,n.local,o(a))}}return e._value=r,e}function GMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(n,o(a))}}return e._value=r,e}function WMe(n,r){return function(){KH(this,n).delay=+r.apply(this,arguments)}}function VMe(n,r){return r=+r,function(){KH(this,n).delay=r}}function KMe(n,r){return function(){D0(this,n).duration=+r.apply(this,arguments)}}function qMe(n,r){return r=+r,function(){D0(this,n).duration=r}}function QMe(n,r){if("function"!=typeof r)throw new Error;return function(){D0(this,n).ease=r}}function nSe(n,r,e){var i,o,a=function tSe(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?KH:D0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var lSe=Kx.prototype.constructor;function mSe(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 CSe=0;function kp(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Sne(n){return Kx().transition(n)}function Ene(){return++CSe}var Fw=Kx.prototype;kp.prototype=Sne.prototype={constructor:kp,select:function aSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=HH(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),y=0;y<u;++y)(h=l[y])&&(g=n.call(h,h.__data__,y,l))&&("__data__"in h&&(g.__data__=h.__data__),d[y]=g,GN(d[y],r,e,y,d,qd(h,e)));return new kp(a,this._parents,r,e)},selectAll:function sSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hte(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var L,y=n.call(h,h.__data__,g,u),z=qd(h,e),q=0,re=y.length;q<re;++q)(L=y[q])&&GN(L,r,e,q,y,z);a.push(y),s.push(h)}return new kp(a,s,r,e)},filter:function $Me(n){"function"!=typeof n&&(n=Gte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new kp(i,this._parents,this._name,this._id)},merge:function eSe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new kp(s,this._parents,this._name,this._id)},selection:function uSe(){return new lSe(this._groups,this._parents)},transition:function bSe(){for(var n=this._name,r=this._id,e=Ene(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=qd(u,r);GN(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kp(i,this._parents,n,e)},call:Fw.call,nodes:Fw.nodes,node:Fw.node,size:Fw.size,empty:Fw.empty,each:Fw.each,on:function rSe(n,r){var e=this._id;return arguments.length<2?qd(this.node(),e).on.on(n):this.each(nSe(e,n,r))},attr:function jMe(n,r){var e=UN(n),i="transform"===e?hMe:Mne;return this.attrTween(n,"function"==typeof r?(e.local?UMe:FMe)(e,i,QH(this,"attr."+n,r)):null==r?(e.local?ZMe:LMe)(e):(e.local?BMe:NMe)(e,i,r+""))},attrTween:function zMe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=UN(n);return this.tween(e,(i.local?HMe:GMe)(i,r))},style:function hSe(n,r,e){var i="transform"==(n+="")?pMe:Mne;return null==r?this.styleTween(n,function cSe(n,r){var e,i,o;return function(){var a=Nw(this,n),s=(this.style.removeProperty(n),Nw(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,function dSe(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function pSe(n,r,e){var i,o,a;return function(){var s=Nw(this,n),l=e(this);return null==l&&(this.style.removeProperty(n),l=Nw(this,n)),s===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}(n,i,QH(this,"style."+n,r)):function fSe(n,r,e){var i,o;return function(){var a=Nw(this,n);return a===e?null:a===i?o:o=r(i=a,e)}}(n,i,r+""),e)},styleTween:function _Se(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,mSe(n,r,null==e?"":e))},text:function ySe(n){return this.tween("text","function"==typeof n?function vSe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(QH(this,"text",n)):function gSe(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function oSe(){return this.on("end.remove",function iSe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function gMe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=qd(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?mMe:_Me)(e,n,r))},delay:function YMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?WMe:VMe)(r,n)):qd(this.node(),r).delay},duration:function JMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?KMe:qMe)(r,n)):qd(this.node(),r).duration},ease:function XMe(n){var r=this._id;return arguments.length?this.each(QMe(r,n)):qd(this.node(),r).ease}};var rG={time:null,delay:0,duration:250,ease:$L};function wSe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return rG.time=hg(),rG;return e}Kx.prototype.interrupt=function cMe(n){return this.each(function(){one(this,n)})},Kx.prototype.transition=function kSe(n){var r,e;n instanceof kp?(r=n._id,n=n._name):(r=Ene(),(e=rG).time=hg(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&GN(u,n,r,d,s,e||wSe(u,r));return new kp(i,this._parents,n,r)};var TSe=[null];function MSe(n,r){var i,o,e=n.__transition;if(e)for(o in r=null==r?null:r+"",e)if((i=e[o]).state>1&&i.name===r)return new kp([[n]],TSe,r,+o);return null}function xne(n){return function(){return n}}function SSe(n){return n[0]}function ESe(n){return n[1]}function iG(){this._=null}function KN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function eD(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 tD(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 Dne(n){for(;n.L;)n=n.L;return n}iG.prototype={constructor:iG,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=Dne(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&&(eD(this,i),i=(r=i).U),i.C=!1,o.C=!0,tD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(tD(this,i),i=(r=i).U),i.C=!1,o.C=!0,eD(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?Dne(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,eD(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,tD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,eD(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,tD(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,eD(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,tD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var Ane=iG;function nD(n,r,e,i){var o=[null,null],a=Sl.push(o)-1;return o.left=n,o.right=r,e&&qN(o,n,r,e),i&&qN(o,r,n,i),Cc[n.index].halfedges.push(a),Cc[r.index].halfedges.push(a),o}function rD(n,r,e){var i=[r,e];return i.left=n,i}function qN(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 xSe(n,r,e,i,o){var q,a=n[0],s=n[1],l=a[0],u=a[1],g=0,y=1,L=s[0]-l,z=s[1]-u;if(q=r-l,L||!(q>0)){if(q/=L,L<0){if(q<g)return;q<y&&(y=q)}else if(L>0){if(q>y)return;q>g&&(g=q)}if(q=i-l,L||!(q<0)){if(q/=L,L<0){if(q>y)return;q>g&&(g=q)}else if(L>0){if(q<g)return;q<y&&(y=q)}if(q=e-u,z||!(q>0)){if(q/=z,z<0){if(q<g)return;q<y&&(y=q)}else if(z>0){if(q>y)return;q>g&&(g=q)}if(q=o-u,z||!(q<0)){if(q/=z,z<0){if(q>y)return;q>g&&(g=q)}else if(z>0){if(q<g)return;q<y&&(y=q)}return!(g>0)&&!(y<1)||(g>0&&(n[0]=[l+g*L,u+g*z]),y<1&&(n[1]=[l+y*L,u+y*z])),!0}}}}}function DSe(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],y=u[1],L=(d+g)/2,z=(h+y)/2;if(y===h){if(L<r||L>=i)return;if(d>g){if(s){if(s[1]>=o)return}else s=[L,e];a=[L,o]}else{if(s){if(s[1]<e)return}else s=[L,o];a=[L,e]}}else if(re=z-(q=(d-g)/(y-h))*L,q<-1||q>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]<e)return}else s=[(o-re)/q,o];a=[(e-re)/q,e]}else if(h<y){if(s){if(s[0]>=i)return}else s=[r,q*r+re];a=[i,q*i+re]}else{if(s){if(s[0]<r)return}else s=[i,q*i+re];a=[r,q*r+re]}return n[0]=s,n[1]=a,!0}function PSe(n,r){var e=n.site,i=r.left,o=r.right;return e===o&&(o=i,i=e),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(e===i?(i=r[1],o=r[0]):(i=r[0],o=r[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function One(n,r){return r[+(r.left!==n.site)]}function ISe(n,r){return r[+(r.left===n.site)]}var oG,Pne=[];function ZSe(){KN(this),this.x=this.y=this.arc=this.site=this.cy=null}function Uw(n){var r=n.P,e=n.N;if(r&&e){var i=r.site,o=n.site,a=e.site;if(i!==a){var s=o[0],l=o[1],u=i[0]-s,d=i[1]-l,h=a[0]-s,g=a[1]-l,y=2*(u*g-d*h);if(!(y>=-jSe)){var L=u*u+d*d,z=h*h+g*g,q=(g*L-d*z)/y,re=(u*z-h*L)/y,ae=Pne.pop()||new ZSe;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=iD._;Ce;)if(ae.y<Ce.y||ae.y===Ce.y&&ae.x<=Ce.x){if(!Ce.L){Se=Ce.P;break}Ce=Ce.L}else{if(!Ce.R){Se=Ce;break}Ce=Ce.R}iD.insert(Se,ae),Se||(oG=ae)}}}}function jw(n){var r=n.circle;r&&(r.P||(oG=r.N),iD.remove(r),Pne.push(r),KN(r),n.circle=null)}var Ine=[];function NSe(){KN(this),this.edge=this.site=this.circle=null}function Rne(n){var r=Ine.pop()||new NSe;return r.site=n,r}function aG(n){jw(n),Hw.remove(n),Ine.push(n),KN(n)}function BSe(n){var r=n.circle,e=r.x,i=r.cy,o=[e,i],a=n.P,s=n.N,l=[n];aG(n);for(var u=a;u.circle&&Math.abs(e-u.circle.x)<yo&&Math.abs(i-u.circle.cy)<yo;)a=u.P,l.unshift(u),aG(u),u=a;l.unshift(u),jw(u);for(var d=s;d.circle&&Math.abs(e-d.circle.x)<yo&&Math.abs(i-d.circle.cy)<yo;)s=d.N,l.push(d),aG(d),d=s;l.push(d),jw(d);var g,h=l.length;for(g=1;g<h;++g)d=l[g],u=l[g-1],qN(d.edge,u.site,d.site,o);u=l[0],(d=l[h-1]).edge=nD(u.site,d.site,null,o),Uw(u),Uw(d)}function FSe(n){for(var i,o,a,s,r=n[0],e=n[1],l=Hw._;l;)if((a=Lne(l,e)-r)>yo)l=l.L;else{if(!((s=r-USe(l,e))>yo)){a>-yo?(i=l.P,o=l):s>-yo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function OSe(n){return Cc[n.index]={site:n,halfedges:[]}}(n);var u=Rne(n);if(Hw.insert(i,u),i||o){if(i===o)return jw(i),o=Rne(i.site),Hw.insert(u,o),u.edge=o.edge=nD(i.site,u.site),Uw(i),void Uw(o);if(!o)return void(u.edge=nD(i.site,u.site));jw(i),jw(o);var d=i.site,h=d[0],g=d[1],y=n[0]-h,L=n[1]-g,z=o.site,q=z[0]-h,re=z[1]-g,ae=2*(y*re-L*q),Se=y*y+L*L,Ce=q*q+re*re,Ee=[(re*Se-L*Ce)/ae+h,(y*Ce-q*Se)/ae+g];qN(o.edge,d,z,Ee),u.edge=nD(d,n,null,Ee),o.edge=nD(n,z,null,Ee),Uw(i),Uw(o)}}function Lne(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,y=h/d;return g?(-y+Math.sqrt(y*y-2*g*(h*h/(-2*d)-u+d/2+o-a/2)))/g+i:(i+l)/2}function USe(n,r){var e=n.N;if(e)return Lne(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var Hw,Cc,iD,Sl,yo=1e-6,jSe=1e-12;function HSe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function GSe(n,r){return r[1]-n[1]||r[0]-n[0]}function sG(n,r){var i,o,a,e=n.sort(GSe).pop();for(Sl=[],Cc=new Array(n.length),Hw=new Ane,iD=new Ane;;)if(a=oG,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(FSe(e),i=e[0],o=e[1]),e=n.pop();else{if(!a)break;BSe(a.arc)}if(function RSe(){for(var e,i,o,a,n=0,r=Cc.length;n<r;++n)if((e=Cc[n])&&(a=(i=e.halfedges).length)){var s=new Array(a),l=new Array(a);for(o=0;o<a;++o)s[o]=o,l[o]=PSe(e,Sl[i[o]]);for(s.sort(function(u,d){return l[d]-l[u]}),o=0;o<a;++o)l[o]=i[s[o]];for(o=0;o<a;++o)i[o]=l[o]}}(),r){var s=+r[0][0],l=+r[0][1],u=+r[1][0],d=+r[1][1];(function ASe(n,r,e,i){for(var a,o=Sl.length;o--;)DSe(a=Sl[o],n,r,e,i)&&xSe(a,n,r,e,i)&&(Math.abs(a[0][0]-a[1][0])>yo||Math.abs(a[0][1]-a[1][1])>yo)||delete Sl[o]})(s,l,u,d),function LSe(n,r,e,i){var a,s,l,u,d,h,g,y,L,z,q,re,o=Cc.length,ae=!0;for(a=0;a<o;++a)if(s=Cc[a]){for(l=s.site,u=(d=s.halfedges).length;u--;)Sl[d[u]]||d.splice(u,1);for(u=0,h=d.length;u<h;)q=(z=ISe(s,Sl[d[u]]))[0],re=z[1],y=(g=One(s,Sl[d[++u%h]]))[0],L=g[1],(Math.abs(q-y)>yo||Math.abs(re-L)>yo)&&(d.splice(u,0,Sl.push(rD(l,z,Math.abs(q-n)<yo&&i-re>yo?[n,Math.abs(y-n)<yo?L:i]:Math.abs(re-i)<yo&&e-q>yo?[Math.abs(L-i)<yo?y:e,i]:Math.abs(q-e)<yo&&re-r>yo?[e,Math.abs(y-e)<yo?L:r]:Math.abs(re-r)<yo&&q-n>yo?[Math.abs(L-r)<yo?y:n,r]:null))-1),++h);h&&(ae=!1)}if(ae){var Se,Ce,Ee,Ke=1/0;for(a=0,ae=null;a<o;++a)(s=Cc[a])&&(Ee=(Se=(l=s.site)[0]-n)*Se+(Ce=l[1]-r)*Ce)<Ke&&(Ke=Ee,ae=s);if(ae){var st=[n,r],De=[n,i],it=[e,i],ft=[e,r];ae.halfedges.push(Sl.push(rD(l=ae.site,st,De))-1,Sl.push(rD(l,De,it))-1,Sl.push(rD(l,it,ft))-1,Sl.push(rD(l,ft,st))-1)}}for(a=0;a<o;++a)(s=Cc[a])&&(s.halfedges.length||delete Cc[a])}(s,l,u,d)}this.edges=Sl,this.cells=Cc,Hw=iD=Sl=Cc=null}function zSe(){var n=SSe,r=ESe,e=null;function i(o){return new sG(o.map(function(a,s){var l=[Math.round(n(a,s,o)/yo)*yo,Math.round(r(a,s,o)/yo)*yo];return l.index=s,l.data=a,l}),e)}return i.polygons=function(o){return i(o).polygons()},i.links=function(o){return i(o).links()},i.triangles=function(o){return i(o).triangles()},i.x=function(o){return arguments.length?(n="function"==typeof o?o:xne(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:xne(+o),i):r},i.extent=function(o){return arguments.length?(e=null==o?null:[[+o[0][0],+o[0][1]],[+o[1][0],+o[1][1]]],i):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},i.size=function(o){return arguments.length?(e=null==o?null:[[0,0],[+o[0],+o[1]]],i):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},i}sG.prototype={constructor:sG,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return One(e,r[o])});return i.data=e.site.data,i})},triangles:function(){var r=[],e=this.edges;return this.cells.forEach(function(i,o){if(u=(s=i.halfedges).length)for(var s,u,d,a=i.site,l=-1,h=e[s[u-1]],g=h.left===a?h.right:h.left;++l<u;)d=g,g=(h=e[s[l]]).left===a?h.right:h.left,d&&g&&o<d.index&&o<g.index&&HSe(a,d,g)<0&&r.push([a.data,d.data,g.data])}),r},links:function(){return this.edges.filter(function(r){return r.right}).map(function(r){return{source:r.left.data,target:r.right.data}})},find:function(r,e,i){for(var a,u,o=this,s=o._found||0,l=o.cells.length;!(u=o.cells[s]);)if(++s>=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(y){var L=o.edges[y],z=L.left;if(z!==u.site&&z||(z=L.right)){var q=r-z[0],re=e-z[1],ae=q*q+re*re;ae<g&&(g=ae,s=z.index)}})}while(null!==s);return o._found=a,null==i||g<=i*i?u.site:null}};var oD=Math.SQRT2;function Nne(n){return((n=Math.exp(n))+1/n)/2}function KSe(n,r){var g,y,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)y=Math.log(l/o)/oD,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(oD*Ce*y)]};else{var L=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*L),q=(l*l-o*o-4*h)/(2*l*2*L),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);y=(ae-re)/oD,g=function(Ce){var Ee=Ce*y,Ke=Nne(re),st=o/(2*L)*(Ke*function YSe(n){return((n=Math.exp(2*n))-1)/(n+1)}(oD*Ee+re)-function VSe(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+st*u,i+st*d,o*Ke/Nne(oD*Ee+re)]}}return g.duration=1e3*y,g}function JN(n){return function(){return n}}function qSe(n,r,e){this.target=n,this.type=r,this.transform=e}function um(n,r,e){this.k=n,this.x=r,this.y=e}um.prototype={constructor:um,scale:function(r){return 1===r?this:new um(this.k*r,this.x,this.y)},translate:function(r,e){return 0===r&0===e?this:new um(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var QN=new um(1,0,0);function Bne(n){return n.__zoom||QN}function uG(){Ln.stopImmediatePropagation()}function aD(){Ln.preventDefault(),Ln.stopImmediatePropagation()}function JSe(){return!Ln.ctrlKey&&!Ln.button}function QSe(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Fne(){return this.__zoom||QN}function XSe(){return-Ln.deltaY*(1===Ln.deltaMode?.05:Ln.deltaMode?1:.002)}function $Se(){return navigator.maxTouchPoints||"ontouchstart"in this}function eEe(n,r,e){var i=n.invertX(r[0][0])-e[0][0],o=n.invertX(r[1][0])-e[1][0],a=n.invertY(r[0][1])-e[0][1],s=n.invertY(r[1][1])-e[1][1];return n.translate(o>i?(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 Une(){var h,g,n=JSe,r=QSe,e=eEe,i=XSe,o=$Se,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=KSe,d=t0("start","zoom","end"),y=500,z=0;function q(Ie){Ie.property("__zoom",Fne).on("wheel.zoom",st).on("mousedown.zoom",De).on("dblclick.zoom",it).filter(o).on("touchstart.zoom",ft).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",$e).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function re(Ie,ct){return(ct=Math.max(a[0],Math.min(a[1],ct)))===Ie.k?Ie:new um(ct,Ie.x,Ie.y)}function ae(Ie,ct,Bt){var jt=ct[0]-Bt[0]*Ie.k,It=ct[1]-Bt[1]*Ie.k;return jt===Ie.x&&It===Ie.y?Ie:new um(Ie.k,jt,It)}function Se(Ie){return[(+Ie[0][0]+ +Ie[1][0])/2,(+Ie[0][1]+ +Ie[1][1])/2]}function Ce(Ie,ct,Bt){Ie.on("start.zoom",function(){Ee(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Ee(this,arguments).end()}).tween("zoom",function(){var jt=this,It=arguments,Tn=Ee(jt,It),Hn=r.apply(jt,It),zn=Bt||Se(Hn),ar=Math.max(Hn[1][0]-Hn[0][0],Hn[1][1]-Hn[0][1]),kr=jt.__zoom,_r="function"==typeof ct?ct.apply(jt,It):ct,Wr=u(kr.invert(zn).concat(ar/kr.k),_r.invert(zn).concat(ar/_r.k));return function(jr){if(1===jr)jr=_r;else{var Kr=Wr(jr),jo=ar/Kr[2];jr=new um(jo,zn[0]-Kr[0]*jo,zn[1]-Kr[1]*jo)}Tn.zoom(null,jr)}})}function Ee(Ie,ct,Bt){return!Bt&&Ie.__zooming||new Ke(Ie,ct)}function Ke(Ie,ct){this.that=Ie,this.args=ct,this.active=0,this.extent=r.apply(Ie,ct),this.taps=0}function st(){if(n.apply(this,arguments)){var Ie=Ee(this,arguments),ct=this.__zoom,Bt=Math.max(a[0],Math.min(a[1],ct.k*Math.pow(2,i.apply(this,arguments)))),jt=Fd(this);ct.k!==Bt&&(Ie.wheel?((Ie.mouse[0][0]!==jt[0]||Ie.mouse[0][1]!==jt[1])&&(Ie.mouse[1]=ct.invert(Ie.mouse[0]=jt)),clearTimeout(Ie.wheel)):(Ie.mouse=[jt,ct.invert(jt)],aw(this),Ie.start()),aD(),Ie.wheel=setTimeout(It,150),Ie.zoom("mouse",e(ae(re(ct,Bt),Ie.mouse[0],Ie.mouse[1]),Ie.extent,s)))}function It(){Ie.wheel=null,Ie.end()}}function De(){if(!g&&n.apply(this,arguments)){var Ie=Ee(this,arguments,!0),ct=Ci(Ln.view).on("mousemove.zoom",Tn,!0).on("mouseup.zoom",Hn,!0),Bt=Fd(this),jt=Ln.clientX,It=Ln.clientY;BL(Ln.view),uG(),Ie.mouse=[Bt,this.__zoom.invert(Bt)],aw(this),Ie.start()}function Tn(){if(aD(),!Ie.moved){var zn=Ln.clientX-jt,ar=Ln.clientY-It;Ie.moved=zn*zn+ar*ar>z}Ie.zoom("mouse",e(ae(Ie.that.__zoom,Ie.mouse[0]=Fd(Ie.that),Ie.mouse[1]),Ie.extent,s))}function Hn(){ct.on("mousemove.zoom mouseup.zoom",null),FL(Ln.view,Ie.moved),aD(),Ie.end()}}function it(){if(n.apply(this,arguments)){var Ie=this.__zoom,ct=Fd(this),Bt=Ie.invert(ct),jt=Ie.k*(Ln.shiftKey?.5:2),It=e(ae(re(Ie,jt),ct,Bt),r.apply(this,arguments),s);aD(),l>0?Ci(this).transition().duration(l).call(Ce,It,ct):Ci(this).call(q.transform,It)}}function ft(){if(n.apply(this,arguments)){var jt,It,Tn,Hn,Ie=Ln.touches,ct=Ie.length,Bt=Ee(this,arguments,Ln.changedTouches.length===ct);for(uG(),It=0;It<ct;++It)Hn=[Hn=_j(this,Ie,(Tn=Ie[It]).identifier),this.__zoom.invert(Hn),Tn.identifier],Bt.touch0?Bt.touch1||(Bt.touch1=Hn,Bt.taps=0):(Bt.touch0=Hn,jt=!0,Bt.taps=1+!!h);h&&(h=clearTimeout(h)),jt&&(Bt.taps<2&&(h=setTimeout(function(){h=null},y)),aw(this),Bt.start())}}function bt(){if(this.__zooming){var jt,It,Tn,Hn,Ie=Ee(this,arguments),ct=Ln.changedTouches,Bt=ct.length;for(aD(),h&&(h=clearTimeout(h)),Ie.taps=0,jt=0;jt<Bt;++jt)Tn=_j(this,ct,(It=ct[jt]).identifier),Ie.touch0&&Ie.touch0[2]===It.identifier?Ie.touch0[0]=Tn:Ie.touch1&&Ie.touch1[2]===It.identifier&&(Ie.touch1[0]=Tn);if(It=Ie.that.__zoom,Ie.touch1){var zn=Ie.touch0[0],ar=Ie.touch0[1],kr=Ie.touch1[0],_r=Ie.touch1[1],Wr=(Wr=kr[0]-zn[0])*Wr+(Wr=kr[1]-zn[1])*Wr,jr=(jr=_r[0]-ar[0])*jr+(jr=_r[1]-ar[1])*jr;It=re(It,Math.sqrt(Wr/jr)),Tn=[(zn[0]+kr[0])/2,(zn[1]+kr[1])/2],Hn=[(ar[0]+_r[0])/2,(ar[1]+_r[1])/2]}else{if(!Ie.touch0)return;Tn=Ie.touch0[0],Hn=Ie.touch0[1]}Ie.zoom("touch",e(ae(It,Tn,Hn),Ie.extent,s))}}function $e(){if(this.__zooming){var jt,It,Ie=Ee(this,arguments),ct=Ln.changedTouches,Bt=ct.length;for(uG(),g&&clearTimeout(g),g=setTimeout(function(){g=null},y),jt=0;jt<Bt;++jt)It=ct[jt],Ie.touch0&&Ie.touch0[2]===It.identifier?delete Ie.touch0:Ie.touch1&&Ie.touch1[2]===It.identifier&&delete Ie.touch1;if(Ie.touch1&&!Ie.touch0&&(Ie.touch0=Ie.touch1,delete Ie.touch1),Ie.touch0)Ie.touch0[1]=this.__zoom.invert(Ie.touch0[0]);else if(Ie.end(),2===Ie.taps){var Tn=Ci(this).on("dblclick.zoom");Tn&&Tn.apply(this,arguments)}}}return q.transform=function(Ie,ct){var Bt=Ie.selection?Ie.selection():Ie;Bt.property("__zoom",Fne),Ie!==Bt?Ce(Ie,ct):Bt.interrupt().each(function(){Ee(this,arguments).start().zoom(null,"function"==typeof ct?ct.apply(this,arguments):ct).end()})},q.scaleBy=function(Ie,ct){q.scaleTo(Ie,function(){var Bt=this.__zoom.k,jt="function"==typeof ct?ct.apply(this,arguments):ct;return Bt*jt})},q.scaleTo=function(Ie,ct){q.transform(Ie,function(){var Bt=r.apply(this,arguments),jt=this.__zoom,It=Se(Bt),Tn=jt.invert(It),Hn="function"==typeof ct?ct.apply(this,arguments):ct;return e(ae(re(jt,Hn),It,Tn),Bt,s)})},q.translateBy=function(Ie,ct,Bt){q.transform(Ie,function(){return e(this.__zoom.translate("function"==typeof ct?ct.apply(this,arguments):ct,"function"==typeof Bt?Bt.apply(this,arguments):Bt),r.apply(this,arguments),s)})},q.translateTo=function(Ie,ct,Bt){q.transform(Ie,function(){var jt=r.apply(this,arguments),It=this.__zoom,Tn=Se(jt);return e(QN.translate(Tn[0],Tn[1]).scale(It.k).translate("function"==typeof ct?-ct.apply(this,arguments):-ct,"function"==typeof Bt?-Bt.apply(this,arguments):-Bt),jt,s)})},Ke.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ct,Bt){return this.mouse&&"mouse"!==ct&&(this.mouse[1]=Bt.invert(this.mouse[0])),this.touch0&&"touch"!==ct&&(this.touch0[1]=Bt.invert(this.touch0[0])),this.touch1&&"touch"!==ct&&(this.touch1[1]=Bt.invert(this.touch1[0])),this.that.__zoom=Bt,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ct){NL(new qSe(q,ct,this.that.__zoom),d.apply,d,[ct,this.that,this.args])}},q.wheelDelta=function(Ie){return arguments.length?(i="function"==typeof Ie?Ie:JN(+Ie),q):i},q.filter=function(Ie){return arguments.length?(n="function"==typeof Ie?Ie:JN(!!Ie),q):n},q.touchable=function(Ie){return arguments.length?(o="function"==typeof Ie?Ie:JN(!!Ie),q):o},q.extent=function(Ie){return arguments.length?(r="function"==typeof Ie?Ie:JN([[+Ie[0][0],+Ie[0][1]],[+Ie[1][0],+Ie[1][1]]]),q):r},q.scaleExtent=function(Ie){return arguments.length?(a[0]=+Ie[0],a[1]=+Ie[1],q):[a[0],a[1]]},q.translateExtent=function(Ie){return arguments.length?(s[0][0]=+Ie[0][0],s[1][0]=+Ie[1][0],s[0][1]=+Ie[0][1],s[1][1]=+Ie[1][1],q):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},q.constrain=function(Ie){return arguments.length?(e=Ie,q):e},q.duration=function(Ie){return arguments.length?(l=+Ie,q):l},q.interpolate=function(Ie){return arguments.length?(u=Ie,q):u},q.on=function(){var Ie=d.on.apply(d,arguments);return Ie===d?q:Ie},q.clickDistance=function(Ie){return arguments.length?(z=(Ie=+Ie)*Ie,q):Math.sqrt(z)},q}Bne.prototype=um.prototype;var cG=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getD3",value:function(){return G}}]),n}();cG=function(n,r,e,i){var s,o=arguments.length,a=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,r,e,i);else for(var l=n.length-1;l>=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",[])],cG);var Tp=m(8723);function rEe(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 iEe(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 oEe(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 aEe(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 sEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,oEe,1,7,"circle",2),t.YNc(2,aEe,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 lEe(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 uEe(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 cEe(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 dEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,uEe,1,5,"path",2),t.YNc(2,cEe,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 fEe(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 pEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,fEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.title.tspans)}}function hEe(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 mEe(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 _Ee(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,mEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function gEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,pEe,2,1,"ng-container",2),t.YNc(2,hEe,2,4,"tspan",2),t.YNc(3,_Ee,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 vEe(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 yEe(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,rEe,3,5,"linearGradient",2),t.YNc(3,iEe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,sEe,3,2,"ng-container",2),t.YNc(5,lEe,1,6,"circle",2),t.YNc(6,dEe,3,2,"ng-container",2),t.YNc(7,gEe,4,6,"text",3),t.YNc(8,vEe,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 XN=(0,U.Z)(function n(){(0,B.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}),sD=function(){function n(r,e,i,o){var a=this;(0,B.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 XN,this.defaultOptions=new XN,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 y,L,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,Yn.Z)(z,2);y=q[0],L=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Yn.Z)(re,2);y=ae[0],L=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,Ke={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 st=a.options.titleFormat(Se);st instanceof Array?Ke.texts=(0,cn.Z)(st):Ke.texts.push(st.toString())}else"auto"===a.options.title?Ke.texts.push(Ce):a.options.title instanceof Array?Ke.texts=(0,cn.Z)(a.options.title):Ke.texts.push(a.options.title.toString());var De={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 it=a.options.subtitleFormat(Ee);it instanceof Array?De.texts=(0,cn.Z)(it):De.texts.push(it.toString())}else a.options.subtitle instanceof Array?De.texts=(0,cn.Z)(a.options.subtitle):De.texts.push(a.options.subtitle.toString());var ft={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},bt=0,$e=1;if(a.options.showTitle&&(bt+=Ke.texts.length),a.options.showSubtitle&&(bt+=De.texts.length),a.options.showTitle){var ct,Ie=(0,An.Z)(Ke.texts);try{for(Ie.s();!(ct=Ie.n()).done;){var Bt=ct.value;Ke.tspans.push({span:Bt,dy:a.getRelativeY($e,bt)}),$e++}}catch(Hn){Ie.e(Hn)}finally{Ie.f()}}if(a.options.showSubtitle){var It,jt=(0,An.Z)(De.texts);try{for(jt.s();!(It=jt.n()).done;){var Tn=It.value;De.tspans.push({span:Tn,dy:a.getRelativeY($e,bt)}),$e++}}catch(Hn){jt.e(Hn)}finally{jt.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(y," ").concat(L," ").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:Ke,units:ft,subtitle:De,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,y=a.options.startFromZero||s<0?0:s,L=l<0?0:a.min(l,a.options.maxPercent),z=Math.abs(Math.round(L-y));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,y=h.interval,L=u;a._timerSubscription=u<d?(0,Tp.H)(0,y).subscribe(function(){(L+=g)<=d?!a.options.animateTitle&&!a.options.animateSubtitle&&L>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(L):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tp.H)(0,y).subscribe(function(){(L-=g)>=d?!a.options.animateTitle&&!a.options.animateSubtitle&&d>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(L):(a.draw(d),a._timerSubscription.unsubscribe())})},this.applyOptions=function(){for(var s=0,l=Object.keys(a.options);s<l.length;s++){var u=l[s];a.hasOwnProperty(u)&&void 0!==a[u]?a.options[u]=a[u]:a.templateOptions&&void 0!==a.templateOptions[u]&&(a.options[u]=a.templateOptions[u])}a.options.radius=Math.abs(+a.options.radius),a.options.space=+a.options.space,a.options.percent=+a.options.percent>0?+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 s<l?s:l},this.max=function(s,l){return s>l?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(se.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,U.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}();sD.\u0275fac=function(r){return new(r||sD)(t.Y36(XN),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},sD.\u0275cmp=t.Xpm({type:sD,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,yEe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[se.sg,se.O5],encapsulation:2});var Gw=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:XN,useValue:e}]}}}]),n}();Gw.\u0275fac=function(r){return new(r||Gw)},Gw.\u0275mod=t.oAB({type:Gw}),Gw.\u0275inj=t.cJS({imports:[se.ez]});var $N=function(){function n(r){(0,B.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,U.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}();$N.\u0275fac=function(r){return new(r||$N)(t.Y36(t.SBq))},$N.\u0275dir=t.lG2({type:$N,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 dG=function(){function n(r){(0,B.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,U.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}(),bEe=function(){function n(r,e,i){(0,B.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 dG(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,U.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}(),zw=function(){function n(){(0,B.Z)(this,n)}return(0,U.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}();zw.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"],zw.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"],zw.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"],zw.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],zw.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 Eg=function(){function n(r){(0,B.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,U.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;l<this.queue.length;l++)this.queue[l].url=this.options.url}},{key:"addToQueue",value:function(e,i,o){var d,a=this,s=i,l=[],u=(0,An.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.push(h)}}catch(z){u.e(z)}finally{u.f()}var g=this._getFilters(o),y=this.queue.length,L=[];l.map(function(z){s||(s=a.options);var q=new dG(z);if(a._isValidFile(q,g,s)){var re=new bEe(a,z,s);L.push(re),a.queue.push(re),a._onAfterAddingFile(re)}else if(a._failFilterIndex){var ae=g[a._failFilterIndex];a._onWhenAddingFileFailed(q,ae,s)}}),this.queue.length!==y&&(this._onAfterAddingAll(L),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i];o.isUploading&&o.cancel(),this.queue.splice(i,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i],a=this.options.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[a](o))}},{key:"cancelItem",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i],a=this.options.isHTML5?o._xhr:o._form;o&&o.isUploading&&a.abort()}},{key:"uploadAll",value:function(){var e=this.getNotUploadedItems().filter(function(i){return!i.isUploading});!e.length||(e.map(function(i){return i._prepareToUploading()}),e[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map(function(i){return i.cancel()})}},{key:"isFile",value:function(e){return function CEe(n){return File&&n instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof dG}},{key:"getIndexOfItem",value:function(e){return"number"==typeof e?e:this.queue.indexOf(e)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(e){return!e.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,i){return e.index-i.index})}},{key:"onAfterAddingAll",value:function(e){return{fileItems:e}}},{key:"onBuildItemForm",value:function(e,i){return{fileItem:e,form:i}}},{key:"onAfterAddingFile",value:function(e){return{fileItem:e}}},{key:"onWhenAddingFileFailed",value:function(e,i,o){return{item:e,filter:i,options:o}}},{key:"onBeforeUploadItem",value:function(e){return{fileItem:e}}},{key:"onProgressItem",value:function(e,i){return{fileItem:e,progress:i}}},{key:"onProgressAll",value:function(e){return{progress:e}}},{key:"onSuccessItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onErrorItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCancelItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(e){var i;return!((null==e?void 0:e.type)&&this.options.allowedMimeType&&-1===(null===(i=this.options.allowedMimeType)||void 0===i?void 0:i.indexOf(e.type)))}},{key:"_fileSizeFilter",value:function(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(zw.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,An.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 y,g=(0,An.Z)(e.headers);try{for(g.s();!(y=g.n()).done;){var L=y.value;a.setRequestHeader(L.name,L.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<this.options.queueLimit}},{key:"_isValidFile",value:function(e,i,o){var a=this;return this._failFilterIndex=-1,!i.length||i.every(function(s){return a._failFilterIndex&&a._failFilterIndex++,s.fn.call(a,e,o)})}},{key:"_isSuccessCode",value:function(e){return e>=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,B.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,U.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 Ww=(0,U.Z)(function n(){(0,B.Z)(this,n)});Ww.\u0275fac=function(r){return new(r||Ww)},Ww.\u0275mod=t.oAB({type:Ww}),Ww.\u0275inj=t.cJS({imports:[se.ez]});var fG=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}(),wEe=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)}}(),jne=function(n){function r(){return n.call(this)||this}return wEe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(fG);jne.ctorParameters=function(){return[]};var Hne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:fG,useClass:jne}]}),n}();Hne.ctorParameters=function(){return[]};var ul=function(){function n(){(0,B.Z)(this,n)}return(0,U.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}(),A0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.call(this)}return(0,U.Z)(e)}(ul);A0.\u0275fac=function(r){return new(r||A0)},A0.\u0275prov=t.Yz7({token:A0,factory:A0.\u0275fac}),A0.ctorParameters=function(){return[]};var Vw=(0,U.Z)(function n(){(0,B.Z)(this,n)});Vw.\u0275fac=function(r){return new(r||Vw)},Vw.\u0275mod=t.oAB({type:Vw}),Vw.\u0275inj=t.cJS({providers:[{provide:ul,useClass:A0}]});var lD=m(7326),Yw=m(4942),kEe=m(4450),TEe=m(1961),uD=m(8514),MEe=m(4843),O0=m(1737),P0=m(8896),Gne=m(1762),xg=m(7224),I0=m(1406),ed=m(7221),zne=m(2014),Wne=m(8127),SEe=m(4290),Vne=m(7314),eB=m(537),Yne=m(4327),tB=m(9146),hi="primary",cD=Symbol("RouteTitle"),EEe=function(){function n(r){(0,B.Z)(this,n),this.params=r||{}}return(0,U.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 Kw(n){return new EEe(n)}function xEe(n,r,e){var i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<n.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],l=n[a];if(s.startsWith(":"))o[s.substring(1)]=l;else if(s!==l.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function Sp(n,r){var e=n?Object.keys(n):void 0,i=r?Object.keys(r):void 0;if(!e||!i||e.length!=i.length)return!1;for(var o,a=0;a<e.length;a++)if(!Kne(n[o=e[a]],r[o]))return!1;return!0}function Kne(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var e=(0,cn.Z)(n).sort(),i=(0,cn.Z)(r).sort();return e.every(function(o,a){return i[a]===o})}return n===r}function qne(n){return Array.prototype.concat.apply([],n)}function Jne(n){return n.length>0?n[n.length-1]:null}function cl(n,r){for(var e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Dg(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,hs.D)(Promise.resolve(n)):(0,qn.of)(n)}var OEe={exact:function $ne(n,r,e){if(!L0(n.segments,r.segments)||!nB(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!$ne(n.children[i],r.children[i],e))return!1;return!0},subset:ere},Qne={exact:function PEe(n,r){return Sp(n,r)},subset:function IEe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return Kne(n[e],r[e])})},ignored:function(){return!0}};function Xne(n,r,e){return OEe[e.paths](n.root,r.root,e.matrixParams)&&Qne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function ere(n,r,e){return tre(n,r,r.segments,e)}function tre(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!L0(o,e)||r.hasChildren()||!nB(o,e,i))}if(n.segments.length===e.length){if(!L0(n.segments,e)||!nB(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!ere(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!!(L0(n.segments,s)&&nB(n.segments,s,i)&&n.children[hi])&&tre(n.children[hi],r,l,i)}function nB(n,r,e){return r.every(function(i,o){return Qne[e](n[o].parameters,i.parameters)})}var R0=function(){function n(r,e,i){(0,B.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,U.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Kw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return ZEe.serialize(this)}}]),n}(),vi=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this.segments=r,this.children=e,this.parent=null,cl(e,function(o,a){return o.parent=i})}return(0,U.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 rB(this)}}]),n}(),dD=function(){function n(r,e){(0,B.Z)(this,n),this.path=r,this.parameters=e}return(0,U.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Kw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ire(this)}}]),n}();function L0(n,r){return n.length===r.length&&n.every(function(e,i){return e.path===r[i].path})}var qw=(0,U.Z)(function n(){(0,B.Z)(this,n)});qw.\u0275fac=function(r){return new(r||qw)},qw.\u0275prov=t.Yz7({token:qw,factory:function(){return new hG},providedIn:"root"});var hG=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"parse",value:function(e){var i=new WEe(e);return new R0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(fD(e.root,!0)),o=function FEe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(iB(e),"=").concat(iB(o))}).join("&"):"".concat(iB(e),"=").concat(iB(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function NEe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),ZEe=new hG;function rB(n){return n.segments.map(function(r){return ire(r)}).join("/")}function fD(n,r){if(!n.hasChildren())return rB(n);if(r){var e=n.children[hi]?fD(n.children[hi],!1):"",i=[];return cl(n.children,function(a,s){s!==hi&&i.push("".concat(s,":").concat(fD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function LEe(n,r){var e=[];return cl(n.children,function(i,o){o===hi&&(e=e.concat(r(i,o)))}),cl(n.children,function(i,o){o!==hi&&(e=e.concat(r(i,o)))}),e}(n,function(a,s){return s===hi?[fD(n.children[hi],!1)]:["".concat(s,":").concat(fD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[hi]?"".concat(rB(n),"/").concat(o[0]):"".concat(rB(n),"/(").concat(o.join("//"),")")}function nre(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function iB(n){return nre(n).replace(/%3B/gi,";")}function mG(n){return nre(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oB(n){return decodeURIComponent(n)}function rre(n){return oB(n.replace(/\+/g,"%20"))}function ire(n){return"".concat(mG(n.path)).concat(function BEe(n){return Object.keys(n).map(function(r){return";".concat(mG(r),"=").concat(mG(n[r]))}).join("")}(n.parameters))}var UEe=/^[^\/()?;=#]+/;function aB(n){var r=n.match(UEe);return r?r[0]:""}var jEe=/^[^=?&#]+/;var GEe=/^[^&#]+/;var WEe=function(){function n(r){(0,B.Z)(this,n),this.url=r,this.remaining=r}return(0,U.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vi([],{}):new vi([],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[hi]=new vi(e,i)),o}},{key:"parseSegment",value:function(){var e=aB(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new dD(oB(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=aB(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=aB(this.remaining);a&&(o=a,this.capture(o))}e[oB(i)]=oB(o)}}},{key:"parseQueryParam",value:function(e){var i=function HEe(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 zEe(n){var r=n.match(GEe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=rre(i),l=rre(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=aB(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=hi);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[hi]:new vi([],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 _G(n){return n.segments.length>0?new vi([],(0,Yw.Z)({},hi,n)):n}function sB(n){for(var r={},e=0,i=Object.keys(n.children);e<i.length;e++){var o=i[e],s=sB(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function VEe(n){if(1===n.numberOfChildren&&n.children[hi]){var r=n.children[hi];return new vi(n.segments.concat(r.segments),r.children)}return n}(new vi(n.segments,r))}function Z0(n){return n instanceof R0}function qEe(n,r,e,i,o){var a;if(0===e.length)return Jw(r.root,r.root,r.root,i,o);var l=sre(e);if(l.toRoot())return Jw(r.root,r.root,new vi([],{}),i,o);var d=function u(g){var y,L=function QEe(n,r,e,i){if(n.isAbsolute)return new Qw(r.root,!0,0);if(-1===i){var o=e===r.root;return new Qw(e,o,0)}var a=pD(n.commands[0])?0:1;return lre(e,i+a,n.numberOfDoubleDots)}(l,r,null===(y=n.snapshot)||void 0===y?void 0:y._urlSegment,g),z=L.processChildren?mD(L.segmentGroup,L.index,l.commands):vG(L.segmentGroup,L.index,l.commands);return Jw(r.root,L.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function pD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function hD(n){return"object"==typeof n&&null!=n&&n.outlets}function Jw(n,r,e,i,o){var a={};i&&cl(i,function(u,d){a[d]=Array.isArray(u)?u.map(function(h){return"".concat(h)}):"".concat(u)});var l=_G(sB(n===r?e:ore(n,r,e)));return new R0(l,a,o)}function ore(n,r,e){var i={};return cl(n.children,function(o,a){i[a]=o===r?e:ore(o,r,e)}),new vi(n.segments,i)}var are=function(){function n(r,e,i){if((0,B.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&pD(i[0]))throw new t.vHH(4003,false);var o=i.find(hD);if(o&&o!==Jne(i))throw new t.vHH(4004,false)}return(0,U.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function sre(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new are(!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 cl(a.outlets,function(u,d){l[d]="string"==typeof u?u.split("/"):u}),[].concat((0,cn.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,cn.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,cn.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,cn.Z)(o),[a])},[]);return new are(e,r,i)}var Qw=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function lre(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 Qw(i,!1,o-a)}function vG(n,r,e){if(n||(n=new vi([],{})),0===n.segments.length&&n.hasChildren())return mD(n,r,e);var i=function $Ee(n,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<n.segments.length;){if(i>=e.length)return a;var s=n.segments[o],l=e[i];if(hD(l))break;var u="".concat(l),d=i<e.length-1?e[i+1]:null;if(o>0&&void 0===u)break;if(u&&d&&"object"==typeof d&&void 0===d.outlets){if(!cre(u,d,s))return a;i+=2}else{if(!cre(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.pathIndex<n.segments.length){var a=new vi(n.segments.slice(0,i.pathIndex),{});return a.children[hi]=new vi(n.segments.slice(i.pathIndex),n.children),mD(a,0,o)}return i.match&&0===o.length?new vi(n.segments,{}):i.match&&!n.hasChildren()?yG(n,r,e):i.match?mD(n,0,o):yG(n,r,e)}function mD(n,r,e){if(0===e.length)return new vi(n.segments,{});var i=function XEe(n){return hD(n[0])?n[0].outlets:(0,Yw.Z)({},hi,n)}(e),o={};return cl(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=vG(n.children[s],r,a))}),cl(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new vi(n.segments,o)}function yG(n,r,e){for(var i=n.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(hD(a)){var s=exe(a.outlets);return new vi(i,s)}if(0===o&&pD(e[0])){var l=n.segments[r];i.push(new dD(l.path,ure(e[0]))),o++}else{var u=hD(a)?a.outlets[hi]:"".concat(a),d=o<e.length-1?e[o+1]:null;u&&d&&pD(d)?(i.push(new dD(u,ure(d))),o+=2):(i.push(new dD(u,{})),o++)}}return new vi(i,{})}function exe(n){var r={};return cl(n,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=yG(new vi([],{}),0,e))}),r}function ure(n){var r={};return cl(n,function(e,i){return r[i]="".concat(e)}),r}function cre(n,r,e){return n==e.path&&Sp(r,e.parameters)}var cm=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.id=r,this.url=e}),lB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,B.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),Jd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(cm),_D=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),bG=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(cm),txe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,U.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}(cm),nxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,U.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}(cm),rxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,U.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}(cm),ixe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,U.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}(cm),oxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,U.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}(cm),axe=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.type=9}return(0,U.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),sxe=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.type=10}return(0,U.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),lxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=11}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),uxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=12}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),cxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=13}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),dxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=14}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),dre=function(){function n(r,e,i){(0,B.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,U.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 fre=function(){function n(r){(0,B.Z)(this,n),this._root=r}return(0,U.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=CG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=CG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=wG(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 wG(e,this._root).map(function(i){return i.value})}}]),n}();function CG(n,r){if(n===r.value)return r;var i,e=(0,An.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=CG(n,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function wG(n,r){if(n===r.value)return[r];var i,e=(0,An.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=wG(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var dm=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.children=e}return(0,U.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function Xw(n){var r={};return n&&n.children.forEach(function(e){return r[e.value.outlet]=e}),r}var pre=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,i)).snapshot=o,kG((0,lD.Z)(a),i),a}return(0,U.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(fre);function hre(n,r){var e=function pxe(n,r){var s=new uB([],{},{},"",{},hi,r,null,n.root,-1,{});return new _re("",new dm(s,[]))}(n,r),i=new Wi.X([new dD("",{})]),o=new Wi.X({}),a=new Wi.X({}),s=new Wi.X({}),l=new Wi.X(""),u=new fr(i,o,s,l,a,hi,r,e.root);return u.snapshot=e.root,new pre(new dm(u,[]),e)}var fr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,B.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[cD]})))&&void 0!==h?h:(0,qn.of)(void 0),this._futureSnapshot=u}return(0,U.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 Kw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$n.U)(function(e){return Kw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function mre(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 hxe(e.slice(i))}function hxe(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 uB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){var L;(0,B.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===(L=this.data)||void 0===L?void 0:L[cD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=y?y:h,this._resolve=g}return(0,U.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=Kw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Kw(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}(),_re=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,o)).url=i,kG((0,lD.Z)(a),o),a}return(0,U.Z)(e,[{key:"toString",value:function(){return gre(this._root)}}]),e}(fre);function kG(n,r){r.value._routerState=n,r.children.forEach(function(e){return kG(n,e)})}function gre(n){var r=n.children.length>0?" { ".concat(n.children.map(gre).join(", ")," } "):"";return"".concat(n.value).concat(r)}function TG(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 DEe(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;++e)if(!Sp(n[e],r[e]))return!1;return!0}(r.url,e.url)||n.url.next(e.url),Sp(r.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function MG(n,r){var e=Sp(n.params,r.params)&&function REe(n,r){return L0(n,r)&&n.every(function(e,i){return Sp(e.parameters,r[i].parameters)})}(n.url,r.url),i=!n.parent!=!r.parent;return e&&!i&&(!n.parent||MG(n.parent,r.parent))}function gD(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function _xe(n,r,e){return r.children.map(function(i){var a,o=(0,An.Z)(e.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(n.shouldReuseRoute(i.value,s.value.snapshot))return gD(n,i,s)}}catch(l){o.e(l)}finally{o.f()}return gD(n,i)})}(n,r,e);return new dm(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(function(d){return gD(n,d)}),s}}var l=function gxe(n){return new fr(new Wi.X(n.url),new Wi.X(n.params),new Wi.X(n.queryParams),new Wi.X(n.fragment),new Wi.X(n.data),n.outlet,n.component,n)}(r.value),u=r.children.map(function(d){return gD(n,d)});return new dm(l,u)}var SG="ngNavigationCancelingError";function vre(n,r){var e=Z0(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=e.redirectTo,o=e.navigationBehaviorOptions,a=yre(!1,0,r);return a.url=i,a.navigationBehaviorOptions=o,a}function yre(n,r,e){var i=new Error("NavigationCancelingError: "+(n||""));return i[SG]=!0,i.cancellationCode=r,e&&(i.url=e),i}function bre(n){return Cre(n)&&Z0(n.url)}function Cre(n){return n&&n[SG]}var vxe=(0,U.Z)(function n(){(0,B.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ep,this.attachRef=null}),Ep=function(){function n(){(0,B.Z)(this,n),this.contexts=new Map}return(0,U.Z)(n,[{key:"onChildOutletCreated",value:function(e,i){var o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}},{key:"onChildOutletDestroyed",value:function(e){var i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var i=this.getContext(e);return i||(i=new vxe,this.contexts.set(e,i)),i}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),n}();Ep.\u0275fac=function(r){return new(r||Ep)},Ep.\u0275prov=t.Yz7({token:Ep,factory:Ep.\u0275fac,providedIn:"root"});var cB=!1,fm=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.parentContexts=r,this.location=e,this.changeDetector=o,this.environmentInjector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=i||hi,r.onChildOutletCreated(this.name,this)}return(0,U.Z)(n,[{key:"ngOnDestroy",value:function(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new t.vHH(4012,cB);return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new t.vHH(4012,cB);return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new t.vHH(4012,cB);this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}},{key:"attach",value:function(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,i){if(this.isActivated)throw new t.vHH(4013,cB);this._activatedRoute=e;var o=this.location,s=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new yxe(e,l,o.injector);if(i&&function bxe(n){return!!n.resolveComponentFactory}(i)){var d=i.resolveComponentFactory(s);this.activated=o.createComponent(d,o.length,u)}else{var h=null!=i?i:this.environmentInjector;this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:h})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),n}();fm.\u0275fac=function(r){return new(r||fm)(t.Y36(Ep),t.Y36(t.s_b),t.$8M("name"),t.Y36(t.sBO),t.Y36(t.lqb))},fm.\u0275dir=t.lG2({type:fm,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0});var yxe=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.childContexts=e,this.parent=i}return(0,U.Z)(n,[{key:"get",value:function(e,i){return e===fr?this.route:e===Ep?this.childContexts:this.parent.get(e,i)}}]),n}();var N0=(0,U.Z)(function n(){(0,B.Z)(this,n)});function wre(n,r){var e;return n.providers&&!n._injector&&(n._injector=(0,t.MMx)(n.providers,r,"Route: ".concat(n.path))),null!==(e=n._injector)&&void 0!==e?e:r}function xG(n){var r=n.children&&n.children.map(xG),e=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==hi&&(e.component=N0),e}function td(n){return n.outlet||hi}function kre(n,r){var e=n.filter(function(i){return td(i)===r});return e.push.apply(e,(0,cn.Z)(n.filter(function(i){return td(i)!==r}))),e}function vD(n){var r;if(!n)return null;if(null!==(r=n.routeConfig)&&void 0!==r&&r._injector)return n.routeConfig._injector;for(var e=n.parent;e;e=e.parent){var i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}N0.\u0275fac=function(r){return new(r||N0)},N0.\u0275cmp=t.Xpm({type:N0,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"router-outlet")},dependencies:[fm],encapsulation:2});var Mxe=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,U.Z)(n,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),TG(this.futureState.root),this.activateChildRoutes(i,o,e)}},{key:"deactivateChildRoutes",value:function(e,i,o){var a=this,s=Xw(i);e.children.forEach(function(l){var u=l.value.outlet;a.deactivateRoutes(l,s[u],o),delete s[u]}),cl(s,function(l,u){a.deactivateRouteAndItsChildren(l,o)})}},{key:"deactivateRoutes",value:function(e,i,o){var a=e.value,s=i?i.value:null;if(a===s)if(a.component){var l=o.getContext(a.outlet);l&&this.deactivateChildRoutes(e,i,l.children)}else this.deactivateChildRoutes(e,i,o);else s&&this.deactivateRouteAndItsChildren(i,o)}},{key:"deactivateRouteAndItsChildren",value:function(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}},{key:"detachAndStoreRouteSubtree",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Xw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}if(o&&o.outlet){var h=o.outlet.detach(),g=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:g})}}},{key:"deactivateRouteAndOutlet",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Xw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}},{key:"activateChildRoutes",value:function(e,i,o){var a=this,s=Xw(i);e.children.forEach(function(l){a.activateRoutes(l,s[l.value.outlet],o),a.forwardEvent(new dxe(l.value.snapshot))}),e.children.length&&this.forwardEvent(new uxe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a,s=e.value,l=i?i.value:null;if(TG(s),s===l)if(s.component){var u=o.getOrCreateContext(s.outlet);this.activateChildRoutes(e,i,u.children)}else this.activateChildRoutes(e,i,o);else if(s.component){var d=o.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){var h=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(h.contexts),d.attachRef=h.componentRef,d.route=h.route.value,d.outlet&&d.outlet.attach(h.componentRef,h.route.value),TG(h.route.value),this.activateChildRoutes(e,null,d.children)}else{var g=vD(s.snapshot),y=null!==(a=null==g?void 0:g.get(t._Vd))&&void 0!==a?a:null;d.attachRef=null,d.route=s,d.resolver=y,d.injector=g,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(e,null,d.children)}}else this.activateChildRoutes(e,null,o)}}]),n}(),Tre=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]}),dB=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.component=r,this.route=e});function Sxe(n,r,e){var i=n._root;return yD(i,r?r._root:null,e,[i.value])}function $w(n,r){var e=Symbol(),i=r.get(n,e);return i===e?"function"!=typeof n||(0,t.Z0I)(n)?r.get(n):n:i}function yD(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Xw(r);return n.children.forEach(function(s){xxe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),cl(a,function(s,l){return bD(s,e.getContext(l),o)}),o}function xxe(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=Dxe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Tre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?yD(n,r,l?l.children:null,i,o):yD(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new dB(l.outlet.component,s))}else s&&bD(r,l,o),o.canActivateChecks.push(new Tre(i)),a.component?yD(n,null,l?l.children:null,i,o):yD(n,null,e,i,o);return o}function Dxe(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!L0(n.url,r.url);case"pathParamsOrQueryParamsChange":return!L0(n.url,r.url)||!Sp(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!MG(n,r)||!Sp(n.queryParams,r.queryParams);default:return!MG(n,r)}}function bD(n,r,e){var i=Xw(n),o=n.value;cl(i,function(a,s){o.component?bD(a,r?r.children.getContext(s):null,e):bD(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new dB(r.outlet.component,o)):e.canDeactivateChecks.push(new dB(null,o))}function CD(n){return"function"==typeof n}function DG(n){return n instanceof kEe.K||"EmptyError"===(null==n?void 0:n.name)}var fB=Symbol("INITIAL_VALUE");function ek(){return(0,Po.w)(function(n){return(0,Y1.aj)(n.map(function(r){return r.pipe((0,Ri.q)(1),(0,Oo.O)(fB))})).pipe((0,$n.U)(function(r){var i,e=(0,An.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;if(!0!==o){if(o===fB)return fB;if(!1===o||o instanceof R0)return o}}}catch(a){e.e(a)}finally{e.f()}return!0}),(0,$r.h)(function(r){return r!==fB}),(0,Ri.q)(1))})}function Nxe(n,r){return(0,_s.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 Bxe(n,r,e,i){return(0,hs.D)(n).pipe((0,_s.zg)(function(o){return function zxe(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=vD(r))&&void 0!==u?u:o,h=$w(l,d);return Dg(function Rxe(n){return n&&CD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,xg.P)())});return(0,qn.of)(s).pipe(ek())}(o.component,o.route,e,r,i)}),(0,xg.P)(function(o){return!0!==o},!0))}(l,i,o,n).pipe((0,_s.zg)(function(u){return u&&function Axe(n){return"boolean"==typeof n}(u)?function Fxe(n,r,e,i){return(0,hs.D)(r).pipe((0,I0.b)(function(o){return(0,TEe.z)(function jxe(n,r){return null!==n&&r&&r(new lxe(n)),(0,qn.of)(!0)}(o.route.parent,i),function Uxe(n,r){return null!==n&&r&&r(new cxe(n)),(0,qn.of)(!0)}(o.route,i),function Gxe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Exe(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,uD.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=vD(s.node))&&void 0!==d?d:e,g=$w(u,h);return Dg(function Ixe(n){return n&&CD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,xg.P)())});return(0,qn.of)(l).pipe(ek())})});return(0,qn.of)(a).pipe(ek())}(n,o.path,e),function Hxe(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,uD.P)(function(){var s,l=null!==(s=vD(r))&&void 0!==s?s:e,u=$w(a,l);return Dg(function Pxe(n){return n&&CD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,xg.P)())})});return(0,qn.of)(o).pipe(ek())}(n,o.route,e))}),(0,xg.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 Wxe(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=$w(s,n);return Dg(function Oxe(n){return n&&CD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(ek(),Mre(i))}function Mre(n){return(0,MEe.z)((0,aa.b)(function(r){if(Z0(r))throw vre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function Vxe(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=$w(s,n);return Dg(function Lxe(n){return n&&CD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(ek(),Mre())}var AG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Sre(n,r,e,i,o){var a=OG(n,r,e);return a.matched?Vxe(i=wre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},AG)})):(0,qn.of)(a)}function OG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},AG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||xEe)(e,n,r);if(!a)return Object.assign({},AG);var s={};cl(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 pB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&qxe(n,e,i)){var a=new vi(r,Kxe(n,r,i,new vi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Jxe(n,e,i)){var s=new vi(n.segments,Yxe(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new vi(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Yxe(n,r,e,i,o,a){var u,s={},l=(0,An.Z)(i);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(hB(n,e,d)&&!o[td(d)]){var h=new vi([],{});h._sourceSegment=n,h._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[td(d)]=h}}}catch(g){l.e(g)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function Kxe(n,r,e,i){var o={};o[hi]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,An.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&td(l)!==hi){var u=new vi([],{});u._sourceSegment=n,u._segmentIndexShift=r.length,o[td(l)]=u}}}catch(d){a.e(d)}finally{a.f()}return o}function qxe(n,r,e){return e.some(function(i){return hB(n,r,i)&&td(i)!==hi})}function Jxe(n,r,e){return e.some(function(i){return hB(n,r,i)})}function hB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Ere(n,r,e,i){return!!(td(n)===i||i!==hi&&hB(r,e,n))&&("**"===n.path||OG(r,n,e).matched)}function xre(n,r,e){return 0===r.length&&!n.children[e]}var mB=!1,_B=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.segmentGroup=r||null}),Dre=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.urlTree=r});function wD(n){return(0,O0._)(new _B(n))}function Are(n){return(0,O0._)(new Dre(n))}var eDe=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,U.Z)(n,[{key:"apply",value:function(){var e=this,i=pB(this.urlTree.root,[],[],this.config).segmentGroup,o=new vi(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,o,hi).pipe((0,$n.U)(function(l){return e.createUrlTree(sB(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,ed.K)(function(l){if(l instanceof Dre)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof _B?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.injector,this.config,e.root,hi).pipe((0,$n.U)(function(s){return i.createUrlTree(sB(s),e.queryParams,e.fragment)})).pipe((0,ed.K)(function(s){throw s instanceof _B?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,mB)}},{key:"createUrlTree",value:function(e,i,o){var a=_G(e);return new R0(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 vi([],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);l<u.length;l++){var d=u[l];"primary"===d?s.unshift(d):s.push(d)}return(0,hs.D)(s).pipe((0,I0.b)(function(h){var g=o.children[h],y=kre(i,h);return a.expandSegmentGroup(e,y,g,h).pipe((0,$n.U)(function(L){return{segment:L,outlet:h}}))}),(0,zne.R)(function(h,g){return h[g.outlet]=g.segment,h},{}),(0,Wne.Z)())}},{key:"expandSegment",value:function(e,i,o,a,s,l){var u=this;return(0,hs.D)(o).pipe((0,I0.b)(function(d){return u.expandSegmentAgainstRoute(e,i,o,d,a,s,l).pipe((0,ed.K)(function(g){if(g instanceof _B)return(0,qn.of)(null);throw g}))}),(0,xg.P)(function(d){return!!d}),(0,ed.K)(function(d,h){if(DG(d))return xre(i,a,s)?(0,qn.of)(new vi([],{})):wD(i);throw d}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return Ere(a,i,s,l)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(e,i,a,s,l):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,i,o,a,s,l):wD(i):wD(i)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,o,a,l):this.expandRegularSegmentAgainstRouteUsingRedirect(e,i,o,a,s,l)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,i,o,a){var s=this,l=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?Are(l):this.lineralizeSegments(o,l).pipe((0,_s.zg)(function(u){var d=new vi(u,{});return s.expandSegment(e,d,i,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){var u=this,d=OG(i,a,s),h=d.matched,g=d.consumedSegments,y=d.remainingSegments,L=d.positionalParamSegments;if(!h)return wD(i);var z=this.applyRedirectCommands(g,a.redirectTo,L);return a.redirectTo.startsWith("/")?Are(z):this.lineralizeSegments(a,z).pipe((0,_s.zg)(function(q){return u.expandSegment(e,i,o,q.concat(y),l,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,i,o,a,s){var l=this;return"**"===o.path?(e=wre(o,e),o.loadChildren?(o._loadedRoutes?(0,qn.of)({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(e,o)).pipe((0,$n.U)(function(d){return o._loadedRoutes=d.routes,o._loadedInjector=d.injector,new vi(a,{})})):(0,qn.of)(new vi(a,{}))):Sre(i,o,a,e,this.urlSerializer).pipe((0,Po.w)(function(d){var L,h=d.matched,g=d.consumedSegments,y=d.remainingSegments;return h?(e=null!==(L=o._injector)&&void 0!==L?L:e,l.getChildConfig(e,o,a).pipe((0,_s.zg)(function(q){var re,ae=null!==(re=q.injector)&&void 0!==re?re:e,Se=q.routes,Ce=pB(i,g,y,Se),Ee=Ce.segmentGroup,Ke=Ce.slicedSegments,st=new vi(Ee.segments,Ee.children);if(0===Ke.length&&st.hasChildren())return l.expandChildren(ae,Se,st).pipe((0,$n.U)(function(bt){return new vi(g,bt)}));if(0===Se.length&&0===Ke.length)return(0,qn.of)(new vi(g,{}));var it=td(o)===s;return l.expandSegment(ae,st,Se,Ke,it?hi:s,!0).pipe((0,$n.U)(function(bt){return new vi(g.concat(bt.segments),bt.children)}))}))):wD(i)}))}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,qn.of)({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector}):Wxe(e,i,o,this.urlSerializer).pipe((0,_s.zg)(function(s){return s?a.configLoader.loadChildren(e,i).pipe((0,aa.b)(function(l){i._loadedRoutes=l.routes,i._loadedInjector=l.injector})):function Xxe(n){return(0,O0._)(yre(mB,3))}()})):(0,qn.of)({routes:[],injector:e})}},{key:"lineralizeSegments",value:function(e,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,qn.of)(o);if(a.numberOfChildren>1||!a.children[hi])return e.redirectTo,(0,O0._)(new t.vHH(4e3,mB));a=a.children[hi]}}},{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 R0(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return cl(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 cl(i.children,function(d,h){u[h]=s.createSegmentGroup(e,d,o,a)}),new vi(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,mB);return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,An.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 tDe(n,r,e,i){return(0,Po.w)(function(o){return function $xe(n,r,e,i,o){return new eDe(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 nDe=(0,U.Z)(function n(){(0,B.Z)(this,n)});function rDe(n){return new oo.y(function(r){return r.error(n)})}var oDe=function(){function n(r,e,i,o,a,s,l,u){(0,B.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,U.Z)(n,[{key:"recognize",value:function(){var e=this,i=pB(this.urlTree.root,[],[],this.config.filter(function(o){return void 0===o.redirectTo}),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,hi).pipe((0,$n.U)(function(o){if(null===o)return null;var a=new uB([],Object.freeze({}),Object.freeze(Object.assign({},e.urlTree.queryParams)),e.urlTree.fragment,{},hi,e.rootComponentType,null,e.urlTree.root,-1,{}),s=new dm(a,o),l=new _re(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=mre(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,hs.D)(Object.keys(o.children)).pipe((0,I0.b)(function(s){var l=o.children[s],u=kre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,zne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,cn.Z)(l)),s):null}),(0,SEe.o)(function(s){return null!==s}),(0,Vne.d)(null),(0,Wne.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Ore(s);return function aDe(n){n.sort(function(r,e){return r.value.outlet===hi?-1:e.value.outlet===hi?1:r.value.outlet.localeCompare(e.value.outlet)})}(l),l}))}},{key:"processSegment",value:function(e,i,o,a,s){var l=this;return(0,hs.D)(i).pipe((0,I0.b)(function(u){var d;return l.processSegmentAgainstRoute(null!==(d=u._injector)&&void 0!==d?d:e,u,o,a,s)}),(0,xg.P)(function(u){return!!u}),(0,ed.K)(function(u){if(DG(u))return xre(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||!Ere(i,o,a,s))return(0,qn.of)(null);if("**"===i.path){var g=a.length>0?Jne(a).parameters:{},y=Ire(o)+a.length,L=new uB(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lre(i),td(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Pre(o),y,Zre(i),y);h=(0,qn.of)({snapshot:L,consumedSegments:[],remainingSegments:[]})}else h=Sre(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 Ke=Ire(o)+re.length;return{snapshot:new uB(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Lre(i),td(i),null!==(Ee=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==Ee?Ee:null,i,Pre(o),Ke,Zre(i),Ke),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,Po.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,Ke=function sDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),st=pB(o,Se,Ce,Ke.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),De=st.segmentGroup,it=st.slicedSegments;if(0===it.length&&De.hasChildren())return l.processChildren(Ee,Ke,De).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}));if(0===Ke.length&&0===it.length)return(0,qn.of)([new dm(ae,[])]);var ft=td(i)===s;return l.processSegment(Ee,Ke,De,it,ft?hi:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}))}))}}]),n}();function Ore(n){var o,r=[],e=new Set,i=(0,An.Z)(n);try{var a=function(){var g=o.value;if(!function lDe(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(g))return r.push(g),1;var L,y=r.find(function(z){return g.value.routeConfig===z.value.routeConfig});void 0!==y?((L=y.children).push.apply(L,(0,cn.Z)(g.children)),e.add(y)):r.push(g)};for(i.s();!(o=i.n()).done;)a()}catch(h){i.e(h)}finally{i.f()}var l,s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=Ore(u.children);r.push(new dm(u.value,d))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!e.has(h)})}function Pre(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function Ire(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 Lre(n){return n.data||{}}function Zre(n){return n.resolve||{}}function cDe(n,r,e,i,o,a){return(0,_s.zg)(function(s){return function iDe(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 oDe(n,r,e,i,o,s,l,a).recognize().pipe((0,Po.w)(function(u){return null===u?rDe(new nDe):(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 dDe(n,r){return(0,_s.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,qn.of)(e);var a=0;return(0,hs.D)(o).pipe((0,I0.b)(function(s){return function fDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Nre(o)&&(a[cD]=o.title),function pDe(n,r,e,i){var o=function hDe(n){return[].concat((0,cn.Z)(Object.keys(n)),(0,cn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,qn.of)({});var a={};return(0,hs.D)(o).pipe((0,_s.zg)(function(s){return function mDe(n,r,e,i){var o,a=null!==(o=vD(r))&&void 0!==o?o:i,s=$w(n,a);return Dg(s.resolve?s.resolve(r,e):a.runInContext(function(){return s(r,e)}))}(n[s],r,e,i).pipe((0,xg.P)(),(0,aa.b)(function(l){a[s]=l}))}),(0,h7.h)(1),(0,x1.h)(a),(0,ed.K)(function(s){return DG(s)?P0.E:(0,O0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=mre(n,e).resolve,o&&Nre(o)&&(n.data[cD]=o.title),null}))}(s.route,i,n,r)}),(0,aa.b)(function(){return a++}),(0,h7.h)(1),(0,_s.zg)(function(s){return a===o.length?(0,qn.of)(e):P0.E}))})}function Nre(n){return"string"==typeof n.title||null===n.title}function PG(n){return(0,Po.w)(function(r){var e=n(r);return e?(0,hs.D)(e).pipe((0,$n.U)(function(){return r})):(0,qn.of)(r)})}var tk=function(){function n(){(0,B.Z)(this,n)}return(0,U.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===hi});return o}},{key:"getResolvedTitleForRoute",value:function(e){return e.data[cD]}}]),n}();tk.\u0275fac=function(r){return new(r||tk)},tk.\u0275prov=t.Yz7({token:tk,factory:function(){return(0,t.f3M)(B0)},providedIn:"root"});var B0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).title=i,o}return(0,U.Z)(e,[{key:"updateTitle",value:function(o){var a=this.buildTitle(o);void 0!==a&&this.title.setTitle(a)}}]),e}(tk);B0.\u0275fac=function(r){return new(r||B0)(t.LFG(ni))},B0.\u0275prov=t.Yz7({token:B0,factory:B0.\u0275fac,providedIn:"root"});var _De=(0,U.Z)(function n(){(0,B.Z)(this,n)}),gDe=function(){function n(){(0,B.Z)(this,n)}return(0,U.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}(),vDe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(gDe),vB=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),IG=new t.OlP("ROUTES"),Ag=function(){function n(r,e){(0,B.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,U.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=Dg(e.loadComponent()).pipe((0,aa.b)(function(s){i.onLoadEndListener&&i.onLoadEndListener(e),e._loadedComponent=s}),(0,eB.x)(function(){i.componentLoaders.delete(e)})),a=new Gne.c(o,function(){return new On.xQ}).pipe((0,Yne.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=qne((d=u.create(e).injector).get(IG,[],t.XFs.Self|t.XFs.Optional));var y=h.map(xG);return{routes:y,injector:d}}),(0,eB.x)(function(){o.childrenLoaders.delete(i)})),l=new Gne.c(s,function(){return new On.xQ}).pipe((0,Yne.x)());return this.childrenLoaders.set(i,l),l}},{key:"loadModuleFactoryOrRoutes",value:function(e){var i=this;return Dg(e()).pipe((0,_s.zg)(function(o){return o instanceof t.YKP||Array.isArray(o)?(0,qn.of)(o):(0,hs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}();Ag.\u0275fac=function(r){return new(r||Ag)(t.LFG(t.zs3),t.LFG(t.Sil))},Ag.\u0275prov=t.Yz7({token:Ag,factory:Ag.\u0275fac,providedIn:"root"});var bDe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),CDe=function(){function n(){(0,B.Z)(this,n)}return(0,U.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}(),yB=!1;function wDe(n){throw n}function kDe(n,r,e){return r.parse("/")}var TDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},MDe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Fre(){var n,r,e=(0,t.f3M)(qw),i=(0,t.f3M)(Ep),o=(0,t.f3M)(se.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(IG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(vB,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(B0),h=(0,t.f3M)(tk,{optional:!0}),g=(0,t.f3M)(bDe,{optional:!0}),y=(0,t.f3M)(_De,{optional:!0}),L=new ur(null,e,i,o,a,s,qne(l));return g&&(L.urlHandlingStrategy=g),y&&(L.routeReuseStrategy=y),L.titleStrategy=null!=h?h:d,function SDe(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,L),L}var ur=function(){function n(r,e,i,o,a,s,l){var u=this;(0,B.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 On.xQ,this.errorHandler=wDe,this.malformedUriErrorHandler=kDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,qn.of)(void 0)},this.urlHandlingStrategy=new CDe,this.routeReuseStrategy=new vDe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Ag),this.configLoader.onLoadEndListener=function(L){return u.triggerEvent(new sxe(L))},this.configLoader.onLoadStartListener=function(L){return u.triggerEvent(new axe(L))},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 AEe(){return new R0(new vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=hre(this.currentUrlTree,this.rootComponentType),this.transitions=new Wi.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,U.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,$r.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,Po.w)(function(a){var s=!1,l=!1;return(0,qn.of)(a).pipe((0,aa.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,Po.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 Ure(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,qn.of)(u).pipe((0,Po.w)(function(Ee){var Ke=i.transitions.getValue();return o.next(new lB(Ee.id,i.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),Ke!==i.transitions.getValue()?P0.E:Promise.resolve(Ee)}),tDe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,aa.b)(function(Ee){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Ee.urlAfterRedirects}),a.urlAfterRedirects=Ee.urlAfterRedirects}),cDe(i.ngModule.injector,i.rootComponentType,i.config,i.urlSerializer,i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,aa.b)(function(Ee){if(a.targetSnapshot=Ee.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var Ke=i.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);i.setBrowserUrl(Ke,Ee)}i.browserUrlTree=Ee.urlAfterRedirects}var st=new txe(Ee.id,i.serializeUrl(Ee.extractedUrl),i.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);o.next(st)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var L=u.id,z=u.extractedUrl,q=u.source,re=u.restoredState,ae=u.extras,Se=new lB(L,i.serializeUrl(z),q,re);o.next(Se);var Ce=hre(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),P0.E}),(0,aa.b)(function(u){var d=new nxe(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:Sxe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Nxe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,aa.b)(function(u){if(a.guardsResult=u.guardsResult,Z0(u.guardsResult))throw vre(i.urlSerializer,u.guardsResult);var d=new rxe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(d)}),(0,$r.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,"",3),!1)}),PG(function(u){if(u.guards.canActivateChecks.length)return(0,qn.of)(u).pipe((0,aa.b)(function(d){var h=new ixe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}),(0,Po.w)(function(d){var h=!1;return(0,qn.of)(d).pipe(dDe(i.paramsInheritanceStrategy,i.ngModule.injector),(0,aa.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(d),i.cancelNavigationTransition(d,"",2))}}))}),(0,aa.b)(function(d){var h=new oxe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),PG(function(u){return(0,Y1.aj)(function h(g){var y,L=[];(null===(y=g.routeConfig)||void 0===y?void 0:y.loadComponent)&&!g.routeConfig._loadedComponent&&L.push(i.configLoader.loadComponent(g.routeConfig).pipe((0,aa.b)(function(ae){g.component=ae}),(0,$n.U)(function(){})));var q,z=(0,An.Z)(g.children);try{for(z.s();!(q=z.n()).done;){var re=q.value;L.push.apply(L,(0,cn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return L}(u.targetSnapshot.root)).pipe((0,Vne.d)(),(0,Ri.q)(1))}),PG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function mxe(n,r,e){var i=gD(n,r._root,e?e._root:void 0);return new pre(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return a=Object.assign(Object.assign({},u),{targetRouterState:d})}),(0,aa.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 Mxe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,aa.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,eB.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,ed.K)(function(u){var d;if(l=!0,Cre(u)){bre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new _D(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),bre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),y={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Ure(a.source)};i.scheduleNavigation(g,"imperative",null,y,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{i.restoreHistory(a,!0);var L=new bG(a.id,i.serializeUrl(a.extractedUrl),u,null!==(d=a.targetSnapshot)&&void 0!==d?d:void 0);o.next(L);try{a.resolve(i.errorHandler(u))}catch(z){a.reject(z)}}return P0.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(xG),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)),qEe(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=Z0(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 EDe(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({},TDe):!1===i?Object.assign({},MDe):i,Z0(e))return Xne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return Xne(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 Jd(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 L,y=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),L=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):L=0;return this.setTransition({id:y,targetPageId:L,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 _D(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 EDe(n){for(var r=0;r<n.length;r++){var e=n[r];if(null==e)throw new t.vHH(4008,yB)}}function Ure(n){return"imperative"!==n}ur.\u0275fac=function(r){t.$Z()},ur.\u0275prov=t.Yz7({token:ur,factory:function(){return Fre()},providedIn:"root"});var Wo=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.router=r,this.route=e,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new On.xQ,this.setTabIndexIfNotOnNativeEl("0")}return(0,U.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"setTabIndexIfNotOnNativeEl",value:function(e){if(null==this.tabIndexAttribute){var i=this.renderer,o=this.el.nativeElement;null!==e?i.setAttribute(o,"tabindex",e):i.removeAttribute(o,"tabindex")}}},{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}},{key:"onClick",value:function(){if(null===this.urlTree)return!0;var e={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();Wo.\u0275fac=function(r){return new(r||Wo)(t.Y36(ur),t.Y36(fr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Wo.\u0275dir=t.lG2({type:Wo,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var Gs=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.router=r,this.route=e,this.locationStrategy=i,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new On.xQ,this.subscription=r.events.subscribe(function(a){a instanceof Jd&&o.updateTargetUrlAndHref()})}return(0,U.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,i,o,a,s){if(0!==e||i||o||a||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;var l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();Gs.\u0275fac=function(r){return new(r||Gs)(t.Y36(ur),t.Y36(fr),t.Y36(se.S$))},Gs.\u0275dir=t.lG2({type:Gs,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&r&&t.uIk("target",e.target)("href",e.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var nk=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this.router=r,this.element=e,this.renderer=i,this.cdr=o,this.link=a,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=r.events.subscribe(function(u){u instanceof Jd&&l.update()})}return(0,U.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;(0,qn.of)(this.links.changes,this.linksWithHrefs.changes,(0,qn.of)(null)).pipe((0,tB.J)()).subscribe(function(i){e.update(),e.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var i,e=this;null===(i=this.linkInputChangesSubscription)||void 0===i||i.unsubscribe();var o=[].concat((0,cn.Z)(this.links.toArray()),(0,cn.Z)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(a){return!!a}).map(function(a){return a.onChanges});this.linkInputChangesSubscription=(0,hs.D)(o).pipe((0,tB.J)()).subscribe(function(a){e.isActive!==e.isLinkActive(e.router)(a)&&e.update()})}},{key:"routerLinkActive",set:function(e){var i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(function(o){return!!o})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(function(){var i=e.hasActiveLinks();e.isActive!==i&&(e.isActive=i,e.cdr.markForCheck(),e.classes.forEach(function(o){i?e.renderer.addClass(e.element.nativeElement,o):e.renderer.removeClass(e.element.nativeElement,o)}),i&&void 0!==e.ariaCurrentWhenActive?e.renderer.setAttribute(e.element.nativeElement,"aria-current",e.ariaCurrentWhenActive.toString()):e.renderer.removeAttribute(e.element.nativeElement,"aria-current"),e.isActiveChange.emit(i))})}},{key:"isLinkActive",value:function(e){var i=function xDe(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(o){return!!o.urlTree&&e.isActive(o.urlTree,i)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}]),n}();nk.\u0275fac=function(r){return new(r||nk)(t.Y36(ur),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Wo,8),t.Y36(Gs,8))},nk.\u0275dir=t.lG2({type:nk,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Wo,5),t.Suo(i,Gs,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.links=o),t.iGM(o=t.CRH())&&(e.linksWithHrefs=o))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]});var jre=(0,U.Z)(function n(){(0,B.Z)(this,n)}),kD=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"preload",value:function(e,i){return i().pipe((0,ed.K)(function(){return(0,qn.of)(null)}))}}]),n}();kD.\u0275fac=function(r){return new(r||kD)},kD.\u0275prov=t.Yz7({token:kD,factory:kD.\u0275fac,providedIn:"root"});var TD=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"preload",value:function(e,i){return(0,qn.of)(null)}}]),n}();TD.\u0275fac=function(r){return new(r||TD)},TD.\u0275prov=t.Yz7({token:TD,factory:TD.\u0275fac,providedIn:"root"});var rk=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.router=r,this.injector=i,this.preloadingStrategy=o,this.loader=a}return(0,U.Z)(n,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,$r.h)(function(i){return i instanceof Jd}),(0,I0.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){return this.processRoutes(this.injector,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,i){var o,a,s,d,l=[],u=(0,An.Z)(i);try{for(u.s();!(d=u.n()).done;){var h=d.value;h.providers&&!h._injector&&(h._injector=(0,t.MMx)(h.providers,e,"Route: ".concat(h.path)));var g=null!==(o=h._injector)&&void 0!==o?o:e,y=null!==(a=h._loadedInjector)&&void 0!==a?a:g;h.loadChildren&&!h._loadedRoutes&&void 0===h.canLoad||h.loadComponent&&!h._loadedComponent?l.push(this.preloadConfig(g,h)):(h.children||h._loadedRoutes)&&l.push(this.processRoutes(y,null!==(s=h.children)&&void 0!==s?s:h._loadedRoutes))}}catch(L){u.e(L)}finally{u.f()}return(0,hs.D)(l).pipe((0,tB.J)())}},{key:"preloadConfig",value:function(e,i){var o=this;return this.preloadingStrategy.preload(i,function(){var s=(i.loadChildren&&void 0===i.canLoad?o.loader.loadChildren(e,i):(0,qn.of)(null)).pipe((0,_s.zg)(function(u){var d;return null===u?(0,qn.of)(void 0):(i._loadedRoutes=u.routes,i._loadedInjector=u.injector,o.processRoutes(null!==(d=u.injector)&&void 0!==d?d:e,u.routes))}));if(i.loadComponent&&!i._loadedComponent){var l=o.loader.loadComponent(i);return(0,hs.D)([s,l]).pipe((0,tB.J)())}return s})}}]),n}();rk.\u0275fac=function(r){return new(r||rk)(t.LFG(ur),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(jre),t.LFG(Ag))},rk.\u0275prov=t.Yz7({token:rk,factory:rk.\u0275fac,providedIn:"root"});var RG=new t.OlP(""),ik=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,B.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,U.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 lB?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Jd&&(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 dre&&(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 dre(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}();ik.\u0275fac=function(r){t.$Z()},ik.\u0275prov=t.Yz7({token:ik,factory:ik.\u0275fac});function Hre(n){return n.routerState.root}function ok(n,r){return{"\u0275kind":n,"\u0275providers":r}}function LG(n){return[{provide:IG,multi:!0,useValue:n}]}function Gre(){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(zre);1===n.get(ZG)&&a.initialNavigation(),null===(e=n.get(Wre,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(RG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var zre=new t.OlP("",{factory:function(){return new On.xQ}}),ZG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function DDe(){return ok(2,[{provide:ZG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(se.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(ur),u=e.get(zre);(function a(s){e.get(ur).events.pipe((0,$r.h)(function(u){return u instanceof Jd||u instanceof _D||u instanceof bG}),(0,$n.U)(function(u){return u instanceof Jd||!(!(u instanceof _D)||0!==u.code&&1!==u.code)&&null}),(0,$r.h)(function(u){return null!==u}),(0,Ri.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 Wre=new t.OlP("");function PDe(n){return ok(0,[{provide:Wre,useExisting:rk},{provide:jre,useExisting:n}])}var Vre=new t.OlP("ROUTER_FORROOT_GUARD"),IDe=[se.Ye,{provide:qw,useClass:hG},{provide:ur,useFactory:Fre},Ep,{provide:fr,useFactory:Hre,deps:[ur]},Ag];function RDe(){return new t.PXZ("Router",ur)}var F0=function(){function n(r){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[IDe,[],LG(e),{provide:Vre,useFactory:BDe,deps:[[ur,new t.FiY,new t.tp0]]},{provide:vB,useValue:i||{}},null!=i&&i.useHash?{provide:se.S$,useClass:se.Do}:{provide:se.S$,useClass:se.b0},{provide:RG,useFactory:function(){var r=(0,t.f3M)(ur),e=(0,t.f3M)(se.EM),i=(0,t.f3M)(vB);return i.scrollOffset&&e.setOffset(i.scrollOffset),new ik(r,e,i)}},null!=i&&i.preloadingStrategy?PDe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:RDe},null!=i&&i.initialNavigation?FDe(i):[],[{provide:Yre,useFactory:Gre},{provide:t.tb,multi:!0,useExisting:Yre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[LG(e)]}}}]),n}();function BDe(n){return"guarded"}function FDe(n){return["disabled"===n.initialNavigation?ok(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?DDe().\u0275providers:[]]}F0.\u0275fac=function(r){return new(r||F0)(t.LFG(Vre,8))},F0.\u0275mod=t.oAB({type:F0}),F0.\u0275inj=t.cJS({imports:[N0]});var Yre=new t.OlP("");new t.GfV("14.3.0");var wB=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ho=m(2437),or=function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new On.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,U.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 wB;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}();or.\u0275fac=function(r){return new(r||or)(t.LFG(ho.zw))},or.\u0275prov=t.Yz7({token:or,factory:or.\u0275fac});var MD=(0,U.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,B.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),El=function(){function n(){(0,B.Z)(this,n),this.state=new Wi.X(new MD(!1))}return(0,U.Z)(n,[{key:"setError",value:function(e){this.state.next(new MD(!1,e.error))}},{key:"clear",value:function(){this.state.next(new MD(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new MD(!0))}},{key:"deactivate",value:function(){this.state.next(new MD(!1))}}]),n}();El.\u0275fac=function(r){return new(r||El)},El.\u0275prov=t.Yz7({token:El,factory:El.\u0275fac});var Kre=["mat-button",""],qre=["*"],GDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],zDe=(0,Gt.pj)((0,Gt.Id)((0,Gt.Kr)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}()))),dn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;(0,B.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,An.Z)(GDe);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,U.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<a;l++)s[l]=arguments[l];return s.some(function(u){return o._getHostElement().hasAttribute(u)})}}]),e}(zDe);dn.\u0275fac=function(r){return new(r||dn)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.QbO,8))},dn.\u0275cmp=t.Xpm({type:dn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Gt.wG,5),2&r)&&(t.iGM(i=t.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(r,e){2&r&&(t.uIk("disabled",e.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:Kre,ngContentSelectors:qre,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:[Gt.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 U0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.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,U.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.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,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(dn);U0.\u0275fac=function(r){return new(r||U0)(t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},U0.\u0275cmp=t.Xpm({type:U0,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:Kre,ngContentSelectors:qre,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:[Gt.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 pm=(0,U.Z)(function n(){(0,B.Z)(this,n)});pm.\u0275fac=function(r){return new(r||pm)},pm.\u0275mod=t.oAB({type:pm}),pm.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,Gt.BQ]});var kB,j0=m(567);function SD(n){var r;return(null===(r=function VDe(){if(void 0===kB&&(kB=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(kB=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return kB}())||void 0===r?void 0:r.createHTML(n))||n}function Jre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Qre(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 Xre(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var H0=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),xp=function(){function n(r,e,i,o){(0,B.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,U.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 H0(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 Xre(o);var l=SD(s);return this._addSvgIconConfig(e,i,new H0("",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 H0(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(t.q3G.HTML,i);if(!a)throw Xre(i);var s=SD(a);return this._addSvgIconSetConfig(e,new H0("",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;o<e;o++)i[o]=arguments[o];return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,e);if(!o)throw Qre(e);var a=this._cachedIconsByUrl.get(o);return a?(0,qn.of)(TB(a)):this._loadSvgIconFromConfig(new H0(e,null)).pipe((0,aa.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,$n.U)(function(s){return TB(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=$re(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,O0._)(Jre(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)(TB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return TB(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,ed.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,j0.D)(s).pipe((0,$n.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Jre(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,aa.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,aa.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(SD("<svg></svg>"));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("<svg> tag not found");return o}},{key:"_toSvgElement",value:function(e){for(var i=this._svgElementFromString(SD("<svg></svg>")),o=e.attributes,a=0;a<o.length;a++){var s=o[a],l=s.name,u=s.value;"id"!==l&&i.setAttribute(l,u)}for(var d=0;d<e.childNodes.length;d++)e.childNodes[d].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[d].cloneNode(!0));return i}},{key:"_setSvgAttributes",value:function(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}},{key:"_fetchIcon",value:function(e){var o,i=this,a=e.url,s=e.options,l=null!==(o=null==s?void 0:s.withCredentials)&&void 0!==o&&o;if(!this._httpClient)throw function YDe(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==a)throw Error('Cannot fetch icon from URL "'.concat(a,'".'));var u=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,a);if(!u)throw Qre(a);var d=this._inProgressUrlFetches.get(u);if(d)return d;var h=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe((0,$n.U)(function(g){return SD(g)}),(0,eB.x)(function(){return i._inProgressUrlFetches.delete(u)}),(0,K1.B)());return this._inProgressUrlFetches.set(u,h),h}},{key:"_addSvgIconConfig",value:function(e,i,o){return this._svgIconConfigs.set($re(e,i),o),this}},{key:"_addSvgIconSetConfig",value:function(e,i){var o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,i){for(var o=0;o<this._resolvers.length;o++){var a=this._resolvers[o](i,e);if(a)return qDe(a)?new H0(a.url,null,a.options):new H0(a,null)}}}]),n}();xp.\u0275fac=function(r){return new(r||xp)(t.LFG(fc.eN,8),t.LFG(Dr),t.LFG(se.K0,8),t.LFG(t.qLn))},xp.\u0275prov=t.Yz7({token:xp,factory:xp.\u0275fac,providedIn:"root"});new t.FiY,new t.tp0,new t.FiY,fc.eN,t.qLn,new t.FiY,se.K0;function TB(n){return n.cloneNode(!0)}function $re(n,r){return n+":"+r}function qDe(n){return!(!n.url||!n.options)}var JDe=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}()),QDe=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),XDe=new t.OlP("mat-icon-location",{providedIn:"root",factory:function $De(){var n=(0,t.f3M)(se.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var eie=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],e2e=eie.map(function(n){return"[".concat(n,"]")}).join(", "),t2e=/^url\(['"]?#(.*?)['"]?\)$/,Dn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i))._iconRegistry=o,d._location=s,d._errorHandler=l,d._inline=!1,d._previousFontSetClass=[],d._currentIconFetch=xa.w.EMPTY,u&&(u.color&&(d.color=d.defaultColor=u.color),u.fontSet&&(d.fontSet=u.fontSet)),a||i.nativeElement.setAttribute("aria-hidden","true"),d}return(0,U.Z)(e,[{key:"inline",get:function(){return this._inline},set:function(o){this._inline=(0,En.Ig)(o)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(o){o!==this._svgIcon&&(o?this._updateSvgIcon(o):this._svgIcon&&this._clearSvgElement(),this._svgIcon=o)}},{key:"fontSet",get:function(){return this._fontSet},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontSet&&(this._fontSet=a,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(o){if(!o)return["",""];var a=o.split(":");switch(a.length){case 1:return["",a[0]];case 2:return a;default:throw Error('Invalid icon name: "'.concat(o,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var o=this._elementsWithExternalReferences;if(o&&o.size){var a=this._location.getPathname();a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(o){this._clearSvgElement();var a=this._location.getPathname();this._previousPath=a,this._cacheChildrenWithExternalReferences(o),this._prependPathToReferences(a),this._elementRef.nativeElement.appendChild(o)}},{key:"_clearSvgElement",value:function(){var o=this._elementRef.nativeElement,a=o.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();a--;){var s=o.childNodes[a];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var o=this._elementRef.nativeElement,a=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(function(s){return s.length>0});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(e2e),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){eie.forEach(function(g){var y=a[h],L=y.getAttribute(g),z=L?L.match(t2e):null;if(z){var q=s.get(y);q||(q=[],s.set(y,q)),q.push({name:g,value:z[1]})}})},u=0;u<a.length;u++)l(u)}},{key:"_updateSvgIcon",value:function(o){var a=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),o){var s=this._splitIconName(o),l=(0,Yn.Z)(s,2),u=l[0],d=l[1];u&&(this._svgNamespace=u),d&&(this._svgName=d),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(d,u).pipe((0,Ri.q)(1)).subscribe(function(h){return a._setSvgElement(h)},function(h){var g="Error retrieving icon ".concat(u,":").concat(d,"! ").concat(h.message);a._errorHandler.handleError(new Error(g))})}}}]),e}(JDe);Dn.\u0275fac=function(r){return new(r||Dn)(t.Y36(t.SBq),t.Y36(xp),t.$8M("aria-hidden"),t.Y36(XDe),t.Y36(t.qLn),t.Y36(QDe,8))},Dn.\u0275cmp=t.Xpm({type:Dn,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(r,e){2&r&&(t.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet)("fontIcon",e._usingFontIcon()?e.fontIcon:null),t.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});var Og=(0,U.Z)(function n(){(0,B.Z)(this,n)});function n2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}function r2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}Og.\u0275fac=function(r){return new(r||Og)},Og.\u0275mod=t.oAB({type:Og}),Og.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var o2e=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}(),"primary"),a2e=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function s2e(){return{diameter:100}}});var ou=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;(0,B.Z)(this,e),(g=r.call(this,i))._document=a,g._diameter=100,g._value=0,g._resizeSubscription=xa.w.EMPTY,g.mode="determinate";var y=e._diameters;return g._spinnerAnimationLabel=g._getSpinnerAnimationLabel(),y.has(a.head)||y.set(a.head,new Set([100])),g._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(g.mode="indeterminate"),l&&(l.color&&(g.color=g.defaultColor=l.color),l.diameter&&(g.diameter=l.diameter),l.strokeWidth&&(g.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&d&&u&&h&&(g._resizeSubscription=d.change(150).subscribe(function(){"indeterminate"===g.mode&&h.run(function(){return u.markForCheck()})})),g}return(0,U.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,En.su)(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(o){this._strokeWidth=(0,En.su)(o)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(o){this._value=Math.max(0,Math.min(100,(0,En.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,bi.kV)(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}},{key:"ngOnDestroy",value:function(){this._resizeSubscription.unsubscribe()}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var o=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(o," ").concat(o)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_getCircleTransformOrigin",value:function(o){var a,s=50*(null!==(a=o.currentScale)&&void 0!==a?a:1);return"".concat(s,"% ").concat(s,"%")}},{key:"_attachStyleNode",value:function(){var o=this._styleRoot,a=this._diameter,s=e._diameters,l=s.get(o);if(!l||!l.has(a)){var u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),o.appendChild(u),l||(l=new Set,s.set(o,l)),l.add(a)}}},{key:"_getAnimationText",value:function(){var o=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*o)).replace(/END_VALUE/g,"".concat(.2*o)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),e}(o2e);ou._diameters=new WeakMap,ou.\u0275fac=function(r){return new(r||ou)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(se.K0,8),t.Y36(t.QbO,8),t.Y36(a2e),t.Y36(t.sBO),t.Y36(sa.rL),t.Y36(t.R0b))},ou.\u0275cmp=t.Xpm({type:ou,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,n2e,1,11,"circle",2),t.YNc(3,r2e,1,9,"circle",3),t.qZA()),2&r&&(t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===e.mode),t.uIk("viewBox",e._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[se.RF,se.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});var ak=(0,U.Z)(function n(){(0,B.Z)(this,n)});ak.\u0275fac=function(r){return new(r||ak)},ak.\u0275mod=t.oAB({type:ak}),ak.\u0275inj=t.cJS({imports:[Gt.BQ,se.ez,Gt.BQ]});var nd=m(5113),ao=m(7429),u2e=["tooltip"],tie="tooltip-panel",nie=(0,bi.i$)({passive:!0});var rie=new t.OlP("mat-tooltip-scroll-strategy");var p2e={provide:rie,deps:[Li.aV],useFactory:function f2e(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},h2e=new t.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function m2e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var MB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){var L=this;(0,B.Z)(this,n),this._overlay=r,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=g,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new On.xQ,this._scrollStrategy=d,this._document=y,g&&(g.position&&(this.position=g.position),g.touchGestures&&(this.touchGestures=g.touchGestures)),h.change.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){L._overlayRef&&L._updatePosition(L._overlayRef)})}return(0,U.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,En.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,En.su)(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},{key:"message",get:function(){return this._message},set:function(e){var i=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){i._ariaDescriber.describe(i._elementRef.nativeElement,i.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Pr.R)(this._destroyed)).subscribe(function(i){i?"keyboard"===i&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(function(i){var o=(0,Yn.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,nie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var o,e=this,i=arguments.length>0&&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 ao.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,Pr.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,Pr.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(tie),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Pr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Tr.hY&&!(0,Tr.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,Ri.q)(1),(0,Pr.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(tie,"-");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,Yn.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,nie)})}},{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 mi=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,y,L,z){var q;return(0,B.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,y,L,z))._tooltipComponent=xD,q}return(0,U.Z)(e)}(MB);mi.\u0275fac=function(r){return new(r||mi)(t.Y36(Li.aV),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(bi.t4),t.Y36(Yr.$s),t.Y36(Yr.tE),t.Y36(rie),t.Y36(nl.Is,8),t.Y36(h2e,8),t.Y36(se.K0))},mi.\u0275dir=t.lG2({type:mi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var ED=function(){function n(r,e){(0,B.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new On.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,U.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}();ED.\u0275fac=function(r){return new(r||ED)(t.Y36(t.sBO),t.Y36(t.QbO,8))},ED.\u0275dir=t.lG2({type:ED});var xD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(nd.u3.Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,U.Z)(e)}(ED);xD.\u0275fac=function(r){return new(r||xD)(t.Y36(t.sBO),t.Y36(nd.Yg),t.Y36(t.QbO,8))},xD.\u0275cmp=t.Xpm({type:xD,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(u2e,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:[se.mk,se.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 G0=(0,U.Z)(function n(){(0,B.Z)(this,n)});G0.\u0275fac=function(r){return new(r||G0)},G0.\u0275mod=t.oAB({type:G0}),G0.\u0275inj=t.cJS({providers:[p2e],imports:[Yr.rt,se.ez,Li.U8,Gt.BQ,Gt.BQ,sa.ZD]});(0,Zt.X$)("state",[(0,Zt.SB)("initial, void, hidden",(0,Zt.oB)({opacity:0,transform:"scale(0)"})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"scale(1)"})),(0,Zt.eR)("* => visible",(0,Zt.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Zt.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Zt.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Zt.eR)("* => hidden",(0,Zt.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({opacity:0})))]);function _2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function g2e(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 v2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,_2e,2,0,"div",2),t.YNc(2,g2e,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 z0=function(){function n(r,e){(0,B.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,U.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}();z0.\u0275fac=function(r){return new(r||z0)(t.Y36(El),t.Y36(ur))},z0.\u0275cmp=t.Xpm({type:z0,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,v2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[se.O5,Wo,dn,Dn,ou,mi],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 DD=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,U.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}();DD.\u0275fac=function(r){return new(r||DD)(t.Y36(ur),t.Y36(or),t.Y36(El),t.Y36(se.K0))},DD.\u0275cmp=t.Xpm({type:DD,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"app-progress")},dependencies:[z0]});function wi(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,B.Z)(this,n),this.dataChange=new Wi.X([])}return(0,U.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 H2e(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 G2e(n,r){}Dp.\u0275fac=function(r){return new(r||Dp)},Dp.\u0275prov=t.Yz7({token:Dp,factory:Dp.\u0275fac});var HG=new t.OlP("MatSnackBarData"),SB=(0,U.Z)(function n(){(0,B.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),z2e=Math.pow(2,31)-1,EB=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this._overlayRef=e,this._afterDismissed=new On.xQ,this._afterOpened=new On.xQ,this._onAction=new On.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,U.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,z2e))}},{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}(),OD=function(){function n(r,e){(0,B.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,U.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();OD.\u0275fac=function(r){return new(r||OD)(t.Y36(EB),t.Y36(HG))},OD.\u0275cmp=t.Xpm({type:OD,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,H2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[se.O5,dn],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 W2e={snackBarState:(0,Zt.X$)("state",[(0,Zt.SB)("void, hidden",(0,Zt.oB)({transform:"scale(0.8)",opacity:0})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"scale(1)",opacity:1})),(0,Zt.eR)("* => visible",(0,Zt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Zt.eR)("* => void, * => hidden",(0,Zt.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Zt.oB)({opacity:0})))])},PD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.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 On.xQ,u._onExit=new On.xQ,u._onEnter=new On.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,U.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,Ri.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}(ao.en);PD.\u0275fac=function(r){return new(r||PD)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bi.t4),t.Y36(SB))},PD.\u0275dir=t.lG2({type:PD,viewQuery:function(r,e){var i;(1&r&&t.Gf(ao.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},features:[t.qOj]});var sk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"_afterPortalAttached",value:function(){(0,Ut.Z)((0,Wt.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}(PD);sk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(sk)))(e||sk)}}(),sk.\u0275cmp=t.Xpm({type:sk,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,G2e,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:[ao.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:[W2e.snackBarState]}});var W0=(0,U.Z)(function n(){(0,B.Z)(this,n)});W0.\u0275fac=function(r){return new(r||W0)},W0.\u0275mod=t.oAB({type:W0}),W0.\u0275inj=t.cJS({imports:[Li.U8,ao.eL,se.ez,pm,Gt.BQ,Gt.BQ]});var oie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function V2e(){return new SB}});var V0=function(){function n(r,e,i,o,a,s){(0,B.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,U.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:SB,useValue:i}]}),s=new ao.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 SB),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new EB(l,s);if(e instanceof t.Rgc){var d=new ao.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{var h=this._createInjector(a,u),g=new ao.C5(e,void 0,h),y=l.attachComponentPortal(g);u.instance=y.instance}return this._breakpointObserver.observe(nd.u3.HandsetPortrait).pipe((0,Pr.R)(s.detachments())).subscribe(function(L){s.overlayElement.classList.toggle(o.handsetCssClass,L.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 Li.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:EB,useValue:i},{provide:HG,useValue:e.data}]})}}]),n}();V0.\u0275fac=function(r){return new(r||V0)(t.LFG(Li.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(nd.Yg),t.LFG(V0,12),t.LFG(oie))},V0.\u0275prov=t.Yz7({token:V0,factory:V0.\u0275fac});var rd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=OD,d.snackBarContainerComponent=sk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,U.Z)(e)}(V0);rd.\u0275fac=function(r){return new(r||rd)(t.LFG(Li.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(nd.Yg),t.LFG(rd,12),t.LFG(oie))},rd.\u0275prov=t.Yz7({token:rd,factory:rd.\u0275fac,providedIn:W0});var Zn=function(){function n(r,e){(0,B.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,U.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}();Zn.\u0275fac=function(r){return new(r||Zn)(t.LFG(rd),t.LFG(t.R0b))},Zn.\u0275prov=t.Yz7({token:Zn,factory:Zn.\u0275fac});var kn=m(7322),Y2e=["*",[["mat-card-footer"]]],q2e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Q2e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Y0=(0,U.Z)(function n(){(0,B.Z)(this,n)});Y0.\u0275fac=function(r){return new(r||Y0)},Y0.\u0275dir=t.lG2({type:Y0,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var lk=(0,U.Z)(function n(){(0,B.Z)(this,n)});lk.\u0275fac=function(r){return new(r||lk)},lk.\u0275dir=t.lG2({type:lk,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var uk=(0,U.Z)(function n(){(0,B.Z)(this,n)});uk.\u0275fac=function(r){return new(r||uk)},uk.\u0275dir=t.lG2({type:uk,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var ID=(0,U.Z)(function n(){(0,B.Z)(this,n),this.align="start"});ID.\u0275fac=function(r){return new(r||ID)},ID.\u0275dir=t.lG2({type:ID,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 xB=(0,U.Z)(function n(){(0,B.Z)(this,n)});xB.\u0275fac=function(r){return new(r||xB)},xB.\u0275dir=t.lG2({type:xB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var DB=(0,U.Z)(function n(){(0,B.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275dir=t.lG2({type:DB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var AB=(0,U.Z)(function n(){(0,B.Z)(this,n)});AB.\u0275fac=function(r){return new(r||AB)},AB.\u0275dir=t.lG2({type:AB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var OB=(0,U.Z)(function n(){(0,B.Z)(this,n)});OB.\u0275fac=function(r){return new(r||OB)},OB.\u0275dir=t.lG2({type:OB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var PB=(0,U.Z)(function n(){(0,B.Z)(this,n)});PB.\u0275fac=function(r){return new(r||PB)},PB.\u0275dir=t.lG2({type:PB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var IB=(0,U.Z)(function n(){(0,B.Z)(this,n)});IB.\u0275fac=function(r){return new(r||IB)},IB.\u0275dir=t.lG2({type:IB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var RB=(0,U.Z)(function n(){(0,B.Z)(this,n)});RB.\u0275fac=function(r){return new(r||RB)},RB.\u0275dir=t.lG2({type:RB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var di=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._animationMode=r});di.\u0275fac=function(r){return new(r||di)(t.Y36(t.QbO,8))},di.\u0275cmp=t.Xpm({type:di,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(Y2e),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 LB=(0,U.Z)(function n(){(0,B.Z)(this,n)});LB.\u0275fac=function(r){return new(r||LB)},LB.\u0275cmp=t.Xpm({type:LB,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(q2e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ZB=(0,U.Z)(function n(){(0,B.Z)(this,n)});ZB.\u0275fac=function(r){return new(r||ZB)},ZB.\u0275cmp=t.Xpm({type:ZB,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(Q2e),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ck=(0,U.Z)(function n(){(0,B.Z)(this,n)});ck.\u0275fac=function(r){return new(r||ck)},ck.\u0275mod=t.oAB({type:ck}),ck.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var $2e=m(7568),aie=(0,bi.i$)({passive:!0}),K0=function(){function n(r,e){(0,B.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,U.Z)(n,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return P0.E;var o=(0,En.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new On.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,aie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,aie)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,En.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}();K0.\u0275fac=function(r){return new(r||K0)(t.LFG(bi.t4),t.LFG(t.R0b))},K0.\u0275prov=t.Yz7({token:K0,factory:K0.\u0275fac,providedIn:"root"});var NB=function(){function n(r,e){(0,B.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,U.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}();NB.\u0275fac=function(r){return new(r||NB)(t.Y36(t.SBq),t.Y36(K0))},NB.\u0275dir=t.lG2({type:NB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var BB=function(){function n(r,e,i,o){var a=this;(0,B.Z)(this,n),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new On.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,U.Z)(n,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,En.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,En.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,En.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,Xf.R)(i,"resize").pipe((0,$2e.e)(16),(0,Pr.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}();BB.\u0275fac=function(r){return new(r||BB)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(se.K0,8))},BB.\u0275dir=t.lG2({type:BB,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 q0=(0,U.Z)(function n(){(0,B.Z)(this,n)});q0.\u0275fac=function(r){return new(r||q0)},q0.\u0275mod=t.oAB({type:q0}),q0.\u0275inj=t.cJS({});var eAe=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),tAe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],nAe=0,rAe=(0,Gt.FD)(function(){return(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),Kn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,y){var L;(0,B.Z)(this,e),(L=r.call(this,u,s,l,a))._elementRef=i,L._platform=o,L._autofillMonitor=h,L._formField=y,L._uid="mat-input-".concat(nAe++),L.focused=!1,L.stateChanges=new On.xQ,L.controlType="mat-input",L.autofilled=!1,L._disabled=!1,L._type="text",L._readonly=!1,L._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(re){return(0,bi.qK)().has(re)}),L._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=L._elementRef.nativeElement,q=z.nodeName.toLowerCase();return L._inputValueAccessor=d||z,L._previousNativeValue=L.value,L.id=L.id,o.IOS&&g.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",L._iOSKeyupListener)}),L._isServer=!L._platform.isBrowser,L._isNativeSelect="select"===q,L._isTextarea="textarea"===q,L._isInFormField=!!y,L._isNativeSelect&&(L.controlType=z.multiple?"mat-native-select-multiple":"mat-native-select"),L}return(0,U.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,En.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,En.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,bi.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,En.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(){tAe.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}(rAe);Kn.\u0275fac=function(r){return new(r||Kn)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(J.a5,10),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Gt.rD),t.Y36(eAe,10),t.Y36(K0),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 dk=(0,U.Z)(function n(){(0,B.Z)(this,n)});dk.\u0275fac=function(r){return new(r||dk)},dk.\u0275mod=t.oAB({type:dk}),dk.\u0275inj=t.cJS({providers:[Gt.rD],imports:[q0,kn.lN,Gt.BQ,q0,kn.lN]});var ri=m(4107);function iAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function oAe(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 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," ")}}var RD=function(){function n(r,e,i,o,a){(0,B.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,U.Z)(n,[{key:"ngOnInit",value:function(){return wi(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 wi(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 wi(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 wB;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}();RD.\u0275fac=function(r){return new(r||RD)(t.Y36(or),t.Y36(Dp),t.Y36(fr),t.Y36(ur),t.Y36(Zn))},RD.\u0275cmp=t.Xpm({type:RD,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,iAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,oAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,aAe,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,di,Kn,ri.gD,Gt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var hm=m(4834),GG=["*"],sie='.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}}',sAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],uAe=["text"];function cAe(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 dAe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],lie=(0,Gt.Id)((0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),pAe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),uie=new t.OlP("MatList"),cie=new t.OlP("MatNavList"),zs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new On.xQ,i}return(0,U.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(lie);zs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(zs)))(e||zs)}}(),zs.\u0275cmp=t.Xpm({type:zs,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:cie,useExisting:zs}]),t.qOj,t.TTD],ngContentSelectors:GG,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 mm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new On.xQ,"action-list"===o._getListType()&&(i.nativeElement.classList.add("mat-action-list"),i.nativeElement.setAttribute("role","group")),o}return(0,U.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}(lie);mm.\u0275fac=function(r){return new(r||mm)(t.Y36(t.SBq))},mm.\u0275cmp=t.Xpm({type:mm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:uie,useExisting:mm}]),t.qOj,t.TTD],ngContentSelectors:GG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[sie],encapsulation:2,changeDetection:0});var fk=(0,U.Z)(function n(){(0,B.Z)(this,n)});fk.\u0275fac=function(r){return new(r||fk)},fk.\u0275dir=t.lG2({type:fk,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var pk=(0,U.Z)(function n(){(0,B.Z)(this,n)});pk.\u0275fac=function(r){return new(r||pk)},pk.\u0275dir=t.lG2({type:pk,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var FB=(0,U.Z)(function n(){(0,B.Z)(this,n)});FB.\u0275fac=function(r){return new(r||FB)},FB.\u0275dir=t.lG2({type:FB,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var Oa=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,B.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new On.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,Pr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,U.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,Gt.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}(pAe);Oa.\u0275fac=function(r){return new(r||Oa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(cie,8),t.Y36(uie,8))},Oa.\u0275cmp=t.Xpm({type:Oa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,fk,5),t.Suo(i,pk,5),t.Suo(i,Gt.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(sAe),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:[Gt.wG],encapsulation:2,changeDetection:0});var hAe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),mAe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),_Ae={provide:J.JU,useExisting:(0,t.Gpc)(function(){return hk}),multi:!0},gAe=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.options=e}),LD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.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,U.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,En.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,En.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,Gt.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}(mAe);LD.\u0275fac=function(r){return new(r||LD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return hk})))},LD.\u0275cmp=t.Xpm({type:LD,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,fk,5),t.Suo(i,pk,5),t.Suo(i,Gt.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(uAe,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(dAe),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,cAe,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:[Gt.wG,Gt.nP,se.O5],encapsulation:2,changeDetection:0});var hk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.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 Si.Ov(s._multiple),s._tabIndex=-1,s._onChange=function(l){},s._destroyed=new On.xQ,s._onTouched=function(){},s}return(0,U.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,En.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,En.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new Si.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,Pr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,Oo.O)(null),(0,Pr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Pr.R)(this._destroyed)).subscribe(function(a){if(a.added){var l,s=(0,An.Z)(a.added);try{for(s.s();!(l=s.n()).done;){l.value.selected=!0}}catch(y){s.e(y)}finally{s.f()}}if(a.removed){var h,d=(0,An.Z)(a.removed);try{for(d.s();!(h=d.n()).done;){h.value.selected=!1}}catch(y){d.e(y)}finally{d.f()}}}),this._focusMonitor.monitor(this._element).pipe((0,Pr.R)(this._destroyed)).subscribe(function(a){var s;if("keyboard"===a||"program"===a){for(var l=0,u=0;u<o.options.length;u++)if(null!==(s=o.options.get(u))&&void 0!==s&&s.selected){l=u;break}o._keyManager.setActiveItem(l)}})}},{key:"ngOnChanges",value:function(o){var a=o.disableRipple,s=o.color;(a&&!a.firstChange||s&&!s.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(o){this._element.nativeElement.focus(o)}},{key:"selectAll",value:function(){return this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){return this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"_removeOptionFromList",value:function(o){var a=this._getOptionIndex(o);return a>-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,Tr.Vb)(o);switch(a){case Tr.L_:case Tr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Tr.A&&this.multiple&&(0,Tr.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===Tr.LH||a===Tr.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 gAe(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<this.options.length}},{key:"_getOptionIndex",value:function(o){return this.options.toArray().indexOf(o)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach(function(o){return o._markForCheck()})}},{key:"_allowFocusEscape",value:function(){var o=this;this._tabIndex=-1,setTimeout(function(){o._tabIndex=0,o._changeDetector.markForCheck()})}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}}]),e}(hAe);hk.\u0275fac=function(r){return new(r||hk)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE))},hk.\u0275cmp=t.Xpm({type:hk,selectors:[["mat-selection-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,LD,5),2&r)&&(t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)}),2&r&&t.uIk("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[t._Bn([_Ae]),t.qOj,t.TTD],ngContentSelectors:GG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[sie],encapsulation:2,changeDetection:0});var mk=(0,U.Z)(function n(){(0,B.Z)(this,n)});mk.\u0275fac=function(r){return new(r||mk)},mk.\u0275mod=t.oAB({type:mk}),mk.\u0275inj=t.cJS({imports:[Gt.uc,Gt.si,Gt.BQ,Gt.us,se.ez,Gt.uc,Gt.BQ,Gt.us,hm.t]});var vAe=0,zG=new t.OlP("CdkAccordion"),_k=function(){function n(){(0,B.Z)(this,n),this._stateChanges=new On.xQ,this._openCloseAllActions=new On.xQ,this.id="cdk-accordion-".concat(vAe++),this._multi=!1}return(0,U.Z)(n,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,En.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),n}();_k.\u0275fac=function(r){return new(r||_k)},_k.\u0275dir=t.lG2({type:_k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:zG,useExisting:_k}]),t.TTD]});var yAe=0,ZD=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=xa.w.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-".concat(yAe++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(a,s){o.accordion&&!o.accordion.multi&&o.accordion.id===s&&o.id!==a&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,U.Z)(n,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,En.Ig)(e),this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();var i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(i){e.disabled||(e.expanded=i)})}}]),n}();ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(zG,12),t.Y36(t.sBO),t.Y36(Si.A8))},ZD.\u0275dir=t.lG2({type:ZD,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:zG,useValue:void 0}])]});var J0=(0,U.Z)(function n(){(0,B.Z)(this,n)});J0.\u0275fac=function(r){return new(r||J0)},J0.\u0275mod=t.oAB({type:J0}),J0.\u0275inj=t.cJS({});var bAe=["body"];function CAe(n,r){}var wAe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function TAe(n,r){if(1&n&&t._UZ(0,"span",2),2&n){var e=t.oxw();t.Q6J("@indicatorRotate",e._getExpandedState())}}var MAe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],WG=new t.OlP("MAT_ACCORDION"),die="225ms cubic-bezier(0.4,0.0,0.2,1)",fie={indicatorRotate:(0,Zt.X$)("indicatorRotate",[(0,Zt.SB)("collapsed, void",(0,Zt.oB)({transform:"rotate(0deg)"})),(0,Zt.SB)("expanded",(0,Zt.oB)({transform:"rotate(180deg)"})),(0,Zt.eR)("expanded <=> collapsed, void => collapsed",(0,Zt.jt)(die))]),bodyExpansion:(0,Zt.X$)("bodyExpansion",[(0,Zt.SB)("collapsed, void",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed, void => collapsed",(0,Zt.jt)(die))])},pie=new t.OlP("MAT_EXPANSION_PANEL"),ND=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this._template=r,this._expansionPanel=e});ND.\u0275fac=function(r){return new(r||ND)(t.Y36(t.Rgc),t.Y36(pie,8))},ND.\u0275dir=t.lG2({type:ND,selectors:[["ng-template","matExpansionPanelContent",""]]});var EAe=0,hie=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),xl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.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 On.xQ,h._headerId="mat-expansion-panel-header-".concat(EAe++),h._bodyAnimationDone=new On.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,ts.x)(function(g,y){return g.fromState===y.fromState&&g.toState===y.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,U.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,En.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,Oo.O)(null),(0,$r.h)(function(){return o.expanded&&!o._portal}),(0,Ri.q)(1)).subscribe(function(){o._portal=new ao.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.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}(ZD);xl.\u0275fac=function(r){return new(r||xl)(t.Y36(WG,12),t.Y36(t.sBO),t.Y36(Si.A8),t.Y36(t.s_b),t.Y36(se.K0),t.Y36(t.QbO,8),t.Y36(hie,8))},xl.\u0275cmp=t.Xpm({type:xl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,ND,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(bAe,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:WG,useValue:void 0},{provide:pie,useExisting:xl}]),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(wAe),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,CAe,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:[ao.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:[fie.bodyExpansion]},changeDetection:0});var UB=(0,U.Z)(function n(){(0,B.Z)(this,n)});UB.\u0275fac=function(r){return new(r||UB)},UB.\u0275dir=t.lG2({type:UB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var xAe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),au=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;(0,B.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=xa.w.EMPTY;var g=i.accordion?i.accordion._stateChanges.pipe((0,$r.h)(function(y){return!(!y.hideToggle&&!y.togglePosition)})):P0.E;return h.tabIndex=parseInt(d||"")||0,h._parentChangeSubscription=(0,Gi.T)(i.opened,i.closed,g,i._inputChanges.pipe((0,$r.h)(function(y){return!!(y.hideToggle||y.disabled||y.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,$r.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,U.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 Tr.L_:case Tr.K5:(0,Tr.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,Gt.sb)(xAe));au.\u0275fac=function(r){return new(r||au)(t.Y36(xl,1),t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.Y36(hie,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},au.\u0275cmp=t.Xpm({type:au,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(MAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,TAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[se.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:[fie.indicatorRotate]},changeDetection:0});var BD=(0,U.Z)(function n(){(0,B.Z)(this,n)});BD.\u0275fac=function(r){return new(r||BD)},BD.\u0275dir=t.lG2({type:BD,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Uu=(0,U.Z)(function n(){(0,B.Z)(this,n)});Uu.\u0275fac=function(r){return new(r||Uu)},Uu.\u0275dir=t.lG2({type:Uu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var Dl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.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,U.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,En.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,Oo.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,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(_k);Dl.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Dl)))(e||Dl)}}(),Dl.\u0275dir=t.lG2({type:Dl,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,au,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:WG,useExisting:Dl}]),t.qOj]});var gk=(0,U.Z)(function n(){(0,B.Z)(this,n)});gk.\u0275fac=function(r){return new(r||gk)},gk.\u0275mod=t.oAB({type:gk}),gk.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,J0,ao.eL]});var FD=function(){function n(r){(0,B.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,U.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"),"<br />")},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"),"<br />")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),n}();FD.\u0275fac=function(r){return new(r||FD)(t.Y36(fc.eN))},FD.\u0275cmp=t.Xpm({type:FD,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:[dn,mm,Oa,Dl,xl,au,Uu],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 Ha=m(4766),Q0=function(){function n(r){(0,B.Z)(this,n),this.electronService=r}return(0,U.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}();Q0.\u0275fac=function(r){return new(r||Q0)(t.LFG(ul))},Q0.\u0275prov=t.Yz7({token:Q0,factory:Q0.\u0275fac});var X0=function(){function n(r){(0,B.Z)(this,n),this.platformService=r}return(0,U.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 Ha.N.solarputty_download_url&&(i.resource=Ha.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),n}();X0.\u0275fac=function(r){return new(r||X0)(t.LFG(Q0))},X0.\u0275prov=t.Yz7({token:X0,factory:X0.\u0275fac});var $0=function(){function n(r,e){(0,B.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,U.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}();$0.\u0275fac=function(r){return new(r||$0)(t.LFG(ul),t.LFG(X0))},$0.\u0275prov=t.Yz7({token:$0,factory:$0.\u0275fac});var AAe=[[["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 IAe(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 UD=(0,U.Z)(function n(){(0,B.Z)(this,n)});UD.\u0275fac=function(r){return new(r||UD)},UD.\u0275dir=t.lG2({type:UD,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[t._Bn([{provide:Si.k,useClass:Si.eX}])]});var bo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,U.Z)(e)}(zc);bo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bo)))(e||bo)}}(),bo.\u0275cmp=t.Xpm({type:bo,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:Si.k,useClass:Si.yy},{provide:zc,useExisting:bo},{provide:Q_,useExisting:bo},{provide:E1,useClass:Vf},{provide:bE,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(AAe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yf,Kf,qf,Jf],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 Co=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Uc);Co.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Co)))(e||Co)}}(),Co.\u0275dir=t.lG2({type:Co,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Uc,useExisting:Co}]),t.qOj]});var wo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(wl);wo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wo)))(e||wo)}}(),wo.\u0275dir=t.lG2({type:wo,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:wl,useExisting:wo}]),t.qOj]});var eb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Zd);eb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eb)))(e||eb)}}(),eb.\u0275dir=t.lG2({type:eb,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:Zd,useExisting:eb}]),t.qOj]});var mo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(rl);mo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(mo)))(e||mo)}}(),mo.\u0275dir=t.lG2({type:mo,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:rl,useExisting:mo},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:mo}]),t.qOj]});var Ro=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Wf);Ro.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ro)))(e||Ro)}}(),Ro.\u0275dir=t.lG2({type:Ro,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]});var vk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(X_);vk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(vk)))(e||vk)}}(),vk.\u0275dir=t.lG2({type:vk,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]});var Lo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}($_);Lo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lo)))(e||Lo)}}(),Lo.\u0275dir=t.lG2({type:Lo,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]});var Zo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(dc);Zo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Zo)))(e||Zo)}}(),Zo.\u0275dir=t.lG2({type:Zo,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:dc,useExisting:Zo}]),t.qOj]});var tb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Hc);tb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tb)))(e||tb)}}(),tb.\u0275dir=t.lG2({type:tb,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:Hc,useExisting:tb}]),t.qOj]});var No=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Jl);No.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(No)))(e||No)}}(),No.\u0275dir=t.lG2({type:No,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Jl,useExisting:No}]),t.qOj]});var Bo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Gh);Bo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Bo)))(e||Bo)}}(),Bo.\u0275cmp=t.Xpm({type:Bo,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Gh,useExisting:Bo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var nb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(zh);nb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nb)))(e||nb)}}(),nb.\u0275cmp=t.Xpm({type:nb,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:zh,useExisting:nb}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Fo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Gc);Fo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Fo)))(e||Fo)}}(),Fo.\u0275cmp=t.Xpm({type:Fo,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Gc,useExisting:Fo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var rb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,U.Z)(e)}(Pu);rb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rb)))(e||rb)}}(),rb.\u0275dir=t.lG2({type:rb,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:Pu,useExisting:rb}]),t.qOj]});var yk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Wh);yk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(yk)))(e||yk)}}(),yk.\u0275cmp=t.Xpm({type:yk,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,IAe,2,3,"td",2),t.BQk())},dependencies:[wo,mo,Co,Ro,Lo],encapsulation:2});var bk=(0,U.Z)(function n(){(0,B.Z)(this,n)});bk.\u0275fac=function(r){return new(r||bk)},bk.\u0275mod=t.oAB({type:bk}),bk.\u0275inj=t.cJS({imports:[Qf,Gt.BQ,Gt.BQ]});var RAe=9007199254740991,LAe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,B.Z)(this,e),(i=r.call(this))._renderData=new Wi.X([]),i._filter=new Wi.X(""),i._internalPageChanges=new On.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,En.t6)(l)){var u=Number(l);return u<RAe?u:l}return l},i.sortData=function(a,s){var l=s.active,u=s.direction;return l&&""!=u?a.sort(function(d,h){var g=i.sortingDataAccessor(d,l),y=i.sortingDataAccessor(h,l),L=typeof g,z=typeof y;L!==z&&("number"===L&&(g+=""),"number"===z&&(y+=""));var q=0;return null!=g&&null!=y?g>y?q=1:g<y&&(q=-1):null!=g?q=1:null!=y&&(q=-1),q*("asc"==u?1:-1)}):a},i.filterPredicate=function(a,s){var l=Object.keys(a).reduce(function(d,h){return d+a[h]+"\u25ec"},"").toLowerCase(),u=s.trim().toLowerCase();return-1!=l.indexOf(u)},i._data=new Wi.X(o),i._updateChangeSubscription(),i}return(0,U.Z)(e,[{key:"data",get:function(){return this._data.value},set:function(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}},{key:"filter",get:function(){return this._filter.value},set:function(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(o){this._sort=o,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(o){this._paginator=o,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var a,o=this,s=this._sort?(0,Gi.T)(this._sort.sortChange,this._sort.initialized):(0,qn.of)(null),l=this._paginator?(0,Gi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,qn.of)(null),u=this._data,d=(0,Y1.aj)([u,this._filter]).pipe((0,$n.U)(function(y){var z=(0,Yn.Z)(y,1)[0];return o._filterData(z)})),h=(0,Y1.aj)([d,s]).pipe((0,$n.U)(function(y){var z=(0,Yn.Z)(y,1)[0];return o._orderData(z)})),g=(0,Y1.aj)([h,l]).pipe((0,$n.U)(function(y){var z=(0,Yn.Z)(y,1)[0];return o._pageData(z)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=g.subscribe(function(y){return o._renderData.next(y)})}},{key:"_filterData",value:function(o){var a=this;return this.filteredData=null==this.filter||""===this.filter?o:o.filter(function(s){return a.filterPredicate(s,a.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(o){return this.sort?this.sortData(o.slice(),this.sort):o}},{key:"_pageData",value:function(o){if(!this.paginator)return o;var a=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(a,a+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(o){var a=this;Promise.resolve().then(function(){var s=a.paginator;if(s&&(s.length=o,s.pageIndex>0)){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}(Si.o2),Ap=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(LAe);function ZAe(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 jD=function(){function n(r){(0,B.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,U.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}();jD.\u0275fac=function(r){return new(r||jD)(t.Y36(ul))},jD.\u0275cmp=t.Xpm({type:jD,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,ZAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[se.O5,dn]});var wc=m(4068),NAe=function(r,e){return{hidden:r,lightTheme:e}},BAe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,Ck=function(){function n(r,e,i){(0,B.Z)(this,n),this.httpClient=r,this.themeService=e,this.location=i,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return(0,U.Z)(n,[{key:"hide",value:function(){this.isVisible=!1}},{key:"ngOnInit",value:function(){var e=this;this.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(i){var o,a;if(null!==(a=null===(o=null==i?void 0:i.placements)||void 0===o?void 0:o.placement_1)&&void 0!==a&&a.body)try{var s=i.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),l=BAe.exec(s);e.adUrl=l[1].trim(),e.adBody=l[3].trim(),e.buttonLabel=l[4].trim()}catch(u){}e.isVisible=!0},function(i){}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.themeService.themeChanged.subscribe(function(){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1}))}}]),n}();function FAe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function UAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function jAe(n,r){1&n&&(t.ynx(0),t._UZ(1,"app-adbutler",14),t.BQk())}function HAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,UAe,2,1,"ng-container",13),t.YNc(2,jAe,2,0,"ng-container",13),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type),t.xp6(1),t.Q6J("ngIf","adbutler"===e.type)}}function GAe(n,r){1&n&&t._UZ(0,"mat-header-cell")}function zAe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-install-software",17),t.NdJ("installedChanged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onInstalled(a))}),t.qZA()}if(2&n){var i=t.oxw().$implicit;t.Q6J("software",i)}}function WAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",15),t.YNc(1,zAe,1,1,"app-install-software",16),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type)}}function VAe(n,r){1&n&&t._UZ(0,"mat-header-row")}function YAe(n,r){1&n&&t._UZ(0,"mat-row")}Ck.\u0275fac=function(r){return new(r||Ck)(t.Y36(fc.eN),t.Y36(wc.f),t.Y36(se.Ye))},Ck.\u0275cmp=t.Xpm({type:Ck,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2)(3,"a",3),t._uU(4),t.qZA()(),t.TgZ(5,"button")(6,"a",3),t._uU(7),t.qZA()()(),t.TgZ(8,"mat-icon",4),t.NdJ("click",function(){return e.hide()}),t._uU(9,"close"),t.qZA()()),2&r&&(t.Q6J("ngClass",t.WLB(5,NAe,!e.isVisible,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.adBody),t.xp6(2),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.buttonLabel))},dependencies:[se.mk,Dn],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:700;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;color:#fff;font-weight:700;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]});var HD=function(){function n(r,e){(0,B.Z)(this,n),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.dataSource=new KAe(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),n}();HD.\u0275fac=function(r){return new(r||HD)(t.Y36($0),t.Y36(t.sBO))},HD.\u0275cmp=t.Xpm({type:HD,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Installed software"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-table",4,5),t.ynx(8,6),t.YNc(9,FAe,2,0,"mat-header-cell",7),t.YNc(10,HAe,3,2,"mat-cell",8),t.BQk(),t.ynx(11,9),t.YNc(12,GAe,1,0,"mat-header-cell",7),t.YNc(13,WAe,2,1,"mat-cell",10),t.BQk(),t.YNc(14,VAe,1,0,"mat-header-row",11),t.YNc(15,YAe,1,0,"mat-row",12),t.qZA()()()()),2&r&&(t.xp6(6),t.Q6J("dataSource",e.dataSource),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[se.O5,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,jD,Ck]});var KAe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new Wi.X([]),o}return(0,U.Z)(e,[{key:"connect",value:function(){return this.refresh(),this.installed}},{key:"disconnect",value:function(){}},{key:"refresh",value:function(){var o=this.installedSoftwareService.list();o.push({type:"adbutler"}),this.installed.next(o)}}]),e}(Si.o2),_m=(m(5561),function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.controller_id=""}return(0,U.Z)(n,[{key:"login",value:function(e,i,o){var a=(new fc.LE).set("username",i).set("password",o),s={headers:(new fc.WM).set("Content-Type","application/x-www-form-urlencoded")};return this.httpController.post(e,"/access/users/login",a,s)}},{key:"getLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me").toPromise()}},{key:"getLoggedUserRefToken",value:function(e,i){return wi(this,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.httpController.post(e,"/access/users/authenticate",{username:i.username,password:i.password}).toPromise();case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},o,this)}))}}]),n}());_m.\u0275fac=function(r){return new(r||_m)(t.LFG(ho.zw))},_m.\u0275prov=t.Yz7({token:_m,factory:_m.\u0275fac});var gm=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/version")}}]),n}();gm.\u0275fac=function(r){return new(r||gm)(t.LFG(ho.zw))},gm.\u0275prov=t.Yz7({token:gm,factory:gm.\u0275fac});var jB=m(7144),qAe=["input"],JAe=["label"],QAe=function(r){return{enterDuration:r}},$Ae=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:mie});function mie(){return{color:"accent",clickAction:"check-indeterminate"}}var eOe=0,_ie={color:"accent",clickAction:"check-indeterminate"},tOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return ti}),multi:!0},nOe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),rOe=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)((0,Gt.Id)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}())))),HB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,o))._changeDetectorRef=a,h._ngZone=s,h._animationMode=u,h._options=d,h.ariaLabel="",h.ariaLabelledby=null,h.labelPosition="after",h.name=null,h.change=new t.vpe,h.indeterminateChange=new t.vpe,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||_ie,h.color=h.defaultColor=h._options.color||_ie.color,h.tabIndex=parseInt(l)||0,h.id=h._uniqueId="".concat(i).concat(++eOe),h}return(0,U.Z)(e,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(o){this._required=(0,En.Ig)(o)}},{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,En.Ig)(o);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(o){var a=(0,En.Ig)(o);a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(o){var a=o!=this._indeterminate;this._indeterminate=(0,En.Ig)(o),a&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._controlValueAccessorChangeFn=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(o){var a=this._currentCheckState,s=this._getAnimationTargetElement();if(a!==o&&s&&(this._currentAnimationClass&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(a,o),this._currentCheckState=o,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var l=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(l)},1e3)})}}},{key:"_emitChangeEvent",value:function(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}},{key:"_handleInputClick",value:function(){var a,o=this,s=null===(a=this._options)||void 0===a?void 0:a.clickAction;this.disabled||"noop"===s?!this.disabled&&"noop"===s&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==s&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"_onInteractionEvent",value:function(o){o.stopPropagation()}},{key:"_onBlur",value:function(){var o=this;Promise.resolve().then(function(){o._onTouched(),o._changeDetectorRef.markForCheck()})}},{key:"_getAnimationClassForCheckStateTransition",value:function(o,a){if("NoopAnimations"===this._animationMode)return"";switch(o){case 0:if(1===a)return this._animationClasses.uncheckedToChecked;if(3==a)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===a?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===a?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===a?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}},{key:"_syncIndeterminate",value:function(o){var a=this._inputElement;a&&(a.nativeElement.indeterminate=o)}}]),e}(rOe);HB.\u0275fac=function(r){t.$Z()},HB.\u0275dir=t.lG2({type:HB,viewQuery:function(r,e){var i;(1&r&&(t.Gf(qAe,5),t.Gf(JAe,5),t.Gf(Gt.wG,5)),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first),t.iGM(i=t.CRH())&&(e._labelElement=i.first),t.iGM(i=t.CRH())&&(e.ripple=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]});var ti=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,"mat-checkbox-",i,o,s,l,u,d))._focusMonitor=a,h._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"},h}return(0,U.Z)(e,[{key:"_createChangeEvent",value:function(o){var a=new nOe;return a.source=this,a.checked=o,a}},{key:"_getAnimationTargetElement",value:function(){return this._elementRef.nativeElement}},{key:"ngAfterViewInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){a||o._onBlur()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onInputClick",value:function(o){o.stopPropagation(),(0,Ut.Z)((0,Wt.Z)(e.prototype),"_handleInputClick",this).call(this)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}}]),e}(HB);ti.\u0275fac=function(r){return new(r||ti)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36($Ae,8))},ti.\u0275cmp=t.Xpm({type:ti,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([tOe]),t.qOj],ngContentSelectors:["*"],decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onInteractionEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(13);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),t.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,QAe,"NoopAnimations"===e._animationMode?0:150))}},dependencies:[Gt.wG,jB.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});var iOe={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return wk}),multi:!0},wk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(J.Zs);wk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wk)))(e||wk)}}(),wk.\u0275dir=t.lG2({type:wk,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[t._Bn([iOe]),t.qOj]});var ib=(0,U.Z)(function n(){(0,B.Z)(this,n)});ib.\u0275fac=function(r){return new(r||ib)},ib.\u0275mod=t.oAB({type:ib}),ib.\u0275inj=t.cJS({});var ob=(0,U.Z)(function n(){(0,B.Z)(this,n)});function oOe(n,r){1&n&&t._UZ(0,"mat-icon",15)}function aOe(n,r){1&n&&t._UZ(0,"mat-icon",16)}function sOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter username"),t.qZA())}function lOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter password"),t.qZA())}function uOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Authentication was unsuccessful"),t.qZA())}ob.\u0275fac=function(r){return new(r||ob)},ob.\u0275mod=t.oAB({type:ob}),ob.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,jB.Q8,ib,Gt.BQ,ib]});var GD=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.loginService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.router=a,this.toasterService=s,this.versionService=l,this.themeService=u,this.isLightThemeEnabled=!1,this.loginError=!1,this.returnUrl="",this.isRememberMe=!1,this.isRememberMeCheked=!1,this.loginForm=new J.nJ({username:new J.p4("",[J.kI.required]),password:new J.p4("",[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e;return wi(this,void 0,void 0,Rn().mark(function i(){var a,s,o=this;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=this.route.snapshot.paramMap.get("controller_id"),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/",this.controllerService.get(parseInt(a,10)).then(function(d){o.controller=d,d.authToken&&o.router.navigate(["/controller",o.controller.id,"projects"]),o.versionService.get(o.controller).subscribe(function(h){o.version=h.version})}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,(s=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null)&&s.isRememberMe&&(this.loginForm.get("username").setValue(s.username),this.loginForm.get("password").setValue(s.password),this.isRememberMeCheked=s.isRememberMe);case 6:case"end":return u.stop()}},i,this)}))}},{key:"login",value:function(){var e=this;if(this.loginForm.get("username").invalid||this.loginForm.get("password").invalid)this.toasterService.error("Please enter username and password");else{var i=this.loginForm.get("username").value,o=this.loginForm.get("password").value;this.loginService.login(this.controller,i,o).subscribe(function(a){return wi(e,void 0,void 0,Rn().mark(function s(){var l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return(l=this.controller).authToken=a.access_token,l.username=i,l.password=o,l.tokenExpired=!1,d.next=7,this.controllerService.update(l);case 7:this.returnUrl.length<=1?this.router.navigate(["/controller",this.controller.id,"projects"]):this.router.navigateByUrl(this.returnUrl);case 8:case"end":return d.stop()}},s,this)}))},function(a){e.loginError=!0})}}},{key:"rememberMe",value:function(e){if(e.checked){var i={username:this.loginForm.get("username").value,password:this.loginForm.get("password").value,isRememberMe:e.checked};this.isRememberMeCheked=e.checked,localStorage.setItem("isRememberMe",JSON.stringify(i))}else localStorage.removeItem("isRememberMe"),this.loginForm.reset(),this.isRememberMe=e.checked}},{key:"ngDoCheck",value:function(){this.loginForm.get("username").valid&&this.loginForm.get("password").valid&&(this.isRememberMe=!0)}}]),n}();GD.\u0275fac=function(r){return new(r||GD)(t.Y36(_m),t.Y36(or),t.Y36(Dp),t.Y36(fr),t.Y36(ur),t.Y36(Zn),t.Y36(gm),t.Y36(wc.f))},GD.\u0275cmp=t.Xpm({type:GD,selectors:[["app-login"]],decls:26,vars:9,consts:[[1,"wrapper"],[1,"loginCard"],[1,"matCard"],[1,"loginTitle"],[1,"loginIcon"],["class","mat-icon-login","svgIcon","gns3",4,"ngIf"],["class","mat-icon-login","svgIcon","gns3black",4,"ngIf"],[3,"formGroup"],["matInput","","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","password","formControlName","password","placeholder","Password"],["color","primary",1,"margin-left",3,"disabled","checked","change"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"loginButton",3,"click"],[1,"errorMessage"],["svgIcon","gns3",1,"mat-icon-login"],["svgIcon","gns3black",1,"mat-icon-login"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),t.YNc(5,oOe,1,0,"mat-icon",5),t.YNc(6,aOe,1,0,"mat-icon",6),t.TgZ(7,"div")(8,"h1"),t._uU(9,"GNS3"),t.qZA(),t.TgZ(10,"h6"),t._uU(11),t.qZA()()()(),t.TgZ(12,"form",7)(13,"mat-form-field"),t._UZ(14,"input",8),t.YNc(15,sOe,2,0,"mat-error",9),t.qZA(),t.TgZ(16,"mat-form-field"),t._UZ(17,"input",10),t.YNc(18,lOe,2,0,"mat-error",9),t.qZA()(),t.TgZ(19,"mat-checkbox",11),t.NdJ("change",function(o){return e.rememberMe(o)}),t._uU(20,"Remember me"),t.qZA(),t.TgZ(21,"div",12)(22,"button",13),t.NdJ("click",function(){return e.login()}),t._uU(23,"Login"),t.qZA()()(),t.TgZ(24,"div",14),t.YNc(25,uOe,2,0,"mat-error",9),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(5),t.hij("v",e.version,""),t.xp6(1),t.Q6J("formGroup",e.loginForm),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("username").hasError("required")),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("password").hasError("required")),t.xp6(1),t.Q6J("disabled",!e.isRememberMe)("checked",e.isRememberMeCheked),t.xp6(6),t.Q6J("ngIf",e.loginError))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,di,Dn,Kn,ti],styles:["mat-form-field{width:100%}.wrapper{display:flex;justify-content:center}.loginCard{width:540px}.mat-icon-login{height:100px!important;width:100px!important}.loginTitle{display:flex;justify-content:center}.loginIcon{display:flex;align-items:center}.loginButton{width:100%}.errorMessage{display:flex;justify-content:center;margin-top:20px}.margin-left{margin-left:5px}\n"],encapsulation:2});var zD=(0,U.Z)(function n(){(0,B.Z)(this,n)});zD.\u0275fac=function(r){return new(r||zD)},zD.\u0275cmp=t.Xpm({type:zD,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/controllers"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"br"),t.TgZ(3,"h1"),t._uU(4,"404 Page not found"),t.qZA(),t.TgZ(5,"button",2),t._uU(6,"Navigate to homepage"),t.qZA()()())},dependencies:[Wo,dn],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var WD=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.controllerId=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();WD.\u0275fac=function(r){return new(r||WD)(t.Y36(fr))},WD.\u0275cmp=t.Xpm({type:WD,selectors:[["app-built-in-preferences"]],decls:19,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Built-in templates"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Ethernet hub templates "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Ethernet switch templates "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," Cloud node templates "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/preferences"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-hubs"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-switches"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/cloud-nodes"))},dependencies:[Wo,dn,Dn,zs,Oa],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var GB,cOe=new Uint8Array(16);function dOe(){if(!GB&&!(GB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return GB(cOe)}var fOe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var hOe=function pOe(n){return"string"==typeof n&&fOe.test(n)},dl=[],VG=0;VG<256;++VG)dl.push((VG+256).toString(16).substr(1));var _Oe=function mOe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(dl[n[r+0]]+dl[n[r+1]]+dl[n[r+2]]+dl[n[r+3]]+"-"+dl[n[r+4]]+dl[n[r+5]]+"-"+dl[n[r+6]]+dl[n[r+7]]+"-"+dl[n[r+8]]+dl[n[r+9]]+"-"+dl[n[r+10]]+dl[n[r+11]]+dl[n[r+12]]+dl[n[r+13]]+dl[n[r+14]]+dl[n[r+15]]).toLowerCase();if(!hOe(e))throw TypeError("Stringified UUID is invalid");return e};var ns=function gOe(n,r,e){var i=(n=n||{}).random||(n.rng||dOe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,r){e=e||0;for(var o=0;o<16;++o)r[e+o]=i[o];return r}return _Oe(i)},su=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();su.\u0275fac=function(r){return new(r||su)(t.LFG(ho.zw))},su.\u0275prov=t.Yz7({token:su,factory:su.\u0275fac});var Al=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getQemuTemplate",value:function(){return(0,qn.of)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:"qemu_guest",template_id:"",template_type:"qemu",usage:"",replicate_network_connection_state:!0,tpm:!1,uefi:!1})}},{key:"getVpcsTemplate",value:function(){return(0,qn.of)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:"vpcs_guest",template_id:"",template_type:"vpcs"})}},{key:"getVirtualBoxTemplate",value:function(){return(0,qn.of)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:"vbox_guest",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})}},{key:"getCloudNodeTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:"cloud",template_id:"",template_type:"cloud"})}},{key:"getEthernetHubTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:"hub",template_id:"",template_type:"ethernet_hub"})}},{key:"getEthernetSwitchTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:"ethernet_switch",template_id:"",template_type:"ethernet_switch"})}},{key:"getIosTemplate",value:function(){return(0,qn.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:"router",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})}},{key:"getVmwareTemplate",value:function(){return(0,qn.of)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:"vmware_guest",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})}},{key:"getDockerTemplate",value:function(){return(0,qn.of)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:"docker_guest",template_id:"",template_type:"docker",usage:""})}},{key:"getIouTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:"multilayer_switch",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})}},{key:"list",value:function(){return(0,qn.of)([])}}]),n}();Al.\u0275fac=function(r){return new(r||Al)},Al.\u0275prov=t.Yz7({token:Al,factory:Al.\u0275fac});var Qd=m(5542),vOe=["input"],yOe=function(r){return{enterDuration:r}},COe=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function wOe(){return{color:"accent"}}});var gie=0,kOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return rs}),multi:!0},vie=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.value=e}),yie=new t.OlP("MatRadioGroup"),VD=function(){function n(r){(0,B.Z)(this,n),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(gie++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new t.vpe}return(0,U.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,En.Ig)(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(i){i.name=e.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this,i=null!==this._selected&&this._selected.value===this._value;this._radios&&!i&&(this._selected=null,this._radios.forEach(function(o){o.checked=e.value===o.value,o.checked&&(e._selected=o)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new vie(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),n}();VD.\u0275fac=function(r){return new(r||VD)(t.Y36(t.sBO))},VD.\u0275dir=t.lG2({type:VD,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var rs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(VD);rs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rs)))(e||rs)}}(),rs.\u0275dir=t.lG2({type:rs,selectors:[["mat-radio-group"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Ws,5),2&r)&&(t.iGM(o=t.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([kOe,{provide:yie,useExisting:rs}]),t.qOj]});var TOe=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r}),zB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this,o))._changeDetector=a,g._focusMonitor=s,g._radioDispatcher=l,g._providerOverride=d,g._uniqueId="mat-radio-".concat(++gie),g.id=g._uniqueId,g.change=new t.vpe,g._checked=!1,g._value=null,g._removeUniqueSelectionListener=function(){},g.radioGroup=i,g._noopAnimations="NoopAnimations"===u,h&&(g.tabIndex=(0,En.su)(h,0)),g._removeUniqueSelectionListener=l.listen(function(y,L){y!==g.id&&L===g.name&&(g.checked=!1)}),g}return(0,U.Z)(e,[{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,En.Ig)(o);this._checked!==a&&(this._checked=a,a&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!a&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),a&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(o){this._value!==o&&(this._value=o,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===o),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(o){this._labelPosition=o}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(o){this._setDisabled((0,En.Ig)(o))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(o){this._required=(0,En.Ig)(o)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(o){this._color=o}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngDoCheck",value:function(){this._updateTabIndex()}},{key:"ngAfterViewInit",value:function(){var o=this;this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){!a&&o.radioGroup&&o.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new vie(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(o){o.stopPropagation()}},{key:"_onInputInteraction",value:function(o){if(o.stopPropagation(),!this.checked&&!this.disabled){var a=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(o){this._disabled!==o&&(this._disabled=o,this._changeDetector.markForCheck())}},{key:"_updateTabIndex",value:function(){var o,s,a=this.radioGroup;if((s=a&&a.selected&&!this.disabled?a.selected===this?this.tabIndex:-1:this.tabIndex)!==this._previousTabIndex){var l=null===(o=this._inputElement)||void 0===o?void 0:o.nativeElement;l&&(l.setAttribute("tabindex",s+""),this._previousTabIndex=s)}}}]),e}((0,Gt.Kr)((0,Gt.sb)(TOe)));zB.\u0275fac=function(r){t.$Z()},zB.\u0275dir=t.lG2({type:zB,viewQuery:function(r,e){var i;(1&r&&t.Gf(vOe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]});var Ws=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,B.Z)(this,e),r.call(this,i,o,a,s,l,u,d,h)}return(0,U.Z)(e)}(zB);Ws.\u0275fac=function(r){return new(r||Ws)(t.Y36(yie,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(Si.A8),t.Y36(t.QbO,8),t.Y36(COe,8),t.$8M("tabindex"))},Ws.\u0275cmp=t.Xpm({type:Ws,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&r&&(t.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(a){return e._onInputInteraction(a)})("click",function(a){return e._onInputClick(a)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("for",e.inputId),t.xp6(5),t.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("required",e.required),t.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,yOe,e._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==e.labelPosition)}},dependencies:[Gt.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0});var kk=(0,U.Z)(function n(){(0,B.Z)(this,n)});function SOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}kk.\u0275fac=function(r){return new(r||kk)},kk.\u0275mod=t.oAB({type:kk}),kk.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,Gt.BQ]});var YD=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"addTemplate",value:function(){var i,e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe(function(o){i=o}),i.template_id=ns(),i.name=this.formGroup.get("templateName").value,i.compute_id="local",this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(o){e.goBack()}))}}]),n}();YD.\u0275fac=function(r){return new(r||YD)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},YD.\u0275cmp=t.Xpm({type:YD,selectors:[["app-cloud-nodes-add-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,SOe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New cloud node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the cloud node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var kc=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getCategoriesForCloudNodes",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForCloudNodes",value:function(){return["telnet","vnc","spice","http","https","none"]}},{key:"getCategoriesForEthernetHubs",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getCategoriesForEthernetSwitches",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForEthernetSwitches",value:function(){return["telnet","none"]}},{key:"getPortTypesForEthernetSwitches",value:function(){return["access","dot1q","qinq"]}},{key:"getEtherTypesForEthernetSwitches",value:function(){return["0x8100","0x88A8","0x9100","0x9200"]}}]),n}();kc.\u0275fac=function(r){return new(r||kc)},kc.\u0275prov=t.Yz7({token:kc,factory:kc.\u0275fac});var EOe=m(5154),Op=function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.symbols=new Wi.X([]),this.maximumSymbolSize=80}return(0,U.Z)(n,[{key:"getMaximumSymbolSize",value:function(){return this.maximumSymbolSize}},{key:"get",value:function(e){return this.symbols.getValue().find(function(i){return i.symbol_id===e})}},{key:"getDimensions",value:function(e,i){var o=encodeURI(i);return this.httpController.get(e,"/symbols/".concat(o,"/dimensions"))}},{key:"scaleDimensionsForNode",value:function(e){var i=e.width>e.height?this.maximumSymbolSize/e.width:this.maximumSymbolSize/e.height;return{width:e.width*i,height:e.height*i}}},{key:"getByFilename",value:function(e){return this.symbols.getValue().find(function(i){return i.filename===e})}},{key:"add",value:function(e,i,o){return this.cache=null,this.httpController.post(e,"/symbols/".concat(i,"/raw"),o)}},{key:"load",value:function(e){return this.httpController.get(e,"/symbols")}},{key:"list",value:function(e){return this.cache||(this.cache=this.load(e).pipe((0,EOe.d)(1))),this.cache}},{key:"raw",value:function(e,i){var o=encodeURI(i);return this.httpController.getText(e,"/symbols/".concat(o,"/raw"))}},{key:"getSymbolFromTemplate",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/symbols/").concat(i.symbol,"/raw")}}]),n}();Op.\u0275fac=function(r){return new(r||Op)(t.LFG(ho.zw))},Op.\u0275prov=t.Yz7({token:Op,factory:Op.\u0275fac});var KD=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();KD.\u0275fac=function(r){return new(r||KD)},KD.\u0275pipe=t.Yjl({name:"filenamefilter",type:KD,pure:!0});var DOe=function(r){return{buttonSelected:r}},AOe=function(r){return{imageSelected:r}};function OOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"button",13),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.setSelected(l.symbol_id))}),t._UZ(2,"img",14),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(3,DOe,o.isSelected===i.symbol_id)),t.xp6(1),t.Q6J("ngClass",t.VKq(5,AOe,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),t.LSH)}}var POe=function(){return{standalone:!0}},Tk=function(){function n(r){(0,B.Z)(this,n),this.symbolService=r,this.symbolChanged=new t.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.isSelected=this.symbol,this.loadSymbols()}},{key:"setFilter",value:function(e){this.filteredSymbols="all"===e?this.symbols:"builtin"===e?this.symbols.filter(function(i){return i.builtin}):this.symbols.filter(function(i){return!i.builtin})}},{key:"setSelected",value:function(e){this.isSelected=e,this.symbolChanged.emit(this.isSelected)}},{key:"loadSymbols",value:function(){var e=this;this.symbolService.list(this.controller).subscribe(function(i){e.symbols=i,e.filteredSymbols=i})}},{key:"uploadSymbolFile",value:function(e){this.readSymbolFile(e.target)}},{key:"readSymbolFile",value:function(e){var i=this,o=e.files[0],a=e.files[0].name,s=new FileReader,l=new Image;s.onloadend=function(){var u=s.result,d=i.createSvgFileForImage(u,l);i.symbolService.add(i.controller,a,d).subscribe(function(){i.loadSymbols()})},l.onload=function(){s.readAsDataURL(o)},l.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'" \n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"getImageSourceForTemplate",value:function(e){return"".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(Ha.N.current_version,"/symbols/").concat(e,"/raw")}}]),n}();Tk.\u0275fac=function(r){return new(r||Tk)(t.Y36(Op))},Tk.\u0275cmp=t.Xpm({type:Tk,selectors:[["app-symbols"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"div",0)(1,"mat-radio-group",1)(2,"mat-radio-button",2),t.NdJ("click",function(){return e.setFilter("all")}),t._uU(3,"All symbols"),t.qZA(),t.TgZ(4,"mat-radio-button",3),t.NdJ("click",function(){return e.setFilter("builtin")}),t._uU(5,"Built-in symbols"),t.qZA(),t.TgZ(6,"mat-radio-button",4),t.NdJ("click",function(){return e.setFilter("custom")}),t._uU(7,"Custom symbols"),t.qZA()(),t.TgZ(8,"input",5,6),t.NdJ("change",function(a){return e.uploadSymbolFile(a)}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(9);return t.KtG(a.click())}),t.TgZ(11,"mat-icon"),t._uU(12,"add"),t.qZA(),t._uU(13," Add symbol "),t.qZA()(),t.TgZ(14,"form")(15,"mat-form-field",8)(16,"input",9),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()()(),t.TgZ(17,"div",10),t.YNc(18,OOe,3,7,"div",11),t.ALo(19,"filenamefilter"),t.qZA()}2&r&&(t.xp6(16),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(6,POe)),t.xp6(2),t.Q6J("ngForOf",t.xi3(19,3,e.filteredSymbols,e.searchText)))},dependencies:[se.mk,se.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,dn,Dn,Kn,rs,Ws,KD],styles:[".buttonWrapper[_ngcontent-%COMP%]{width:85px;height:85px;display:flex;align-items:center;margin-left:auto;margin-right:auto;outline:none}.menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button[_ngcontent-%COMP%]{background:border-box;border-width:0px;outline:none}.buttonSelected[_ngcontent-%COMP%]{background:#0097a7!important}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.imageSelected[_ngcontent-%COMP%]{margin-left:0}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);grid-row-gap:3em;grid-column-gap:1em}.radio-selection[_ngcontent-%COMP%]{width:90%}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}.non-visible[_ngcontent-%COMP%]{display:none}.example-full-width[_ngcontent-%COMP%]{width:100%}"]});var ju=function(){function n(){(0,B.Z)(this,n),this.symbolChangedEmitter=new t.vpe,this.chosenSymbol=""}return(0,U.Z)(n,[{key:"symbolChanged",value:function(e){this.chosenSymbol=e}},{key:"chooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.chosenSymbol)}},{key:"cancelChooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.symbol)}}]),n}();function IOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function ROe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function LOe(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div",7),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function ZOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function NOe(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div",7),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function BOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Name "),t.qZA())}function FOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function UOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Local port "),t.qZA())}function jOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rport," ")}}function HOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Type "),t.qZA())}function GOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rhost," ")}}function zOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Remote port "),t.qZA())}function WOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.lport," ")}}function VOe(n,r){1&n&&t._UZ(0,"tr",45)}function YOe(n,r){1&n&&t._UZ(0,"tr",46)}function KOe(n,r){if(1&n&&(t.TgZ(0,"table",34),t.ynx(1,35),t.YNc(2,BOe,2,0,"th",36),t.YNc(3,FOe,2,1,"td",37),t.BQk(),t.ynx(4,38),t.YNc(5,UOe,2,0,"th",36),t.YNc(6,jOe,2,1,"td",37),t.BQk(),t.ynx(7,39),t.YNc(8,HOe,2,0,"th",36),t.YNc(9,GOe,2,1,"td",37),t.BQk(),t.ynx(10,40),t.YNc(11,zOe,2,0,"th",36),t.YNc(12,WOe,2,1,"td",37),t.BQk(),t.YNc(13,VOe,1,0,"tr",41),t.YNc(14,YOe,1,0,"tr",42),t.qZA()),2&n){var e=t.oxw(2);t.Q6J("dataSource",e.dataSourceUdp),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function qOe(n,r){1&n&&t._UZ(0,"br")}ju.\u0275fac=function(r){return new(r||ju)},ju.\u0275cmp=t.Xpm({type:ju,selectors:[["app-symbols-menu"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"controller","symbol","symbolChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Symbol selection"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.cancelChooseSymbol()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.chooseSymbol()}),t._uU(8,"Choose symbol"),t.qZA()()(),t.TgZ(9,"div",6)(10,"app-symbols",7),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()()),2&r&&(t.xp6(10),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[dn,Tk],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var JOe=function(){return{standalone:!0}};function QOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General "),t.qZA()(),t.TgZ(6,"mat-form-field",7)(7,"input",8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.name=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",7)(9,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",7)(11,"input",10),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.symbol=a)}),t.qZA()(),t.TgZ(12,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(13,"Choose symbol"),t.qZA(),t._UZ(14,"br")(15,"br"),t.TgZ(16,"mat-form-field",7)(17,"mat-select",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.category=a)}),t.YNc(18,IOe,2,2,"mat-option",13),t.qZA()(),t.TgZ(19,"mat-form-field",14)(20,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.console_type=a)}),t.YNc(21,ROe,2,2,"mat-option",13),t.qZA()(),t.TgZ(22,"mat-form-field",7)(23,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_host=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",7)(25,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_port=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",7)(27,"input",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(28,"mat-expansion-panel")(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Ethernet interfaces "),t.qZA()(),t.YNc(32,LOe,5,1,"div",19),t.TgZ(33,"mat-form-field",14)(34,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(35,ZOe,2,2,"mat-option",13),t.qZA()(),t.TgZ(36,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(37,"Add"),t.qZA()(),t.TgZ(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title"),t._uU(41," TAP interfaces "),t.qZA()(),t.YNc(42,NOe,5,1,"div",19),t.TgZ(43,"mat-form-field",7)(44,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(45,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(46,"Add"),t.qZA()(),t.TgZ(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),t._uU(50," UDP tunnels "),t.qZA()(),t.YNc(51,KOe,15,3,"table",23),t.YNc(52,qOe,1,0,"br",24),t.TgZ(53,"mat-form-field",7)(54,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.name=a)}),t.qZA()(),t.TgZ(55,"mat-form-field",7)(56,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.lport=a)}),t.qZA()(),t.TgZ(57,"mat-form-field",7)(58,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rhost=a)}),t.qZA()(),t.TgZ(59,"mat-form-field",7)(60,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rport=a)}),t.qZA()(),t.TgZ(61,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddUdpInterface())}),t._uU(62,"Add"),t.qZA()(),t.TgZ(63,"mat-expansion-panel")(64,"mat-expansion-panel-header")(65,"mat-panel-title"),t._uU(66," Usage "),t.qZA()(),t.TgZ(67,"mat-form-field",7)(68,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.usage=a)}),t.qZA()()()(),t.TgZ(69,"div",30)(70,"button",31),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(71,"Cancel"),t.qZA(),t.TgZ(72,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(73,"Save"),t.qZA(),t._UZ(74,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(7),t.Q6J("ngModel",i.cloudNodeTemplate.name),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.cloudNodeTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),t.xp6(5),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,JOe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(7),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(7),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",i.newPort.name),t.xp6(2),t.Q6J("ngModel",i.newPort.lport),t.xp6(2),t.Q6J("ngModel",i.newPort.rhost),t.xp6(2),t.Q6J("ngModel",i.newPort.rport),t.xp6(8),t.Q6J("ngModel",i.cloudNodeTemplate.usage)}}function XOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",47),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.cloudNodeTemplate.symbol)}}var $Oe=function(r){return{shadowed:r}},qD=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.builtInTemplatesConfigurationService=a,this.router=s,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.cloudNodeTemplate=s,e.portsMappingEthernet=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"ethernet"===l.type}),e.portsMappingTap=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"tap"===l.type}),e.portsMappingUdp=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"udp"===l.type}),e.dataSourceUdp=e.portsMappingUdp})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onAddUdpInterface",value:function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,cn.Z)(this.portsMappingUdp),this.newPort={name:"",port_number:0}}},{key:"onSave",value:function(){var e=this;this.cloudNodeTemplate.ports_mapping=[].concat((0,cn.Z)(this.portsMappingEthernet),(0,cn.Z)(this.portsMappingTap)),this.builtInTemplatesService.saveTemplate(this.controller,this.cloudNodeTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=e}}]),n}();function ePe(n,r){}qD.\u0275fac=function(r){return new(r||qD)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(kc),t.Y36(ur))},qD.\u0275cmp=t.Xpm({type:qD,selectors:[["app-cloud-nodes-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["class","form-field",4,"ngFor","ngForOf"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Cloud configuration"),t.qZA()(),t.YNc(5,QOe,75,24,"div",4),t.qZA(),t.YNc(6,XOe,1,2,"app-symbols-menu",5),t.qZA()),2&r&&(t.Q6J("ngClass",t.VKq(3,$Oe,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.cloudNodeTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},dependencies:[se.mk,se.sg,se.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,Dl,xl,au,Uu,ri.gD,Gt.ey,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var JD=(0,U.Z)(function n(){(0,B.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0});var ab=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this))._elementRef=i,g._focusTrapFactory=o,g._config=s,g._interactivityChecker=l,g._ngZone=u,g._overlayRef=d,g._focusMonitor=h,g._elementFocusedBeforeDialogWasOpened=null,g._closeInteractionType=null,g.attachDomPortal=function(y){g._portalOutlet.hasAttached();var L=g._portalOutlet.attachDomPortal(y);return g._contentAttached(),L},g._ariaLabelledBy=g._config.ariaLabelledBy||null,g._document=a,g}return(0,U.Z)(e,[{key:"_contentAttached",value:function(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}},{key:"_captureInitialFocus",value:function(){this._trapFocus()}},{key:"ngOnDestroy",value:function(){this._restoreFocus()}},{key:"attachComponentPortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),a}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(o,a){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var s=function l(){o.removeEventListener("blur",l),o.removeEventListener("mousedown",l),o.removeAttribute("tabindex")};o.addEventListener("blur",s),o.addEventListener("mousedown",s)})),o.focus(a)}},{key:"_focusByCssSelector",value:function(o,a){var s=this._elementRef.nativeElement.querySelector(o);s&&this._forceFocus(s,a)}},{key:"_trapFocus",value:function(){var o=this,a=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||a.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||o._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var o=this._config.restoreFocus,a=null;if("string"==typeof o?a=this._document.querySelector(o):"boolean"==typeof o?a=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(a=o),this._config.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,bi.ht)(),l=this._elementRef.nativeElement;(!s||s===this._document.body||s===l||l.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var o=this._elementRef.nativeElement,a=(0,bi.ht)();return o===a||o.contains(a)}},{key:"_initializeFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,bi.ht)())}},{key:"_handleBackdropClicks",value:function(){var o=this;this._overlayRef.backdropClick().subscribe(function(){o._config.disableClose&&o._recaptureFocus()})}}]),e}(ao.en);ab.\u0275fac=function(r){return new(r||ab)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(JD),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(Yr.tE))},ab.\u0275cmp=t.Xpm({type:ab,selectors:[["cdk-dialog-container"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ao.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,e){2&r&&t.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,ePe,0,0,"ng-template",0)},dependencies:[ao.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});var YG=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this.overlayRef=r,this.config=e,this.closed=new On.xQ,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(function(o){o.keyCode===Tr.hY&&!i.disableClose&&!(0,Tr.Vb)(o)&&(o.preventDefault(),i.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(function(){i.disableClose||i.close(void 0,{focusOrigin:"mouse"})})}return(0,U.Z)(n,[{key:"close",value:function(e,i){if(this.containerInstance){var o=this.closed;this.containerInstance._closeInteractionType=(null==i?void 0:i.focusOrigin)||"program",this.overlayRef.dispose(),o.next(e),o.complete(),this.componentInstance=this.containerInstance=null}}},{key:"updatePosition",value:function(){return this.overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.overlayRef.updateSize({width:e,height:i}),this}},{key:"addPanelClass",value:function(e){return this.overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this.overlayRef.removePanelClass(e),this}}]),n}(),bie=new t.OlP("DialogScrollStrategy"),Cie=new t.OlP("DialogData"),tPe=new t.OlP("DefaultDialogConfig");var rPe={provide:bie,deps:[Li.aV],useFactory:function nPe(n){return function(){return n.scrollStrategies.block()}}},iPe=0,vm=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this._overlay=r,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new On.xQ,this._afterOpenedAtThisLevel=new On.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,uD.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,Oo.O)(void 0))}),this._scrollStrategy=s}return(0,U.Z)(n,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"open",value:function(e,i){var o=this,a=this._defaultOptions||new JD;(i=Object.assign(Object.assign({},a),i)).id=i.id||"cdk-dialog-".concat(iPe++),i.id&&this.getDialogById(i.id);var s=this._getOverlayConfig(i),l=this._overlay.create(s),u=new YG(l,i),d=this._attachContainer(l,u,i);return u.containerInstance=d,this._attachDialogContent(e,u,d,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(u),u.closed.subscribe(function(){return o._removeOpenDialog(u,!0)}),this.afterOpened.next(u),u}},{key:"closeAll",value:function(){KG(this.openDialogs,function(e){return e.close()})}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){var e=this;KG(this._openDialogsAtThisLevel,function(i){!1===i.config.closeOnDestroy&&e._removeOpenDialog(i,!1)}),KG(this._openDialogsAtThisLevel,function(i){return i.close()}),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}},{key:"_getOverlayConfig",value:function(e){var i=new Li.X_({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}},{key:"_attachContainer",value:function(e,i,o){var a,u,s=o.injector||(null===(a=o.viewContainerRef)||void 0===a?void 0:a.injector),l=[{provide:JD,useValue:o},{provide:YG,useValue:i},{provide:Li.Iu,useValue:e}];o.container?"function"==typeof o.container?u=o.container:(u=o.container.type,l.push.apply(l,(0,cn.Z)(o.container.providers(o)))):u=ab;var d=new ao.C5(u,o.viewContainerRef,t.zs3.create({parent:s||this._injector,providers:l}),o.componentFactoryResolver);return e.attach(d).instance}},{key:"_attachDialogContent",value:function(e,i,o,a){if(e instanceof t.Rgc){var s=this._createInjector(a,i,o,void 0),l={$implicit:a.data,dialogRef:i};a.templateContext&&(l=Object.assign(Object.assign({},l),"function"==typeof a.templateContext?a.templateContext():a.templateContext)),o.attachTemplatePortal(new ao.UE(e,null,l,s))}else{var u=this._createInjector(a,i,o,this._injector),d=o.attachComponentPortal(new ao.C5(e,a.viewContainerRef,u,a.componentFactoryResolver));i.componentInstance=d.instance}}},{key:"_createInjector",value:function(e,i,o,a){var s,l=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),u=[{provide:Cie,useValue:e.data},{provide:YG,useValue:i}];return e.providers&&("function"==typeof e.providers?u.push.apply(u,(0,cn.Z)(e.providers(i,e,o))):u.push.apply(u,(0,cn.Z)(e.providers))),e.direction&&(!l||!l.get(nl.Is,null,t.XFs.Optional))&&u.push({provide:nl.Is,useValue:{value:e.direction,change:(0,qn.of)()}}),t.zs3.create({parent:l||a,providers:u})}},{key:"_removeOpenDialog",value:function(e,i){var o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,s){a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var i=e.parentElement.children,o=i.length-1;o>-1;o--){var a=i[o];a!==e&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}]),n}();function KG(n,r){for(var e=n.length;e--;)r(n[e])}vm.\u0275fac=function(r){return new(r||vm)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG(tPe,8),t.LFG(vm,12),t.LFG(Li.Xj),t.LFG(bie))},vm.\u0275prov=t.Yz7({token:vm,factory:vm.\u0275fac});var sb=(0,U.Z)(function n(){(0,B.Z)(this,n)});function oPe(n,r){}sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275mod=t.oAB({type:sb}),sb.\u0275inj=t.cJS({providers:[vm,rPe],imports:[Li.U8,ao.eL,Yr.rt,ao.eL]});var Mk={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},aPe={dialogContainer:(0,Zt.X$)("dialogContainer",[(0,Zt.SB)("void, exit",(0,Zt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Zt.SB)("enter",(0,Zt.oB)({transform:"none"})),(0,Zt.eR)("* => enter",(0,Zt.ru)([(0,Zt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({transform:"none",opacity:1})),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})]),Mk),(0,Zt.eR)("* => void, * => exit",(0,Zt.ru)([(0,Zt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Zt.oB)({opacity:0})),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})]),Mk)])},WB=(0,U.Z)(function n(){(0,B.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Mk.params.enterAnimationDuration,this.exitAnimationDuration=Mk.params.exitAnimationDuration}),QD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this,i,o,a,s,l,u,d,h))._animationStateChanged=new t.vpe,g}return(0,U.Z)(e,[{key:"_captureInitialFocus",value:function(){this._config.delayFocusTrap||this._trapFocus()}},{key:"_openAnimationDone",value:function(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}]),e}(ab);QD.\u0275fac=function(r){return new(r||QD)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(WB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(Yr.tE))},QD.\u0275cmp=t.Xpm({type:QD,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(r,e){},encapsulation:2});var XD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g){var y;return(0,B.Z)(this,e),(y=r.call(this,i,o,a,s,l,u,d,g))._changeDetectorRef=h,y._state="enter",y}return(0,U.Z)(e,[{key:"_onAnimationDone",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._openAnimationDone(s):"exit"===a&&this._animationStateChanged.next({state:"closed",totalTime:s})}},{key:"_onAnimationStart",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===a||"void"===a)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}},{key:"_getAnimationState",value:function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Mk.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Mk.params.exitAnimationDuration}}}}]),e}(QD);XD.\u0275fac=function(r){return new(r||XD)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(WB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(t.sBO),t.Y36(Yr.tE))},XD.\u0275cmp=t.Xpm({type:XD,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(r,e){1&r&&t.WFA("@dialogContainer.start",function(o){return e._onAnimationStart(o)})("@dialogContainer.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.Ikx("id",e._config.id),t.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),t.d8E("@dialogContainer",e._getAnimationState()))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,oPe,0,0,"ng-template",0)},dependencies:[ao.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[aPe.dialogContainer]}});var cr=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this._ref=r,this._containerInstance=i,this._afterOpened=new On.xQ,this._beforeClosed=new On.xQ,this._state=0,this.disableClose=e.disableClose,this.id=r.id,i._animationStateChanged.pipe((0,$r.h)(function(a){return"opened"===a.state}),(0,Ri.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,$r.h)(function(a){return"closed"===a.state}),(0,Ri.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._finishDialogClose()}),r.overlayRef.detachments().subscribe(function(){o._beforeClosed.next(o._result),o._beforeClosed.complete(),o._finishDialogClose()}),(0,Gi.T)(this.backdropClick(),this.keydownEvents().pipe((0,$r.h)(function(a){return a.keyCode===Tr.hY&&!o.disableClose&&!(0,Tr.Vb)(a)}))).subscribe(function(a){o.disableClose||(a.preventDefault(),wie(o,"keydown"===a.type?"keyboard":"mouse"))})}return(0,U.Z)(n,[{key:"close",value:function(e){var i=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,$r.h)(function(o){return"closing"===o.state}),(0,Ri.q)(1)).subscribe(function(o){i._beforeClosed.next(e),i._beforeClosed.complete(),i._ref.overlayRef.detachBackdrop(),i._closeFallbackTimeout=setTimeout(function(){return i._finishDialogClose()},o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._ref.closed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}},{key:"updatePosition",value:function(e){var i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._ref.updateSize(e,i),this}},{key:"addPanelClass",value:function(e){return this._ref.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._ref.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}]),n}();function wie(n,r,e){return n._closeInteractionType=r,n.close(e)}var ko=new t.OlP("MatDialogData"),sPe=new t.OlP("mat-dialog-default-options"),kie=new t.OlP("mat-dialog-scroll-strategy");var uPe={provide:kie,deps:[Li.aV],useFactory:function lPe(n){return function(){return n.scrollStrategies.block()}}},cPe=0,$D=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,B.Z)(this,n),this._overlay=r,this._defaultOptions=i,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new On.xQ,this._afterOpenedAtThisLevel=new On.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,uD.P)(function(){return g.openDialogs.length?g._getAfterAllClosed():g._getAfterAllClosed().pipe((0,Oo.O)(void 0))}),this._scrollStrategy=s,this._dialog=e.get(vm)}return(0,U.Z)(n,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,i){var a,o=this;(i=Object.assign(Object.assign({},this._defaultOptions||new WB),i)).id=i.id||"".concat(this._idPrefix).concat(cPe++),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();var s=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:WB,useValue:i},{provide:JD,useValue:i}]}},templateContext:function(){return{dialogRef:a}},providers:function(u,d,h){return(a=new o._dialogRefConstructor(u,i,h)).updatePosition(null==i?void 0:i.position),[{provide:o._dialogContainerType,useValue:h},{provide:o._dialogDataToken,useValue:d.data},{provide:o._dialogRefConstructor,useValue:a}]}}));return a.componentInstance=s.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(function(){var l=o.openDialogs.indexOf(a);l>-1&&(o.openDialogs.splice(l,1),o.openDialogs.length||o._getAfterAllClosed().next())}),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_closeDialogs",value:function(e){for(var i=e.length;i--;)e[i].close()}}]),n}();$D.\u0275fac=function(r){t.$Z()},$D.\u0275prov=t.Yz7({token:$D,factory:$D.\u0275fac});var Gr=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,B.Z)(this,e),r.call(this,i,o,s,u,d,l,cr,XD,ko,h)}return(0,U.Z)(e)}($D);Gr.\u0275fac=function(r){return new(r||Gr)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG(se.Ye,8),t.LFG(sPe,8),t.LFG(kie),t.LFG(Gr,12),t.LFG(Li.Xj),t.LFG(t.QbO,8))},Gr.\u0275prov=t.Yz7({token:Gr,factory:Gr.\u0275fac});var dPe=0,Pg=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Tie(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(e){wie(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),n}();Pg.\u0275fac=function(r){return new(r||Pg)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(Gr))},Pg.\u0275dir=t.lG2({type:Pg,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._onButtonClick(o)}),2&r&&t.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[t.TTD]});var yr=function(){function n(r,e,i){(0,B.Z)(this,n),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(dPe++)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=Tie(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),n}();yr.\u0275fac=function(r){return new(r||yr)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(Gr))},yr.\u0275dir=t.lG2({type:yr,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var lu=(0,U.Z)(function n(){(0,B.Z)(this,n)});lu.\u0275fac=function(r){return new(r||lu)},lu.\u0275dir=t.lG2({type:lu,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var dr=(0,U.Z)(function n(){(0,B.Z)(this,n),this.align="start"});function Tie(n,r){for(var e=n.nativeElement.parentElement;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(function(i){return i.id===e.id}):null}dr.\u0275fac=function(r){return new(r||dr)},dr.\u0275dir=t.lG2({type:dr,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}});var Sk=(0,U.Z)(function n(){(0,B.Z)(this,n)});Sk.\u0275fac=function(r){return new(r||Sk)},Sk.\u0275mod=t.oAB({type:Sk}),Sk.\u0275inj=t.cJS({providers:[Gr,uPe],imports:[sb,Li.U8,ao.eL,Gt.BQ,Gt.BQ]});var e2=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();e2.\u0275fac=function(r){return new(r||e2)(t.Y36(cr),t.Y36(ko))},e2.\u0275cmp=t.Xpm({type:e2,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Delete template"),t.qZA(),t.TgZ(3,"div",2),t._uU(4),t.qZA(),t._UZ(5,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"No"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onYesClick()}),t._uU(10," Yes "),t.qZA()()()),2&r&&(t.xp6(4),t.hij("Are you sure you want to delete template ",e.templateName,"?"))},dependencies:[dn,yr,lu,dr],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var Xd=function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.newTemplateCreated=new On.xQ}return(0,U.Z)(n,[{key:"list",value:function(e){return this.httpController.get(e,"/templates")}},{key:"deleteTemplate",value:function(e,i){return this.httpController.delete(e,"/templates/".concat(i),{observe:"body"})}}]),n}();Xd.\u0275fac=function(r){return new(r||Xd)(t.LFG(ho.zw))},Xd.\u0275prov=t.Yz7({token:Xd,factory:Xd.\u0275fac});var la=function(){function n(r,e,i){(0,B.Z)(this,n),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new t.vpe}return(0,U.Z)(n,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open(e2,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(s){s&&o.templateService.deleteTemplate(o.controller,i).subscribe(function(l){o.deleteEvent.emit(i),o.toasterService.success("Template ".concat(e," deleted."))})})}}]),n}();la.\u0275fac=function(r){return new(r||la)(t.Y36(Xd),t.Y36(Gr),t.Y36(Zn))},la.\u0275cmp=t.Xpm({type:la,selectors:[["app-delete-template"]],inputs:{controller:"controller"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(r,e){}});var Mie=m(9931),qG=m(943);function pPe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}var Sie=["*"];function hPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._handleKeydown(a))})("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationStart(a))})("@transformMenu.done",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationDone(a))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var VB={transformMenu:(0,Zt.X$)("transformMenu",[(0,Zt.SB)("void",(0,Zt.oB)({opacity:0,transform:"scale(0.8)"})),(0,Zt.eR)("void => enter",(0,Zt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({opacity:1,transform:"scale(1)"}))),(0,Zt.eR)("* => void",(0,Zt.jt)("100ms 25ms linear",(0,Zt.oB)({opacity:0})))]),fadeInItems:(0,Zt.X$)("fadeInItems",[(0,Zt.SB)("showing",(0,Zt.oB)({opacity:1})),(0,Zt.eR)("void => *",[(0,Zt.oB)({opacity:0}),(0,Zt.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Eie=(VB.fadeInItems,VB.transformMenu,new t.OlP("MatMenuContent")),t2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this._template=r,this._componentFactoryResolver=e,this._appRef=i,this._injector=o,this._viewContainerRef=a,this._document=s,this._changeDetectorRef=l,this._attached=new On.xQ}return(0,U.Z)(n,[{key:"attach",value:function(){var i,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new ao.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new ao.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var o=this._template.elementRef.nativeElement;o.parentNode.insertBefore(this._outlet.outletElement,o),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),n}();t2.\u0275fac=function(r){return new(r||t2)(t.Y36(t.Rgc),t.Y36(t._Vd),t.Y36(t.z2F),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(se.K0),t.Y36(t.sBO))},t2.\u0275dir=t.lG2({type:t2});var Ek=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(t2);Ek.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ek)))(e||Ek)}}(),Ek.\u0275dir=t.lG2({type:Ek,selectors:[["ng-template","matMenuContent",""]],features:[t._Bn([{provide:Eie,useExisting:Ek}]),t.qOj]});var JG=new t.OlP("MAT_MENU_PANEL"),mPe=(0,Gt.Kr)((0,Gt.Id)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),Er=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d;return(0,B.Z)(this,e),(u=r.call(this))._elementRef=i,u._document=o,u._focusMonitor=a,u._parentMenu=s,u._changeDetectorRef=l,u.role="menuitem",u._hovered=new On.xQ,u._focused=new On.xQ,u._highlighted=!1,u._triggersSubmenu=!1,null===(d=null==s?void 0:s.addItem)||void 0===d||d.call(s,(0,lD.Z)(u)),u}return(0,U.Z)(e,[{key:"focus",value:function(o,a){this._focusMonitor&&o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(o){this.disabled&&(o.preventDefault(),o.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var o,a=this._elementRef.nativeElement.cloneNode(!0),s=a.querySelectorAll("mat-icon, .material-icons"),l=0;l<s.length;l++)s[l].remove();return(null===(o=a.textContent)||void 0===o?void 0:o.trim())||""}},{key:"_setHighlighted",value:function(o){var a;this._highlighted=o,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"_hasFocus",value:function(){return this._document&&this._document.activeElement===this._getHostElement()}}]),e}(mPe);Er.\u0275fac=function(r){return new(r||Er)(t.Y36(t.SBq),t.Y36(se.K0),t.Y36(Yr.tE),t.Y36(JG,8),t.Y36(t.sBO))},Er.\u0275cmp=t.Xpm({type:Er,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._checkDisabled(o)})("mouseenter",function(){return e._handleMouseEnter()}),2&r&&(t.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),t.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:["mat-menu-item",""],ngContentSelectors:Sie,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(r,e){1&r&&(t.F$t(),t.Hsn(0),t._UZ(1,"div",0),t.YNc(2,pPe,2,0,"svg",1)),2&r&&(t.xp6(1),t.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()),t.xp6(1),t.Q6J("ngIf",e._triggersSubmenu))},dependencies:[se.O5,Gt.wG],encapsulation:2,changeDetection:0});var xie=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function _Pe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var gPe=0,ym=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._elementRef=r,this._ngZone=e,this._defaultOptions=i,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._tabSubscription=xa.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new On.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(gPe++)}return(0,U.Z)(n,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=(0,En.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,En.Ig)(e)}},{key:"panelClass",set:function(e){var i=this,o=this._previousPanelClass;o&&o.length&&o.split(" ").forEach(function(a){i._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(a){i._classList[a]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Yr.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,Oo.O)(this._directDescendantItems),(0,Po.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._focused})))})).subscribe(function(i){return e._keyManager.updateActiveItem(i)}),this._directDescendantItems.changes.subscribe(function(i){var o,a=e._keyManager;if("enter"===e._panelAnimationState&&(null===(o=a.activeItem)||void 0===o?void 0:o._hasFocus())){var s=i.toArray(),l=Math.max(0,Math.min(s.length-1,a.activeItemIndex||0));s[l]&&!s[l].disabled?a.setActiveItem(l):a.setNextItemActive()}})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe((0,Oo.O)(this._directDescendantItems),(0,Po.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=this._keyManager;switch(i){case Tr.hY:(0,Tr.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case Tr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Tr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===Tr.LH||i===Tr.JH)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}},{key:"focusFirstItem",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this._ngZone.onStable.pipe((0,Ri.q)(1)).subscribe(function(){var o=null;if(e._directDescendantItems.length&&(o=e._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!o||!o.contains(document.activeElement)){var a=e._keyManager;a.setFocusOrigin(i).setFirstItemActive(),!a.activeItem&&o&&o.focus()}})}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var i=this,o=Math.min(this._baseElevation+e,24),a="".concat(this._elevationPrefix).concat(o),s=Object.keys(this._classList).find(function(l){return l.startsWith(i._elevationPrefix)});(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}},{key:"setPositionClasses",value:function(){var o,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===i,a["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,Oo.O)(this._allItems)).subscribe(function(i){e._directDescendantItems.reset(i.filter(function(o){return o._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),n}();ym.\u0275fac=function(r){return new(r||ym)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(xie),t.Y36(t.sBO))},ym.\u0275dir=t.lG2({type:ym,contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Eie,5),t.Suo(i,Er,5),t.Suo(i,Er,4)),2&r)&&(t.iGM(o=t.CRH())&&(e.lazyContent=o.first),t.iGM(o=t.CRH())&&(e._allItems=o),t.iGM(o=t.CRH())&&(e.items=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,5),2&r)&&(t.iGM(i=t.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}});var Ga=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,U.Z)(e)}(ym);Ga.\u0275fac=function(r){return new(r||Ga)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(xie),t.Y36(t.sBO))},Ga.\u0275cmp=t.Xpm({type:Ga,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,e){2&r&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:JG,useExisting:Ga}]),t.qOj],ngContentSelectors:Sie,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,hPe,3,6,"ng-template"))},dependencies:[se.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[VB.transformMenu,VB.fadeInItems]},changeDetection:0});var Die=new t.OlP("mat-menu-scroll-strategy");var yPe={provide:Die,deps:[Li.aV],useFactory:function vPe(n){return function(){return n.scrollStrategies.reposition()}}},Aie=(0,bi.i$)({passive:!0}),n2=function(){function n(r,e,i,o,a,s,l,u,d){var h=this;(0,B.Z)(this,n),this._overlay=r,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xa.w.EMPTY,this._hoverSubscription=xa.w.EMPTY,this._menuCloseSubscription=xa.w.EMPTY,this._handleTouchStart=function(g){(0,Yr.yG)(g)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof ym?a:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Aie),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,U.Z)(n,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var i=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(function(o){i._destroyMenu(o),("click"===o||"tab"===o)&&i._parentMaterialMenu&&i._parentMaterialMenu.closed.emit(o)})))}},{key:"ngAfterContentInit",value:function(){this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Aie),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this,i=this.menu;if(!this._menuOpen&&i){var o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),a.hasBackdrop=null==i.hasBackdrop?!this.triggersSubmenu():i.hasBackdrop,o.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(i),i instanceof ym&&(i._startAnimation(),i._directDescendantItems.changes.pipe((0,Pr.R)(i.close)).subscribe(function(){s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}},{key:"focus",value:function(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var o,i=this;if(this._overlayRef&&this.menuOpen){var a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof ym?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,$r.h)(function(s){return"void"===s.toState}),(0,Ri.q)(1),(0,Pr.R)(a.lazyContent._attached)).subscribe({next:function(){return a.lazyContent.detach()},complete:function(){return i._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(o=null==a?void 0:a.lazyContent)||void 0===o||o.detach())}}},{key:"_initMenu",value:function(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(e){if(e.setElevation){for(var i=0,o=e.parentMenu;o;)i++,o=o.parentMenu;e.setElevation(i)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_createOverlay",value:function(e){if(!this._overlayRef){var i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(e){return new Li.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e,i){var o=this;e.setPositionClasses&&i.positionChanges.subscribe(function(a){var s="start"===a.connectionPair.overlayX?"after":"before",l="top"===a.connectionPair.overlayY?"below":"above";o._ngZone?o._ngZone.run(function(){return e.setPositionClasses(s,l)}):e.setPositionClasses(s,l)})}},{key:"_setPosition",value:function(e,i){var o="before"===e.xPosition?["end","start"]:["start","end"],a=(0,Yn.Z)(o,2),s=a[0],l=a[1],u="above"===e.yPosition?["bottom","top"]:["top","bottom"],d=(0,Yn.Z)(u,2),h=d[0],g=d[1],y=h,L=g,z=s,q=l,re=0;if(this.triggersSubmenu()){if(q=s="before"===e.xPosition?"start":"end",l=z="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){var ae=this._parentMaterialMenu.items.first;this._parentInnerPadding=ae?ae._getHostElement().offsetTop:0}re="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(y="top"===h?"bottom":"top",L="top"===g?"bottom":"top");i.withPositions([{originX:s,originY:y,overlayX:z,overlayY:h,offsetY:re},{originX:l,originY:y,overlayX:q,overlayY:h,offsetY:re},{originX:s,originY:L,overlayX:z,overlayY:g,offsetY:-re},{originX:l,originY:L,overlayX:q,overlayY:g,offsetY:-re}])}},{key:"_menuClosingActions",value:function(){var e=this,i=this._overlayRef.backdropClick(),o=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,qn.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,$r.h)(function(l){return l!==e._menuItemInstance}),(0,$r.h)(function(){return e._menuOpen})):(0,qn.of)();return(0,Gi.T)(i,a,s,o)}},{key:"_handleMousedown",value:function(e){(0,Yr.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var i=e.keyCode;(i===Tr.K5||i===Tr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===Tr.SV&&"ltr"===this.dir||i===Tr.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,$r.h)(function(i){return i===e._menuItemInstance&&!i.disabled}),(0,qG.g)(0,Mie.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof ym&&e.menu._isAnimating?e.menu._animationDone.pipe((0,Ri.q)(1),(0,qG.g)(0,Mie.E),(0,Pr.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ao.UE(e.templateRef,this._viewContainerRef)),this._portal}}]),n}();n2.\u0275fac=function(r){return new(r||n2)(t.Y36(Li.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(Die),t.Y36(JG,8),t.Y36(Er,10),t.Y36(nl.Is,8),t.Y36(Yr.tE),t.Y36(t.R0b))},n2.\u0275dir=t.lG2({type:n2,hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("mousedown",function(o){return e._handleMousedown(o)})("keydown",function(o){return e._handleKeydown(o)}),2&r&&t.uIk("aria-haspopup",e.menu?"menu":null)("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}});var ga=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(n2);ga.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ga)))(e||ga)}}(),ga.\u0275dir=t.lG2({type:ga,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]});var Ig=(0,U.Z)(function n(){(0,B.Z)(this,n)});Ig.\u0275fac=function(r){return new(r||Ig)},Ig.\u0275mod=t.oAB({type:Ig}),Ig.\u0275inj=t.cJS({providers:[yPe],imports:[se.ez,Gt.BQ,Gt.si,Li.U8,sa.ZD,Gt.BQ]});var Hu=(0,U.Z)(function n(){(0,B.Z)(this,n),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});function bPe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function CPe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function wPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function kPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function TPe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,kPe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.cloudNodesTemplates)}}function MPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,TPe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}Hu.\u0275fac=function(r){return new(r||Hu)},Hu.\u0275cmp=t.Xpm({type:Hu,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"mat-card",1)(2,"h6",2),t._uU(3),t.qZA()()()),2&r&&(t.xp6(3),t.hij(" ",e.emptyTemplatesListMessage," "))},dependencies:[di],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var r2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.cloudNodesTemplates=i.filter(function(o){return"cloud"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function SPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}r2.\u0275fac=function(r){return new(r||r2)(t.Y36(fr),t.Y36(or),t.Y36(su))},r2.\u0275cmp=t.Xpm({type:r2,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,bPe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Cloud nodes templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,CPe,3,1,"button",7),t.qZA()()(),t.YNc(10,wPe,1,0,"app-empty-templates-list",8),t.YNc(11,MPe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var i2=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetHubTemplate().subscribe(function(a){i=a}),i.template_id=ns(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({name:"Ethernet".concat(o),port_number:o});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(){e.goBack()})}}}]),n}();function EPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function xPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",22),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}i2.\u0275fac=function(r){return new(r||i2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},i2.\u0275cmp=t.Xpm({type:i2,selectors:[["app-ethernet-hubs-add-template"]],decls:23,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,SPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet hub template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet Hub locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Oie=function(){return{standalone:!0}};function DPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card")(2,"form",11)(3,"mat-form-field",12)(4,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",12)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.symbol=a)}),t.qZA()(),t.TgZ(9,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(10,"Choose symbol"),t.qZA(),t._UZ(11,"br")(12,"br"),t.TgZ(13,"mat-form-field",12)(14,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.category=a)}),t.YNc(15,xPe,2,2,"mat-option",18),t.qZA()(),t.TgZ(16,"mat-form-field",12)(17,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.numberOfPorts=a)}),t.qZA()()()(),t.TgZ(18,"div",20)(19,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(22,"Save"),t.qZA(),t._UZ(23,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(9,Oie))("ngModel",i.ethernetHubTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",t.DdM(10,Oie))}}function APe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",23),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetHubTemplate.symbol)}}var OPe=function(r){return{shadowed:r}},o2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.categories=e.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetHubTemplate=s,e.numberOfPorts=e.ethernetHubTemplate.ports_mapping.length})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"onSave",value:function(){var e=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetHubTemplate).subscribe(function(o){e.toasterService.success("Changes saved")})}}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=e}}]),n}();function PPe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function IPe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function RPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function LPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function ZPe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,LPe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetHubsTemplates)}}function NPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,ZPe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}o2.\u0275fac=function(r){return new(r||o2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc),t.Y36(ur))},o2.\u0275cmp=t.Xpm({type:o2,selectors:[["app-ethernet-hubs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,EPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hub settings"),t.qZA()()()(),t.YNc(8,DPe,24,11,"div",7),t.qZA(),t.YNc(9,APe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,OPe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetHubTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetHubTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,Kn,ri.gD,Gt.ey,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var a2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetHubsTemplates=i.filter(function(o){return"ethernet_hub"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function BPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}a2.\u0275fac=function(r){return new(r||a2)(t.Y36(fr),t.Y36(or),t.Y36(su))},a2.\u0275cmp=t.Xpm({type:a2,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,PPe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hubs templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,IPe,3,1,"button",7),t.qZA()()(),t.YNc(10,RPe,1,0,"app-empty-templates-list",8),t.YNc(11,NPe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var s2=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetSwitchTemplate().subscribe(function(a){i=a}),i.template_id=ns(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({ethertype:"0x8100",name:"Ethernet".concat(o),port_number:o,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(a){e.goBack()})}}}]),n}();function FPe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Port number"),t.qZA())}function UPe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.port_number)}}function jPe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"VLAN"),t.qZA())}function HPe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.vlan)}}function GPe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function zPe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.type)}}function WPe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"EtherType"),t.qZA())}function VPe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.ethertype)}}function YPe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function KPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function qPe(n,r){1&n&&t._UZ(0,"tr",22)}function JPe(n,r){1&n&&t._UZ(0,"tr",23)}function QPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function XPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}s2.\u0275fac=function(r){return new(r||s2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},s2.\u0275cmp=t.Xpm({type:s2,selectors:[["app-ethernet-switches-add-template"]],decls:23,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,BPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet switch template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet switch locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Pie=function(){return{standalone:!0}},Rg=function(){function n(r){(0,B.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAdd",value:function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.ethernetPorts=this.ethernetPorts.filter(function(i){return i!==e})}}]),n}();function $Pe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function eIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function tIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Rg.\u0275fac=function(r){return new(r||Rg)(t.Y36(kc))},Rg.\u0275cmp=t.Xpm({type:Rg,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","port_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vlan"],["matColumnDef","type"],["matColumnDef","ethertype"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-field"],["matInput","","type","number","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,FPe,2,0,"th",2),t.YNc(3,UPe,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,jPe,2,0,"th",2),t.YNc(6,HPe,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,GPe,2,0,"th",2),t.YNc(9,zPe,2,1,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,WPe,2,0,"th",2),t.YNc(12,VPe,2,1,"td",3),t.BQk(),t.ynx(13,7),t.YNc(14,YPe,2,0,"th",2),t.YNc(15,KPe,4,0,"td",3),t.BQk(),t.YNc(16,qPe,1,0,"tr",8),t.YNc(17,JPe,1,0,"tr",9),t.qZA(),t._UZ(18,"br"),t.TgZ(19,"mat-form-field",10)(20,"input",11),t.NdJ("ngModelChange",function(o){return e.newPort.port_number=o}),t.qZA()(),t.TgZ(21,"mat-form-field",10)(22,"input",12),t.NdJ("ngModelChange",function(o){return e.newPort.vlan=o}),t.qZA()(),t.TgZ(23,"mat-form-field",13)(24,"mat-select",14),t.NdJ("ngModelChange",function(o){return e.newPort.type=o}),t.YNc(25,QPe,2,2,"mat-option",15),t.qZA()(),t.TgZ(26,"mat-form-field",13)(27,"mat-select",16),t.NdJ("ngModelChange",function(o){return e.newPort.ethertype=o}),t.YNc(28,XPe,2,2,"mat-option",15),t.qZA()(),t.TgZ(29,"button",17),t.NdJ("click",function(){return e.onAdd()}),t._uU(30,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.ethernetPorts),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("ngModel",e.newPort.port_number),t.xp6(2),t.Q6J("ngModel",e.newPort.vlan),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(11,Pie))("ngModel",e.newPort.type),t.xp6(1),t.Q6J("ngForOf",e.portTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Pie))("ngModel",e.newPort.ethertype),t.xp6(1),t.Q6J("ngForOf",e.etherTypes))},dependencies:[se.sg,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ri.gD,Gt.ey,mi],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Iie=function(){return{standalone:!0}};function nIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",12)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.category=a)}),t.YNc(19,eIe,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"mat-form-field",19)(21,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.console_type=a)}),t.YNc(22,tIe,2,2,"mat-option",18),t.qZA()()()(),t.TgZ(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._uU(26," Port settings "),t.qZA()(),t._UZ(27,"app-ports",21,22),t.qZA()(),t.TgZ(29,"div",23)(30,"button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(31,"Cancel"),t.qZA(),t.TgZ(32,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(33,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(11,Iie))("ngModel",i.ethernetSwitchTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Iie))("ngModel",i.ethernetSwitchTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(5),t.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function rIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetSwitchTemplate.symbol)}}var iIe=function(r){return{shadowed:r}},l2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetSwitchTemplate=s})})}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetSwitchTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=e}}]),n}();function oIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function aIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function sIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function lIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function uIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,lIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function cIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,uIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}l2.\u0275fac=function(r){return new(r||l2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc),t.Y36(ur))},l2.\u0275cmp=t.Xpm({type:l2,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Rg,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button","col",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,$Pe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switch configuration"),t.qZA()()()(),t.YNc(8,nIe,34,13,"div",7),t.qZA(),t.YNc(9,rIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,iIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetSwitchTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetSwitchTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,Dl,xl,au,Uu,ri.gD,Gt.ey,ju,Rg],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var u2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetSwitchesTemplates=i.filter(function(o){return"ethernet_switch"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();u2.\u0275fac=function(r){return new(r||u2)(t.Y36(fr),t.Y36(or),t.Y36(su))},u2.\u0275cmp=t.Xpm({type:u2,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,oIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switches templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,aIe,3,1,"button",7),t.qZA()()(),t.YNc(10,sIe,1,0,"app-empty-templates-list",8),t.YNc(11,cIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var QG=(0,U.Z)(function n(){(0,B.Z)(this,n)}),id=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/computes/".concat(Ha.N.compute_id,"/docker/images"))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();id.\u0275fac=function(r){return new(r||id)(t.LFG(ho.zw))},id.\u0275prov=t.Yz7({token:id,factory:id.\u0275fac});var Pp=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","vnc","http","https","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleResolutions",value:function(){return["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]}}]),n}();function dIe(n,r){1&n&&t.Hsn(0)}Pp.\u0275fac=function(r){return new(r||Pp)},Pp.\u0275prov=t.Yz7({token:Pp,factory:Pp.\u0275fac});var xk=function(){function n(r){(0,B.Z)(this,n),this._elementRef=r}return(0,U.Z)(n,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),n}();xk.\u0275fac=function(r){return new(r||xk)(t.Y36(t.SBq))},xk.\u0275dir=t.lG2({type:xk,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var Dk=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Dk.\u0275fac=function(r){return new(r||Dk)(t.Y36(t.Rgc))},Dk.\u0275dir=t.lG2({type:Dk,selectors:[["","cdkStepLabel",""]]});var pIe=0,bm_NUMBER="number",bm_EDIT="edit",bm_DONE="done",bm_ERROR="error",Rie=new t.OlP("STEPPER_GLOBAL_OPTIONS"),lb=function(){function n(r,e){(0,B.Z)(this,n),this._stepper=r,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,U.Z)(n,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,En.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,En.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,En.Ig)(e)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(e){this._customError=(0,En.Ig)(e)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}},{key:"_showError",value:function(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}]),n}();lb.\u0275fac=function(r){return new(r||lb)(t.Y36((0,t.Gpc)(function(){return Cm})),t.Y36(Rie,8))},lb.\u0275cmp=t.Xpm({type:lb,selectors:[["cdk-step"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Dk,5),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,7),2&r)&&(t.iGM(i=t.CRH())&&(e.content=i.first))},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.YNc(0,dIe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var Cm=function(){function n(r,e,i){(0,B.Z)(this,n),this._dir=r,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new On.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=pIe++}return(0,U.Z)(n,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,En.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var i,o=(0,En.su)(e);this.steps&&this._steps?(this._isValidIndex(o),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==o&&!this._anyControlsInvalidOrPending(o)&&(o>=this._selectedIndex||this.steps.toArray()[o].editable)&&this._updateSelectedItemIndex(o)):this._selectedIndex=o}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}},{key:"orientation",get:function(){return this._orientation},set:function(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe((0,Oo.O)(this._steps),(0,Pr.R)(this._destroyed)).subscribe(function(i){e.steps.reset(i.filter(function(o){return o._stepper===e})),e.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var e=this;this._stepHeader.changes.pipe((0,Oo.O)(this._stepHeader),(0,Pr.R)(this._destroyed)).subscribe(function(i){e._sortedHeaders.reset(i.toArray().sort(function(o,a){return o._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})),e._sortedHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,qn.of)()).pipe((0,Oo.O)(this._layoutDirection()),(0,Pr.R)(this._destroyed)).subscribe(function(i){return e._keyManager.withHorizontalOrientation(i)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){e.selected||(e._selectedIndex=Math.max(e._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(e){return e.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(e){return"cdk-step-label-".concat(this._groupId,"-").concat(e)}},{key:"_getStepContentId",value:function(e){return"cdk-step-content-".concat(this._groupId,"-").concat(e)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(e){var i=e-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bm_NUMBER,o=this.steps.toArray()[e],a=this._isCurrentStep(e);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,a):this._getGuidelineLogic(o,a,i)}},{key:"_getDefaultIndicatorLogic",value:function(e,i){return e._showError()&&e.hasError&&!i?bm_ERROR:!e.completed||i?bm_NUMBER:e.editable?bm_EDIT:bm_DONE}},{key:"_getGuidelineLogic",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bm_NUMBER;return e._showError()&&e.hasError&&!i?bm_ERROR:e.completed&&!i?bm_DONE:e.completed&&i?o:e.editable&&i?bm_EDIT:o}},{key:"_isCurrentStep",value:function(e){return this._selectedIndex===e}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(e){var i=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:i[e],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}},{key:"_onKeydown",value:function(e){var i=(0,Tr.Vb)(e),o=e.keyCode,a=this._keyManager;null==a.activeItemIndex||i||o!==Tr.L_&&o!==Tr.K5?a.onKeydown(e):(this.selectedIndex=a.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(function(i){var o=i.stepControl;return(o?o.invalid||o.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,i=(0,bi.ht)();return e===i||e.contains(i)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),n}();Cm.\u0275fac=function(r){return new(r||Cm)(t.Y36(nl.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},Cm.\u0275dir=t.lG2({type:Cm,selectors:[["","cdkStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,lb,5),t.Suo(i,xk,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._stepHeader=o))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});var c2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._stepper=r,this.type="submit"});c2.\u0275fac=function(r){return new(r||c2)(t.Y36(Cm))},c2.\u0275dir=t.lG2({type:c2,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.next()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var d2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._stepper=r,this.type="button"});d2.\u0275fac=function(r){return new(r||d2)(t.Y36(Cm))},d2.\u0275dir=t.lG2({type:d2,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.previous()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var Ak=(0,U.Z)(function n(){(0,B.Z)(this,n)});function hIe(n,r){if(1&n&&t.GkF(0,8),2&n){var e=t.oxw();t.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function mIe(n,r){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function _Ie(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.completedLabel)}}function gIe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.editableLabel)}}function vIe(n,r){if(1&n&&(t.TgZ(0,"mat-icon",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function yIe(n,r){if(1&n&&(t.ynx(0,9),t.YNc(1,mIe,2,1,"span",10),t.YNc(2,_Ie,2,1,"span",11),t.YNc(3,gIe,2,1,"span",11),t.YNc(4,vIe,2,1,"mat-icon",12),t.BQk()),2&n){var e=t.oxw();t.Q6J("ngSwitch",e.state),t.xp6(1),t.Q6J("ngSwitchCase","number"),t.xp6(1),t.Q6J("ngIf","done"===e.state),t.xp6(1),t.Q6J("ngIf","edit"===e.state)}}function bIe(n,r){if(1&n&&(t.TgZ(0,"div",15),t.GkF(1,16),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function CIe(n,r){if(1&n&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.label)}}function wIe(n,r){if(1&n&&(t.TgZ(0,"div",17),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e._intl.optionalLabel)}}function kIe(n,r){if(1&n&&(t.TgZ(0,"div",18),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function TIe(n,r){}function MIe(n,r){if(1&n&&(t.Hsn(0),t.YNc(1,TIe,0,0,"ng-template",0)),2&n){var e=t.oxw();t.xp6(1),t.Q6J("cdkPortalOutlet",e._portal)}}Ak.\u0275fac=function(r){return new(r||Ak)},Ak.\u0275mod=t.oAB({type:Ak}),Ak.\u0275inj=t.cJS({imports:[nl.vT]});function EIe(n,r){1&n&&t._UZ(0,"div",11)}var Lie=function(r,e){return{step:r,i:e}};function xIe(n,r){if(1&n&&(t.ynx(0),t.GkF(1,9),t.YNc(2,EIe,1,0,"div",10),t.BQk()),2&n){var e=r.$implicit,i=r.index,o=r.last;t.oxw(2);var a=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",t.WLB(3,Lie,e,i)),t.xp6(1),t.Q6J("ngIf",!o)}}var Zie=function(r){return{animationDuration:r}},Nie=function(r,e){return{value:r,params:e}};function DIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12),t.NdJ("@horizontalStepTransition.done",function(l){t.CHM(e);var u=t.oxw(2);return t.KtG(u._animationDone.next(l))}),t.GkF(1,13),t.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=t.oxw(2);t.ekj("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),t.Q6J("@horizontalStepTransition",t.WLB(8,Nie,a._getAnimationDirection(o),t.VKq(6,Zie,a._getAnimationDuration())))("id",a._getStepContentId(o)),t.uIk("aria-labelledby",a._getStepLabelId(o)),t.xp6(1),t.Q6J("ngTemplateOutlet",i.content)}}function AIe(n,r){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5),t.YNc(2,xIe,3,6,"ng-container",6),t.qZA(),t.TgZ(3,"div",7),t.YNc(4,DIe,2,11,"div",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.steps),t.xp6(2),t.Q6J("ngForOf",e.steps)}}function OIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",15),t.GkF(1,9),t.TgZ(2,"div",16)(3,"div",17),t.NdJ("@verticalStepTransition.done",function(d){t.CHM(e);var h=t.oxw(2);return t.KtG(h._animationDone.next(d))}),t.TgZ(4,"div",18),t.GkF(5,13),t.qZA()()()()}if(2&n){var i=r.$implicit,o=r.index,a=r.last,s=t.oxw(2),l=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",t.WLB(10,Lie,i,o)),t.xp6(1),t.ekj("mat-stepper-vertical-line",!a),t.xp6(1),t.ekj("mat-vertical-stepper-content-inactive",s.selectedIndex!==o),t.Q6J("@verticalStepTransition",t.WLB(15,Nie,s._getAnimationDirection(o),t.VKq(13,Zie,s._getAnimationDuration())))("id",s._getStepContentId(o)),t.uIk("aria-labelledby",s._getStepLabelId(o)),t.xp6(2),t.Q6J("ngTemplateOutlet",i.content)}}function PIe(n,r){if(1&n&&(t.ynx(0),t.YNc(1,OIe,6,18,"div",14),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.steps)}}function IIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step-header",19),t.NdJ("click",function(){var u=t.CHM(e).step;return t.KtG(u.select())})("keydown",function(l){t.CHM(e);var u=t.oxw();return t.KtG(u._onKeydown(l))}),t.qZA()}if(2&n){var i=r.step,o=r.i,a=t.oxw();t.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),t.Q6J("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,i))("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,i))("color",i.color||a.color),t.uIk("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)("aria-disabled",!a._stepIsNavigable(o,i)||null)}}var wm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Dk);wm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wm)))(e||wm)}}(),wm.\u0275dir=t.lG2({type:wm,selectors:[["","matStepLabel",""]],features:[t.qOj]});var km=(0,U.Z)(function n(){(0,B.Z)(this,n),this.changes=new On.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});km.\u0275fac=function(r){return new(r||km)},km.\u0275prov=t.Yz7({token:km,factory:km.\u0275fac,providedIn:"root"});var LIe={provide:km,deps:[[new t.FiY,new t.tp0,km]],useFactory:function RIe(n){return n||new km}},ZIe=(0,Gt.pj)(function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,B.Z)(this,e),r.call(this,i)}return(0,U.Z)(e)}(xk),"primary"),Ok=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a))._intl=i,l._focusMonitor=o,l._intlSubscription=i.changes.subscribe(function(){return s.markForCheck()}),l}return(0,U.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._elementRef,o,a):this._elementRef.nativeElement.focus(a)}},{key:"_stringLabel",value:function(){return this.label instanceof wm?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof wm?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(o){return"number"==o?"".concat(this.index+1):"edit"==o?"create":"error"==o?"warning":o}}]),e}(ZIe);Ok.\u0275fac=function(r){return new(r||Ok)(t.Y36(km),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.sBO))},Ok.\u0275cmp=t.Xpm({type:Ok,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[t.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(r,e){1&r&&(t._UZ(0,"div",0),t.TgZ(1,"div")(2,"div",1),t.YNc(3,hIe,1,2,"ng-container",2),t.YNc(4,yIe,5,4,"ng-container",3),t.qZA()(),t.TgZ(5,"div",4),t.YNc(6,bIe,2,1,"div",5),t.YNc(7,CIe,2,1,"div",5),t.YNc(8,wIe,2,1,"div",6),t.YNc(9,kIe,2,1,"div",7),t.qZA()),2&r&&(t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),t.xp6(1),t.Gre("mat-step-icon-state-",e.state," mat-step-icon"),t.ekj("mat-step-icon-selected",e.selected),t.xp6(1),t.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(2),t.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),t.xp6(1),t.Q6J("ngIf",e._templateLabel()),t.xp6(1),t.Q6J("ngIf",e._stringLabel()),t.xp6(1),t.Q6J("ngIf",e.optional&&"error"!=e.state),t.xp6(1),t.Q6J("ngIf","error"==e.state))},dependencies:[se.O5,se.tP,se.RF,se.n9,se.ED,Dn,Gt.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0});var Uie={horizontalStepTransition:(0,Zt.X$)("horizontalStepTransition",[(0,Zt.SB)("previous",(0,Zt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Zt.SB)("current",(0,Zt.oB)({transform:"none",visibility:"inherit"})),(0,Zt.SB)("next",(0,Zt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Zt.eR)("* => *",(0,Zt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Zt.X$)("verticalStepTransition",[(0,Zt.SB)("previous",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("next",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("current",(0,Zt.oB)({height:"*",visibility:"inherit"})),(0,Zt.eR)("* <=> current",(0,Zt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])},f2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.templateRef=r});f2.\u0275fac=function(r){return new(r||f2)(t.Y36(t.Rgc))},f2.\u0275dir=t.lG2({type:f2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var p2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._template=r});p2.\u0275fac=function(r){return new(r||p2)(t.Y36(t.Rgc))},p2.\u0275dir=t.lG2({type:p2,selectors:[["ng-template","matStepContent",""]]});var od=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=xa.w.EMPTY,l}return(0,U.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._isSelected=this._stepper.steps.changes.pipe((0,Po.w)(function(){return o._stepper.selectionChange.pipe((0,$n.U)(function(a){return a.selectedStep===o}),(0,Oo.O)(o._stepper.selected===o))})).subscribe(function(a){a&&o._lazyContent&&!o._portal&&(o._portal=new ao.UE(o._lazyContent._template,o._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(o,a){var s=this._errorStateMatcher.isErrorState(o,a),l=!!(o&&o.invalid&&this.interacted);return s||l}}]),e}(lb);od.\u0275fac=function(r){return new(r||od)(t.Y36((0,t.Gpc)(function(){return $d})),t.Y36(Gt.rD,4),t.Y36(t.s_b),t.Y36(Rie,8))},od.\u0275cmp=t.Xpm({type:od,selectors:[["mat-step"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,wm,5),t.Suo(i,p2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first),t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},inputs:{color:"color"},exportAs:["matStep"],features:[t._Bn([{provide:Gt.rD,useExisting:od},{provide:lb,useExisting:od}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,MIe,2,1,"ng-template"))},dependencies:[ao.Pl],encapsulation:2,changeDetection:0});var $d=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;(0,B.Z)(this,e),(s=r.call(this,i,o,a)).steps=new t.n_E,s.animationDone=new t.vpe,s.labelPosition="end",s.headerPosition="top",s._iconOverrides={},s._animationDone=new On.xQ,s._animationDuration="";var l=a.nativeElement.nodeName.toLowerCase();return s.orientation="mat-vertical-stepper"===l?"vertical":"horizontal",s}return(0,U.Z)(e,[{key:"animationDuration",get:function(){return this._animationDuration},set:function(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}},{key:"ngAfterContentInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(a){var s=a.name,l=a.templateRef;return o._iconOverrides[s]=l}),this.steps.changes.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){o._stateChanged()}),this._animationDone.pipe((0,ts.x)(function(a,s){return a.fromState===s.fromState&&a.toState===s.toState}),(0,Pr.R)(this._destroyed)).subscribe(function(a){"current"===a.toState&&o.animationDone.emit()})}},{key:"_stepIsNavigable",value:function(o,a){return a.completed||this.selectedIndex===o||!this.linear}},{key:"_getAnimationDuration",value:function(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}]),e}(Cm);$d.\u0275fac=function(r){return new(r||$d)(t.Y36(nl.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},$d.\u0275cmp=t.Xpm({type:$d,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,od,5),t.Suo(i,f2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._icons=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Ok,5),2&r)&&(t.iGM(i=t.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(r,e){2&r&&(t.uIk("aria-orientation",e.orientation),t.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition)("mat-stepper-header-position-bottom","bottom"===e.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[t._Bn([{provide:Cm,useExisting:$d}]),t.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,AIe,5,2,"div",1),t.YNc(2,PIe,2,1,"ng-container",2),t.BQk(),t.YNc(3,IIe,1,23,"ng-template",null,3,t.W1O)),2&r&&(t.Q6J("ngSwitch",e.orientation),t.xp6(1),t.Q6J("ngSwitchCase","horizontal"),t.xp6(1),t.Q6J("ngSwitchCase","vertical"))},dependencies:[se.sg,se.O5,se.tP,se.RF,se.n9,Ok],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Uie.horizontalStepTransition,Uie.verticalStepTransition]},changeDetection:0});var Pk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(c2);Pk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Pk)))(e||Pk)}}(),Pk.\u0275dir=t.lG2({type:Pk,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var Ik=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(d2);Ik.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ik)))(e||Ik)}}(),Ik.\u0275dir=t.lG2({type:Ik,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var Rk=(0,U.Z)(function n(){(0,B.Z)(this,n)});function NIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.image," ")}}Rk.\u0275fac=function(r){return new(r||Rk)},Rk.\u0275mod=t.oAB({type:Rk}),Rk.\u0275inj=t.cJS({providers:[LIe,Gt.rD],imports:[Gt.BQ,se.ez,ao.eL,pm,Ak,Og,Gt.si,Gt.BQ]});var jie=function(){return{standalone:!0}};function BIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,NIe,2,2,"mat-option",24),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,jie))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.dockerImages)}}function FIe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-form-field",16),t._UZ(2,"input",32),t.qZA()())}function UIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var h2=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new QG,this.virtualMachineForm=this.formBuilder.group({filename:new J.p4(null,J.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new J.p4("1",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.consoleTypes=e.configurationService.getConsoleTypes(),e.templateMocksService.getDockerTemplate().subscribe(function(a){e.dockerTemplate=a}),e.dockerService.getImages(o).subscribe(function(a){e.dockerImages=a})})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.virtualMachineForm.invalid&&(this.newImageSelected||!this.selectedImage)||this.containerNameForm.invalid||this.networkAdaptersForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ns(),this.newImageSelected?this.dockerTemplate.image=this.virtualMachineForm.get("filename").value:this.dockerTemplate.image=this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id="local",this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function jIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}h2.\u0275fac=function(r){return new(r||h2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS),t.Y36(Al),t.Y36(Pp),t.Y36(Qd.X))},h2.\u0275cmp=t.Xpm({type:h2,selectors:[["app-add-docker-template"]],decls:43,vars:18,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Docker Virtual Machine",3,"completed"],[3,"formGroup"],["value","2",1,"radio-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["label","Container name",3,"completed"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Container name",1,"templatename"],["label","Network adapters",3,"completed"],["matInput","","type","number","formControlName","adapters","placeholder","Adapters",1,"networkadapter"],["label","Start command",3,"completed"],["matInput","","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"New Docker container template"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5)(7,"mat-vertical-stepper",6)(8,"mat-step",7)(9,"mat-radio-group",8)(10,"mat-radio-button",9),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(11,"Run this Docker container locally"),t.qZA()()(),t.TgZ(12,"mat-step",10)(13,"form",11)(14,"mat-radio-group",8)(15,"mat-radio-button",9),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(16,"Existing image"),t.qZA(),t.TgZ(17,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(18,"New image"),t.qZA()(),t.YNc(19,BIe,2,4,"mat-select",13),t.YNc(20,FIe,3,0,"div",14),t.qZA()(),t.TgZ(21,"mat-step",15)(22,"form",11)(23,"mat-form-field",16),t._UZ(24,"input",17),t.qZA()()(),t.TgZ(25,"mat-step",18)(26,"form",11)(27,"mat-form-field",16),t._UZ(28,"input",19),t.qZA()()(),t.TgZ(29,"mat-step",20)(30,"mat-form-field",16)(31,"input",21),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.start_command=o}),t.qZA()()(),t.TgZ(32,"mat-step",22)(33,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.console_type=o}),t.YNc(34,UIe,2,2,"mat-option",24),t.qZA()(),t.TgZ(35,"mat-step",25)(36,"mat-form-field",16)(37,"textarea",26),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.environment=o}),t.qZA()()()()(),t.TgZ(38,"div",27)(39,"button",28),t.NdJ("click",function(){return e.goBack()}),t._uU(40,"Cancel"),t.qZA(),t.TgZ(41,"button",29),t.NdJ("click",function(){return e.addTemplate()}),t._uU(42,"Add template"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.selectedImage||e.virtualMachineForm.get("filename").value),t.xp6(1),t.Q6J("formGroup",e.virtualMachineForm),t.xp6(6),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected),t.xp6(1),t.Q6J("completed",e.containerNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.containerNameForm),t.xp6(3),t.Q6J("completed",e.networkAdaptersForm.get("adapters").value),t.xp6(1),t.Q6J("formGroup",e.networkAdaptersForm),t.xp6(3),t.Q6J("completed",e.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",e.dockerTemplate.start_command),t.xp6(1),t.Q6J("completed",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(17,jie))("ngModel",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(3),t.Q6J("ngModel",e.dockerTemplate.environment))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,ri.gD,Gt.ey,od,$d,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var m2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s,e.templateName="Copy of ".concat(e.dockerTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ns(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function HIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function GIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function zIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function WIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}m2.\u0275fac=function(r){return new(r||m2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},m2.\u0275cmp=t.Xpm({type:m2,selectors:[["app-copy-docker-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,jIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy Docker container template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,Dn,Kn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var ub=function(){return{standalone:!0}};function VIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.category=a)}),t.YNc(13,GIe,2,2,"mat-option",16),t.qZA()(),t.TgZ(14,"mat-form-field",12)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.symbol=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(17,"Choose symbol"),t.qZA(),t._UZ(18,"br")(19,"br"),t.TgZ(20,"mat-form-field",12)(21,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.start_command=a)}),t.qZA()(),t.TgZ(22,"mat-form-field",12)(23,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.adapters=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",21)(25,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_type=a)}),t.YNc(26,zIe,2,2,"mat-option",16),t.qZA()(),t.TgZ(27,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_auto_start=a)}),t._uU(28," Auto start console "),t.qZA(),t.TgZ(29,"mat-form-field",21)(30,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_resolution=a)}),t.YNc(31,WIe,2,2,"mat-option",16),t.qZA()(),t.TgZ(32,"mat-form-field",12)(33,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_port=a)}),t.qZA()(),t.TgZ(34,"mat-form-field",12)(35,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_path=a)}),t.qZA()()(),t.TgZ(36,"h6"),t._uU(37,"Environment"),t.qZA(),t.TgZ(38,"mat-form-field",12)(39,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.environment=a)}),t.qZA()()(),t.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),t._uU(43," Advanced "),t.qZA()(),t.TgZ(44,"h6"),t._uU(45,"Extra hosts"),t.qZA(),t.TgZ(46,"mat-form-field",12)(47,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.extra_hosts=a)}),t.qZA()()(),t.TgZ(48,"mat-expansion-panel")(49,"mat-expansion-panel-header")(50,"mat-panel-title"),t._uU(51," Usage "),t.qZA()(),t.TgZ(52,"mat-form-field",12)(53,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.usage=a)}),t.qZA()()()(),t.TgZ(54,"div",28)(55,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(56,"Cancel"),t.qZA(),t.TgZ(57,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(58,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.name),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.default_name_format),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(25,ub))("ngModel",i.dockerTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(26,ub))("ngModel",i.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(27,ub))("ngModel",i.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(28,ub))("ngModel",i.dockerTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(29,ub))("ngModel",i.dockerTemplate.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,ub))("ngModel",i.dockerTemplate.console_http_port),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(31,ub))("ngModel",i.dockerTemplate.console_http_path),t.xp6(4),t.Q6J("ngModel",i.dockerTemplate.environment),t.xp6(8),t.Q6J("ngModel",i.dockerTemplate.extra_hosts),t.xp6(6),t.Q6J("ngModel",i.dockerTemplate.usage)}}function YIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",31),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.dockerTemplate.symbol)}}var KIe=function(r){return{shadowed:r}},_2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.dockerTemplate.symbol=e}}]),n}();function qIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function JIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/docker/addtemplate")}}function QIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function XIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function $Ie(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,XIe,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.dockerTemplates)}}function e3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,$Ie,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}_2.\u0275fac=function(r){return new(r||_2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(Pp),t.Y36(J.QS),t.Y36(ur))},_2.\u0275cmp=t.Xpm({type:_2,selectors:[["app-docker-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["formControlName","defaultName","matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","symbol","matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["matInput","","type","text","placeholder","Start command",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,HIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker image configuration"),t.qZA()()()(),t.YNc(8,VIe,59,32,"div",7),t.qZA(),t.YNc(9,YIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,KIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.dockerTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.dockerTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var g2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.dockerService.getTemplates(this.controller).subscribe(function(i){e.dockerTemplates=i.filter(function(o){return"docker"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates",e.template_id,"copy"])}}]),n}();g2.\u0275fac=function(r){return new(r||g2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(ur))},g2.\u0275cmp=t.Xpm({type:g2,selectors:[["app-docker-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,qIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker container templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,JIe,3,1,"button",7),t.qZA()()(),t.YNc(10,QIe,1,0,"app-empty-templates-list",8),t.YNc(11,e3e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.dockerTemplates.length),t.xp6(1),t.Q6J("ngIf",e.dockerTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var ad=function(){function n(){(0,B.Z)(this,n),this.countSource=new On.xQ,this.currentCount=this.countSource.asObservable(),this.cancelItem=new On.xQ,this.currentCancelItemDetails=this.cancelItem.asObservable()}return(0,U.Z)(n,[{key:"processBarCount",value:function(e){this.countSource.next(e)}},{key:"cancelFileUploading",value:function(e){this.cancelItem.next(e)}}]),n}();ad.\u0275fac=function(r){return new(r||ad)},ad.\u0275prov=t.Yz7({token:ad,factory:ad.\u0275fac,providedIn:"root"});var t3e=["primaryValueBar"],n3e=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}(),"primary"),r3e=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function i3e(){var n=(0,t.f3M)(se.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var o3e=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),a3e=0,cb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;(0,B.Z)(this,e),(d=r.call(this,i))._ngZone=o,d._animationMode=a,d._changeDetectorRef=u,d._isNoopAnimation=!1,d._value=0,d._bufferValue=0,d.animationEnd=new t.vpe,d._animationEndSubscription=xa.w.EMPTY,d.mode="determinate",d.progressbarId="mat-progress-bar-".concat(a3e++);var h=s?s.getPathname().split("#")[0]:"";return d._rectangleFillValue="url('".concat(h,"#").concat(d.progressbarId,"')"),d._isNoopAnimation="NoopAnimations"===a,l&&(l.color&&(d.color=d.defaultColor=l.color),d.mode=l.mode||d.mode),d}return(0,U.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=Hie((0,En.su)(o)||0),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(o){var a;this._bufferValue=Hie(o||0),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"_primaryTransform",value:function(){var o=this.value/100;return{transform:"scale3d(".concat(o,", 1, 1)")}}},{key:"_bufferTransform",value:function(){if("buffer"===this.mode){var o=this.bufferValue/100;return{transform:"scale3d(".concat(o,", 1, 1)")}}return null}},{key:"ngAfterViewInit",value:function(){var o=this;this._ngZone.runOutsideAngular(function(){var a=o._primaryValueBar.nativeElement;o._animationEndSubscription=(0,Xf.R)(a,"transitionend").pipe((0,$r.h)(function(s){return s.target===a})).subscribe(function(){0!==o.animationEnd.observers.length&&("determinate"===o.mode||"buffer"===o.mode)&&o._ngZone.run(function(){return o.animationEnd.next({value:o.value})})})})}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}}]),e}(n3e);function Hie(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(r,Math.min(e,n))}cb.\u0275fac=function(r){return new(r||cb)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8),t.Y36(r3e,8),t.Y36(o3e,8),t.Y36(t.sBO))},cb.\u0275cmp=t.Xpm({type:cb,selectors:[["mat-progress-bar"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(t3e,5),2&r)&&(t.iGM(i=t.CRH())&&(e._primaryValueBar=i.first))},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),t.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&r&&(t.xp6(3),t.Q6J("id",e.progressbarId),t.xp6(2),t.uIk("fill",e._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",e._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",e._primaryTransform()))},dependencies:[se.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0});var Lk=(0,U.Z)(function n(){(0,B.Z)(this,n)});Lk.\u0275fac=function(r){return new(r||Lk)},Lk.\u0275mod=t.oAB({type:Lk}),Lk.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,Gt.BQ]});var Tm=function(){function n(r,e,i){(0,B.Z)(this,n),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.upload_file_type=this.data.upload_file_type,this.subscription=this._US.currentCount.subscribe(function(i){e.uploadProgress=i,(100===e.uploadProgress||null==e.uploadProgress)&&e.dismiss()})}},{key:"dismiss",value:function(){this._snackRef.dismiss()}},{key:"cancelItem",value:function(){this._US.cancelFileUploading(!0)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();Tm.\u0275fac=function(r){return new(r||Tm)(t.Y36(HG),t.Y36(EB),t.Y36(ad))},Tm.\u0275cmp=t.Xpm({type:Tm,selectors:[["app-uploading-processbar"]],decls:8,vars:3,consts:[[1,"row","proccessBar-row"],[1,"col-md-9","proccessBar-col"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-3","proccessBar-col"],["mat-button","","color","primary",1,"file-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"p"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"div",1),t._UZ(4,"mat-progress-bar",2),t.qZA(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){return e.cancelItem()}),t._uU(7,"Cancel"),t.qZA()()()),2&r&&(t.xp6(1),t.AsE("",e.upload_file_type," Uploading please wait .... ",e.uploadProgress,"%"),t.xp6(3),t.Q6J("value",e.uploadProgress))},dependencies:[dn,cb],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var XG=(0,U.Z)(function n(){(0,B.Z)(this,n)}),sd=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=ios")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/images/upload/").concat(i)}},{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();sd.\u0275fac=function(r){return new(r||sd)(t.LFG(ho.zw))},sd.\u0275prov=t.Yz7({token:sd,factory:sd.\u0275fac});var Mm=function(){function n(){(0,B.Z)(this,n),this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"]}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getDefaultRamSettings",value:function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}}},{key:"getDefaultNvRamSettings",value:function(){return{c1700:128,c2600:128,c2691:256,c3600:192,c3620:192,c3640:192,c3660:192,c3725:256,c3745:256,c7200:512}}},{key:"getAvailablePlatforms",value:function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]}},{key:"getPlatformsWithEtherSwitchRouterOption",value:function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}}},{key:"getPlatformsWithChassis",value:function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}}},{key:"getChassis",value:function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}}},{key:"getNetworkModules",value:function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}}},{key:"getNetworkAdapters",value:function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}}},{key:"getNetworkAdaptersForPlatform",value:function(){var e={};return e.c2691={0:["GT96100-FE"],1:this.c3700_nms},e.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},e.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},e.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}}}]),n}();function s3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function l3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function u3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function c3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function d3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",20)(1,"mat-select",39),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onChassisChosen(a))}),t.YNc(2,c3e,2,2,"mat-option",22),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function f3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-checkbox",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.isEtherSwitchRouter=a)}),t._uU(1," This is an EtherSwitch router "),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("ngModel",i.isEtherSwitchRouter)}}function p3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Mm.\u0275fac=function(r){return new(r||Mm)},Mm.\u0275prov=t.Yz7({token:Mm,factory:Mm.\u0275fac});var Gie=function(){return{standalone:!0}};function h3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,p3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Gie)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function m3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,h3e,2,5,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][e])}}var _3e=function(){return[0,1,2,3,4,5,6,7]};function g3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,m3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,_3e)))}function v3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function y3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkModulesForTemplate[l]=s)}),t.YNc(1,v3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","WIC ",i,""),t.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",t.DdM(4,Gie)),t.xp6(1),t.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function b3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,y3e,2,5,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][e])}}var C3e=function(){return[0,1,2,3]};function w3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,b3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,C3e)))}function k3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"div",10)(2,"mat-vertical-stepper",11)(3,"mat-step",12)(4,"mat-radio-group",13)(5,"mat-radio-button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setControllerType("local"))}),t._uU(6,"Run this IOS router locally"),t.qZA()()(),t.TgZ(7,"mat-step",15)(8,"input",16,17),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.addImage(a))}),t.qZA(),t.TgZ(10,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(9);return t.KtG(a.click())}),t._uU(11,"Click to add image"),t.qZA(),t._uU(12," or create from existing one "),t.TgZ(13,"form",19)(14,"mat-form-field",20)(15,"mat-select",21),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onImageChosen(a))}),t.YNc(16,l3e,2,2,"mat-option",22),t.qZA()()()(),t.TgZ(17,"mat-step",23)(18,"form",19)(19,"mat-form-field",20),t._UZ(20,"input",24),t.qZA(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",25),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onPlatformChosen(a))}),t.YNc(23,u3e,2,2,"mat-option",22),t.qZA()(),t.YNc(24,d3e,3,1,"mat-form-field",26),t.qZA(),t.YNc(25,f3e,2,1,"mat-checkbox",27),t.qZA(),t.TgZ(26,"mat-step",28)(27,"form",19)(28,"mat-form-field",20),t._UZ(29,"input",29),t.TgZ(30,"span",30),t._uU(31,"MB"),t.qZA()(),t.TgZ(32,"mat-label")(33,"a",31),t._uU(34,"Check for minimum and maximum RAM requirement"),t.qZA()()()(),t.TgZ(35,"mat-step",32),t.YNc(36,g3e,2,2,"div",33),t.qZA(),t.TgZ(37,"mat-step",34),t.YNc(38,w3e,2,2,"div",33),t.qZA(),t.TgZ(39,"mat-step",35)(40,"mat-form-field",20)(41,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()()()()(),t.TgZ(42,"div",37)(43,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(44,"Cancel"),t.qZA(),t.TgZ(45,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(46,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",i.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",i.iosImageForm.get("imageName").value),t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("formGroup",i.iosImageForm),t.xp6(3),t.Q6J("ngForOf",i.iosImages),t.xp6(1),t.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),t.xp6(1),t.Q6J("formGroup",i.iosNameForm),t.xp6(5),t.Q6J("ngForOf",i.platforms),t.xp6(1),t.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),t.xp6(1),t.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),t.xp6(1),t.Q6J("completed",i.iosMemoryForm.get("memory").value),t.xp6(1),t.Q6J("formGroup",i.iosMemoryForm),t.xp6(6),t.s9C("href",i.ciscoUrl,t.LSH),t.xp6(3),t.Q6J("ngIf",i.selectedPlatform),t.xp6(2),t.Q6J("ngIf",i.iosNameForm.get("platform").value),t.xp6(3),t.Q6J("ngModel",i.iosTemplate.idlepc)}}var v2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.router=s,this.templateMocksService=l,this.iosConfigurationService=u,this.computeService=d,this.uploadServiceService=h,this.snackBar=g,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iosTemplate=new XG,this.iosImageForm=this.formBuilder.group({imageName:new J.p4(null,[J.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required]),platform:new J.p4(null,[J.kI.required]),chassis:new J.p4(null,[J.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new J.p4(null,[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()});var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIosTemplate().subscribe(function(a){e.iosTemplate=a,e.networkModules=e.iosConfigurationService.getNetworkModules(),e.networkAdaptersForPlatform=e.iosConfigurationService.getNetworkAdaptersForPlatform(),e.networkAdapters=e.iosConfigurationService.getNetworkAdapters(),e.platforms=e.iosConfigurationService.getAvailablePlatforms(),e.platformsWithEtherSwitchRouterOption=e.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),e.platformsWithChassis=e.iosConfigurationService.getPlatformsWithChassis(),e.chassis=e.iosConfigurationService.getChassis(),e.defaultRam=e.iosConfigurationService.getDefaultRamSettings()})})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"getImages",value:function(){var e=this;this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i})}},{key:"addImage",value:function(e){var i=e.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(i);var o=e.target.files[0].name,a=this.iosService.getImagePath(this.controller,o);this.uploader.queue.forEach(function(l){return l.url=a});var s=this.uploader.queue[0];s.options&&(s.options.disableMultipart=!0),s.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(s),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"addTemplate",value:function(){var e=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=ns(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol="multilayer_switch",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id="local",this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"completeAdaptersData",value:function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var e=0;e<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;e++)this.networkAdaptersForTemplate[e]||(this.networkAdaptersForTemplate[e]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(var i=0;i<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;i++)this.networkAdaptersForTemplate[i]||(this.networkAdaptersForTemplate[i]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"completeModulesData",value:function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var e=0;e<Object.keys(this.networkModules[this.iosTemplate.platform]).length;e++)this.networkModulesForTemplate[e]||(this.networkModulesForTemplate[e]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"onImageChosen",value:function(){var e=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(e),"c3620"===e||"c3640"===e||"c3660"===e?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(e),this.selectedPlatform=e),"c1700"===e?this.iosNameForm.controls.chassis.setValue("1720"):"c2600"===e?this.iosNameForm.controls.chassis.setValue("2610"):this.iosNameForm.controls.chassis.setValue(""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[e])}},{key:"onPlatformChosen",value:function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]}},{key:"onChassisChosen",value:function(){this.networkAdaptersForTemplate=[]}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function T3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}v2.\u0275fac=function(r){return new(r||v2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(J.QS),t.Y36(ur),t.Y36(Al),t.Y36(Mm),t.Y36(Qd.X),t.Y36(ad),t.Y36(rd))},v2.\u0275cmp=t.Xpm({type:v2,selectors:[["app-add-ios-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules"],["label","Idle-PC"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,s3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOS router template"),t.qZA()()()(),t.YNc(8,k3e,47,17,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iosTemplate))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.hX,kn.R9,dn,Dn,Kn,ti,ri.gD,Gt.ey,od,$d,rs,Ws],styles:[".non-visible[_ngcontent-%COMP%]{display:none}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var y2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.templateName="Copy of ".concat(e.iosTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"addTemplate",value:function(){var e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=ns(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function M3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function S3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function E3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}y2.\u0275fac=function(r){return new(r||y2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},y2.\u0275cmp=t.Xpm({type:y2,selectors:[["app-copy-ios-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,T3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOS router template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.formGroup),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Sm=function(){return{standalone:!0}};function x3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",41),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,E3e,2,2,"mat-option",14),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Sm)),t.xp6(1),t.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function D3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,x3e,2,5,"mat-select",40),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][e])}}var zie=function(){return[0,1,2,3,4,5,6,7]};function A3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,D3e,2,1,"div",39),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,zie)))}function O3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function P3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",41),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,O3e,2,2,"mat-option",14),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Sm)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function I3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,P3e,2,5,"mat-select",40),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][e])}}function R3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,I3e,2,1,"div",39),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,zie)))}function L3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Z3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic0=a)}),t.YNc(2,L3e,2,2,"mat-option",14),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function N3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function B3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic1=a)}),t.YNc(2,N3e,2,2,"mat-option",14),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function F3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function U3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",44),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic2=a)}),t.YNc(2,F3e,2,2,"mat-option",14),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function j3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",7)(7,"mat-form-field",8)(8,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",8)(10,"input",10),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-label"),t._uU(12),t.qZA(),t._UZ(13,"br")(14,"br"),t.TgZ(15,"mat-label"),t._uU(16),t.qZA(),t._UZ(17,"br")(18,"br"),t.TgZ(19,"mat-form-field",8)(20,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.symbol=a)}),t.qZA()(),t.TgZ(21,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(22,"Choose symbol"),t.qZA(),t._UZ(23,"br")(24,"br"),t.TgZ(25,"mat-form-field",8)(26,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.category=a)}),t.YNc(27,M3e,2,2,"mat-option",14),t.qZA()(),t.TgZ(28,"mat-form-field",8)(29,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.image=a)}),t.qZA()(),t.TgZ(30,"mat-form-field",8)(31,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.startup_config=a)}),t.qZA()(),t.TgZ(32,"mat-form-field",8)(33,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.private_config=a)}),t.qZA()()(),t.TgZ(34,"mat-form-field",18)(35,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_type=a)}),t.YNc(36,S3e,2,2,"mat-option",14),t.qZA()(),t.TgZ(37,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_auto_start=a)}),t._uU(38," Auto start console "),t.qZA()(),t.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Memories and disks "),t.qZA()(),t.TgZ(43,"form",7)(44,"mat-form-field",8)(45,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.ram=a)}),t.qZA(),t.TgZ(46,"span",22),t._uU(47,"MB"),t.qZA()(),t.TgZ(48,"mat-form-field",8)(49,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.nvram=a)}),t.qZA(),t.TgZ(50,"span",22),t._uU(51,"MB"),t.qZA()(),t.TgZ(52,"mat-form-field",8)(53,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.iomem=a)}),t.qZA()(),t.TgZ(54,"mat-form-field",8)(55,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk0=a)}),t.qZA()(),t.TgZ(56,"mat-form-field",8)(57,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk1=a)}),t.qZA()()(),t.TgZ(58,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.auto_delete_disks=a)}),t._uU(59," Automatically delete NVRAM and disk files "),t.qZA()(),t.TgZ(60,"mat-expansion-panel")(61,"mat-expansion-panel-header")(62,"mat-panel-title"),t._uU(63," Slots "),t.qZA()(),t.TgZ(64,"h6"),t._uU(65,"Adapters"),t.qZA(),t.YNc(66,A3e,2,2,"div",27),t.YNc(67,R3e,2,2,"div",27),t._UZ(68,"br")(69,"br"),t.TgZ(70,"h6"),t._uU(71,"WICs"),t.qZA(),t.YNc(72,Z3e,3,4,"div",27),t.YNc(73,B3e,3,4,"div",27),t.YNc(74,U3e,3,4,"div",27),t.qZA(),t.TgZ(75,"mat-expansion-panel")(76,"mat-expansion-panel-header")(77,"mat-panel-title"),t._uU(78," Advanced "),t.qZA()(),t.TgZ(79,"form",7)(80,"mat-form-field",8)(81,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.system_id=a)}),t.qZA()(),t.TgZ(82,"mat-form-field",8)(83,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mac_addr=a)}),t.qZA()(),t.TgZ(84,"mat-form-field",8)(85,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()(),t.TgZ(86,"mat-form-field",8)(87,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlemax=a)}),t.qZA()(),t.TgZ(88,"mat-form-field",8)(89,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlesleep=a)}),t.qZA()(),t.TgZ(90,"mat-form-field",8)(91,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.exec_area=a)}),t.qZA()()(),t.TgZ(92,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mmap=a)}),t._uU(93," Enable mmap support "),t.qZA(),t._UZ(94,"br")(95,"br"),t.TgZ(96,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.sparsemem=a)}),t._uU(97," Enable sparse memory supoport "),t.qZA()(),t.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),t._uU(101," Usage "),t.qZA()(),t.TgZ(102,"mat-form-field",8)(103,"textarea",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.usage=a)}),t.qZA()()()(),t.TgZ(104,"div",35)(105,"button",36),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(106,"Cancel"),t.qZA(),t.TgZ(107,"button",37),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(108,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.default_name_format),t.xp6(2),t.hij("Platform - ",i.iosTemplate.platform,""),t.xp6(4),t.hij("Chassis - ",i.iosTemplate.chassis,""),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(40,Sm))("ngModel",i.iosTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.image),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(41,Sm))("ngModel",i.iosTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.console_auto_start),t.xp6(6),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.nvram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.iomem),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk0),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk1),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.auto_delete_disks),t.xp6(8),t.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),t.xp6(5),t.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),t.xp6(5),t.Q6J("formGroup",i.advancedForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.system_id),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(42,Sm))("ngModel",i.iosTemplate.mac_addr),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(43,Sm))("ngModel",i.iosTemplate.idlepc),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlemax),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlesleep),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.exec_area),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.mmap),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.sparsemem),t.xp6(7),t.Q6J("ngModel",i.iosTemplate.usage)}}function H3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",45),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iosTemplate.symbol)}}var G3e=function(r){return{shadowed:r}},b2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required),iomemory:new J.p4("",J.kI.required),disk0:new J.p4("",J.kI.required),disk1:new J.p4("",J.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new J.p4("",J.kI.required),idlemax:new J.p4("",J.kI.required),idlesleep:new J.p4("",J.kI.required),execarea:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.fillAdaptersData()})})}},{key:"getConfiguration",value:function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes()}},{key:"fillAdaptersData",value:function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)}},{key:"completeAdaptersData",value:function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),this.iosService.saveTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=e}}]),n}();function z3e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function W3e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/dynamips/templates/addtemplate")}}function V3e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function Y3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function K3e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,Y3e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iosTemplates)}}function q3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,K3e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}b2.\u0275fac=function(r){return new(r||b2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(J.QS),t.Y36(Mm),t.Y36(ur))},b2.\u0275cmp=t.Xpm({type:b2,selectors:[["app-ios-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","initialConfig","placeholder","Initial startup-config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Initial private-config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","iomemory","placeholder","I/O memory",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk1","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","idlemax","type","number","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlesleep","type","number","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","formControlName","execarea","type","number","placeholder","Exec area",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Dynamips IOS Router configuration"),t.qZA()()(),t.YNc(5,j3e,109,44,"div",4),t.qZA(),t.YNc(6,H3e,1,2,"app-symbols-menu",5)),2&r&&(t.Q6J("ngClass",t.VKq(3,G3e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.iosTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,kn.R9,dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var C2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iosService.getTemplates(this.controller).subscribe(function(i){e.iosTemplates=i.filter(function(o){return"dynamips"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates",e.template_id,"copy"])}}]),n}();C2.\u0275fac=function(r){return new(r||C2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(ur))},C2.\u0275cmp=t.Xpm({type:C2,selectors:[["app-ios-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,z3e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"IOS router templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,W3e,3,1,"button",7),t.qZA()()(),t.YNc(10,V3e,1,0,"app-empty-templates-list",8),t.YNc(11,q3e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iosTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iosTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var $G=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ld=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=iou")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/images/upload/").concat(i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function J3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function Q3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function X3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.path),t.xp6(1),t.hij(" ",e.path," ")}}ld.\u0275fac=function(r){return new(r||ld)(t.LFG(ho.zw))},ld.\u0275prov=t.Yz7({token:ld,factory:ld.\u0275fac});var Wie=function(){return{standalone:!0}};function $3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",15)(1,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.YNc(2,X3e,2,2,"mat-option",20),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",t.DdM(3,Wie)),t.xp6(1),t.Q6J("ngForOf",i.iouImages)}}function e6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",28,29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",31),t._UZ(6,"input",32),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader)}}var w2=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.computeService=u,this.uploadServiceService=d,this.snackBar=h,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iouTemplate=new $G,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIouTemplate().subscribe(function(a){e.iouTemplate=a})}),this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"getImages",value:function(){var e=this;this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.imageForm.controls.imageName.setValue(i);var o=this.iouService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(100),this.toasterService.warning("File upload cancelled")}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=ns(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id="local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function t6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}w2.\u0275fac=function(r){return new(r||w2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS),t.Y36(Al),t.Y36(Qd.X),t.Y36(ad),t.Y36(rd))},w2.\u0275cmp=t.Xpm({type:w2,selectors:[["app-add-iou-template"]],decls:36,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,J3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this IOU device locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA()()(),t.TgZ(19,"mat-step",17)(20,"form",14)(21,"mat-radio-group",11)(22,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(23,"Existing image"),t.qZA(),t.TgZ(24,"mat-radio-button",18),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(25,"New image"),t.qZA()(),t.TgZ(26,"mat-form-field",15)(27,"mat-select",19),t.NdJ("ngModelChange",function(o){return e.selectedType=o}),t.YNc(28,Q3e,2,2,"mat-option",20),t.qZA()(),t.YNc(29,$3e,3,4,"mat-form-field",21),t.YNc(30,e6e,7,1,"div",22),t.qZA()()()(),t.TgZ(31,"div",23)(32,"button",24),t.NdJ("click",function(){return e.goBack()}),t._uU(33,"Cancel"),t.qZA(),t.TgZ(34,"button",25),t.NdJ("click",function(){return e.addTemplate()}),t._uU(35,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.templateNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.templateNameForm),t.xp6(4),t.Q6J("formGroup",e.imageForm),t.xp6(7),t.Q6J("ngModel",e.selectedType)("ngModelOptions",t.DdM(11,Wie)),t.xp6(1),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,dn,Dn,Kn,ri.gD,Gt.ey,od,$d,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var k2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s,e.templateName="Copy of ".concat(e.iouTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=ns(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()}))}}]),n}();k2.\u0275fac=function(r){return new(r||k2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},k2.\u0275cmp=t.Xpm({type:k2,selectors:[["app-copy-iou-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,t6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Lg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function n6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function r6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function i6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function o6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.ram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.ram)}}function a6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.nvram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.nvram)}}Lg.\u0275fac=function(r){return new(r||Lg)},Lg.\u0275prov=t.Yz7({token:Lg,factory:Lg.\u0275fac});var Vie=function(){return{standalone:!0}};function s6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",12)(7,"mat-form-field",2)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",2)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",2)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",2)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.category=a)}),t.YNc(19,r6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"input",19,20),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(22,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(21);return t.KtG(a.click())}),t._uU(23,"Browse"),t.qZA(),t.TgZ(24,"mat-form-field",22)(25,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",2)(27,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.startup_config=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",2)(29,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.private_config=a)}),t.qZA()()(),t.TgZ(30,"mat-form-field",26)(31,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_type=a)}),t.YNc(32,i6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(33,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_auto_start=a)}),t._uU(34," Auto start console "),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.l1_keepalives=a)}),t._uU(37," Enable layer 1 keepalive messages (non-functional) "),t.qZA(),t._UZ(38,"br"),t.TgZ(39,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.use_default_iou_values=a)}),t._uU(40," Use default IOU values for memories "),t.qZA(),t.YNc(41,o6e,4,1,"mat-form-field",29),t.YNc(42,a6e,4,1,"mat-form-field",29),t.qZA(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," Network "),t.qZA()(),t.TgZ(47,"form",12)(48,"mat-form-field",2)(49,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.ethernet_adapters=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",2)(51,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.serial_adapters=a)}),t.qZA()()()(),t.TgZ(52,"mat-expansion-panel")(53,"mat-expansion-panel-header")(54,"mat-panel-title"),t._uU(55," Usage "),t.qZA()(),t.TgZ(56,"mat-form-field",2)(57,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.usage=a)}),t.qZA()()()(),t.TgZ(58,"div",33)(59,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(60,"Cancel"),t.qZA(),t.TgZ(61,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(62,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(22,Vie))("ngModel",i.iouTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.path),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,Vie))("ngModel",i.iouTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iouTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.l1_keepalives),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(5),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.serial_adapters),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.usage)}}function l6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",39),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iouTemplate.symbol)}}var u6e=function(r){return{shadowed:r}},T2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.configurationService=a,this.router=s,this.formBuilder=l,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iouService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.controller,this.iouTemplate).subscribe(function(){e.toasterService.success("Changes saved")})}},{key:"uploadImageFile",value:function(e){this.iouTemplate.path=e.target.files[0].name}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=e}}]),n}();function c6e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences/iou/addtemplate")}}function d6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function f6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",16)(1,"mat-list-item",17),t._uU(2),t.qZA(),t.TgZ(3,"button",18)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,19)(8,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",21)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function p6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,f6e,23,4,"div",15),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iouTemplates)}}function h6e(n,r){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14),t.YNc(2,p6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}T2.\u0275fac=function(r){return new(r||T2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(Lg),t.Y36(ur),t.Y36(J.QS))},T2.\u0275cmp=t.Xpm({type:T2,selectors:[["app-iou-template-details"]],decls:11,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"form-field"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","file","accept",".bin","ngDefaultControl","",1,"nonvisible",3,"change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","formControlName","path","type","text","placeholder","IOU image path",3,"ngModel","ngModelChange"],["matInput","","formControlName","initialConfig","type","text","placeholder","Startup config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Private config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.YNc(5,n6e,3,0,"button",5),t.qZA(),t.TgZ(6,"div",6)(7,"h1",7),t._uU(8,"IOU device configuration"),t.qZA()()()()(),t.YNc(9,s6e,63,24,"div",8),t.qZA(),t.YNc(10,l6e,1,2,"app-symbols-menu",9)),2&r&&(t.Q6J("ngClass",t.VKq(4,u6e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iouTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iouTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var M2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iouService.getTemplates(this.controller).subscribe(function(i){e.iouTemplates=i.filter(function(o){return"iou"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates",e.template_id,"copy"])}}]),n}();M2.\u0275fac=function(r){return new(r||M2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(ur))},M2.\u0275cmp=t.Xpm({type:M2,selectors:[["app-iou-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:16,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"IOU device templates"),t.qZA()(),t.TgZ(10,"div",3),t.YNc(11,c6e,3,1,"button",7),t.qZA()()(),t.YNc(12,d6e,1,0,"app-empty-templates-list",8),t.YNc(13,h6e,3,1,"div",9),t.qZA(),t.TgZ(14,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iouTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iouTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var S2=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.controllerId=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();S2.\u0275fac=function(r){return new(r||S2)(t.Y36(fr))},S2.\u0275cmp=t.Xpm({type:S2,selectors:[["app-preferences"]],decls:29,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Template preferences"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Built-in "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Dynamips "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," IOS on Unix "),t.qZA(),t.TgZ(19,"mat-list-item",9),t._uU(20," VPCS "),t.qZA(),t.TgZ(21,"mat-list-item",9),t._uU(22," QEMU "),t.qZA(),t.TgZ(23,"mat-list-item",9),t._uU(24," VirtualBox "),t.qZA(),t.TgZ(25,"mat-list-item",9),t._uU(26," VMware "),t.qZA(),t.TgZ(27,"mat-list-item",9),t._uU(28," Docker "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/projects"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/dynamips/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/iou/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vpcs/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/qemu/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/virtualbox/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vmware/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/docker/templates"))},dependencies:[Wo,dn,Dn,zs,Oa],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var ez=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Gu=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/images/upload/").concat(i)}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=qemu")}},{key:"addImage",value:function(e,i){return this.httpController.post(e,"/images/upload",i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();Gu.\u0275fac=function(r){return new(r||Gu)(t.LFG(ho.zw))},Gu.\u0275prov=t.Yz7({token:Gu,factory:Gu.\u0275fac});var Em=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getPlatform",value:function(){return["x86_64","aarch64","alpha","arm","cris","i386","lm32","m68k","microblaze","microblazeel","mips","mips64","mips64el","mipsel","moxie","or32","ppc","ppc64","ppcemb","s390x","sh4","sh4eb","sparc","sparc64","tricore","unicore32","xtensa","xtensaeb"]}},{key:"getConsoleTypes",value:function(){return["telnet","vnc","spice","spice+agent","none"]}},{key:"getDiskInterfaces",value:function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]}},{key:"getNetworkTypes",value:function(){return[{value:"e1000",name:"Intel Gigabit Ethernet"},{value:"e1000-82544gc",name:"Intel 82544GC Gigabit Ethernet"},{value:"e1000-82545em",name:"Intel 82545EM Gigabit Ethernet"},{value:"e1000e",name:"Intel PCIe Gigabit Ethernet"},{value:"i82550",name:"Intel i82550 Ethernet"},{value:"i82551",name:"Intel i82551 Ethernet"},{value:"i82557a",name:"Intel i82557A Ethernet"},{value:"i82557b",name:"Intel i82557B Ethernet"},{value:"i82557c",name:"Intel i82557C Ethernet"},{value:"i82558a",name:"Intel i82558A Ethernet"},{value:"i82558b",name:"Intel i82558B Ethernet"},{value:"i82559a",name:"Intel i82559A Ethernet"},{value:"i82559b",name:"Intel i82559B Ethernet"},{value:"i82559c",name:"Intel i82559C Ethernet"},{value:"i82559er",name:"Intel i82559ER Ethernet"},{value:"i82562",name:"Intel i82562 Ethernet"},{value:"i82801",name:"Intel i82801 Ethernet"},{value:"igb",name:"Intel 82576 Gigabit Ethernet"},{value:"ne2k_pci",name:"NE2000 Ethernet"},{value:"pcnet",name:"AMD PCNet Ethernet"},{value:"rocker",name:"Rocker L2 switch device"},{value:"rtl8139",name:"Realtek 8139 Ethernet"},{value:"virtio-net-pci",name:"Paravirtualized Network I/O"},{value:"vmxnet3",name:"VMWare Paravirtualized Ethernet v3"}]}},{key:"getBootPriorities",value:function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]}},{key:"getOnCloseOptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getPriorities",value:function(){return["realtime","very high","high","normal","low","very low"]}}]),n}();function m6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function _6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function g6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function v6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.filename," ")}}Em.\u0275fac=function(r){return new(r||Em)},Em.\u0275prov=t.Yz7({token:Em,factory:Em.\u0275fac});var tz=function(){return{standalone:!0}};function y6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,v6e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,tz))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.qemuImages)}}function b6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",33,34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",35),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",36)(6,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.chosenImage=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("ngModel",i.chosenImage)}}var E2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.snackBar=h,this.uploadServiceService=g,this.selectPlatform=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isLocalComputerChosen=!0,this.qemuTemplate=new ez,this.nameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new J.p4("256",J.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.qemuService.getImages(e.controller).subscribe(function(u){e.qemuImages=u}),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.templateMocksService.getQemuTemplate().subscribe(function(a){e.qemuTemplate=a}),e.qemuService.getImages(e.controller).subscribe(function(a){e.qemuImages=a}),e.selectPlatform=e.configurationService.getPlatform(),e.selectedPlatform=e.selectPlatform[0],e.consoleTypes=e.configurationService.getConsoleTypes()}),this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.diskForm.controls.fileName.setValue(i);var o=this.qemuService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image Uploading canceled"),this.uploadServiceService.cancelFileUploading(!1)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.platform=this.selectedPlatform,this.newImageSelected?this.qemuTemplate.hda_disk_image=this.diskForm.get("fileName").value:this.qemuTemplate.hda_disk_image=this.selectedImage.path,this.qemuTemplate.template_id=ns(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id="local",this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function C6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}E2.\u0275fac=function(r){return new(r||E2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS),t.Y36(Al),t.Y36(Em),t.Y36(Qd.X),t.Y36(rd),t.Y36(ad))},E2.\u0275cmp=t.Xpm({type:E2,selectors:[["app-add-qemu-virtual-machine-template"]],decls:50,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","QEMU VM Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Please choose a descriptive name for your new QEMU virtual machine","ngDefaultContro",""],["label","Platform and memory",3,"completed"],["placeholder","Platform",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,m6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this QEMU VM locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA(),t._UZ(19,"br"),t.qZA()(),t.TgZ(20,"mat-step",17)(21,"form",14)(22,"mat-form-field",15)(23,"mat-select",18),t.NdJ("ngModelChange",function(o){return e.selectedPlatform=o}),t.YNc(24,_6e,2,2,"mat-option",19),t.qZA()(),t._UZ(25,"br"),t.TgZ(26,"mat-form-field",15),t._UZ(27,"input",20),t.TgZ(28,"span",21),t._uU(29,"MB"),t.qZA()()()(),t.TgZ(30,"mat-step",22)(31,"mat-form-field",15)(32,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.qemuTemplate.console_type=o}),t.YNc(33,g6e,2,2,"mat-option",19),t.qZA()()(),t.TgZ(34,"mat-step",24)(35,"form",14)(36,"mat-radio-group",11)(37,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(38,"Existing image"),t.qZA(),t.TgZ(39,"mat-radio-button",25),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(40,"New image"),t.qZA()(),t._UZ(41,"br")(42,"br"),t.YNc(43,y6e,2,4,"mat-select",26),t.YNc(44,b6e,7,2,"div",27),t.qZA()()()(),t.TgZ(45,"div",28)(46,"button",29),t.NdJ("click",function(){return e.goBack()}),t._uU(47,"Cancel"),t.qZA(),t.TgZ(48,"button",30),t.NdJ("click",function(){return e.addTemplate()}),t._uU(49,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.nameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.nameForm),t.xp6(4),t.Q6J("completed",e.memoryForm.get("ramMemory").value&&e.selectedPlatform),t.xp6(1),t.Q6J("formGroup",e.memoryForm),t.xp6(2),t.Q6J("ngModel",e.selectedPlatform)("ngModelOptions",t.DdM(17,tz)),t.xp6(1),t.Q6J("ngForOf",e.selectPlatform),t.xp6(6),t.Q6J("completed",e.qemuTemplate.console_type),t.xp6(2),t.Q6J("ngModel",e.qemuTemplate.console_type)("ngModelOptions",t.DdM(18,tz)),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(2),t.Q6J("formGroup",e.diskForm),t.xp6(8),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.R9,dn,Dn,Kn,ri.gD,Gt.ey,od,$d,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var x2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.nameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.templateName="Copy of ".concat(e.qemuTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=ns(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function w6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter number"),t.qZA())}function k6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Adapter ",e.adapter_number,"")}}function T6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Port name"),t.qZA())}function M6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Ethernet ",e.adapter_number,"")}}function S6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter type"),t.qZA())}function E6e(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.value),t.xp6(1),t.hij(" ",e.name," ")}}function x6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"mat-select",12),t.NdJ("ngModelChange",function(s){var u=t.CHM(e).$implicit;return t.KtG(u.adapter_type=s)}),t.YNc(2,E6e,2,2,"mat-option",13),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngModel",i.adapter_type),t.xp6(1),t.Q6J("ngForOf",o.networkTypes)}}function D6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Actions"),t.qZA())}function A6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"button",15),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",16),t._uU(3,"delete"),t.qZA()()()}}function O6e(n,r){1&n&&t._UZ(0,"tr",17)}function P6e(n,r){1&n&&t._UZ(0,"tr",18)}x2.\u0275fac=function(r){return new(r||x2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},x2.\u0275cmp=t.Xpm({type:x2,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,C6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Zg=function(){function n(){(0,B.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,U.Z)(n,[{key:"onAdd",value:function(){var e={adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]};this.adapters=this.adapters.concat([e])}},{key:"delete",value:function(e){this.adapters=this.adapters.filter(function(i){return i!==e})}}]),n}();Zg.\u0275fac=function(r){return new(r||Zg)},Zg.\u0275cmp=t.Xpm({type:Zg,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,w6e,2,0,"th",2),t.YNc(3,k6e,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,T6e,2,0,"th",2),t.YNc(6,M6e,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,S6e,2,0,"th",2),t.YNc(9,x6e,3,2,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,D6e,2,0,"th",2),t.YNc(12,A6e,4,0,"td",3),t.BQk(),t.YNc(13,O6e,1,0,"tr",7),t.YNc(14,P6e,1,0,"tr",8),t.qZA(),t.TgZ(15,"button",9),t.NdJ("click",function(){return e.onAdd()}),t._uU(16,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.adapters),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[se.sg,J.JJ,J.On,dn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ri.gD,Gt.ey,mi],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var I6e=["customAdapters"],db=function(){function n(){(0,B.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new t.vpe,this.saveConfigurationEmitter=new t.vpe}return(0,U.Z)(n,[{key:"cancelConfigureCustomAdapters",value:function(){this.closeConfiguratorEmitter.emit(!1)}},{key:"configureCustomAdapters",value:function(){var e=this;this.adapters=[],this.customAdapters.adapters.forEach(function(i){e.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.saveConfigurationEmitter.emit(this.adapters)}}]),n}();db.\u0275fac=function(r){return new(r||db)},db.\u0275cmp=t.Xpm({type:db,selectors:[["app-custom-adapters"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(I6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Custom adapters configuration"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5),t._UZ(7,"app-custom-adapters-table",6,7),t.qZA(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.cancelConfigureCustomAdapters()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.configureCustomAdapters()}),t._uU(13,"Apply"),t.qZA(),t._UZ(14,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns)("adapters",e.adapters))},dependencies:[dn,Zg],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var R6e=["customAdaptersConfigurator"];function L6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function Z6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function N6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function B6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function F6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function U6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function j6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function H6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function G6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function z6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function W6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.AsE("",e.name," (",e.value,") ")}}function V6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",14)(1,"input",58),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.qemuTemplate.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function Y6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function K6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.symbol=a)}),t.qZA()()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.category=a)}),t.YNc(19,Z6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",14)(21,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.platform=a)}),t.YNc(22,N6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-form-field",14)(24,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.ram=a)}),t.qZA(),t.TgZ(25,"span",23),t._uU(26,"MB"),t.qZA()(),t.TgZ(27,"mat-form-field",14)(28,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cpus=a)}),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.boot_priority=a)}),t.YNc(31,B6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(32,"mat-form-field",14)(33,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.on_close=a)}),t.YNc(34,F6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(35,"mat-form-field",27)(36,"mat-select",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_type=a)}),t.YNc(37,U6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(38,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_auto_start=a)}),t._uU(39," Auto start console "),t.qZA()(),t.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),t._uU(43," HDD "),t.qZA()(),t.TgZ(44,"mat-card"),t._UZ(45,"mat-card-title"),t.TgZ(46,"mat-card-subtitle"),t._uU(47," HDA (Primary Master) "),t.qZA(),t.TgZ(48,"mat-card-content")(49,"mat-form-field",14)(50,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_image=a)}),t.qZA()(),t.TgZ(51,"mat-form-field",14)(52,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_interface=a)}),t.YNc(53,j6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(54,"mat-card"),t._UZ(55,"mat-card-title"),t.TgZ(56,"mat-card-subtitle"),t._uU(57," HDB (Primary Slave) "),t.qZA(),t.TgZ(58,"mat-card-content")(59,"mat-form-field",14)(60,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_image=a)}),t.qZA()(),t.TgZ(61,"mat-form-field",14)(62,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_interface=a)}),t.YNc(63,H6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(64,"mat-card"),t._UZ(65,"mat-card-title"),t.TgZ(66,"mat-card-subtitle"),t._uU(67," HDC (Secondary Master) "),t.qZA(),t.TgZ(68,"mat-card-content")(69,"mat-form-field",14)(70,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_image=a)}),t.qZA()(),t.TgZ(71,"mat-form-field",14)(72,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_interface=a)}),t.YNc(73,G6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(74,"mat-card"),t._UZ(75,"mat-card-title"),t.TgZ(76,"mat-card-subtitle"),t._uU(77," HDD (Secondary Slave) "),t.qZA(),t.TgZ(78,"mat-card-content")(79,"mat-form-field",14)(80,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_image=a)}),t.qZA()(),t.TgZ(81,"mat-form-field",14)(82,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_interface=a)}),t.YNc(83,z6e,2,2,"mat-option",20),t.qZA()()()()(),t.TgZ(84,"mat-expansion-panel")(85,"mat-expansion-panel-header")(86,"mat-panel-title"),t._uU(87," CD/DVD "),t.qZA()(),t.TgZ(88,"div")(89,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(92);return t.KtG(a.click())}),t._uU(90,"Browse"),t.qZA(),t.TgZ(91,"input",33,34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(93,"mat-form-field",35)(94,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cdrom_image=a)}),t.qZA()()()(),t.TgZ(95,"mat-expansion-panel")(96,"mat-expansion-panel-header")(97,"mat-panel-title"),t._uU(98," Network "),t.qZA()(),t.TgZ(99,"mat-form-field",14)(100,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapters=a)}),t.qZA()(),t.TgZ(101,"mat-form-field",14)(102,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(103,"mat-form-field",14)(104,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(105,"mat-form-field",14)(106,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(107,"mat-form-field",14)(108,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.mac_address=a)}),t.qZA()(),t.TgZ(109,"mat-form-field",14)(110,"mat-select",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapter_type=a)}),t.YNc(111,W6e,2,3,"mat-option",20),t.qZA()(),t.TgZ(112,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(113," Configure custom adapters"),t.qZA(),t._UZ(114,"br"),t.TgZ(115,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.replicate_network_connection_state=a)}),t._uU(116," Replicate network connection state "),t.qZA()(),t.TgZ(117,"mat-expansion-panel")(118,"mat-expansion-panel-header")(119,"mat-panel-title"),t._uU(120," Advanced "),t.qZA()(),t.TgZ(121,"mat-card"),t._UZ(122,"mat-card-title"),t.TgZ(123,"mat-card-subtitle"),t._uU(124," Linux boot specific settings "),t.qZA(),t.TgZ(125,"mat-card-content")(126,"div")(127,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(130);return t.KtG(a.click())}),t._uU(128,"Browse"),t.qZA(),t.TgZ(129,"input",33,44),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(131,"mat-form-field",35)(132,"input",45),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.initrd=a)}),t.qZA()()(),t.TgZ(133,"div")(134,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(135," Browse "),t.qZA(),t.TgZ(136,"input",33,46),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(138,"mat-form-field",35)(139,"input",47),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_image=a)}),t.qZA()()(),t.TgZ(140,"mat-form-field",14)(141,"input",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(142,"mat-card"),t._UZ(143,"mat-card-title"),t.TgZ(144,"mat-card-subtitle"),t._uU(145," Bios "),t.qZA(),t.TgZ(146,"mat-card-content")(147,"div")(148,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(151);return t.KtG(a.click())}),t._uU(149,"Browse"),t.qZA(),t.TgZ(150,"input",33,49),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(152,"mat-form-field",35)(153,"input",50),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.bios_image=a)}),t.qZA()()()()(),t.TgZ(154,"mat-card"),t._UZ(155,"mat-card-title"),t.TgZ(156,"mat-card-subtitle"),t._uU(157," Optimization "),t.qZA(),t.TgZ(158,"mat-card-content")(159,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(160," Activate CPU throttling "),t.qZA(),t.YNc(161,V6e,2,1,"mat-form-field",51),t.TgZ(162,"mat-form-field",14)(163,"mat-select",52),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.process_priority=a)}),t.YNc(164,Y6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(165,"mat-card"),t._UZ(166,"mat-card-title"),t.TgZ(167,"mat-card-subtitle"),t._uU(168," Additional settings "),t.qZA(),t.TgZ(169,"mat-card-content")(170,"mat-form-field",14)(171,"input",53),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.options=a)}),t.qZA()(),t.TgZ(172,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.linked_clone=a)}),t._uU(173," Use as a linked base VM "),t.qZA(),t._UZ(174,"br"),t.TgZ(175,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.tpm=a)}),t._uU(176," Enable the Trusted Platform Module (TPM)"),t.qZA(),t._UZ(177,"br"),t.TgZ(178,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.uefi=a)}),t._uU(179," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(180,"mat-expansion-panel")(181,"mat-expansion-panel-header")(182,"mat-panel-title"),t._uU(183," Usage "),t.qZA()(),t.TgZ(184,"mat-form-field",14)(185,"textarea",54),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.usage=a)}),t.qZA()()()(),t.TgZ(186,"div",55)(187,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(188,"Cancel"),t.qZA(),t.TgZ(189,"button",56),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(190,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.platform),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.cpus),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.console_auto_start),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.hda_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(11),t.Q6J("ngModel",i.qemuTemplate.cdrom_image),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.mac_address),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.replicate_network_connection_state),t.xp6(17),t.Q6J("ngModel",i.qemuTemplate.initrd),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.kernel_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.options),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.linked_clone),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.tpm),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.uefi),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.usage)}}function q6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",59),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.qemuTemplate.symbol)}}var J6e=function(r){return{shadowed:r}},D2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.selectPlatform=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.fillCustomAdapters()})}),this.selectPlatform=this.configurationService.getPlatform()}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()}},{key:"uploadCdromImageFile",value:function(e){this.qemuTemplate.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.qemuTemplate.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.qemuTemplate.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.qemuTemplate.bios_image=e.target.files[0].name}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var i=0;i<this.qemuTemplate.adapters;i++)e[i]?this.qemuTemplate.custom_adapters.push(e[i]):this.qemuTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=e}}]),n}();function Q6e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function X6e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/qemu/addtemplate")}}function $6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function eRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function tRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,eRe,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.qemuTemplates)}}function nRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,tRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}D2.\u0275fac=function(r){return new(r||D2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(Em),t.Y36(J.QS),t.Y36(ur))},D2.\u0275cmp=t.Xpm({type:D2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(R6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Platform",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,L6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM configuration"),t.qZA()()()(),t.YNc(8,K6e,191,51,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,q6e,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,J6e,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.qemuTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.qemuTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.qemuTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Y0,lk,uk,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,ju,db],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var A2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.qemuService.getTemplates(this.controller).subscribe(function(i){e.qemuTemplates=i.filter(function(o){return"qemu"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates",e.template_id,"copy"])}}]),n}();A2.\u0275fac=function(r){return new(r||A2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(ur))},A2.\u0275cmp=t.Xpm({type:A2,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,Q6e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,X6e,3,1,"button",7),t.qZA()()(),t.YNc(10,$6e,1,0,"app-empty-templates-list",8),t.YNc(11,nRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.qemuTemplates.length),t.xp6(1),t.Q6J("ngIf",e.qemuTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var xm=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(Ha.N.compute_id,"/virtualbox/vms"))}}]),n}();function rRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function iRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}function oRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,iRe,2,2,"mat-option",14),t.qZA()()(),t.TgZ(6,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(7," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(8,"div",16)(9,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(12,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.vmForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}xm.\u0275fac=function(r){return new(r||xm)(t.LFG(ho.zw))},xm.\u0275prov=t.Yz7({token:xm,factory:xm.\u0275fac});var O2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.vmForm=this.formBuilder.group({vm:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.virtualBoxService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVirtualBoxTemplate().subscribe(function(s){e.virtualBoxTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"addTemplate",value:function(){var e=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=ns(),this.virtualBoxService.addTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))}}]),n}();O2.\u0275fac=function(r){return new(r||O2)(t.Y36(fr),t.Y36(or),t.Y36(xm),t.Y36(Zn),t.Y36(Al),t.Y36(ur),t.Y36(J.QS))},O2.\u0275cmp=t.Xpm({type:O2,selectors:[["app-add-virtual-box-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[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,"div",3),t.YNc(4,rRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VirtualBox VM template"),t.qZA()()()(),t.YNc(8,oRe,13,4,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate))},dependencies:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,ti,ri.gD,Gt.ey],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Ng=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]}}]),n}();Ng.\u0275fac=function(r){return new(r||Ng)},Ng.\u0275prov=t.Yz7({token:Ng,factory:Ng.\u0275fac});var aRe=["customAdaptersConfigurator"];function sRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function lRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function uRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function cRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function dRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Zk=function(){return{standalone:!0}};function fRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.category=a)}),t.YNc(19,lRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_type=a)}),t.YNc(22,uRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.ram=a)}),t.qZA(),t.TgZ(27,"span",25),t._uU(28,"MB"),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.on_close=a)}),t.YNc(31,cRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(32,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.headless=a)}),t._uU(33," Start VM in headless mode "),t.qZA(),t._UZ(34,"br"),t.TgZ(35,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(36," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),t._uU(40," Network "),t.qZA()(),t.TgZ(41,"form",13)(42,"mat-form-field",14)(43,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapters=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(48,"mat-form-field",14)(49,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",14)(51,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapter_type=a)}),t.YNc(52,dRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(53,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(54," Configure custom adapters"),t.qZA(),t._UZ(55,"br"),t.TgZ(56,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.use_any_adapter=a)}),t._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA()(),t.TgZ(58,"mat-expansion-panel")(59,"mat-expansion-panel-header")(60,"mat-panel-title"),t._uU(61," Usage "),t.qZA()(),t.TgZ(62,"mat-form-field",14)(63,"textarea",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.usage=a)}),t.qZA()()()(),t.TgZ(64,"div",35)(65,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(66,"Cancel"),t.qZA(),t.TgZ(67,"button",36),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(68,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(29,Zk))("ngModel",i.virtualBoxTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,Zk))("ngModel",i.virtualBoxTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Zk))("ngModel",i.virtualBoxTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Zk))("ngModel",i.virtualBoxTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.headless),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),t.xp6(6),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(33,Zk))("ngModel",i.virtualBoxTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(34,Zk))("ngModel",i.virtualBoxTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function pRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",38),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.virtualBoxTemplate.symbol)}}var hRe=function(r){return{shadowed:r}},P2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.formBuilder=a,this.virtualBoxConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new J.p4("",J.kI.required),nameFormat:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.virtualBoxService.getTemplate(e.controller,o).subscribe(function(s){e.virtualBoxTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var i=0;i<this.virtualBoxTemplate.adapters;i++)e[i]?this.virtualBoxTemplate.custom_adapters.push(e[i]):this.virtualBoxTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=e}}]),n}();function mRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function _Re(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/virtualbox/addtemplate")}}function gRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function vRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function yRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,vRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.virtualBoxTemplates)}}function bRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,yRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}P2.\u0275fac=function(r){return new(r||P2)(t.Y36(fr),t.Y36(or),t.Y36(xm),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ng),t.Y36(ur))},P2.\u0275cmp=t.Xpm({type:P2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(aRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,sRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM configuration"),t.qZA()()()(),t.YNc(8,fRe,69,35,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,pRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,hRe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.virtualBoxTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.virtualBoxTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,ju,db],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var I2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.virtualBoxService.getTemplates(this.controller).subscribe(function(i){e.virtualBoxTemplates=i.filter(function(o){return"virtualbox"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();I2.\u0275fac=function(r){return new(r||I2)(t.Y36(fr),t.Y36(or),t.Y36(xm))},I2.\u0275cmp=t.Xpm({type:I2,selectors:[["app-virtual-box-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,mRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,_Re,3,1,"button",7),t.qZA()()(),t.YNc(10,gRe,1,0,"app-empty-templates-list",8),t.YNc(11,bRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("ngIf",e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Dm=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(Ha.N.compute_id,"/vmware/vms"))}}]),n}();function CRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function wRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}Dm.\u0275fac=function(r){return new(r||Dm)(t.LFG(ho.zw))},Dm.\u0275prov=t.Yz7({token:Dm,factory:Dm.\u0275fac});var kRe=function(){return{standalone:!0}};function TRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,wRe,2,2,"mat-option",14),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(8," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(9,"div",16)(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(13,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.templateNameForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(5,kRe))("ngModel",i.vmwareTemplate.linked_clone)}}var R2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.vmwareService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVmwareTemplate().subscribe(function(s){e.vmwareTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=ns(),this.vmwareService.addTemplate(this.controller,this.vmwareTemplate).subscribe(function(){e.goBack()}))}}]),n}();R2.\u0275fac=function(r){return new(r||R2)(t.Y36(fr),t.Y36(or),t.Y36(Dm),t.Y36(Zn),t.Y36(Al),t.Y36(ur),t.Y36(J.QS))},R2.\u0275cmp=t.Xpm({type:R2,selectors:[["app-add-vmware-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[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,"div",3),t.YNc(4,CRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VMware VM template"),t.qZA()()()(),t.YNc(8,TRe,14,6,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate))},dependencies:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,ti,ri.gD,Gt.ey],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Bg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]}}]),n}();Bg.\u0275fac=function(r){return new(r||Bg)},Bg.\u0275prov=t.Yz7({token:Bg,factory:Bg.\u0275fac});var MRe=["customAdaptersConfigurator"];function SRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function ERe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function xRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function DRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function ARe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Nk=function(){return{standalone:!0}};function ORe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.category=a)}),t.YNc(19,ERe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_type=a)}),t.YNc(22,xRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.on_close=a)}),t.YNc(27,DRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(28,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.headless=a)}),t._uU(29," Start VM in headless mode "),t.qZA(),t._UZ(30,"br")(31,"br"),t.TgZ(32,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(33," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(34,"mat-expansion-panel")(35,"mat-expansion-panel-header")(36,"mat-panel-title"),t._uU(37," Network "),t.qZA()(),t.TgZ(38,"mat-form-field",14)(39,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapters=a)}),t.qZA()(),t.TgZ(40,"mat-form-field",14)(41,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(42,"mat-form-field",14)(43,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"mat-select",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapter_type=a)}),t.YNc(48,ARe,2,2,"mat-option",20),t.qZA()(),t.TgZ(49,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(50," Configure custom adapters"),t.qZA(),t._UZ(51,"br"),t.TgZ(52,"mat-checkbox",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.use_any_adapter=a)}),t._uU(53," Allow GNS3 to override non custom VMware adapter "),t.qZA()(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._uU(57," Usage "),t.qZA()(),t.TgZ(58,"mat-form-field",14)(59,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.usage=a)}),t.qZA()()()(),t.TgZ(60,"div",33)(61,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(62,"Cancel"),t.qZA(),t.TgZ(63,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(64,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(27,Nk))("ngModel",i.vmwareTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(28,Nk))("ngModel",i.vmwareTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(29,Nk))("ngModel",i.vmwareTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(30,Nk))("ngModel",i.vmwareTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Nk))("ngModel",i.vmwareTemplate.headless),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Nk))("ngModel",i.vmwareTemplate.linked_clone),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.usage)}}function PRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",36),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vmwareTemplate.symbol)}}var IRe=function(r){return{shadowed:r}},L2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.formBuilder=a,this.vmwareConfigurationService=s,this.router=l,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vmwareService.getTemplate(e.controller,o).subscribe(function(s){e.vmwareTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.controller,this.vmwareTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var i=0;i<this.vmwareTemplate.adapters;i++)e[i]?this.vmwareTemplate.custom_adapters.push(e[i]):this.vmwareTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.vmwareTemplate.symbol=e}}]),n}();function RRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function LRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vmware/addtemplate")}}function ZRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function NRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function BRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,NRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vmwareTemplates)}}function FRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,BRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}L2.\u0275fac=function(r){return new(r||L2)(t.Y36(fr),t.Y36(or),t.Y36(Dm),t.Y36(Zn),t.Y36(J.QS),t.Y36(Bg),t.Y36(ur))},L2.\u0275cmp=t.Xpm({type:L2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(MRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,SRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM configuration"),t.qZA()()()(),t.YNc(8,ORe,65,33,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,PRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,IRe,e.isSymbolSelectionOpened||e.isConfiguratorOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.vmwareTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vmwareTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,ju,db],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Z2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vmwareService.getTemplates(this.controller).subscribe(function(i){e.vmwareTemplates=i.filter(function(o){return"vmware"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();Z2.\u0275fac=function(r){return new(r||Z2)(t.Y36(fr),t.Y36(or),t.Y36(Dm))},Z2.\u0275cmp=t.Xpm({type:Z2,selectors:[["app-vmware-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,RRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,LRe,3,1,"button",7),t.qZA()()(),t.YNc(10,ZRe,1,0,"app-empty-templates-list",8),t.YNc(11,FRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vmwareTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vmwareTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Am=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function URe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}Am.\u0275fac=function(r){return new(r||Am)(t.LFG(ho.zw))},Am.\u0275prov=t.Yz7({token:Am,factory:Am.\u0275fac});var N2=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"addTemplate",value:function(){var i,e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe(function(o){i=o}),i.template_id=ns(),i.name=this.templateName,i.compute_id="local",this.vpcsService.addTemplate(this.controller,i).subscribe(function(){e.goBack()}))}}]),n}();N2.\u0275fac=function(r){return new(r||N2)(t.Y36(fr),t.Y36(or),t.Y36(Am),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},N2.\u0275cmp=t.Xpm({type:N2,selectors:[["app-add-vpcs-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,URe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VPCS node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the VPCS node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.templateNameForm))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Om=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function jRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function HRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function GRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Om.\u0275fac=function(r){return new(r||Om)},Om.\u0275prov=t.Yz7({token:Om,factory:Om.\u0275fac});var nz=function(){return{standalone:!0}};function zRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card",11)(2,"form",12)(3,"mat-form-field",13)(4,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",13)(6,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",13)(8,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.base_script_file=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",13)(10,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.symbol=a)}),t.qZA()(),t.TgZ(11,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(12,"Choose symbol"),t.qZA(),t._UZ(13,"br")(14,"br"),t.TgZ(15,"mat-form-field",13)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.category=a)}),t.YNc(17,HRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(18,"mat-form-field",21)(19,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_type=a)}),t.YNc(20,GRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(21,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA()()(),t.TgZ(23,"div",24)(24,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(25,"Cancel"),t.qZA(),t.TgZ(26,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(27,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.base_script_file),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(13,nz))("ngModel",i.vpcsTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(14,nz))("ngModel",i.vpcsTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(15,nz))("ngModel",i.vpcsTemplate.console_auto_start)}}function WRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vpcsTemplate.symbol)}}var VRe=function(r){return{shadowed:r}},B2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.toasterService=o,this.formBuilder=a,this.vpcsConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),scriptFile:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vpcsService.getTemplate(e.controller,o).subscribe(function(s){e.vpcsTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.controller,this.vpcsTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=e}}]),n}();function YRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function KRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vpcs/addtemplate")}}function qRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function JRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"delete"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function QRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,JRe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vpcsTemplates)}}function XRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,QRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}B2.\u0275fac=function(r){return new(r||B2)(t.Y36(fr),t.Y36(or),t.Y36(Am),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om),t.Y36(ur))},B2.\u0275cmp=t.Xpm({type:B2,selectors:[["app-vpcs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,jRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS device configuration"),t.qZA()()()(),t.YNc(8,zRe,28,16,"div",7),t.qZA(),t.YNc(9,WRe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,VRe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vpcsTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vpcsTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,Kn,ti,ri.gD,Gt.ey,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var F2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vpcsService.getTemplates(this.controller).subscribe(function(i){e.vpcsTemplates=i.filter(function(o){return"vpcs"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();F2.\u0275fac=function(r){return new(r||F2)(t.Y36(fr),t.Y36(or),t.Y36(Am))},F2.\u0275cmp=t.Xpm({type:F2,selectors:[["app-vpcs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,YRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS node templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,KRe,3,1,"button",7),t.qZA()()(),t.YNc(10,qRe,1,0,"app-empty-templates-list",8),t.YNc(11,XRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vpcsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vpcsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,Oa,mi,la,Hu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Vs=m(9971);function $Re(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(null==e?null:e.name)}}function eLe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function tLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"form",1),t.NdJ("ngSubmit",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.export_project_form.valid&&a.exportPortableProject())}),t.TgZ(1,"div",2)(2,"div",3)(3,"h1",4),t._uU(4,"Export Project"),t.qZA()(),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t._UZ(9,"mat-divider"),t.TgZ(10,"div",7)(11,"div",2)(12,"div",8),t._uU(13,"Compression:"),t.qZA(),t.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-select",11),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectCompression(a))}),t.YNc(17,$Re,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(18,"div",2)(19,"div",8),t._uU(20,"Compression level:"),t.qZA(),t.TgZ(21,"div",9)(22,"mat-form-field",10)(23,"mat-select",13),t.YNc(24,eLe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(25,"div",2)(26,"div",14)(27,"section",15)(28,"mat-checkbox",16),t._uU(29," Include base images "),t.qZA()()()(),t.TgZ(30,"div",2)(31,"div",14)(32,"section",15)(33,"mat-checkbox",17),t._uU(34," Include snapshots "),t.qZA()()()(),t.TgZ(35,"div",2)(36,"div",14)(37,"section",15)(38,"mat-checkbox",18),t._uU(39," Reset MAC addresses"),t.qZA()()()()(),t._UZ(40,"mat-divider"),t.TgZ(41,"div",2)(42,"div",19)(43,"div",20)(44,"button",21),t._uU(45,"Export"),t.qZA(),t.TgZ(46,"button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t._uU(47,"Cancel"),t.qZA()()()()()}if(2&n){var i=t.oxw();t.Q6J("formGroup",i.export_project_form),t.xp6(17),t.Q6J("ngForOf",i.compression_methods),t.xp6(7),t.Q6J("ngForOf",i.compression_filter_value),t.xp6(20),t.Q6J("disabled",i.isExport)}}var Bk=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.projectService=i,this._fb=o,this.chosenImage="",this.compression_methods=[],this.compression_level=[],this.compression_filter_value=[],this.index=4,this.isExport=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.controller=this.data.controllerDetails,this.project=this.data.projectDetails,this.project&&(this.fileName=this.project.name+".gns3project"),o.next=5,this.formControls();case 5:this.compression_methods=this.projectService.getCompression(),this.compression_level=this.projectService.getCompressionLevel(),this.selectCompression({value:this.compression_methods[this.index]}),this.export_project_form.get("compression").setValue(this.compression_methods[this.index]);case 9:case"end":return o.stop()}},e,this)}))}},{key:"formControls",value:function(){this.export_project_form=this._fb.group({compression:["",J.kI.required],compression_level:[""],include_base_image:[!1,J.kI.required],include_snapshots:[!1,J.kI.required],reset_mac_address:[!1,J.kI.required]}),this.export_project_form.valueChanges.subscribe(function(){})}},{key:"selectCompression",value:function(e){var i=this;this.compression_level.length>0&&this.compression_level.map(function(o){e.value.value===o.name&&(i.export_project_form.get("compression_level").setValue(o.value),i.compression_filter_value=o.selectionValues)})}},{key:"exportPortableProject",value:function(){var e;this.isExport=!0,this.export_project_form.value.compression=null!==(e=this.export_project_form.value.compression.value)&&void 0!==e?e:"zstd",window.location.assign(this.projectService.getexportPortableProjectPath(this.controller,this.project.project_id,this.export_project_form.value)),this.dialogRef.close()}}]),n}();Bk.\u0275fac=function(r){return new(r||Bk)(t.Y36(cr),t.Y36(ko),t.Y36(Vs.Y),t.Y36(J.QS))},Bk.\u0275cmp=t.Xpm({type:Bk,selectors:[["app-export-portable-project"]],decls:1,vars:1,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-10"],["mat-dialog-title",""],[1,"col-md-2","txt-align"],["mat-button","","type","button",1,"close-btn",3,"click"],[1,"mat-data"],[1,"col-md-4","col-data"],[1,"col-md-8"],[1,"input-full-width"],["formControlName","compression","required","",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","compression_level"],[1,"col-md-12","checkbox-row"],[1,"checkBox-section"],["formControlName","include_base_image",1,"checkBox-margin"],["formControlName","include_snapshots",1,"checkBox-margin"],["formControlName","reset_mac_address",1,"checkBox-margin"],[1,"col-md-12"],["mat-dialog-actions","","align","end"],["mat-button","","type","submit","cdkFocusInitial","",3,"disabled"],["type","button","mat-button","","cdkFocusInitial","",3,"click"],[3,"value"]],template:function(r,e){1&r&&t.YNc(0,tLe,48,4,"form",0),2&r&&t.Q6J("ngIf",e.export_project_form)},dependencies:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.Q7,J.sg,J.u,kn.KE,dn,Dn,yr,dr,ti,hm.d,ri.gD,Gt.ey],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin:0;display:block}.mat-dialog-container[_ngcontent-%COMP%]{padding:14px 14px 5px!important}.checkBox-section[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center;height:35px}.checkBox-margin[_ngcontent-%COMP%]{margin:0 10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.close-btn[_ngcontent-%COMP%]{margin:0 0 20px 40px}.mat-data[_ngcontent-%COMP%]{margin:15px 0}.input-full-width[_ngcontent-%COMP%]{width:100%}.col-data[_ngcontent-%COMP%]{text-align:left;align-self:self-end;margin-bottom:20px}.checkbox-row[_ngcontent-%COMP%]{margin-top:5px 0 5px 0}"]});var Fg=m(7521),YB=m(5735),KB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(YB.o),Pm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(KB);Pm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Pm)))(e||Pm)}}(),Pm.\u0275prov=t.Yz7({token:Pm,factory:Pm.\u0275fac});var Im=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(KB);Im.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Im)))(e||Im)}}(),Im.\u0275prov=t.Yz7({token:Im,factory:Im.\u0275fac});var Rm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(KB);Rm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Rm)))(e||Rm)}}(),Rm.\u0275prov=t.Yz7({token:Rm,factory:Rm.\u0275fac});var Lm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(KB);Lm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lm)))(e||Lm)}}(),Lm.\u0275prov=t.Yz7({token:Lm,factory:Lm.\u0275fac});var fb=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Fk=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Ip=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"calculate",value:function(e,i){var o=document.createElement("text");o.innerText=e,o.setAttribute("fill","#00000"),o.setAttribute("fill-opacity","0"),o.setAttribute("style",i),document.documentElement.appendChild(o);var a=o.getBoundingClientRect();return document.documentElement.removeChild(o),{width:a.width,height:a.height}}}]),n}();function Yie(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function Vr(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Yie(Object(e),!0).forEach(function(i){(0,Yw.Z)(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Yie(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}Ip.\u0275fac=function(r){return new(r||Ip)},Ip.\u0275prov=t.Yz7({token:Ip,factory:Ip.\u0275fac});function Ys(n){return n>=48&&n<=57}function Ug(n){return Ys(n)||n>=65&&n<=70||n>=97&&n<=102}function iz(n){return n>=65&&n<=90}function JB(n){return function iLe(n){return iz(n)||function rLe(n){return n>=97&&n<=122}(n)}(n)||function oLe(n){return n>=128}(n)||95===n}function Kie(n){return JB(n)||Ys(n)||45===n}function aLe(n){return n>=0&&n<=8||11===n||n>=14&&n<=31||127===n}function QB(n){return 10===n||13===n||12===n}function pb(n){return QB(n)||32===n||9===n}function Zp(n,r){return!(92!==n||QB(r)||0===r)}function XB(n,r,e){return 45===n?JB(r)||45===r||Zp(r,e):!!JB(n)||92===n&&Zp(n,r)}function oz(n,r,e){return 43===n||45===n?Ys(r)?2:46===r&&Ys(e)?3:0:46===n?Ys(r)?2:0:Ys(n)?1:0}function qie(n){return 65279===n||65534===n?1:0}for(var az=new Array(128),jg=0;jg<az.length;jg++)az[jg]=(pb(jg)?130:Ys(jg)&&131)||JB(jg)&&132||aLe(jg)&&133||jg||128;function lz(n){return n<128?az[n]:132}function Uk(n,r){return r<n.length?n.charCodeAt(r):0}function uz(n,r,e){return 13===e&&10===Uk(n,r+1)?2:1}function jk(n,r,e){var i=n.charCodeAt(r);return iz(i)&&(i|=32),i===e}function j2(n,r,e,i){if(e-r!==i.length||r<0||e>n.length)return!1;for(var o=r;o<e;o++){var a=i.charCodeAt(o-r),s=n.charCodeAt(o);if(iz(s)&&(s|=32),s!==a)return!1}return!0}function eF(n,r){for(;r<n.length&&pb(n.charCodeAt(r));r++);return r}function cz(n,r){for(;r<n.length&&Ys(n.charCodeAt(r));r++);return r}function Hk(n,r){if(Ug(Uk(n,(r+=2)-1))){for(var e=Math.min(n.length,r+5);r<e&&Ug(Uk(n,r));r++);var i=Uk(n,r);pb(i)&&(r+=uz(n,r,i))}return r}function tF(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(!Kie(e)){if(Zp(e,Uk(n,r+1))){r=Hk(n,r)-1;continue}break}}return r}function nF(n,r){var e=n.charCodeAt(r);if((43===e||45===e)&&(e=n.charCodeAt(r+=1)),Ys(e)&&(r=cz(n,r+1),e=n.charCodeAt(r)),46===e&&Ys(n.charCodeAt(r+1))&&(r=cz(n,r+=2)),jk(n,r,101)){var i=0;(45===(e=n.charCodeAt(r+1))||43===e)&&(i=1,e=n.charCodeAt(r+2)),Ys(e)&&(r=cz(n,r+1+i+1))}return r}function dz(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(41===e){r++;break}Zp(e,Uk(n,r+1))&&(r=Hk(n,r))}return r}function Xie(n){if(1===n.length&&!Ug(n.charCodeAt(0)))return n[0];var r=parseInt(n,16);return(0===r||r>=55296&&r<=57343||r>1114111)&&(r=65533),String.fromCodePoint(r)}var $ie=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function rF(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;return null===n||n.length<r?new Uint32Array(Math.max(r+1024,16384)):n}function noe(n){for(var r=n.source,e=r.length,i=r.length>0?qie(r.charCodeAt(0)):0,o=rF(n.lines,e),a=rF(n.columns,e),s=n.startLine,l=n.startColumn,u=i;u<e;u++){var d=r.charCodeAt(u);o[u]=s,a[u]=l++,(10===d||13===d||12===d)&&(13===d&&u+1<e&&10===r.charCodeAt(u+1)&&(o[++u]=s,a[u]=l),s++,l=1)}o[e]=s,a[e]=l,n.lines=o,n.columns=a,n.computed=!0}var dLe=function(){function n(){(0,B.Z)(this,n),this.lines=null,this.columns=null,this.computed=!1}return(0,U.Z)(n,[{key:"setSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=i,this.startLine=o,this.startColumn=a,this.computed=!1}},{key:"getLocation",value:function(e,i){return this.computed||noe(this),{source:i,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}},{key:"getLocationRange",value:function(e,i,o){return this.computed||noe(this),{source:o,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+i,line:this.lines[i],column:this.columns[i]}}}}]),n}(),cd=16777215,fLe=new Map([[2,22],[21,22],[19,20],[23,24]]),pLe=function(){function n(r,e){(0,B.Z)(this,n),this.setSource(r,e)}return(0,U.Z)(n,[{key:"reset",value:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}},{key:"setSource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=(e=String(e||"")).length,a=rF(this.offsetAndType,e.length+1),s=rF(this.balance,e.length+1),l=0,u=0,d=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(y,L,z){switch(y){default:s[l]=o;break;case u:var q=d&cd;for(d=s[q],u=d>>24,s[l]=q,s[q++]=l;q<l;q++)s[q]===o&&(s[q]=l);break;case 21:case 2:case 19:case 23:s[l]=d,u=fLe.get(y),d=u<<24|l}a[l++]=y<<24|z,-1===h&&(h=L)}),a[l]=0|o,s[l]=o,s[o]=o;0!==d;){var g=d&cd;d=s[g],s[g]=o}this.source=e,this.firstCharOffset=-1===h?0:h,this.tokenCount=l,this.offsetAndType=a,this.balance=s,this.reset(),this.next()}},{key:"lookupType",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>24:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&cd:this.source.length}},{key:"lookupValue",value:function(e,i){return(e+=this.tokenIndex)<this.tokenCount&&j2(this.source,this.offsetAndType[e-1]&cd,this.offsetAndType[e]&cd,i)}},{key:"getTokenStart",value:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&cd:this.offsetAndType[this.tokenCount]&cd:this.firstCharOffset}},{key:"substrToCursor",value:function(e){return this.source.substring(e,this.tokenStart)}},{key:"isBalanceEdge",value:function(e){return this.balance[this.tokenIndex]<e}},{key:"isDelim",value:function(e,i){return i?9===this.lookupType(i)&&this.source.charCodeAt(this.lookupOffset(i))===e:9===this.tokenType&&this.source.charCodeAt(this.tokenStart)===e}},{key:"skip",value:function(e){var i=this.tokenIndex+e;i<this.tokenCount?(this.tokenIndex=i,this.tokenStart=this.offsetAndType[i-1]&cd,i=this.offsetAndType[i],this.tokenType=i>>24,this.tokenEnd=i&cd):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>24,this.tokenEnd=e&cd):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;13===this.tokenType||25===this.tokenType;)this.next()}},{key:"skipUntilBalanced",value:function(e,i){var a,s,o=e;e:for(;o<this.tokenCount&&!((a=this.balance[o])<e);o++)switch(s=o>0?this.offsetAndType[o-1]&cd:this.firstCharOffset,i(this.source.charCodeAt(s))){case 1:break e;case 2:o++;break e;default:this.balance[a]===o&&(o=a)}this.skip(o-this.tokenIndex)}},{key:"forEachToken",value:function(e){for(var i=0,o=this.firstCharOffset;i<this.tokenCount;i++){var a=o,s=this.offsetAndType[i],l=s&cd;o=l,e(s>>24,a,l,i)}}},{key:"dump",value:function(){var e=this,i=new Array(this.tokenCount);return this.forEachToken(function(o,a,s,l){i[l]={idx:l,type:$ie[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),n}();function iF(n,r){function e(y){return y<l?n.charCodeAt(y):0}function i(){return XB(e(d=nF(n,d)),e(d+1),e(d+2))?(h=12,void(d=tF(n,d))):37===e(d)?(h=11,void d++):void(h=10)}function o(){var y=d;return d=tF(n,d),j2(n,y,d,"url")&&40===e(d)?34===e(d=eF(n,d+1))||39===e(d)?(h=2,void(d=y+4)):void function s(){for(h=7,d=eF(n,d);d<n.length;d++){var y=n.charCodeAt(d);switch(lz(y)){case 41:return void d++;case 130:return 41===e(d=eF(n,d))||d>=n.length?void(d<n.length&&d++):(d=dz(n,d),void(h=8));case 34:case 39:case 40:case 133:return d=dz(n,d),void(h=8);case 92:if(Zp(y,e(d+1))){d=Hk(n,d)-1;break}return d=dz(n,d),void(h=8)}}}():40===e(d)?(h=2,void d++):void(h=1)}function a(y){for(y||(y=e(d++)),h=5;d<n.length;d++){var L=n.charCodeAt(d);switch(lz(L)){case y:return void d++;case 130:if(QB(L))return d+=uz(n,d,L),void(h=6);break;case 92:if(d===n.length-1)break;var z=e(d+1);QB(z)?d+=uz(n,d+1,z):Zp(L,z)&&(d=Hk(n,d)-1)}}}for(var h,l=(n=String(n||"")).length,u=qie(e(0)),d=u;d<l;){var g=n.charCodeAt(d);switch(lz(g)){case 130:h=13,d=eF(n,d+1);break;case 34:case 39:a();break;case 35:Kie(e(d+1))||Zp(e(d+1),e(d+2))?(h=4,d=tF(n,d+1)):(h=9,d++);break;case 40:h=21,d++;break;case 41:h=22,d++;break;case 43:case 46:oz(g,e(d+1),e(d+2))?i():(h=9,d++);break;case 44:h=18,d++;break;case 45:oz(g,e(d+1),e(d+2))?i():45===e(d+1)&&62===e(d+2)?(h=15,d+=3):XB(g,e(d+1),e(d+2))?o():(h=9,d++);break;case 47:42===e(d+1)?(h=25,d=-1===(d=n.indexOf("*/",d+2))?n.length:d+2):(h=9,d++);break;case 58:h=16,d++;break;case 59:h=17,d++;break;case 60:33===e(d+1)&&45===e(d+2)&&45===e(d+3)?(h=14,d+=4):(h=9,d++);break;case 64:XB(e(d+1),e(d+2),e(d+3))?(h=3,d=tF(n,d+1)):(h=9,d++);break;case 91:h=19,d++;break;case 92:Zp(g,e(d+1))?o():(h=9,d++);break;case 93:h=20,d++;break;case 123:h=23,d++;break;case 125:h=24,d++;break;case 131:i();break;case 132:o();break;default:h=9,d++}r(h,u,u=d)}}var Gk=null,hb=function(n){function r(){(0,B.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,U.Z)(r,[{key:"createItem",value:function(i){return r.createItem(i)}},{key:"allocateCursor",value:function(i,o){var a;return null!==Gk?(a=Gk,Gk=Gk.cursor,a.prev=i,a.next=o,a.cursor=this.cursor):a={prev:i,next:o,cursor:this.cursor},this.cursor=a,a}},{key:"releaseCursor",value:function(){var i=this.cursor;this.cursor=i.cursor,i.prev=null,i.next=null,i.cursor=Gk,Gk=i}},{key:"updateCursors",value:function(i,o,a,s){for(var l=this.cursor;null!==l;)l.prev===i&&(l.prev=o),l.next===a&&(l.next=s),l=l.cursor}},{key:n,value:Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:i=this.head;case 1:if(null===i){a.next=7;break}return a.next=4,i.data;case 4:i=i.next,a.next=1;break;case 7:case"end":return a.stop()}},e,this)})},{key:"size",get:function(){for(var i=0,o=this.head;null!==o;o=o.next)i++;return i}},{key:"isEmpty",get:function(){return null===this.head}},{key:"first",get:function(){return this.head&&this.head.data}},{key:"last",get:function(){return this.tail&&this.tail.data}},{key:"fromArray",value:function(i){var o=null;this.head=null;var s,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=r.createItem(l);null!==o?o.next=u:this.head=u,u.prev=o,o=u}}catch(d){a.e(d)}finally{a.f()}return this.tail=o,this}},{key:"toArray",value:function(){return(0,cn.Z)(this)}},{key:"toJSON",value:function(){return(0,cn.Z)(this)}},{key:"forEach",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.allocateCursor(null,this.head);null!==a.next;){var s=a.next;a.next=s.next,i.call(o,s.data,s,this)}this.releaseCursor()}},{key:"forEachRight",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.allocateCursor(this.tail,null);null!==a.prev;){var s=a.prev;a.prev=s.prev,i.call(o,s.data,s,this)}this.releaseCursor()}},{key:"reduce",value:function(i,o){for(var u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,s=this.allocateCursor(null,this.head),l=o;null!==s.next;)u=s.next,s.next=u.next,l=i.call(a,l,u.data,u,this);return this.releaseCursor(),l}},{key:"reduceRight",value:function(i,o){for(var u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,s=this.allocateCursor(this.tail,null),l=o;null!==s.prev;)u=s.prev,s.prev=u.prev,l=i.call(a,l,u.data,u,this);return this.releaseCursor(),l}},{key:"some",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.head;null!==a;a=a.next)if(i.call(o,a.data,a,this))return!0;return!1}},{key:"map",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=new r,s=this.head;null!==s;s=s.next)a.appendData(i.call(o,s.data,s,this));return a}},{key:"filter",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=new r,s=this.head;null!==s;s=s.next)i.call(o,s.data,s,this)&&a.appendData(s.data);return a}},{key:"nextUntil",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==i){for(var s=this.allocateCursor(null,i);null!==s.next;){var l=s.next;if(s.next=l.next,o.call(a,l.data,l,this))break}this.releaseCursor()}}},{key:"prevUntil",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==i){for(var s=this.allocateCursor(i,null);null!==s.prev;){var l=s.prev;if(s.prev=l.prev,o.call(a,l.data,l,this))break}this.releaseCursor()}}},{key:"clear",value:function(){this.head=null,this.tail=null}},{key:"copy",value:function(){var a,i=new r,o=(0,An.Z)(this);try{for(o.s();!(a=o.n()).done;){var s=a.value;i.appendData(s)}}catch(l){o.e(l)}finally{o.f()}return i}},{key:"prepend",value:function(i){return this.updateCursors(null,i,this.head,i),null!==this.head?(this.head.prev=i,i.next=this.head):this.tail=i,this.head=i,this}},{key:"prependData",value:function(i){return this.prepend(r.createItem(i))}},{key:"append",value:function(i){return this.insert(i)}},{key:"appendData",value:function(i){return this.insert(r.createItem(i))}},{key:"insert",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==o)if(this.updateCursors(o.prev,i,o,i),null===o.prev){if(this.head!==o)throw new Error("before doesn't belong to list");this.head=i,o.prev=i,i.next=o,this.updateCursors(null,i)}else o.prev.next=i,i.prev=o.prev,o.prev=i,i.next=o;else this.updateCursors(this.tail,i,null,i),null!==this.tail?(this.tail.next=i,i.prev=this.tail):this.head=i,this.tail=i;return this}},{key:"insertData",value:function(i,o){return this.insert(r.createItem(i),o)}},{key:"remove",value:function(i){if(this.updateCursors(i,i.prev,i,i.next),null!==i.prev)i.prev.next=i.next;else{if(this.head!==i)throw new Error("item doesn't belong to list");this.head=i.next}if(null!==i.next)i.next.prev=i.prev;else{if(this.tail!==i)throw new Error("item doesn't belong to list");this.tail=i.prev}return i.prev=null,i.next=null,i}},{key:"push",value:function(i){this.insert(r.createItem(i))}},{key:"pop",value:function(){return null!==this.tail?this.remove(this.tail):null}},{key:"unshift",value:function(i){this.prepend(r.createItem(i))}},{key:"shift",value:function(){return null!==this.head?this.remove(this.head):null}},{key:"prependList",value:function(i){return this.insertList(i,this.head)}},{key:"appendList",value:function(i){return this.insertList(i)}},{key:"insertList",value:function(i,o){return null===i.head||(null!=o?(this.updateCursors(o.prev,i.tail,o,i.head),null!==o.prev?(o.prev.next=i.head,i.head.prev=o.prev):this.head=i.head,o.prev=i.tail,i.tail.next=o):(this.updateCursors(this.tail,i.tail,null,i.head),null!==this.tail?(this.tail.next=i.head,i.head.prev=this.tail):this.head=i.head,this.tail=i.tail),i.head=null,i.tail=null),this}},{key:"replace",value:function(i,o){"head"in o?this.insertList(o,i):this.insert(o,i),this.remove(i)}}],[{key:"createItem",value:function(i){return{prev:null,next:null,data:i}}}]),r}(Symbol.iterator);function oF(n,r){var e=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(e,{name:n,message:r,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,"".concat(n,": ").concat(r,"\n"))}})}function ooe(n,r){var e=n.source,i=n.line,o=n.column;function a(y,L){return s.slice(y,L).map(function(z,q){return String(y+q+1).padStart(d)+" |"+z}).join("\n")}var s=e.split(/\r\n?|\n|\f/),l=Math.max(1,i-r)-1,u=Math.min(i+r,s.length+1),d=Math.max(4,String(u).length)+1,h=0;(o+=(" ".length-1)*(s[i-1].substr(0,o-1).match(/\t/g)||[]).length)>100&&(h=o-60+3,o=58);for(var g=l;g<=u;g++)g>=0&&g<s.length&&(s[g]=s[g].replace(/\t/g," "),s[g]=(h>0&&s[g].length>h?"\u2026":"")+s[g].substr(h,98)+(s[g].length>h+100-1?"\u2026":""));return[a(l,i),new Array(o+d+2).join("-")+"^",a(i,u)].filter(Boolean).join("\n")}function aoe(n,r,e,i,o){return Object.assign(oF("SyntaxError",n),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return ooe({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(n,"\n")+ooe({source:r,line:i,column:o},2)}})}function hLe(n){for(var r=this.createList(),e=!1,i={recognizer:n};!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:e=!0,this.next();continue}var o=n.getNode.call(this,i);if(void 0===o)break;e&&(n.onWhiteSpace&&n.onWhiteSpace.call(this,o,r,i),e=!1),r.push(o)}return e&&n.onWhiteSpace&&n.onWhiteSpace.call(this,null,r,i),r}var soe=function(){};function gLe(n){return function(){return this[n]()}}function hz(n){var r=Object.create(null);for(var e in n){var i=n[e],o=i.parse||i;o&&(r[e]=o)}return r}function yLe(n){var r="",e="<unknown>",i=!1,o=soe,a=!1,s=new dLe,l=Object.assign(new pLe,function vLe(n){var r={context:Object.create(null),scope:Object.assign(Object.create(null),n.scope),atrule:hz(n.atrule),pseudo:hz(n.pseudo),node:hz(n.node)};for(var e in n.parseContext)switch(typeof n.parseContext[e]){case"function":r.context[e]=n.parseContext[e];break;case"string":r.context[e]=gLe(n.parseContext[e])}return Vr(Vr({config:r},r),r.node)}(n||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:hLe,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(h){return 123===h?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(h){return 123===h||59===h?1:0},consumeUntilExclamationMarkOrSemicolon:function(h){return 33===h||59===h?1:0},consumeUntilSemicolonIncluded:function(h){return 59===h?2:0},createList:function(){return new hb},createSingleNodeList:function(h){return(new hb).appendData(h)},getFirstListNode:function(h){return h&&h.first},getLastListNode:function(h){return h&&h.last},parseWithFallback:function(h,g){var y=this.tokenIndex;try{return h.call(this)}catch(z){if(a)throw z;var L=g.call(this,y);return a=!0,o(z,L),a=!1,L}},lookupNonWSType:function(h){var g;do{if(13!==(g=this.lookupType(h++)))return g}while(0!==g);return 0},charCodeAt:function(h){return h>=0&&h<r.length?r.charCodeAt(h):0},substring:function(h,g){return r.substring(h,g)},substrToCursor:function(h){return this.source.substring(h,this.tokenStart)},cmpChar:function(h,g){return jk(r,h,g)},cmpStr:function(h,g,y){return j2(r,h,g,y)},consume:function(h){var g=this.tokenStart;return this.eat(h),this.substrToCursor(g)},consumeFunctionName:function(){var h=r.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),h},consumeNumber:function(h){var g=r.substring(this.tokenStart,nF(r,this.tokenStart));return this.eat(h),g},eat:function(h){if(this.tokenType!==h){var g=$ie[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(z){return z.toUpperCase()}),y="".concat(/[[\](){}]/.test(g)?'"'.concat(g,'"'):g," is expected"),L=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(L=this.tokenEnd-1,y="Identifier is expected but function found"):y="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),L++,y="Name is expected");break;case 11:10===this.tokenType&&(L=this.tokenEnd,y="Percent sign is expected")}this.error(y,L)}this.next()},eatIdent:function(h){(1!==this.tokenType||!1===this.lookupValue(0,h))&&this.error('Identifier "'.concat(h,'" is expected')),this.next()},eatDelim:function(h){this.isDelim(h)||this.error('Delim "'.concat(String.fromCharCode(h),'" is expected')),this.next()},getLocation:function(h,g){return i?s.getLocationRange(h,g,e):null},getLocationFromList:function(h){if(i){var g=this.getFirstListNode(h),y=this.getLastListNode(h);return s.getLocationRange(null!==g?g.loc.start.offset-s.startOffset:this.tokenStart,null!==y?y.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,g){var y=void 0!==g&&g<r.length?s.getLocation(g):this.eof?s.getLocation(function lLe(n,r){for(;r>=0&&pb(n.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new aoe(h||"Unexpected input",r,y.offset,y.line,y.column)}});return Object.assign(function(h,g){r=h,g=g||{},l.setSource(r,iF),s.setSource(r,g.offset,g.line,g.column),e=g.filename||"<unknown>",i=Boolean(g.positions),o="function"==typeof g.onParseError?g.onParseError:soe,a=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in g)||Boolean(g.parseAtrulePrelude),l.parseRulePrelude=!("parseRulePrelude"in g)||Boolean(g.parseRulePrelude),l.parseValue=!("parseValue"in g)||Boolean(g.parseValue),l.parseCustomProperty="parseCustomProperty"in g&&Boolean(g.parseCustomProperty);var y=g,L=y.context,z=void 0===L?"default":L,q=y.onComment;if(!(z in l.context))throw new Error("Unknown context `"+z+"`");"function"==typeof q&&l.forEachToken(function(ae,Se,Ce){if(25===ae){var Ee=l.getLocation(Se,Ce),Ke=j2(r,Ce-2,Ce,"*/")?r.slice(Se+2,Ce-2):r.slice(Se+2,Ce);q(Ke,Ee)}});var re=l.context[z].call(l,g);return l.eof||l.error(),re},{SyntaxError:aoe,config:l.config})}var bLe=m(3058),coe=new Set(["Atrule","Selector","Declaration"]);var mz=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},doe=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],TLe=doe.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);function foe(n){var r=new Set(n.map(function(e){var i=(0,Yn.Z)(e,2),o=i[0],a=i[1];return mz(o)<<16|mz(a)}));return function(e,i,o){var a=mz(i,o),s=o.charCodeAt(0);return(45===s&&1!==i&&2!==i&&15!==i||43===s?r.has(e<<16|s<<8):r.has(e<<16|a))&&this.emit(" ",13,!0),a}}var MLe=foe(doe),poe=foe(TLe);function ELe(n,r){var e=this;if("function"!=typeof r)n.children.forEach(this.node,this);else{var i=null;n.children.forEach(function(o){null!==i&&r.call(e,i),e.node(o),i=o})}}function xLe(n){var r=this;iF(n,function(e,i,o){r.token(e,n.slice(i,o))})}function DLe(n){var r=new Map;for(var e in n.node){var i=n.node[e];"function"==typeof(i.generate||i)&&r.set(e,i.generate||i)}return function(a,s){var l="",u=0,d={node:function(y){if(!r.has(y.type))throw new Error("Unknown node type: "+y.type);r.get(y.type).call(h,y)},tokenBefore:poe,token:function(y,L){u=this.tokenBefore(u,y,L),this.emit(L,y,!1),9===y&&92===L.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(y){l+=y},result:function(){return l}};s&&("function"==typeof s.decorator&&(d=s.decorator(d)),s.sourceMap&&(d=function CLe(n){var r=new bLe.h,e={line:1,column:0},i={line:0,column:0},o={line:1,column:0},a={generated:o},s=1,l=0,u=!1,d=n.node;n.node=function(y){if(y.loc&&y.loc.start&&coe.has(y.type)){var L=y.loc.start.line,z=y.loc.start.column-1;(i.line!==L||i.column!==z)&&(i.line=L,i.column=z,e.line=s,e.column=l,u&&(u=!1,(e.line!==o.line||e.column!==o.column)&&r.addMapping(a)),u=!0,r.addMapping({source:y.loc.source,original:i,generated:e}))}d.call(this,y),u&&coe.has(y.type)&&(o.line=s,o.column=l)};var h=n.emit;n.emit=function(y,L,z){for(var q=0;q<y.length;q++)10===y.charCodeAt(q)?(s++,l=0):l++;h(y,L,z)};var g=n.result;return n.result=function(){return u&&r.addMapping(a),{css:g(),map:r}},n}(d)),s.mode in W&&(d.tokenBefore=W[s.mode]));var h={node:function(y){return d.node(y)},children:ELe,token:function(y,L){return d.token(y,L)},tokenize:xLe};return d.node(a),d.result()}}var _z=Object.prototype.hasOwnProperty,H2=function(){};function hoe(n){return"function"==typeof n?n:H2}function moe(n,r){return function(e,i,o){e.type===r&&n.call(this,e,i,o)}}function OLe(n,r){var e=r.structure,i=[];for(var o in e)if(!1!==_z.call(e,o)){var a=e[o],s={name:o,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);var u,l=(0,An.Z)(a);try{for(l.s();!(u=l.n()).done;){var d=u.value;null===d?s.nullable=!0:"string"==typeof d?s.type="node":Array.isArray(d)&&(s.type="list")}}catch(h){l.e(h)}finally{l.f()}s.type&&i.push(s)}return i.length?{context:r.walkContext,fields:i}:null}function _oe(n,r){var e=n.fields.slice(),i=n.context,o="string"==typeof i;return r&&e.reverse(),function(a,s,l,u){var d;o&&(d=s[i],s[i]=a);var g,h=(0,An.Z)(e);try{for(h.s();!(g=h.n()).done;){var y=g.value,L=a[y.name];if(!y.nullable||L)if("list"===y.type){if(r?L.reduceRight(u,!1):L.reduce(u,!1))return!0}else if(l(L))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=d)}}function goe(n){var r=n.StyleSheet,e=n.Atrule,i=n.Rule,o=n.Block;return{Atrule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Rule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Declaration:{StyleSheet:r,Atrule:e,Rule:i,Block:o,DeclarationList:n.DeclarationList}}}function ILe(n){var r=function PLe(n){var r={};for(var e in n.node)if(_z.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=OLe(0,i)}return r}(n),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)_z.call(r,s)&&null!==r[s]&&(e[s]=_oe(r[s],!1),i[s]=_oe(r[s],!0));var l=goe(e),u=goe(i),d=function(g,y){function L(Ce,Ee,Ke){var st=z.call(Se,Ce,Ee,Ke);return st===o||st!==a&&!!(re.hasOwnProperty(Ce.type)&&re[Ce.type](Ce,Se,L,ae)||q.call(Se,Ce,Ee,Ke)===o)}var z=H2,q=H2,re=e,ae=function(Ee,Ke,st,De){return Ee||L(Ke,st,De)},Se={break:o,skip:a,root:g,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof y)z=y;else if(y&&(z=hoe(y.enter),q=hoe(y.leave),y.reverse&&(re=i),y.visit)){if(l.hasOwnProperty(y.visit))re=y.reverse?u[y.visit]:l[y.visit];else if(!r.hasOwnProperty(y.visit))throw new Error("Bad value `"+y.visit+"` for `visit` option (should be: "+Object.keys(r).sort().join(", ")+")");z=moe(z,y.visit),q=moe(q,y.visit)}if(z===H2&&q===H2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");L(g)};return d.break=o,d.skip=a,d.find=function(h,g){var y=null;return d(h,function(L,z,q){if(g.call(this,L,z,q))return y=L,o}),y},d.findLast=function(h,g){var y=null;return d(h,{reverse:!0,enter:function(z,q,re){if(g.call(this,z,q,re))return y=z,o}}),y},d.findAll=function(h,g){var y=[];return d(h,function(L,z,q){g.call(this,L,z,q)&&y.push(L)}),y},d}function RLe(n){return n}function gz(n,r,e,i){var o;switch(n.type){case"Group":o=function NLe(n,r,e,i){var o=" "===n.combinator||i?n.combinator:" "+n.combinator+" ",a=n.terms.map(function(s){return gz(s,r,e,i)}).join(o);return n.explicit||e?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(n,r,e,i)+(n.disallowEmpty?"!":"");break;case"Multiplier":return gz(n.term,r,e,i)+r(function LLe(n){var r=n.min,e=n.max,i=n.comma;return 0===r&&0===e?i?"#?":"*":0===r&&1===e?"?":1===r&&0===e?i?"#":"+":1===r&&1===e?"":(i?"#":"")+(r===e?"{"+r+"}":"{"+r+","+(0!==e?e:"")+"}")}(n),n);case"Type":o="<"+n.name+(n.opts?r(function ZLe(n){if("Range"===n.type)return" ["+(null===n.min?"-\u221e":n.min)+","+(null===n.max?"\u221e":n.max)+"]";throw new Error("Unknown node type `"+n.type+"`")}(n.opts),n.opts):"")+">";break;case"Property":o="<'"+n.name+"'>";break;case"Keyword":o=n.name;break;case"AtKeyword":o="@"+n.name;break;case"Function":o=n.name+"(";break;case"String":case"Token":o=n.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+n.type+"`")}return r(o,n)}function vz(n,r){var e=RLe,i=!1,o=!1;return"function"==typeof r?e=r:r&&(i=Boolean(r.forceBraces),o=Boolean(r.compact),"function"==typeof r.decorate&&(e=r.decorate)),gz(n,e,i,o)}var voe={offset:0,line:1,column:1};function aF(n,r){var e=n&&n.loc&&n.loc[r];return e?"line"in e?G2(e):e:null}function G2(n,r){var a={offset:n.offset,line:n.line,column:n.column};if(r){var s=r.split(/\n|\r\n?|\f/);a.offset+=r.length,a.line+=s.length-1,a.column=1===s.length?a.column+r.length:s.pop().length+1}return a}var z2=function(r,e){var i=oF("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},FLe=function(r,e,i,o){var a=oF("SyntaxMatchError",r),s=function BLe(n,r){for(var h,g,e=n.tokens,i=n.longestMatch,o=i<e.length&&e[i].node||null,a=o!==r?o:null,s=0,l=0,u=0,d="",y=0;y<e.length;y++){var L=e[y].value;y===i&&(l=L.length,s=d.length),null!==a&&e[y].node===a&&(y<=i?u++:u=0),d+=L}return i===e.length||u>1?(h=aF(a||r,"end")||G2(voe,d),g=G2(h)):(h=aF(a,"start")||G2(aF(r,"start")||voe,d.slice(0,s)),g=aF(a,"end")||G2(h,d.substr(s,l))),{css:d,mismatchOffset:s,mismatchLength:l,start:h,end:g}}(o,i),l=s.css,u=s.mismatchOffset,d=s.mismatchLength,h=s.start,g=s.end;return a.rawMessage=r,a.syntax=e?vz(e):"<generic>",a.css=l,a.mismatchOffset=u,a.mismatchLength=d,a.message=r+"\n syntax: "+a.syntax+"\n value: "+(l||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,h),a.loc={source:i&&i.loc&&i.loc.source||"<unknown>",start:h,end:g},a},sF=new Map,zk=new Map,yz=function ULe(n){if(sF.has(n))return sF.get(n);var r=n.toLowerCase(),e=sF.get(r);if(void 0===e){var i=bz(r,0),o=i?"":boe(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return sF.set(n,e),e},yoe=function jLe(n){if(zk.has(n))return zk.get(n);var r=n,e=n[0];"/"===e?e="/"===n[1]?"//":"/":"_"!==e&&"*"!==e&&"$"!==e&&"#"!==e&&"+"!==e&&"&"!==e&&(e="");var i=bz(r,e.length);if(!i&&(r=r.toLowerCase(),zk.has(r))){var o=zk.get(r);return zk.set(n,o),o}var a=i?"":boe(r,e.length),s=r.substr(0,e.length+a.length),l=Object.freeze({basename:r.substr(s.length),name:r.substr(e.length),hack:e,vendor:a,prefix:s,custom:i});return zk.set(n,l),l};function bz(n,r){return r=r||0,n.length-r>=2&&45===n.charCodeAt(r)&&45===n.charCodeAt(r+1)}function boe(n,r){if(r=r||0,n.length-r>=3&&45===n.charCodeAt(r)&&45!==n.charCodeAt(r+1)){var e=n.indexOf("-",r+2);if(-1!==e)return n.substring(r,e+1)}return""}var Coe=["initial","inherit","unset","revert","revert-layer"],Wk=!0;function wz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function V2(n,r,e){for(;null!==n&&(13===n.type||25===n.type);)n=e(++r);return r}function Gg(n,r,e,i){if(!n)return 0;var o=n.value.charCodeAt(r);if(43===o||45===o){if(e)return 0;r++}for(;r<n.value.length;r++)if(!Ys(n.value.charCodeAt(r)))return 0;return i+1}function kz(n,r,e){var i=!1,o=V2(n,r,e);if(null===(n=e(o)))return r;if(10!==n.type){if(!wz(n,43)&&!wz(n,45))return r;if(i=!0,o=V2(e(++o),o,e),null===(n=e(o))||10!==n.type)return 0}if(!i){var a=n.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return Gg(n,i?0:1,i,o)}function Tz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function Y2(n,r,e){for(var i=0,o=r;o<n.value.length;o++){var a=n.value.charCodeAt(o);if(45===a&&e&&0!==i)return Y2(n,r+i+1,!1),6;if(!Ug(a)||++i>6)return 0}return i}function uF(n,r,e){if(!n)return 0;for(;Tz(e(r),63);){if(++n>6)return 0;r++}return r}var KLe=["calc(","-moz-calc(","-webkit-calc("],Mz=new Map([[2,22],[21,22],[19,20],[23,24]]);function tf(n,r){return r<n.length?n.charCodeAt(r):0}function Toe(n,r){return j2(n,0,n.length,r)}function Moe(n,r){for(var e=0;e<r.length;e++)if(Toe(n,r[e]))return!0;return!1}function Soe(n,r){return r===n.length-2&&(92===tf(n,r)&&Ys(tf(n,r+1)))}function cF(n,r,e){if(n&&"Range"===n.type){var i=Number(void 0!==e&&e!==r.length?r.substr(0,e):r);if(isNaN(i)||null!==n.min&&i<n.min&&"string"!=typeof n.min||null!==n.max&&i>n.max&&"string"!=typeof n.max)return!0}return!1}function dd(n){return function(r,e,i){return null===r?0:2===r.type&&Moe(r.value,KLe)?function qLe(n,r){var e=0,i=[],o=0;e:do{switch(n.type){case 24:case 22:case 20:if(n.type!==e)break e;if(e=i.pop(),0===i.length){o++;break e}break;case 2:case 21:case 19:case 23:i.push(e),e=Mz.get(n.type)}o++}while(n=r(o));return o}(r,e):n(r,e,i)}}function Yo(n){return function(r){return null===r||r.type!==n?0:1}}function Zm(n){return n&&(n=new Set(n)),function(r,e,i){if(null===r||12!==r.type)return 0;var o=nF(r.value,0);if(null!==n){var a=r.value.indexOf("\\",o),s=-1!==a&&Soe(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===n.has(s.toLowerCase()))return 0}return cF(i,r.value,o)?0:1}}function Eoe(n){return"function"!=typeof n&&(n=function(){return 0}),function(r,e,i){return null!==r&&10===r.type&&0===Number(r.value)?1:n(r,e,i)}}var oZe={"ident-token":Yo(1),"function-token":Yo(2),"at-keyword-token":Yo(3),"hash-token":Yo(4),"string-token":Yo(5),"bad-string-token":Yo(6),"url-token":Yo(7),"bad-url-token":Yo(8),"delim-token":Yo(9),"number-token":Yo(10),"percentage-token":Yo(11),"dimension-token":Yo(12),"whitespace-token":Yo(13),"CDO-token":Yo(14),"CDC-token":Yo(15),"colon-token":Yo(16),"semicolon-token":Yo(17),"comma-token":Yo(18),"[-token":Yo(19),"]-token":Yo(20),"(-token":Yo(21),")-token":Yo(22),"{-token":Yo(23),"}-token":Yo(24)},aZe={string:Yo(5),ident:Yo(1),percentage:dd(function nZe(n,r,e){return null===n||11!==n.type||cF(e,n.value,n.value.length-1)?0:1}),zero:Eoe(),number:dd(function rZe(n,r,e){if(null===n)return 0;var i=nF(n.value,0);return!(i===n.value.length)&&!Soe(n.value,i)||cF(e,n.value,i)?0:1}),integer:dd(function iZe(n,r,e){if(null===n||10!==n.type)return 0;for(var i=43===tf(n.value,0)||45===tf(n.value,0)?1:0;i<n.value.length;i++)if(!Ys(tf(n.value,i)))return 0;return cF(e,n.value,i)?0:1}),"custom-ident":function JLe(n){if(null===n||1!==n.type)return 0;var r=n.value.toLowerCase();return Moe(r,Coe)||Toe(r,"default")?0:1},"custom-property-name":function QLe(n){return null===n||1!==n.type||45!==tf(n.value,0)||45!==tf(n.value,1)?0:1},"hex-color":function XLe(n){if(null===n||4!==n.type)return 0;var r=n.value.length;if(4!==r&&5!==r&&7!==r&&9!==r)return 0;for(var e=1;e<r;e++)if(!Ug(tf(n.value,e)))return 0;return 1},"id-selector":function $Le(n){return null!==n&&4===n.type&&XB(tf(n.value,1),tf(n.value,2),tf(n.value,3))?1:0},"an-plus-b":function GLe(n,r){var e=0;if(!n)return 0;if(10===n.type)return Gg(n,0,false,e);if(1===n.type&&45===n.value.charCodeAt(0)){if(!jk(n.value,1,110))return 0;switch(n.value.length){case 2:return kz(r(++e),e,r);case 3:return 45!==n.value.charCodeAt(2)?0:(e=V2(r(++e),e,r),Gg(n=r(e),0,Wk,e));default:return 45!==n.value.charCodeAt(2)?0:Gg(n,3,Wk,e)}}else if(1===n.type||wz(n,43)&&1===r(e+1).type){if(1!==n.type&&(n=r(++e)),null===n||!jk(n.value,0,110))return 0;switch(n.value.length){case 1:return kz(r(++e),e,r);case 2:return 45!==n.value.charCodeAt(1)?0:(e=V2(r(++e),e,r),Gg(n=r(e),0,Wk,e));default:return 45!==n.value.charCodeAt(1)?0:Gg(n,2,Wk,e)}}else if(12===n.type){for(var i=n.value.charCodeAt(0),o=43===i||45===i?1:0,a=o;a<n.value.length&&Ys(n.value.charCodeAt(a));a++);return a!==o&&jk(n.value,a,110)?a+1===n.value.length?kz(r(++e),e,r):45!==n.value.charCodeAt(a+1)?0:a+2===n.value.length?(e=V2(r(++e),e,r),Gg(n=r(e),0,Wk,e)):Gg(n,a+2,Wk,e):0}return 0},urange:function YLe(n,r){var e=0;if(null===n||1!==n.type||!jk(n.value,0,117)||null===(n=r(++e)))return 0;if(Tz(n,43))return null===(n=r(++e))?0:1===n.type?uF(Y2(n,0,!0),++e,r):Tz(n,63)?uF(1,++e,r):0;if(10===n.type){var i=Y2(n,1,!0);return 0===i?0:null===(n=r(++e))?e:12===n.type||10===n.type?function VLe(n,r){return n.value.charCodeAt(0)===r}(n,45)&&Y2(n,1,!1)?e+1:0:uF(i,e,r)}return 12===n.type?uF(Y2(n,1,!0),++e,r):0},"declaration-value":function eZe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 17:if(0===e)break e;break;case 9:if(0===e&&"!"===n.value)break e;break;case 2:case 21:case 19:case 23:i.push(e),e=Mz.get(n.type)}o++}while(n=r(o));return o},"any-value":function tZe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 2:case 21:case 19:case 23:i.push(e),e=Mz.get(n.type)}o++}while(n=r(o));return o}};function lZe(n){return Vr(Vr(Vr({},oZe),aZe),function sZe(n){var r=n||{},e=r.angle,i=r.decibel,o=r.frequency,a=r.flex,s=r.length,l=r.resolution,u=r.semitones,d=r.time;return{dimension:dd(Zm(null)),angle:dd(Zm(e)),decibel:dd(Zm(i)),frequency:dd(Zm(o)),flex:dd(Zm(a)),length:dd(Eoe(Zm(s))),resolution:dd(Zm(l)),semitones:dd(Zm(u)),time:dd(Zm(d))}}(n))}var uZe=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],cZe=["deg","grad","rad","turn"],dZe=["s","ms"],fZe=["hz","khz"],pZe=["dpi","dpcm","dppx","x"],hZe=["fr"],mZe=["db"],_Ze=["st"];function gZe(n,r,e){return Object.assign(oF("SyntaxError",n),{input:r,offset:e,rawMessage:n,message:n+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var kZe=function(){function n(r){(0,B.Z)(this,n),this.str=r,this.pos=0}return(0,U.Z)(n,[{key:"charCodeAt",value:function(e){return e<this.str.length?this.str.charCodeAt(e):0}},{key:"charCode",value:function(){return this.charCodeAt(this.pos)}},{key:"nextCharCode",value:function(){return this.charCodeAt(this.pos+1)}},{key:"nextNonWsCode",value:function(e){return this.charCodeAt(this.findWsEnd(e))}},{key:"findWsEnd",value:function(e){for(;e<this.str.length;e++){var i=this.str.charCodeAt(e);if(13!==i&&10!==i&&12!==i&&32!==i&&9!==i)break}return e}},{key:"substringToPos",value:function(e){return this.str.substring(this.pos,this.pos=e)}},{key:"eat",value:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}},{key:"peek",value:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}},{key:"error",value:function(e){throw new gZe(e,this.str,this.pos)}}]),n}(),K2=new Uint8Array(128).map(function(n,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),Noe={" ":1,"&&":2,"||":3,"|":4};function hF(n){return n.substringToPos(n.findWsEnd(n.pos))}function Vk(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e>=128||0===K2[e])break}return n.pos===r&&n.error("Expect a keyword"),n.substringToPos(r)}function mF(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e<48||e>57)break}return n.pos===r&&n.error("Expect a number"),n.substringToPos(r)}function OZe(n){var r=n.str.indexOf("'",n.pos+1);return-1===r&&(n.pos=n.str.length,n.error("Expect an apostrophe")),n.substringToPos(r+1)}function Boe(n){var r,e=null;return n.eat(123),r=mF(n),44===n.charCode()?(n.pos++,125!==n.charCode()&&(e=mF(n))):e=r,n.eat(125),{min:Number(r),max:e?Number(e):0}}function Yk(n,r){var e=function PZe(n){var r=null,e=!1;switch(n.charCode()){case 42:n.pos++,r={min:0,max:0};break;case 43:n.pos++,r={min:1,max:0};break;case 63:n.pos++,r={min:0,max:1};break;case 35:n.pos++,e=!0,123===n.charCode()?r=Boe(n):63===n.charCode()?(n.pos++,r={min:0,max:0}):r={min:1,max:0};break;case 123:r=Boe(n);break;default:return null}return{type:"Multiplier",comma:e,min:r.min,max:r.max,term:null}}(n);return null!==e?(e.term=r,35===n.charCode()&&43===n.charCodeAt(n.pos-1)?Yk(n,e):e):r}function Pz(n){var r=n.peek();return""===r?null:{type:"Token",value:r}}function LZe(n){var r,e=null;return n.eat(60),r=Vk(n),40===n.charCode()&&41===n.nextCharCode()&&(n.pos+=2,r+="()"),91===n.charCodeAt(n.findWsEnd(n.pos))&&(hF(n),e=function RZe(n){var r=null,e=null,i=1;return n.eat(91),45===n.charCode()&&(n.peek(),i=-1),-1==i&&8734===n.charCode()?n.peek():(r=i*Number(mF(n)),0!==K2[n.charCode()]&&(r+=Vk(n))),hF(n),n.eat(44),hF(n),8734===n.charCode()?n.peek():(i=1,45===n.charCode()&&(n.peek(),i=-1),e=i*Number(mF(n)),0!==K2[n.charCode()]&&(e+=Vk(n))),n.eat(93),{type:"Range",min:r,max:e}}(n)),n.eat(62),Yk(n,{type:"Type",name:r,opts:e})}function NZe(n,r){function e(l,u){return{type:"Group",terms:l,combinator:u,disallowEmpty:!1,explicit:!1}}var i;for(r=Object.keys(r).sort(function(l,u){return Noe[l]-Noe[u]});r.length>0;){i=r.shift();for(var o=0,a=0;o<n.length;o++){var s=n[o];"Combinator"===s.type&&(s.value===i?(-1===a&&(a=o-1),n.splice(o,1),o--):(-1!==a&&o-a>1&&(n.splice(a,o-a,e(n.slice(a,o),i)),o=a+1),a=-1))}-1!==a&&r.length&&n.splice(a,o-a,e(n.slice(a,o),i))}return i}function Foe(n){for(var i,r=[],e={},o=null,a=n.pos;i=FZe(n);)"Spaces"!==i.type&&("Combinator"===i.type?((null===o||"Combinator"===o.type)&&(n.pos=a,n.error("Unexpected combinator")),e[i.value]=!0):null!==o&&"Combinator"!==o.type&&(e[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(i),o=i,a=n.pos);return null!==o&&"Combinator"===o.type&&(n.pos-=a,n.error("Unexpected combinator")),{type:"Group",terms:r,combinator:NZe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function FZe(n){var r=n.charCode();if(r<128&&1===K2[r])return function ZZe(n){var r=Vk(n);return 40===n.charCode()?(n.pos++,{type:"Function",name:r}):Yk(n,{type:"Keyword",name:r})}(n);switch(r){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return Yk(n,function BZe(n){var r;return n.eat(91),r=Foe(n),n.eat(93),r.explicit=!0,33===n.charCode()&&(n.pos++,r.disallowEmpty=!0),r}(n));case 60:return 39===n.nextCharCode()?function IZe(n){var r;return n.eat(60),n.eat(39),r=Vk(n),n.eat(39),n.eat(62),Yk(n,{type:"Property",name:r})}(n):LZe(n);case 124:return{type:"Combinator",value:n.substringToPos(n.pos+(124===n.nextCharCode()?2:1))};case 38:return n.pos++,n.eat(38),{type:"Combinator",value:"&&"};case 44:return n.pos++,{type:"Comma"};case 39:return Yk(n,{type:"String",value:OZe(n)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:hF(n)};case 64:return(r=n.nextCharCode())<128&&1===K2[r]?(n.pos++,{type:"AtKeyword",name:Vk(n)}):Pz(n);case 123:if((r=n.nextCharCode())<48||r>57)return Pz(n);break;default:return Pz(n)}}function Uoe(n){var r=new kZe(n),e=Foe(r);return r.pos!==n.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var q2=function(){};function joe(n){return"function"==typeof n?n:q2}var jZe={decorator:function(r){var e=[],i=null;return Vr(Vr({},r),{},{node:function(a){var s=i;i=a,r.node.call(this,a),i=s},emit:function(a,s,l){e.push({type:s,value:a,node:l?null:i})},result:function(){return e}})}};function GZe(n,r){return"string"==typeof n?function HZe(n){var r=[];return iF(n,function(e,i,o){return r.push({type:e,value:n.slice(i,o),node:null})}),r}(n):r.generate(n,jZe)}var $i={type:"Match"},Mo={type:"Mismatch"},Iz={type:"DisallowEmpty"};function Rl(n,r,e){return r===$i&&e===Mo||n===$i&&r===$i&&e===$i?n:("If"===n.type&&n.else===Mo&&r===$i&&(r=n.then,n=n.match),{type:"If",match:n,then:r,else:e})}function Hoe(n){return n.length>2&&40===n.charCodeAt(n.length-2)&&41===n.charCodeAt(n.length-1)}function Goe(n){return"Keyword"===n.type||"AtKeyword"===n.type||"Function"===n.type||"Type"===n.type&&Hoe(n.name)}function Rz(n,r,e){switch(n){case" ":for(var i=$i,o=r.length-1;o>=0;o--){i=Rl(r[o],i,Mo)}return i;case"|":for(var s=Mo,l=null,u=r.length-1;u>=0;u--){var d=r[u];if(Goe(d)&&(null===l&&u>0&&Goe(r[u-1])&&(s=Rl({type:"Enum",map:l=Object.create(null)},$i,s)),null!==l)){var h=(Hoe(d.name)?d.name.slice(0,-1):d.name).toLowerCase();if(!(h in l)){l[h]=d;continue}}l=null,s=Rl(d,$i,s)}return s;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(var g=Mo,y=function(){var Ce,Se=r[L];Ce=r.length>1?Rz(n,r.filter(function(Ee){return Ee!==Se}),!1):$i,g=Rl(Se,Ce,g)},L=r.length-1;L>=0;L--)y();return g;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(var z=e?$i:Mo,q=function(){var Ce,Se=r[re];Ce=r.length>1?Rz(n,r.filter(function(Ee){return Ee!==Se}),!0):$i,z=Rl(Se,Ce,z)},re=r.length-1;re>=0;re--)q();return z}}function Lz(n){if("function"==typeof n)return{type:"Generic",fn:n};switch(n.type){case"Group":var r=Rz(n.combinator,n.terms.map(Lz),!1);return n.disallowEmpty&&(r=Rl(r,Iz,Mo)),r;case"Multiplier":return function VZe(n){var r=$i,e=Lz(n.term);if(0===n.max)e=Rl(e,Iz,Mo),(r=Rl(e,null,Mo)).then=Rl($i,$i,r),n.comma&&(r.then.else=Rl({type:"Comma",syntax:n},r,Mo));else for(var i=n.min||1;i<=n.max;i++)n.comma&&r!==$i&&(r=Rl({type:"Comma",syntax:n},r,Mo)),r=Rl(e,Rl($i,$i,r),Mo);if(0===n.min)r=Rl($i,$i,r);else for(var o=0;o<n.min-1;o++)n.comma&&r!==$i&&(r=Rl({type:"Comma",syntax:n},r,Mo)),r=Rl(e,r,Mo);return r}(n);case"Type":case"Property":return{type:n.type,name:n.name,syntax:n};case"Keyword":return{type:n.type,name:n.name.toLowerCase(),syntax:n};case"AtKeyword":return{type:n.type,name:"@"+n.name.toLowerCase(),syntax:n};case"Function":return{type:n.type,name:n.name.toLowerCase()+"(",syntax:n};case"String":return 3===n.value.length?{type:"Token",value:n.value.charAt(1),syntax:n}:{type:n.type,value:n.value.substr(1,n.value.length-2).replace(/\\'/g,"'"),syntax:n};case"Token":return{type:n.type,value:n.value,syntax:n};case"Comma":return{type:n.type,syntax:n};default:throw new Error("Unknown node type:",n.type)}}function Zz(n,r){return"string"==typeof n&&(n=Uoe(n)),{type:"MatchGraph",match:Lz(n),syntax:r||null,source:n}}var zoe=Object.prototype.hasOwnProperty;function Yoe(n){for(var r=null,e=null,i=n;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function Bz(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;e++){var i=r.charCodeAt(e),o=n.charCodeAt(e);if(o>=65&&o<=90&&(o|=32),o!==i)return!1}return!0}function Koe(n){return null===n||(18===n.type||2===n.type||21===n.type||19===n.type||23===n.type||function XZe(n){return 9===n.type&&"?"!==n.value}(n))}function qoe(n){return null===n||(22===n.type||20===n.type||24===n.type||9===n.type&&"/"===n.value)}function Joe(n,r,e){function i(){do{Se++,ae=Se<n.length?n[Se]:null}while(null!==ae&&(13===ae.type||25===ae.type))}function o(Tn){var Hn=Se+Tn;return Hn<n.length?n[Hn]:null}function a(Tn,Hn){return{nextState:Tn,matchStack:Ee,syntaxStack:g,thenStack:y,tokenIndex:Se,prev:Hn}}function s(Tn){y={nextState:Tn,matchStack:Ee,syntaxStack:g,prev:y}}function l(Tn){L=a(Tn,L)}function u(){Ee={type:1,syntax:r.syntax,token:ae,prev:Ee},i(),z=null,Se>Ce&&(Ce=Se)}function h(){Ee=2===Ee.type?Ee.prev:{type:3,syntax:g.syntax,token:Ee.token,prev:Ee},g=g.prev}var g=null,y=null,L=null,z=null,q=0,re=null,ae=null,Se=-1,Ce=0,Ee={type:0,syntax:null,token:null,prev:null};for(i();null===re&&++q<15e3;)switch(r.type){case"Match":if(null===y){if(null!==ae&&(Se!==n.length-1||"\\0"!==ae.value&&"\\9"!==ae.value)){r=Mo;break}re="Match";break}if((r=y.nextState)===Iz){if(y.matchStack===Ee){r=Mo;break}r=$i}for(;y.syntaxStack!==g;)h();y=y.prev;break;case"Mismatch":if(null!==z&&!1!==z)(null===L||Se>L.tokenIndex)&&(L=z,z=!1);else if(null===L){re="Mismatch";break}r=L.nextState,y=L.thenStack,g=L.syntaxStack,Ee=L.matchStack,Se=L.tokenIndex,ae=Se<n.length?n[Se]:null,L=L.prev;break;case"MatchGraph":r=r.match;break;case"If":r.else!==Mo&&l(r.else),r.then!==$i&&s(r.then),r=r.match;break;case"MatchOnce":r={type:"MatchOnceBuffer",syntax:r,index:0,mask:0};break;case"MatchOnceBuffer":var Ke=r.syntax.terms;if(r.index===Ke.length){if(0===r.mask||r.syntax.all){r=Mo;break}r=$i;break}if(r.mask===(1<<Ke.length)-1){r=$i;break}for(;r.index<Ke.length;r.index++){var st=1<<r.index;if(0==(r.mask&st)){l(r),s({type:"AddMatchOnce",syntax:r.syntax,mask:r.mask|st}),r=Ke[r.index++];break}}break;case"AddMatchOnce":r={type:"MatchOnceBuffer",syntax:r.syntax,index:0,mask:r.mask};break;case"Enum":if(null!==ae){var De=ae.value.toLowerCase();if(-1!==De.indexOf("\\")&&(De=De.replace(/\\[09].*$/,"")),zoe.call(r.map,De)){r=r.map[De];break}}r=Mo;break;case"Generic":var it=null!==g?g.opts:null,ft=Se+Math.floor(r.fn(ae,o,it));if(!isNaN(ft)&&ft>Se){for(;Se<ft;)u();r=$i}else r=Mo;break;case"Type":case"Property":var bt="Type"===r.type?"types":"properties",$e=zoe.call(e,bt)?e[bt][r.name]:null;if(!$e||!$e.match)throw new Error("Bad syntax reference: "+("Type"===r.type?"<"+r.name+">":"<'"+r.name+"'>"));if(!1!==z&&null!==ae&&"Type"===r.type)if("custom-ident"===r.name&&1===ae.type||"length"===r.name&&"0"===ae.value){null===z&&(z=a(r,L)),r=Mo;break}g={syntax:r.syntax,opts:r.syntax.opts||null!==g&&g.opts||null,prev:g},Ee={type:2,syntax:r.syntax,token:Ee.token,prev:Ee},r=$e.match;break;case"Keyword":var ct=r.name;if(null!==ae){var Bt=ae.value;if(-1!==Bt.indexOf("\\")&&(Bt=Bt.replace(/\\[09].*$/,"")),Bz(Bt,ct)){u(),r=$i;break}}r=Mo;break;case"AtKeyword":case"Function":if(null!==ae&&Bz(ae.value,r.name)){u(),r=$i;break}r=Mo;break;case"Token":if(null!==ae&&ae.value===r.value){u(),r=$i;break}r=Mo;break;case"Comma":null!==ae&&18===ae.type?Koe(Ee.token)?r=Mo:(u(),r=qoe(ae)?Mo:$i):r=Koe(Ee.token)||qoe(ae)?$i:Mo;break;case"String":for(var jt="",It=Se;It<n.length&&jt.length<r.value.length;It++)jt+=n[It].value;if(Bz(jt,r.value)){for(;Se<It;)u();r=$i}else r=Mo;break;default:throw new Error("Unknown node type: "+r.type)}switch(q,re){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),re="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Ee=null;break;case"Match":for(;null!==g;)h();break;default:Ee=null}return{tokens:n,reason:re,iterations:q,match:Ee,longestMatch:Ce}}function Qoe(n,r,e){var i=Joe(n,r,e||{});if(null===i.match)return i;var o=i.match,a=i.match={syntax:r.syntax||null,match:[]},s=[a];for(o=Yoe(o).prev;null!==o;){switch(o.type){case 2:a.match.push(a={syntax:o.syntax,match:[]}),s.push(a);break;case 3:s.pop(),a=s[s.length-1];break;default:a.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return i}function Xoe(n){function r(o){return null!==o&&("Type"===o.type||"Property"===o.type||"Keyword"===o.type)}var i=null;return null!==this.matched&&function e(o){if(Array.isArray(o.match)){for(var a=0;a<o.match.length;a++)if(e(o.match[a]))return r(o.syntax)&&i.unshift(o.syntax),!0}else if(o.node===n)return i=r(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),i}function $Ze(n,r){return Fz(this,n,function(e){return"Type"===e.type&&e.name===r})}function eNe(n,r){return Fz(this,n,function(e){return"Property"===e.type&&e.name===r})}function tNe(n){return Fz(this,n,function(r){return"Keyword"===r.type})}function Fz(n,r,e){var i=Xoe.call(n,r);return null!==i&&i.some(e)}function $oe(n){return"node"in n?n.node:$oe(n.match[0])}function eae(n){return"node"in n?n.node:eae(n.match[n.match.length-1])}function tae(n,r,e,i,o){var s=[];return null!==e.matched&&function a(l){if(null!==l.syntax&&l.syntax.type===i&&l.syntax.name===o){var u=$oe(l),d=eae(l);n.syntax.walk(r,function(h,g,y){if(h===u){var L=new hb;do{if(L.appendData(g.data),g.data===d)break;g=g.next}while(null!==g);s.push({parent:y,nodes:L})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var J2=Object.prototype.hasOwnProperty;function Uz(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n&&n>=0}function nae(n){return Boolean(n)&&Uz(n.offset)&&Uz(n.line)&&Uz(n.column)}function nNe(n,r){return function(i,o){if(!i||i.constructor!==Object)return o(i,"Type of node should be an Object");for(var a in i){var s=!0;if(!1!==J2.call(i,a)){if("type"===a)i.type!==n&&o(i,"Wrong node type `"+i.type+"`, expected `"+n+"`");else if("loc"===a){if(null===i.loc)continue;if(i.loc&&i.loc.constructor===Object)if("string"!=typeof i.loc.source)a+=".source";else if(nae(i.loc.start)){if(nae(i.loc.end))continue;a+=".end"}else a+=".start";s=!1}else if(r.hasOwnProperty(a)){s=!1;for(var l=0;!s&&l<r[a].length;l++){var u=r[a][l];switch(u){case String:s="string"==typeof i[a];break;case Boolean:s="boolean"==typeof i[a];break;case null:s=null===i[a];break;default:"string"==typeof u?s=i[a]&&i[a].type===u:Array.isArray(u)&&(s=i[a]instanceof hb)}}}else o(i,"Unknown field `"+a+"` for "+n+" node type");s||o(i,"Bad value for `"+n+"."+a+"`")}}for(var d in r)J2.call(r,d)&&!1===J2.call(i,d)&&o(i,"Field `"+n+"."+d+"` is missed")}}function rNe(n,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+n+'"'};for(var a in e)if(!1!==J2.call(e,a)){for(var s=[],l=i[a]=Array.isArray(e[a])?e[a].slice():[e[a]],u=0;u<l.length;u++){var d=l[u];if(d===String||d===Boolean)s.push(d.name);else if(null===d)s.push("null");else if("string"==typeof d)s.push("<"+d+">");else{if(!Array.isArray(d))throw new Error("Wrong value `"+d+"` in `"+n+"."+a+"` structure definition");s.push("List")}}o[a]=s.join(" | ")}return{docs:o,check:nNe(n,i)}}var oNe=Zz(Coe.join(" | "));function jz(n,r,e){var i={};for(var o in n)n[o].syntax&&(i[o]=e?n[o].syntax:vz(n[o].syntax,{compact:r}));return i}function aNe(n,r,e){for(var i={},o=0,a=Object.entries(n);o<a.length;o++){var s=(0,Yn.Z)(a[o],2),l=s[0],u=s[1];i[l]={prelude:u.prelude&&(e?u.prelude.syntax:vz(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&jz(u.descriptors,r,e)}}return i}function nf(n,r,e){return Vr({matched:n,iterations:e,error:r},j)}function Kk(n,r,e,i){var a,o=GZe(e,n.syntax);return function sNe(n){for(var r=0;r<n.length;r++)if("var("===n[r].value.toLowerCase())return!0;return!1}(o)?nf(null,new Error("Matching for a tree with var() is not supported")):(i&&(a=Qoe(o,n.cssWideKeywordsSyntax,n)),i&&a.match||(a=Qoe(o,r.match,n)).match?nf(a.match,null,a.iterations):nf(null,new FLe(a.reason,r.syntax,e,a),a.iterations))}var rae=function(){function n(r,e,i){if((0,B.Z)(this,n),this.cssWideKeywordsSyntax=oNe,this.syntax=e,this.generic=!1,this.units=Vr({},A),this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||function iNe(n){var r={};if(n.node)for(var e in n.node)if(J2.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=rNe(e,i)}return r}(r),r){if(r.units)for(var o=0,a=Object.keys(A);o<a.length;o++){var s=a[o];Array.isArray(r.units[s])&&(this.units[s]=r.units[s])}if(r.types)for(var l in r.types)this.addType_(l,r.types[l]);if(r.generic){this.generic=!0;for(var u=0,d=Object.entries(lZe(this.units));u<d.length;u++){var h=(0,Yn.Z)(d[u],2),g=h[0],y=h[1];this.addType_(g,y)}}if(r.atrules)for(var L in r.atrules)this.addAtrule_(L,r.atrules[L]);if(r.properties)for(var z in r.properties)this.addProperty_(z,r.properties[z])}}return(0,U.Z)(n,[{key:"checkStructure",value:function(e){function i(s,l){a.push({node:s,message:l})}var o=this.structure,a=[];return this.syntax.walk(e,function(s){o.hasOwnProperty(s.type)?o[s.type].check(s,i):i(s,"Unknown node type `"+s.type+"`")}),!!a.length&&a}},{key:"createDescriptor",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:i,name:o},l={type:i,name:o,parent:a,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?l.match=Zz(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:Uoe(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:Zz(l.syntax,s)}),l.match}})),l}},{key:"addAtrule_",value:function(e,i){var o=this;!i||(this.atrules[e]={type:"Atrule",name:e,prelude:i.prelude?this.createDescriptor(i.prelude,"AtrulePrelude",e):null,descriptors:i.descriptors?Object.keys(i.descriptors).reduce(function(a,s){return a[s]=o.createDescriptor(i.descriptors[s],"AtruleDescriptor",s,e),a},Object.create(null)):null})}},{key:"addProperty_",value:function(e,i){!i||(this.properties[e]=this.createDescriptor(i,"Property",e))}},{key:"addType_",value:function(e,i){!i||(this.types[e]=this.createDescriptor(i,"Type",e))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new z2("Unknown at-rule","@"+e)}},{key:"checkAtrulePrelude",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e);return!a.prelude&&i?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!a.prelude||i||Kk(this,a.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}},{key:"checkAtruleDescriptorName",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e),s=yz(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new z2("Unknown at-rule descriptor",i):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}},{key:"checkPropertyName",value:function(e){if(!this.getProperty(e))return new z2("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,i){var o=this.checkAtrulePrelude(e,i);if(o)return nf(null,o);var a=this.getAtrule(e);return a.prelude?Kk(this,a.prelude,i||"",!1):nf(null,null)}},{key:"matchAtruleDescriptor",value:function(e,i,o){var a=this.checkAtruleDescriptorName(e,i);if(a)return nf(null,a);var s=this.getAtrule(e),l=yz(i);return Kk(this,s.descriptors[l.name]||s.descriptors[l.basename],o,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?nf(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,i){if(yoe(e).custom)return nf(null,new Error("Lexer matching doesn't applicable for custom properties"));var o=this.checkPropertyName(e);return o?nf(null,o):Kk(this,this.getProperty(e),i,!0)}},{key:"matchType",value:function(e,i){var o=this.getType(e);return o?Kk(this,o,i,!1):nf(null,new z2("Unknown type",e))}},{key:"match",value:function(e,i){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Kk(this,e,i,!1)):nf(null,new z2("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return tae(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return tae(this,e.value,this.matchDeclaration(e),i,o)}},{key:"findAllFragments",value:function(e,i,o){var a=this,s=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(u){s.push.apply(s,a.findDeclarationValueFragments(u,i,o))}}),s}},{key:"getAtrule",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=yz(e),a=o.vendor&&i?this.atrules[o.name]||this.atrules[o.basename]:this.atrules[o.name];return a||null}},{key:"getAtrulePrelude",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.getAtrule(e,i);return o&&o.prelude||null}},{key:"getAtruleDescriptor",value:function(e,i){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[i]||null}},{key:"getProperty",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=yoe(e),a=o.vendor&&i?this.properties[o.name]||this.properties[o.basename]:this.properties[o.name];return a||null}},{key:"getType",value:function(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}},{key:"validate",value:function(){function e(l,u,d,h){if(d.has(u))return d.get(u);d.set(u,!1),null!==h.syntax&&function UZe(n,r,e){var o=q2,a=q2;if("function"==typeof r?o=r:r&&(o=joe(r.enter),a=joe(r.leave)),o===q2&&a===q2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function i(s){switch(o.call(e,s),s.type){case"Group":s.terms.forEach(i);break;case"Multiplier":i(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}a.call(e,s)}(n)}(h.syntax,function(g){if("Type"===g.type||"Property"===g.type){var y="Type"===g.type?l.types:l.properties,L="Type"===g.type?i:o;(!hasOwnProperty.call(y,g.name)||e(l,g.name,L,y[g.name]))&&d.set(u,!0)}},this)}var i=new Map,o=new Map;for(var a in this.types)e(this,a,i,this.types[a]);for(var s in this.properties)e(this,s,o,this.properties[s]);return i=(0,cn.Z)(i.keys()).filter(function(l){return i.get(l)}),o=(0,cn.Z)(o.keys()).filter(function(l){return o.get(l)}),i.length||o.length?{types:i,properties:o}:null}},{key:"dump",value:function(e,i){return{generic:this.generic,units:this.units,types:jz(this.types,!i,e),properties:jz(this.properties,!i,e),atrules:aNe(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),n}();function Hz(n,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof n?n+r:r.replace(/^\s*\|\s*/,""):r||null}function iae(n,r){for(var e=Object.create(null),i=0,o=Object.entries(n);i<o.length;i++){var a=(0,Yn.Z)(o[i],2),s=a[0],l=a[1];if(l){e[s]={};for(var u=0,d=Object.keys(l);u<d.length;u++){var h=d[u];r.includes(h)&&(e[s][h]=l[h])}}}return e}function Gz(n,r){for(var e=Vr({},n),i=0,o=Object.entries(r);i<o.length;i++){var a=(0,Yn.Z)(o[i],2),s=a[0],l=a[1];switch(s){case"generic":e[s]=Boolean(l);break;case"units":e[s]=Vr({},n[s]);for(var u=0,d=Object.entries(l);u<d.length;u++){var h=(0,Yn.Z)(d[u],2),g=h[0],y=h[1];e[s][g]=Array.isArray(y)?y:[]}break;case"atrules":e[s]=Vr({},n[s]);for(var L=0,z=Object.entries(l);L<z.length;L++){var q=(0,Yn.Z)(z[L],2),re=q[0],ae=q[1],Se=e[s][re]||{},Ce=e[s][re]={prelude:Se.prelude||null,descriptors:Vr({},Se.descriptors)};if(ae){Ce.prelude=ae.prelude?Hz(Ce.prelude,ae.prelude):Ce.prelude||null;for(var Ee=0,Ke=Object.entries(ae.descriptors||{});Ee<Ke.length;Ee++){var st=(0,Yn.Z)(Ke[Ee],2),De=st[0],it=st[1];Ce.descriptors[De]=it?Hz(Ce.descriptors[De],it):null}Object.keys(Ce.descriptors).length||(Ce.descriptors=null)}}break;case"types":case"properties":e[s]=Vr({},n[s]);for(var ft=0,bt=Object.entries(l);ft<bt.length;ft++){var $e=(0,Yn.Z)(bt[ft],2),Ie=$e[0],ct=$e[1];e[s][Ie]=Hz(e[s][Ie],ct)}break;case"scope":e[s]=Vr({},n[s]);for(var Bt=0,jt=Object.entries(l);Bt<jt.length;Bt++){var It=(0,Yn.Z)(jt[Bt],2),Tn=It[0],Hn=It[1];e[s][Tn]=Vr(Vr({},e[s][Tn]),Hn)}break;case"parseContext":e[s]=Vr(Vr({},n[s]),l);break;case"atrule":case"pseudo":e[s]=Vr(Vr({},n[s]),iae(l,["parse"]));break;case"node":e[s]=Vr(Vr({},n[s]),iae(l,["name","structure","parse","generate","walkContext"]))}}return e}function oae(n){var r=yLe(n),e=ILe(n),i=DLe(n),o=function ALe(n){return{fromPlainObject:function(e){return n(e,{enter:function(o){o.children&&!(o.children instanceof hb)&&(o.children=(new hb).fromArray(o.children))}}),e},toPlainObject:function(e){return n(e,{leave:function(o){o.children&&o.children instanceof hb&&(o.children=o.children.toArray())}}),e}}}(e),a=o.fromPlainObject,s=o.toPlainObject,l={lexer:null,createLexer:function(d){return new rae(d,l,l.lexer.structure)},tokenize:iF,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(d){var h=Gz({},n);return oae("function"==typeof d?d(h,Object.assign):Gz(h,d))}};return l.lexer=new rae({generic:!0,units:n.units,types:n.types,atrules:n.atrules,properties:n.properties,node:n.node},l),l}var mb=!0;function vF(n,r){var e=this.tokenStart+n,i=this.charCodeAt(e);for((43===i||45===i)&&(r&&this.error("Number sign is not allowed"),e++);e<this.tokenEnd;e++)Ys(this.charCodeAt(e))||this.error("Integer is expected",e)}function qk(n){return vF.call(this,0,n)}function zg(n,r){if(!this.cmpChar(this.tokenStart+n,r)){var e="";switch(r){case 110:e="N is expected";break;case 45:e="HyphenMinus is expected"}this.error(e,this.tokenStart+n)}}function zz(){for(var n=0,r=0,e=this.tokenType;13===e||25===e;)e=this.lookupType(++n);if(10!==e){if(!this.isDelim(43,n)&&!this.isDelim(45,n))return null;r=this.isDelim(43,n)?43:45;do{e=this.lookupType(++n)}while(13===e||25===e);10!==e&&(this.skip(n),qk.call(this,mb))}return n>0&&this.skip(n),0===r&&(43!==(e=this.charCodeAt(this.tokenStart))&&45!==e&&this.error("Number sign is expected")),qk.call(this,0!==r),45===r?"-"+this.consume(10):this.consume(10)}var dNe="AnPlusB",fNe={a:[String,null],b:[String,null]};function aae(){var n=this.tokenStart,r=null,e=null;if(10===this.tokenType)qk.call(this,false),e=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,45))switch(r="-1",zg.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),e=zz.call(this);break;case 3:zg.call(this,2,45),this.next(),this.skipSC(),qk.call(this,mb),e="-"+this.consume(10);break;default:zg.call(this,2,45),vF.call(this,3,mb),this.next(),e=this.substrToCursor(n+2)}else if(1===this.tokenType||this.isDelim(43)&&1===this.lookupType(1)){var i=0;switch(r="1",this.isDelim(43)&&(i=1,this.next()),zg.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),e=zz.call(this);break;case 2:zg.call(this,1,45),this.next(),this.skipSC(),qk.call(this,mb),e="-"+this.consume(10);break;default:zg.call(this,1,45),vF.call(this,2,mb),this.next(),e=this.substrToCursor(n+i+1)}}else if(12===this.tokenType){for(var o=this.charCodeAt(this.tokenStart),a=43===o||45===o,s=this.tokenStart+a;s<this.tokenEnd&&Ys(this.charCodeAt(s));s++);s===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),zg.call(this,s-this.tokenStart,110),r=this.substring(n,s),s+1===this.tokenEnd?(this.next(),e=zz.call(this)):(zg.call(this,s-this.tokenStart+1,45),s+2===this.tokenEnd?(this.next(),this.skipSC(),qk.call(this,mb),e="-"+this.consume(10)):(vF.call(this,s-this.tokenStart+2,mb),this.next(),e=this.substrToCursor(s+1)))}else this.error();return null!==r&&43===r.charCodeAt(0)&&(r=r.substr(1)),null!==e&&43===e.charCodeAt(0)&&(e=e.substr(1)),{type:"AnPlusB",loc:this.getLocation(n,this.tokenStart),a:r,b:e}}function pNe(n){if(n.a){var r=("+1"===n.a||"1"===n.a?"n":"-1"===n.a&&"-n")||n.a+"n";if(n.b){var e="-"===n.b[0]||"+"===n.b[0]?n.b:"+"+n.b;this.tokenize(r+e)}else this.tokenize(r)}else this.tokenize(n.b)}function sae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function hNe(){for(var r,n=1;r=this.lookupType(n);n++){if(24===r)return!0;if(23===r||3===r)return!1}return!1}var mNe="Atrule",_Ne="atrule",gNe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function lae(){var e,i,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,o=null,a=null;switch(this.eat(3),i=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(o=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),sae):sae.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:a=hasOwnProperty.call(this.atrule,i)&&"function"==typeof this.atrule[i].block?this.atrule[i].block.call(this,n):this.Block(hNe.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:o,block:a}}function vNe(n){this.token(3,"@"+n.name),null!==n.prelude&&this.node(n.prelude),n.block?this.node(n.block):this.token(17,";")}var yNe="AtrulePrelude",bNe="atrulePrelude",CNe={children:[[]]};function uae(n){var r=null;return null!==n&&(n=n.toLowerCase()),this.skipSC(),r=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].prelude?this.atrule[n].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&23!==this.tokenType&&17!==this.tokenType&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(r),children:r}}function wNe(n){this.children(n)}function SNe(){this.eof&&this.error("Unexpected end of input");var n=this.tokenStart,r=!1;return this.isDelim(42)?(r=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(1)):r&&this.error("Identifier is expected",this.tokenEnd):r&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function ENe(){var n=this.tokenStart,r=this.charCodeAt(n);return 61!==r&&126!==r&&94!==r&&36!==r&&42!==r&&124!==r&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==r&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(n)}var xNe="AttributeSelector",DNe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function dae(){var r,n=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=SNe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=ENe.call(this),this.skipSC(),i=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(n,this.tokenStart),name:r,matcher:e,value:i,flags:o}}function ANe(n){this.token(9,"["),this.node(n.name),null!==n.matcher&&(this.tokenize(n.matcher),this.node(n.value)),null!==n.flags&&this.token(1,n.flags),this.token(9,"]")}function fae(n){return this.Raw(n,null,!0)}function pae(){return this.parseWithFallback(this.Rule,fae)}function hae(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}function PNe(){if(17===this.tokenType)return hae.call(this,this.tokenIndex);var n=this.parseWithFallback(this.Declaration,hae);return 17===this.tokenType&&this.next(),n}var INe="Block",RNe="block",LNe={children:[["Atrule","Rule","Declaration"]]};function mae(n){var r=n?PNe:pae,e=this.tokenStart,i=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:i.push(this.parseWithFallback(this.Atrule.bind(this,n),fae));break;default:n&&this.isDelim(38)?i.push(pae.call(this)):i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function ZNe(n){var r=this;this.token(23,"{"),this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var NNe="Brackets",BNe={children:[[]]};function _ae(n,r){var i,e=this.tokenStart;return this.eat(19),i=n.call(this,r),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(e,this.tokenStart),children:i}}function FNe(n){this.token(9,"["),this.children(n),this.token(9,"]")}var UNe="CDC",jNe=[];function gae(){var n=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(n,this.tokenStart)}}function HNe(){this.token(15,"--\x3e")}var GNe="CDO",zNe=[];function vae(){var n=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(n,this.tokenStart)}}function WNe(){this.token(14,"\x3c!--")}var YNe="ClassSelector",KNe={name:String};function yae(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function qNe(n){this.token(9,"."),this.token(1,n.name)}var $Ne="Combinator",eBe={name:String};function Cae(){var r,n=this.tokenStart;switch(this.tokenType){case 13:r=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}r=this.substrToCursor(n)}return{type:"Combinator",loc:this.getLocation(n,this.tokenStart),name:r}}function tBe(n){this.tokenize(n.name)}var iBe="Comment",oBe={value:String};function wae(){var n=this.tokenStart,r=this.tokenEnd;return this.eat(25),r-n+2>=2&&42===this.charCodeAt(r-2)&&47===this.charCodeAt(r-1)&&(r-=2),{type:"Comment",loc:this.getLocation(n,this.tokenStart),value:this.substring(n+2,r)}}function aBe(n){this.token(25,"/*"+n.value+"*/")}function fBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!0)}function pBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!1)}function hBe(){var n=this.tokenIndex,r=this.Value();return"Raw"!==r.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(n)&&this.error(),r}var mBe="Declaration",_Be="declaration",gBe={important:[Boolean,String],property:String,value:["Value","Raw"]};function Mae(){var l,n=this.tokenStart,r=this.tokenIndex,e=yBe.call(this),i=bz(e),o=i?this.parseCustomProperty:this.parseValue,a=i?pBe:fBe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(hBe,a):a.call(this,this.tokenIndex),i&&"Value"===l.type&&l.children.isEmpty)for(var d=u-this.tokenIndex;d<=0;d++)if(13===this.lookupType(d)){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=bBe.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(n,this.tokenStart),important:s,property:e,value:l}}function vBe(n){this.token(1,n.property),this.token(16,":"),this.node(n.value),n.important&&(this.token(9,"!"),this.token(1,!0===n.important?"important":n.important))}function yBe(){var n=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(n)}function bBe(){this.eat(9),this.skipSC();var n=this.consume(1);return"important"===n||n}function Vz(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}var wBe="DeclarationList",kBe={children:[["Declaration","Atrule","Rule"]]};function Sae(){for(var n=this.createList();!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:n.push(this.parseWithFallback(this.Atrule.bind(this,!0),Vz));break;default:this.isDelim(38)?n.push(this.parseWithFallback(this.Rule,Vz)):n.push(this.parseWithFallback(this.Declaration,Vz))}return{type:"DeclarationList",loc:this.getLocationFromList(n),children:n}}function TBe(n){var r=this;this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")})}var MBe="Dimension",SBe={value:String,unit:String};function Eae(){var n=this.tokenStart,r=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(n,this.tokenStart),value:r,unit:this.substring(n+r.length,this.tokenStart)}}function EBe(n){this.token(12,n.value+n.unit)}var xBe="Function",DBe="function",ABe={name:String,children:[[]]};function xae(n,r){var a,e=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return a=r.hasOwnProperty(o)?r[o].call(this,r):n.call(this,r),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(e,this.tokenStart),name:i,children:a}}function OBe(n){this.token(2,n.name+"("),this.children(n),this.token(22,")")}var PBe="XXX",IBe="Hash",RBe={value:String};function Dae(){var n=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n+1)}}function LBe(n){this.token(4,"#"+n.value)}var ZBe="Identifier",NBe={name:String};function Aae(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function BBe(n){this.token(1,n.name)}var FBe="IdSelector",UBe={name:String};function Oae(){var n=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n+1)}}function jBe(n){this.token(9,"#"+n.name)}var HBe="MediaFeature",GBe={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Pae(){var r,n=this.tokenStart,e=null;if(this.eat(21),this.skipSC(),r=this.consume(1),this.skipSC(),22!==this.tokenType){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:e=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:e=this.Dimension();break;case 1:e=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(n,this.tokenStart),name:r,value:e}}function zBe(n){this.token(21,"("),this.token(1,n.name),null!==n.value&&(this.token(16,":"),this.node(n.value)),this.token(22,")")}var WBe="MediaQuery",VBe={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Iae(){var n=this.createList(),r=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:r=this.Identifier();break;case 21:r=this.MediaFeature();break;default:break e}n.push(r)}return null===r&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(n),children:n}}function YBe(n){this.children(n)}var KBe="MediaQueryList",qBe={children:[["MediaQuery"]]};function Rae(){var n=this.createList();for(this.skipSC();!this.eof&&(n.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(n),children:n}}function JBe(n){var r=this;this.children(n,function(){return r.token(18,",")})}var XBe="NestingSelector",$Be={};function Lae(){var n=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(n,this.tokenStart)}}function eFe(){this.token(9,"&")}var tFe="Nth",nFe={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Zae(){this.skipSC();var i,n=this.tokenStart,r=n,e=null;return i=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),r=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),e=this.SelectorList(),r=this.tokenStart),{type:"Nth",loc:this.getLocation(n,r),nth:i,selector:e}}function rFe(n){this.node(n.nth),null!==n.selector&&(this.token(1,"of"),this.node(n.selector))}var iFe="Number",oFe={value:String};function Nae(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function aFe(n){this.token(10,n.value)}var sFe="Operator",lFe={value:String};function Bae(){var n=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function uFe(n){this.tokenize(n.value)}var cFe="Parentheses",dFe={children:[[]]};function Fae(n,r){var i,e=this.tokenStart;return this.eat(21),i=n.call(this,r),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(e,this.tokenStart),children:i}}function fFe(n){this.token(21,"("),this.children(n),this.token(22,")")}var pFe="Percentage",hFe={value:String};function Uae(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function mFe(n){this.token(11,n.value+"%")}var _Fe="PseudoClassSelector",gFe="function",vFe={name:String,children:[["Raw"],null]};function jae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function yFe(n){this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}var bFe="PseudoElementSelector",CFe="function",wFe={name:String,children:[["Raw"],null]};function Hae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function kFe(n){this.token(16,":"),this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}function Gae(){this.skipSC();for(var n=this.consume(10),r=0;r<n.length;r++){var e=n.charCodeAt(r);!Ys(e)&&46!==e&&this.error("Unsigned number is expected",this.tokenStart-n.length+r)}return 0===Number(n)&&this.error("Zero number is not allowed",this.tokenStart-n.length),n}var SFe="Ratio",EFe={left:String,right:String};function zae(){var e,n=this.tokenStart,r=Gae.call(this);return this.skipSC(),this.eatDelim(47),e=Gae.call(this),{type:"Ratio",loc:this.getLocation(n,this.tokenStart),left:r,right:e}}function xFe(n){this.token(10,n.left),this.token(9,"/"),this.token(10,n.right)}function DFe(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var AFe="Raw",OFe={value:String};function Wae(n,r,e){var o,i=this.getTokenStart(n);return this.skipUntilBalanced(n,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?DFe.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function PFe(n){this.tokenize(n.value)}function Vae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracket,!0)}function IFe(){var n=this.SelectorList();return"Raw"!==n.type&&!1===this.eof&&23!==this.tokenType&&this.error(),n}var RFe="Rule",LFe="rule",ZFe={prelude:["SelectorList","Raw"],block:["Block"]};function Yae(){var e,i,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(IFe,Vae):Vae.call(this,n),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function NFe(n){this.node(n.prelude),this.node(n.block)}var BFe="Selector",FFe={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Kae(){var n=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(n)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(n),children:n}}function UFe(n){this.children(n)}var jFe="SelectorList",HFe="selector",GFe={children:[["Selector","Raw"]]};function qae(){for(var n=this.createList();!this.eof&&(n.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(n),children:n}}function zFe(n){var r=this;this.children(n,function(){return r.token(18,",")})}function Xae(n){for(var r=n.length,e=n.charCodeAt(0),i=34===e||39===e?1:0,o=1===i&&r>1&&n.charCodeAt(r-1)===e?r-2:r-1,a="",s=i;s<=o;s++){var l=n.charCodeAt(s);if(92===l){if(s===o){s!==r-1&&(a=n.substr(s+1));break}if(Zp(92,l=n.charCodeAt(++s))){var u=s-1,d=Hk(n,u);s=d-1,a+=Xie(n.substring(u+1,d))}else 13===l&&10===n.charCodeAt(s+1)&&s++}else a+=n[s]}return a}var VFe="String",YFe={value:String};function $ae(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Xae(this.consume(5))}}function KFe(n){this.token(5,function WFe(n,r){for(var e=r?"'":'"',i=r?39:34,o="",a=!1,s=0;s<n.length;s++){var l=n.charCodeAt(s);0!==l?l<=31||127===l?(o+="\\"+l.toString(16),a=!0):l===i||92===l?(o+="\\"+n.charAt(s),a=!1):(a&&(Ug(l)||pb(l))&&(o+=" "),o+=n.charAt(s),a=!1):o+="\ufffd"}return e+o+e}(n.value))}function ese(n){return this.Raw(n,null,!1)}var JFe="StyleSheet",QFe="stylesheet",XFe={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function tse(){for(var e,n=this.tokenStart,r=this.createList();!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}e=this.Comment();break;case 14:e=this.CDO();break;case 15:e=this.CDC();break;case 3:e=this.parseWithFallback(this.Atrule,ese);break;default:e=this.parseWithFallback(this.Rule,ese)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(n,this.tokenStart),children:r}}function $Fe(n){this.children(n)}function Kz(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var t5e="TypeSelector",n5e={name:String};function rse(){var n=this.tokenStart;return this.isDelim(124)?(this.next(),Kz.call(this)):(Kz.call(this),this.isDelim(124)&&(this.next(),Kz.call(this))),{type:"TypeSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function r5e(n){this.tokenize(n.name)}function Q2(n,r){for(var e=0,i=this.tokenStart+n;i<this.tokenEnd;i++){var o=this.charCodeAt(i);if(45===o&&r&&0!==e)return Q2.call(this,n+e+1,!1),-1;Ug(o)||this.error(r&&0!==e?"Hyphen minus"+(e<6?" or hex digit":"")+" is expected":e<6?"Hex digit is expected":"Unexpected input",i),++e>6&&this.error("Too many hex digits",i)}return this.next(),e}function bF(n){for(var r=0;this.isDelim(63);)++r>n&&this.error("Too many question marks"),this.next()}function i5e(n){this.charCodeAt(this.tokenStart)!==n&&this.error((43===n?"Plus sign":"Hyphen minus")+" is expected")}function o5e(){var n=0;switch(this.tokenType){case 10:if(n=Q2.call(this,1,!0),this.isDelim(63)){bF.call(this,6-n);break}if(12===this.tokenType||10===this.tokenType){i5e.call(this,45),Q2.call(this,1,!1);break}break;case 12:(n=Q2.call(this,1,!0))>0&&bF.call(this,6-n);break;default:if(this.eatDelim(43),1===this.tokenType){(n=Q2.call(this,0,!0))>0&&bF.call(this,6-n);break}if(this.isDelim(63)){this.next(),bF.call(this,5);break}this.error("Hex digit or question mark is expected")}}var a5e="UnicodeRange",s5e={value:String};function ase(){var n=this.tokenStart;return this.eatIdent("u"),o5e.call(this),{type:"UnicodeRange",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function l5e(n){this.tokenize(n.value)}var m5e="Url",_5e={value:String};function lse(){var r,n=this.tokenStart;switch(this.tokenType){case 7:r=function p5e(n){for(var r=n.length,e=4,i=41===n.charCodeAt(r-1)?r-2:r-1,o="";e<i&&pb(n.charCodeAt(e));)e++;for(;e<i&&pb(n.charCodeAt(i));)i--;for(var a=e;a<=i;a++){var s=n.charCodeAt(a);if(92===s){if(a===i){a!==r-1&&(o=n.substr(a+1));break}if(Zp(92,s=n.charCodeAt(++a))){var l=a-1,u=Hk(n,l);a=u-1,o+=Xie(n.substring(l+1,u))}else 13===s&&10===n.charCodeAt(a+1)&&a++}else o+=n[a]}return o}(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),r=Xae(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(n,this.tokenStart),value:r}}function g5e(n){this.token(7,function h5e(n){for(var r="",e=!1,i=0;i<n.length;i++){var o=n.charCodeAt(i);0!==o?o<=31||127===o?(r+="\\"+o.toString(16),e=!0):32===o||92===o||34===o||39===o||40===o||41===o?(r+="\\"+n.charAt(i),e=!1):(e&&Ug(o)&&(r+=" "),r+=n.charAt(i),e=!1):r+="\ufffd"}return"url("+r+")"}(n.value))}var v5e="Value",y5e={children:[[]]};function use(){var n=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(n,this.tokenStart),children:r}}function b5e(n){this.children(n)}var C5e=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),w5e="WhiteSpace",k5e={value:String};function cse(){return this.eat(13),C5e}function T5e(n){this.token(13,n.value)}var M5e=Vr(Vr({generic:!0},{generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221e]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221e]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221e]> [/ <number [0,\u221e]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221e]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221e]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}}}),{},{node:Ct});function fse(n){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,n.recognizer);case 19:return this.Brackets(this.readSequence,n.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,n.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:var r=this.charCodeAt(this.tokenStart);if(47===r||42===r||43===r||45===r)return this.Operator();35===r&&this.error("Hex or identifier is expected",this.tokenStart+1)}}var O5e={getNode:fse};var H5e={onWhiteSpace:function U5e(n,r){null!==r.last&&"Combinator"!==r.last.type&&null!==n&&"Combinator"!==n.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function j5e(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return 16===this.lookupType(1)?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}};function hse(n){return null!==n&&"Operator"===n.type&&("-"===n.value[n.value.length-1]||"+"===n.value[n.value.length-1])}var W5e={getNode:fse,onWhiteSpace:function(r,e){hse(r)&&(r.value=" "+r.value),hse(e.last)&&(e.last.value+=" ")},expression:function G5e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function z5e(){var n=this.createList();if(this.skipSC(),n.push(this.Identifier()),this.skipSC(),18===this.tokenType){n.push(this.Operator());var r=this.tokenIndex,e=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===e.type&&e.children.isEmpty)for(var i=r-this.tokenIndex;i<=0;i++)if(13===this.lookupType(i)){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}n.push(e)}return n}},Y5e={parse:{prelude:function(){var r=this.createList();switch(this.skipSC(),this.tokenType){case 5:r.push(this.String());break;case 7:case 2:r.push(this.Url());break;default:this.error("String or url() is expected")}return(1===this.lookupNonWSType(0)||21===this.lookupNonWSType(0))&&r.push(this.MediaQueryList()),r},block:null}};function Q5e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function X5e(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):mse.call(this)}function mse(){var r,n=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:r=this.Function(Q5e,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(X5e,this.scope.AtrulePrelude);break;default:break e}n.push(r)}return n}var $5e={parse:{prelude:function(){var r=mse.call(this);return null===this.getFirstListNode(r)&&this.error("Condition is expected"),r},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},e4e={"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:Y5e,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},nest:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:$5e},_b={parse:function(){return this.createSingleNodeList(this.SelectorList())}},Qz={parse:function(){return this.createSingleNodeList(this.Selector())}},_se={parse:function(){return this.createSingleNodeList(this.Identifier())}},CF={parse:function(){return this.createSingleNodeList(this.Nth())}},n4e={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(r){return this.AtrulePrelude(r.atrule?String(r.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:Ve,atrule:e4e,pseudo:{dir:_se,has:_b,lang:_se,matches:_b,is:_b,"-moz-any":_b,"-webkit-any":_b,where:_b,not:_b,"nth-child":CF,"nth-last-child":CF,"nth-last-of-type":CF,"nth-of-type":CF,slotted:Qz,host:Qz,"host-context":Qz},node:at},r4e={node:Ct},fd=function(n){return oae(Gz({},n))}(Vr(Vr(Vr({},M5e),n4e),r4e));fd.tokenize;var Xz=fd.parse,yse=fd.generate,Sc=(fd.lexer,fd.createLexer,fd.walk,fd.find,fd.findLast,fd.findAll,fd.toPlainObject,fd.fromPlainObject,fd.fork,function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"fix",value:function(e){var i=Xz(e,{context:"declarationList"});return i.children.forEach(function(o){"font-size"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){if("Number"===a.type){var s=a.value.toString();s.indexOf("pt")>=0||s.indexOf("px")>=0||(a.value="".concat(s,"pt"))}})}),yse(i)}}]),n}());Sc.\u0275fac=function(r){return new(r||Sc)},Sc.\u0275prov=t.Yz7({token:Sc,factory:Sc.\u0275fac});var os=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"fix",value:function(e){return e.font_family===n.DEFAULT_FONT&&e.font_size===n.DEFAULT_SIZE&&(e.font_family=n.REPLACE_BY_FONT,e.font_size=n.REPLACE_BY_SIZE),e}},{key:"fixStyles",value:function(e){var i=Xz(e,{context:"declarationList"}),o=null,a=null,s=!0;if(i.children.forEach(function(h){"font-family"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Identifier"===g.type&&(o=g),"String"===g.type&&(o=g,s=!1)}),"font-size"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Dimension"===g.type&&(a=g)})}),a&&o){var l=null,u=a.value;l=s?o.name:o.value;var d=this.fix({font_family:l.split('"').join(""),font_size:parseInt(u,10)});s?o.name=d.font_family:o.value=d.font_family,a.value=d.font_size}return yse(i)}}]),n}();os.DEFAULT_FONT="TypeWriter",os.DEFAULT_SIZE=10,os.REPLACE_BY_FONT="Noto Sans",os.REPLACE_BY_SIZE=11,os.\u0275fac=function(r){return new(r||os)},os.\u0275prov=t.Yz7({token:os,factory:os.\u0275fac});var Wg=function(){function n(r,e,i){(0,B.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,U.Z)(n,[{key:"convert",value:function(e,i){var o=new Fk;o.rotation=e.rotation,o.style=e.style,o.text=e.text,o.x=e.x,o.y=e.y,o.originalX=e.x,o.originalY=e.y,void 0!==i&&(o.id=i.node_id,o.nodeId=i.node_id);var a=this.cssFixer.fix(o.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.text,s);return null!==o.x&&(o.x+=3),null!==o.y&&(o.y+=l.height),o}}]),n}();Wg.\u0275fac=function(r){return new(r||Wg)(t.LFG(Ip),t.LFG(Sc),t.LFG(os))},Wg.\u0275prov=t.Yz7({token:Wg,factory:Wg.\u0275fac});var i4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Vg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new i4e;return i.adapterNumber=e.adapter_number,i.linkType=e.link_type,i.name=e.name,i.portNumber=e.port_number,i.shortName=e.short_name,i}}]),n}();Vg.\u0275fac=function(r){return new(r||Vg)},Vg.\u0275prov=t.Yz7({token:Vg,factory:Vg.\u0275fac});var Yg=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new fb;if(o.id=e.node_id,o.commandLine=e.command_line,o.computeId=e.compute_id,o.console=e.console,o.consoleHost=e.console_host,o.consoleType=e.console_type,o.firstPortName=e.first_port_name,o.height=e.height,o.label=this.labelToMapLabel?this.labelToMapLabel.convert(e.label,{node_id:e.node_id}):void 0,o.locked=e.locked,o.name=e.name,o.nodeDirectory=e.node_directory,o.nodeType=e.node_type,o.portNameFormat=e.port_name_format,o.portSegmentSize=e.port_segment_size,o.ports=e.ports?e.ports.map(function(u){return i.portToMapPort.convert(u)}):[],o.projectId=e.project_id,o.status=e.status,o.symbol=e.symbol,o.symbolUrl=e.symbol_url,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,void 0!==o.label){var a=this.cssFixer.fix(o.label.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.label.text,s);(null===e.label.x||null===e.label.y)&&(o.label.x=e.width/2-l.width/2+3,o.label.y=-8)}return o}}]),n}();Yg.\u0275fac=function(r){return new(r||Yg)(t.LFG(Wg),t.LFG(Vg),t.LFG(Ip),t.LFG(Sc),t.LFG(os))},Yg.\u0275prov=t.Yz7({token:Yg,factory:Yg.\u0275fac});var bse=(0,U.Z)(function n(){(0,B.Z)(this,n),this.isSelected=!1,this.isMultiplied=!1}),X2=(0,U.Z)(function n(){(0,B.Z)(this,n)}),gb=function(){function n(r){(0,B.Z)(this,n),this.labelToMapLabel=r}return(0,U.Z)(n,[{key:"convert",value:function(e,i){var o=new X2;return o.nodeId=e.node_id,o.adapterNumber=e.adapter_number,o.portNumber=e.port_number,o.label=this.labelToMapLabel.convert(e.label),void 0!==i&&(o.linkId=i.link_id,o.id="".concat(o.nodeId,"-").concat(o.linkId)),o}}]),n}();gb.\u0275fac=function(r){return new(r||gb)(t.LFG(Wg))},gb.\u0275prov=t.Yz7({token:gb,factory:gb.\u0275fac});var Kg=function(){function n(r){(0,B.Z)(this,n),this.linkNodeToMapLinkNode=r}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new bse;return o.id=e.link_id,o.captureFileName=e.capture_file_name,o.captureFilePath=e.capture_file_path,o.capturing=e.capturing,o.filters=e.filters,o.link_style=e.link_style,o.linkType=e.link_type,o.nodes=e.nodes.map(function(a){return i.linkNodeToMapLinkNode.convert(a,{link_id:e.link_id})}),o.projectId=e.project_id,o.suspend=e.suspend,o}}]),n}();Kg.\u0275fac=function(r){return new(r||Kg)(t.LFG(gb))},Kg.\u0275prov=t.Yz7({token:Kg,factory:Kg.\u0275fac});var Nm=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Bm=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new Nm;return i.id=e.drawing_id,i.projectId=e.project_id,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i}}]),n}();Bm.\u0275fac=function(r){return new(r||Bm)},Bm.\u0275prov=t.Yz7({token:Bm,factory:Bm.\u0275fac});var o4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),vb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new o4e;return i.id=e.symbol_id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();vb.\u0275fac=function(r){return new(r||vb)},vb.\u0275prov=t.Yz7({token:vb,factory:vb.\u0275fac});var a4e=(0,U.Z)(function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];(0,B.Z)(this,n),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),Fm=function(){function n(){(0,B.Z)(this,n),this.layers={}}return(0,U.Z)(n,[{key:"getLayersList",value:function(){var e=this;return Object.keys(this.layers).sort(function(i,o){return Number(i)-Number(o)}).map(function(i){return e.layers[i]})}},{key:"setNodes",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).nodes.push(o)})}},{key:"setDrawings",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).drawings.push(o)})}},{key:"setLinks",value:function(e){var i=this;console.log("from set links 2"),e.filter(function(o){return o.source&&o.target}).forEach(function(o){var a=Math.min(o.source.z,o.target.z).toString();i.getLayerForKey(a).links.push(o)})}},{key:"clear",value:function(){this.layers={}}},{key:"getLayerForKey",value:function(e){return e in this.layers||(this.layers[e]=new a4e,this.layers[e].index=Number(e)),this.layers[e]}}]),n}();Fm.\u0275fac=function(r){return new(r||Fm)},Fm.\u0275prov=t.Yz7({token:Fm,factory:Fm.\u0275fac});var Fp=function(){function n(){(0,B.Z)(this,n),this.LINK_WIDTH=2}return(0,U.Z)(n,[{key:"linkTranslation",value:function(e,i,o){var l,u,a=o.x-i.x,s=o.y-i.y;if(0===s)l=0,u=e;else{var d=Math.atan(a/s);l=-e*Math.cos(d),u=e*Math.sin(d)}return{dx:l,dy:u}}},{key:"assignDataToLinks",value:function(e){var i=this,o={};e.forEach(function(a,s){var l=a.source.id,u=a.target.id,d=l<u?l+","+u:u+","+l,h=1;d in o?h=o[d].push(s):o[d]=[s],a.distance=h%2==0?h*i.LINK_WIDTH:(1-h)*i.LINK_WIDTH})}}]),n}();Fp.\u0275fac=function(r){return new(r||Fp)},Fp.\u0275prov=t.Yz7({token:Fp,factory:Fp.\u0275fac});var Up=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.mapNodesDataSource=r,this.mapLinksDataSource=e,this.mapDrawingsDataSource=i,this.mapSymbolsDataSource=o,this.nodeToMapNode=a,this.linkToMapLink=s,this.drawingToMapDrawing=l,this.symbolToMapSymbol=u,this.layersManager=d,this.multiLinkCalculator=h}return(0,U.Z)(n,[{key:"setNodes",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.nodeToMapNode.convert(a)});this.mapNodesDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setLinks",value:function(e){var i=this;if(e){console.log("from set links");var o=e.map(function(a){return i.linkToMapLink.convert(a)});this.mapLinksDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setDrawings",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.drawingToMapDrawing.convert(a)});this.mapDrawingsDataSource.set(o),this.onDataUpdate()}}},{key:"setSymbols",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.symbolToMapSymbol.convert(a)});this.mapSymbolsDataSource.set(o)}}},{key:"getNodes",value:function(){return this.mapNodesDataSource.getItems()}},{key:"getLinks",value:function(){return this.mapLinksDataSource.getItems()}},{key:"getDrawings",value:function(){return this.mapDrawingsDataSource.getItems()}},{key:"getSymbols",value:function(){return this.mapSymbolsDataSource.getItems()}},{key:"onDataUpdate",value:function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),console.log(this.getLinks()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())}},{key:"assignDataToLinks",value:function(){var e={};this.getNodes().forEach(function(i){e[i.id]=i}),this.getLinks().forEach(function(i){var o=i.nodes[0].nodeId,a=i.nodes[1].nodeId;o in e&&(i.source=e[o]),a in e&&(i.target=e[a]),i.source&&i.target&&(i.x=i.source.x+.5*(i.target.x-i.source.x),i.y=i.source.y+.5*(i.target.y-i.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())}}]),n}();Up.\u0275fac=function(r){return new(r||Up)(t.LFG(Pm),t.LFG(Im),t.LFG(Rm),t.LFG(Lm),t.LFG(Yg),t.LFG(Kg),t.LFG(Bm),t.LFG(vb),t.LFG(Fm),t.LFG(Fp))},Up.\u0275prov=t.Yz7({token:Up,factory:Up.\u0275fac});var wF=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.x=r,this.y=e}),Cse=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.width=r,this.height=e}),s4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.x=r,this.y=e,this.k=i}),Ks=function(){function n(){(0,B.Z)(this,n),this.centerZeroZeroPoint=!0,this.size=new Cse(0,0),this.transformation=new s4e(0,0,1)}return(0,U.Z)(n,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new wF(this.size.width/2,this.size.height/2):new wF(0,0)}}]),n}();Ks.\u0275fac=function(r){return new(r||Ks)},Ks.\u0275prov=t.Yz7({token:Ks,factory:Ks.\u0275fac});var jp=function(){function n(){(0,B.Z)(this,n),this.changesDetected=new t.vpe,this.hasBeenDrawn=!1}return(0,U.Z)(n,[{key:"detectChanges",value:function(){console.log("from map change detector"),this.changesDetected.emit(!0)}}]),n}();jp.\u0275fac=function(r){return new(r||jp)},jp.\u0275prov=t.Yz7({token:jp,factory:jp.\u0275fac});var qg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getOptimalSize",value:function(e,i){var o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;return e>o&&(o=e),i>a&&(a=i),new Cse(o,a)}}]),n}();qg.\u0275fac=function(r){return new(r||qg)},qg.\u0275prov=t.Yz7({token:qg,factory:qg.\u0275fac});var rf=(0,U.Z)(function n(){(0,B.Z)(this,n),this.isReadOnly=!1});rf.\u0275fac=function(r){return new(r||rf)},rf.\u0275prov=t.Yz7({token:rf,factory:rf.\u0275fac});var $z=(0,U.Z)(function n(){(0,B.Z)(this,n)}),l4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,U.Z)(e)}($z),u4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,U.Z)(e)}($z),c4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,U.Z)(e)}($z),kF=function(){function n(){(0,B.Z)(this,n),this.start=new t.vpe,this.drag=new t.vpe,this.end=new t.vpe}return(0,U.Z)(n,[{key:"call",value:function(e){e.call(this.behaviour())}},{key:"behaviour",value:function(){var i,o,a,e=this;return gg().on("start",function(s){o=Ln.sourceEvent.clientX,a=Ln.sourceEvent.clientY,(i=new l4e(s)).dx=Ln.dx,i.dy=Ln.dy,i.x=Ln.x,i.y=Ln.y,e.start.emit(i)}).on("drag",function(s){var l=new u4e(s);l.dx=Ln.sourceEvent.clientX-o,l.dy=Ln.sourceEvent.clientY-a,o=Ln.sourceEvent.clientX,a=Ln.sourceEvent.clientY,e.drag.emit(l)}).on("end",function(s){var l=new c4e(s);l.dx=Ln.x-i.x,l.dy=Ln.y-i.y,e.end.emit(l)})}}]),n}(),d4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.datum=r,this.dx=e,this.dy=i}),Jk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(d4e),f4e=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),p4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.x=r,this.y=e}),h4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.datum=r,this.x=e,this.y=i}),m4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.savedText=r,this.x=e,this.y=i}),_4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.textDrawingId=r,this.editedText=e,this.textElement=i}),g4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.drawing=e}),Qk=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.link=e}),v4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.interfaceLabel=e}),y4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.label=e}),Ll=function(){function n(){(0,B.Z)(this,n),this.selection={},this.selected=new t.vpe,this.unselected=new t.vpe}return(0,U.Z)(n,[{key:"setSelected",value:function(e){var i=this,o=this.convertToKeyDict(e),a=Object.keys(o).filter(function(l){return!i.isSelectedByKey(l)}).map(function(l){return o[l]}),s=Object.keys(this.selection).filter(function(l){return!(l in o)}).map(function(l){return i.selection[l]});this.selection=o,a.length>0&&this.selected.emit(a),s.length>0&&this.unselected.emit(s)}},{key:"getSelected",value:function(){var e=this;return Object.keys(this.selection).map(function(i){return e.selection[i]})}},{key:"isSelected",value:function(e){var i=this.getKey(e);return this.isSelectedByKey(i)}},{key:"isSelectedByKey",value:function(e){return e in this.selection}},{key:"getKey",value:function(e){var i=e.constructor.name;return"".concat(i,"-").concat(e.id)}},{key:"convertToKeyDict",value:function(e){var i=this,o={};return e.forEach(function(a){o[i.getKey(a)]=a}),o}}]),n}();Ll.\u0275fac=function(r){return new(r||Ll)},Ll.\u0275prov=t.Yz7({token:Ll,factory:Ll.\u0275fac});var of=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new kF,this.enabled=!0}return(0,U.Z)(n,[{key:"setEnabled",value:function(e){this.enabled=e}},{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.link_node_position").data(function(g){return[[g.source,g.nodes[0]],[g.target,g.nodes[1]]]}),s=a.enter().append("g").classed("link_node_position",!0),l=a.merge(s);l.attr("transform",function(g){return"translate(".concat(g[0].x,", ").concat(g[0].y,")")});var u=l.selectAll("g.interface_label_container").data(function(g){return i.enabled?[g[1]]:[]}),d=u.enter().append("g").classed("interface_label_container",!0);d.append("rect").attr("class","interface_label_selection"),d.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(g){return"".concat(g.id)});var h=u.merge(d).on("contextmenu",function(g,y){event.preventDefault(),o.onContextMenu.emit(new v4e(event,g))});h.select("text.interface_label").text(function(g){return g.label.text}).attr("style",function(g){var y=i.cssFixer.fix(g.label.style);return y=i.fontFixer.fixStyles(y)}).attr("x",function(g){return g.label.x}).attr("y",function(g){return g.label.y}).attr("transform",function(g){return"rotate(".concat(g.label.rotation,", ").concat(g.label.x,", ").concat(g.label.y,")")}),h.select("rect.interface_label_selection").attr("visibility",function(g){return i.selectionManager.isSelected(g)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(g){var y=Ci(this),z=h.select('text[interface_label_id="'.concat(g.id,'"]')).node().getBBox();y.attr("width",z.width+4),y.attr("height",z.height+4),y.attr("x",z.x-2),y.attr("y",z.y-2),y.attr("transform","rotate(".concat(g.label.rotation,", ").concat(z.x-2,", ").concat(z.y-2,")"))}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(h)}}]),n}();of.SURROUNDING_TEXT_BORDER=5,of.\u0275fac=function(r){return new(r||of)(t.LFG(Sc),t.LFG(os),t.LFG(Ll),t.LFG(rf))},of.\u0275prov=t.Yz7({token:of,factory:of.\u0275fac});var wse=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.x=r,this.y=e,this.width=i,this.height=o}),Jg=(0,U.Z)(function n(){(0,B.Z)(this,n),this.selected=new On.xQ});Jg.\u0275fac=function(r){return new(r||Jg)},Jg.\u0275prov=t.Yz7({token:Jg,factory:Jg.\u0275fac});var Hp=function(){function n(r,e){(0,B.Z)(this,n),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new On.xQ,this.contextMenuOpened=new t.vpe,this.enabled=!1}return(0,U.Z)(n,[{key:"disableContextMenu",value:function(){}},{key:"setEnabled",value:function(e){this.enabled=e,this.contextMenuOpened.emit(!0)}},{key:"activate",value:function(e){var i=this;e.on("mousedown",function(){if(2==Ln.button)return e.on("contextmenu",function(){Ln.preventDefault()}),void i.contextMenuOpened.emit(Ln);var o=Ci(window),a=this.parentElement,s=i.transformation(Fd(a));i.startSelection(s),e.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),o.on("mousemove.selection",function(){var l=i.transformation(Fd(a));i.moveSelection(s,l)}).on("mouseup.selection",function(){var l=i.transformation(Fd(a));i.endSelection(s,l),o.on("mousemove.selection",null).on("mouseup.selection",null)})})}},{key:"deactivate",value:function(e){e.on("mousedown",null)}},{key:"draw",value:function(e,i){var o=e.select("g.canvas");if(!o.select("g.selection-line-tool").node()){var a=o.append("g");a.attr("class","selection-line-tool"),this.path=a.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var s=o.select("g.selection-line-tool"),l=s.attr("status");"activated"!==l&&this.enabled&&(this.activate(e),s.attr("activated")),"deactivated"!==l&&!this.enabled&&(this.deactivate(e),s.attr("deactivated"))}},{key:"startSelection",value:function(e){this.path.attr("d",this.rect(e[0],e[1],0,0)).attr("visibility","visible")}},{key:"moveSelection",value:function(e,i){var o=e[0]/this.context.transformation.k,a=e[1]/this.context.transformation.k;this.path.attr("d",this.rect(o,a,i[0]/this.context.transformation.k-o,i[1]/this.context.transformation.k-a)),this.selectedEvent(e,i)}},{key:"endSelection",value:function(e,i){this.path.attr("visibility","hidden"),this.selectedEvent(e,i)}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.selectionEventSource.selected.next(new wse(o,a,s,l))}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"transformation",value:function(e){var i=this.context.getZeroZeroTransformationPoint();return[e[0]-i.x-this.context.transformation.x,e[1]-i.y-this.context.transformation.y]}}]),n}();Hp.SELECTABLE_CLASS=".selectable",Hp.\u0275fac=function(r){return new(r||Hp)(t.LFG(Ks),t.LFG(Jg))},Hp.\u0275prov=t.Yz7({token:Hp,factory:Hp.\u0275fac});var Qg=function(){function n(r){(0,B.Z)(this,n),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=Une().scaleExtent([.5,8])}return(0,U.Z)(n,[{key:"setEnabled",value:function(e){this.enabled!=e&&(e?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=e}},{key:"draw",value:function(e,i){this.needsActivate&&(this.activate(e),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(e),this.needsDeactivate=!1)}},{key:"activate",value:function(e){var i=this;this.zoom.filter(function(){return"mousedown"===Ln.type}),this.zoom.on("zoom",function(){var s=e.select("g.canvas"),l=Ln;s.attr("transform",function(){i.context.transformation.x=l.transform.x,i.context.transformation.y=l.transform.y,i.context.transformation.k=l.transform.k;var u=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,d=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,h=i.context.transformation.k;return"translate(".concat(u,", ").concat(d,") scale(").concat(h,")")})}),e.call(this.zoom)}},{key:"deactivate",value:function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)}}]),n}();Qg.\u0275fac=function(r){return new(r||Qg)(t.LFG(Ks))},Qg.\u0275prov=t.Yz7({token:Qg,factory:Qg.\u0275fac});var b4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.node=e}),kse=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(b4e),Gp=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new kF}return(0,U.Z)(n,[{key:"redrawLabel",value:function(e,i){this.drawLabel(this.selectLabel(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.label_container").data(function(l){return[l.label]}),a=o.enter().append("g").attr("class","label_container").attr("label_id",function(l){return l.id}),s=o.merge(a).on("contextmenu",function(l,u){event.preventDefault(),i.onContextMenu.emit(new y4e(event,l))});this.drawLabel(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(o)}},{key:"drawLabel",value:function(e){var i=this,o=e.selectAll("g.label_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","label_body");a.append("text").attr("class","label"),a.append("rect").attr("class","label_selection");var s=o.merge(a);s.select("text.label").attr("label_id",function(l){return l.id}).attr("style",function(l){var u=i.cssFixer.fix(l.style);return u=i.fontFixer.fixStyles(u)}).text(function(l){return l.text}).attr("x",function(l){return l.x}).attr("y",function(l){return l.y}).attr("transform",function(l){return"rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")")}),s.select("rect.label_selection").attr("visibility",function(l){return i.selectionManager.isSelected(l)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(l){var u=Ci(this),h=s.select('text[label_id="'.concat(l.id,'"]')).node().getBBox();u.attr("width",h.width+4),u.attr("height",h.height+4),u.attr("x",h.x-2),u.attr("y",h.y-2),u.attr("transform","rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")"))})}},{key:"selectLabel",value:function(e,i){return e.selectAll('g.label_container[label_id="'.concat(i.id,'"]'))}}]),n}();Gp.NODE_LABEL_MARGIN=3,Gp.\u0275fac=function(r){return new(r||Gp)(t.LFG(Sc),t.LFG(os),t.LFG(Ll),t.LFG(rf))},Gp.\u0275prov=t.Yz7({token:Gp,factory:Gp.\u0275fac});var pd=(0,U.Z)(function n(){(0,B.Z)(this,n),this.dragged=new t.vpe,this.labelDragged=new t.vpe,this.clicked=new t.vpe});pd.\u0275fac=function(r){return new(r||pd)},pd.\u0275prov=t.Yz7({token:pd,factory:pd.\u0275fac});var fl=function(){function n(){(0,B.Z)(this,n),this.symbolScalingSubject=new On.xQ,this.isScrollDisabled=new On.xQ,this.isMapLocked=new On.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new On.xQ,this.mapRenderedEmitter=new t.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget"));localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme="true"===localStorage.getItem("openReadme"):localStorage.setItem("openReadme","false")}return(0,U.Z)(n,[{key:"getSymbolScaling",value:function(){return"true"===localStorage.getItem("symbolScaling")}},{key:"setSymbolScaling",value:function(e){e?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(e)}},{key:"changeMapLockValue",value:function(e){this.isMapLocked.next(e)}},{key:"setConsoleContextMenuAction",value:function(e){localStorage.setItem("consoleContextMenu",e)}},{key:"getConsoleContextManuAction",value:function(){return localStorage.getItem("consoleContextMenu")}},{key:"toggleTopologySummary",value:function(e){this.isTopologySummaryVisible=e}},{key:"toggleLogConsole",value:function(e){this.isLogConsoleVisible=e}},{key:"toggleLayers",value:function(e){this.isLayerNumberVisible=e}},{key:"toggleShowInterfaceLabels",value:function(e){this.showInterfaceLabels=e}},{key:"toggleIntegrateInterfaceLabels",value:function(e){this.integrateLinkLabelsToLinks=e,localStorage.removeItem("integrateLinkLabelsToLinks"),e?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")}},{key:"toggleOpenReadme",value:function(e){this.openReadme=e,localStorage.removeItem("openReadme"),e?localStorage.setItem("openReadme","true"):localStorage.setItem("openReadme","false")}},{key:"toggleOpenConsolesInWidget",value:function(e){this.openConsolesInWidget=e,localStorage.removeItem("openConsolesInWidget"),e?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")}}]),n}();fl.\u0275fac=function(r){return new(r||fl)},fl.\u0275prov=t.Yz7({token:fl,factory:fl.\u0275fac,providedIn:"root"});var Xg=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.selectionManager=r,this.labelWidget=e,this.nodesEventSource=i,this.mapSettingsService=o,this.onContextMenu=new t.vpe,this.onContextConsoleMenu=new t.vpe,this.onNodeClicked=new t.vpe}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.node_body").data(function(u){return[u]}),s=a.enter().append("g").attr("class","node_body");s.append("image");var l=a.merge(s).classed("selected",function(u){return i.selectionManager.isSelected(u)}).on("click",function(u){i.nodesEventSource.clicked.emit(new h4e(u,Ln.pageX,Ln.pageY))});l.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(u){return u.width/2-13}).attr("y",function(u){return u.height/2-13}).attr("fill","red"),l.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("text").attr("class","layer_label").text(function(u){return u.z}).attr("x",function(u){return u.z>=100?u.width/2-13:u.z>=10?u.width/2-9:u.width/2-5}).attr("y",function(u){return u.height/2+5}).attr("style",function(){var u=[];return u.push('font-family: "Noto Sans"'),u.push("font-size: 11pt"),u.push("font-weight: bold"),u.join("; ")}).attr("fill","#ffffff"),l.select("image").on("contextmenu",function(u,d){Ln.preventDefault(),o.onContextMenu.emit(new kse(Ln,u))}).on("dblclick",function(u,d){Ln.preventDefault(),o.onContextConsoleMenu.emit(new kse(Ln,u))}).attr("xnode:href",function(u){return u.symbolUrl}).attr("width",function(u){return u.width?u.width:60}).attr("height",function(u){return u.height?u.height:60}).attr("x",function(u){return 0}).attr("y",function(u){return 0}).on("mouseover",function(u){Ci(this).attr("class","over")}).on("mouseout",function(u){Ci(this).attr("class","")}),l.attr("transform",function(u){return u.width?"translate(".concat(u.x,",").concat(u.y,")"):"translate(".concat(u.x-30,",").concat(u.y-30,")")}),this.labelWidget.draw(l)}}]),n}();Xg.\u0275fac=function(r){return new(r||Xg)(t.LFG(Ll),t.LFG(Gp),t.LFG(pd),t.LFG(fl))},Xg.\u0275prov=t.Yz7({token:Xg,factory:Xg.\u0275fac});var zp=function(){function n(r,e){(0,B.Z)(this,n),this.nodeWidget=r,this.mapSettings=e,this.draggable=new kF}return(0,U.Z)(n,[{key:"redrawNode",value:function(e,i){this.nodeWidget.draw(this.selectNode(e,i))}},{key:"draw",value:function(e){var i=e.selectAll("g.node").data(function(s){return s.nodes?s.nodes:[]},function(s){return s.id}),o=i.enter().append("g").attr("class","node").attr("node_id",function(s){return s.id}),a=i.merge(o);this.nodeWidget.draw(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(a)}},{key:"selectNode",value:function(e,i){return e.selectAll('g.node[node_id="'.concat(i.id,'"]'))}}]),n}();zp.NODE_LABEL_MARGIN=3,zp.\u0275fac=function(r){return new(r||zp)(t.LFG(Xg),t.LFG(rf))},zp.\u0275prov=t.Yz7({token:zp,factory:zp.\u0275fac});var C4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),$g=function(){function n(){(0,B.Z)(this,n),this.drawingLine=new C4e,this.drawing=!1,this.data={}}return(0,U.Z)(n,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new wF(e,i),this.drawingLine.end=new wF(e,i);this.selection.on("mousemove",function(u,d){var g=Fd(a.selection.select("g.canvas").node());a.drawingLine.end.x=g[0],a.drawingLine.end.y=g[1],a.draw(null,null)}),this.draw(null,null)}},{key:"isDrawing",value:function(){return this.drawing}},{key:"stop",value:function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data}},{key:"connect",value:function(e,i){this.selection=e}},{key:"draw",value:function(e,i){var o=this.selection.select("g.canvas");o.select("g.drawing-line-tool").node()||o.append("g").attr("class","drawing-line-tool");var a=[];this.drawing&&(a=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var s=DN(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(a),d=u.enter().append("path");u.merge(d).attr("d",s).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()}}]),n}();$g.\u0275fac=function(r){return new(r||$g)},$g.\u0275prov=t.Yz7({token:$g,factory:$g.\u0275fac});var Tse=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.x=r,this.y=e,this.status=i,this.port=o}),yb=function(){function n(r){(0,B.Z)(this,n),this._mapSettingsService=r,this.mapSettingsService=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=[];e.each(function(a){o.push(a)}),o.forEach(function(a){o.forEach(function(s){s.nodes[0].linkId!==a.nodes[0].linkId&&(a.nodes[0].nodeId===s.nodes[0].nodeId&&a.nodes[1].nodeId===s.nodes[1].nodeId||a.nodes[0].nodeId===s.nodes[1].nodeId&&a.nodes[1].nodeId===s.nodes[0].nodeId||a.nodes[1].nodeId===s.nodes[0].nodeId&&a.nodes[0].nodeId===s.nodes[1].nodeId)&&(a.isMultiplied=!0)})}),e.each(function(a){var s=Ci(this),l=s.select("path"),u=[];if(l.node()){var d=l.node().getPointAtLength(80),h=l.node().getPointAtLength(l.node().getTotalLength()-80);if(l.node().getTotalLength()>220&&a.source&&a.target){var g=a.nodes.find(function(It){return It.nodeId===a.source.id}).label.text,y=a.nodes.find(function(It){return It.nodeId===a.target.id}).label.text;u=[new Tse(d.x,d.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,g),new Tse(h.x,h.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.target.status,y)]}}if(s.selectAll("circle.status_started").remove(),s.selectAll("circle.status_stopped").remove(),s.selectAll("circle.status_suspended").remove(),s.selectAll("rect.status_started").remove(),s.selectAll("text.status_started_label").remove(),s.selectAll("rect.status_stopped").remove(),s.selectAll("text.status_stopped_label").remove(),s.selectAll("rect.status_suspended").remove(),s.selectAll("text.status_suspended_label").remove(),i.mapSettingsService.showInterfaceLabels&&i.mapSettingsService.integrateLinkLabelsToLinks&&!a.isMultiplied){var L=s.selectAll("rect.status_started").data(u.filter(function(It){return"started"===It.status})),z=L.enter().append("rect");L.merge(z).attr("class","status_started").attr("width",function(It){return 8*It.port.length+10}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),L.exit().remove();var q=s.selectAll("text.status_started_label").data(u.filter(function(It){return"started"===It.status})),re=q.enter().append("text");q.merge(re).attr("class","status_started_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),q.exit().remove();var ae=s.selectAll("rect.status_stopped").data(u.filter(function(It){return"stopped"===It.status})),Se=ae.enter().append("rect");ae.merge(Se).attr("class","status_stopped").attr("width",function(It){return 8*It.port.length+10}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),ae.exit().remove();var Ce=s.selectAll("text.status_stopped_label").data(u.filter(function(It){return"stopped"===It.status})),Ee=Ce.enter().append("text");Ce.merge(Ee).attr("class","status_stopped_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),Ce.exit().remove();var Ke=s.selectAll("rect.status_suspended").data(u.filter(function(It){return"suspended"===It.status})),st=Ke.enter().append("rect");Ke.merge(st).attr("class","status_suspended").attr("width",function(It){return 8*It.port.length+10}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),Ke.exit().remove();var De=s.selectAll("text.status_suspended_label").data(u.filter(function(It){return"suspended"===It.status})),it=De.enter().append("text");De.merge(it).attr("class","status_suspended_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),De.exit().remove()}else{var ft=s.selectAll("circle.status_started").data(u.filter(function(It){return"started"===It.status})),bt=ft.enter().append("circle");ft.merge(bt).attr("class","status_started").attr("cx",function(It){return It.x}).attr("cy",function(It){return It.y}).attr("r",6).attr("text",function(It){return It.port}).attr("fill","#2ecc71"),ft.exit().remove();var $e=s.selectAll("rect.status_stopped").data(u.filter(function(It){return"stopped"===It.status})),Ie=$e.enter().append("rect");$e.merge(Ie).attr("class","status_stopped").attr("x",function(It){return It.x-5}).attr("y",function(It){return It.y-5}).attr("width",10).attr("height",10).attr("fill","red"),$e.exit().remove();var Bt=s.selectAll("circle.status_suspended").data(u.filter(function(It){return"suspended"===It.status})),jt=Bt.enter().append("circle");Bt.merge(jt).attr("class","status_suspended").attr("cx",function(It){return It.x}).attr("cy",function(It){return It.y}).attr("r",6).attr("fill","#FFFF00"),Bt.exit().remove()}})}}]),n}();yb.\u0275fac=function(r){return new(r||yb)(t.LFG(fl))},yb.\u0275prov=t.Yz7({token:yb,factory:yb.\u0275fac});var Mse=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"getLinkStyle",value:function(e){return 1==e.type?"10, 10":2==e.type?"".concat(e.width,", ").concat(e.width):3==e.type?"20, 10, ".concat(e.width,", ").concat(e.width,", ").concat(e.width,", 10"):"0, 0"}}]),n}(),w4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.source=r,this.target=e,this.style=i}),ev=function(){function n(){(0,B.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,U.Z)(n,[{key:"linktoEthernetLink",value:function(e){return new w4e([e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2],e.link_style.color?e.link_style:this.defaultEthernetLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.ethernet_link").data(function(l){return"ethernet"===l.linkType?[i.linktoEthernetLink(l)]:[]}),a=o.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new Qk(d,u))}).attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return Mse.getLinkStyle(l.style)});o.merge(a).attr("d",function(l){var u=jd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();ev.\u0275fac=function(r){return new(r||ev)},ev.\u0275prov=t.Yz7({token:ev,factory:ev.\u0275fac});var k4e=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.source=r,this.source_angle=e,this.target_angle=i,this.target=o,this.style=a}),tv=function(){function n(){(0,B.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,U.Z)(n,[{key:"linkToSerialLink",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return new k4e([i.x,i.y],h,g,[o.x,o.y],e.link_style.color?e.link_style:this.defaultSerialLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.serial_link").data(function(l){return"serial"===l.linkType?[i.linkToSerialLink(l)]:[]}),a=o.enter().append("path").attr("class","serial_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new Qk(d,u))});a.attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return Mse.getLinkStyle(l.style)}),o.merge(a).attr("d",function(l){var u=jd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.source_angle[0],l.source_angle[1]),u.lineTo(l.target_angle[0],l.target_angle[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();tv.\u0275fac=function(r){return new(r||tv)},tv.\u0275prov=t.Yz7({token:tv,factory:tv.\u0275fac});var nv=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=e,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new t.vpe}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","link_body"),s=o.merge(a).attr("transform",function(l){var u=i.multiLinkCalculatorHelper.linkTranslation(l.distance,l.source,l.target);return"translate (".concat(u.dx,", ").concat(u.dy,")")});o.select(".capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&!(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/inspect.svg"),o.select(".filter-capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","filter-capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),o.select(".filter-icon").remove(),o.filter(function(l){return!l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),o.select(".pause-icon").remove(),o.filter(function(l){return l.suspend}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","pause-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(s),this.ethernetLinkWidget.draw(s),s.select("path").classed("selected",function(l){return i.selectionManager.isSelected(l)}),this.interfaceLabelWidget.draw(s),this.interfaceStatusWidget.draw(s)}}]),n}();nv.\u0275fac=function(r){return new(r||nv)(t.LFG(Fp),t.LFG(of),t.LFG(yb),t.LFG(Ll),t.LFG(ev),t.LFG(tv))},nv.\u0275prov=t.Yz7({token:nv,factory:nv.\u0275fac});var Um=function(){function n(r,e){(0,B.Z)(this,n),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,U.Z)(n,[{key:"redrawLink",value:function(e,i){console.log("redraw called"),this.linkWidget.draw(this.selectLink(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link").data(function(l){if(l.links){var u=l.links.filter(function(d){return d.target&&d.source});return i.multiLinkCalculatorHelper.assignDataToLinks(u),u}return[]},function(l){return l.id}),a=o.enter().append("g").attr("class","link").attr("link_id",function(l){return l.id}).attr("map-source",function(l){return l.source.id}).attr("map-target",function(l){return l.target.id}),s=o.merge(a);this.linkWidget.draw(s),o.exit().remove()}},{key:"selectLink",value:function(e,i){return e.selectAll('g.link[link_id="'.concat(i.id,'"]'))}}]),n}();Um.\u0275fac=function(r){return new(r||Um)(t.LFG(Fp),t.LFG(nv))},Um.\u0275prov=t.Yz7({token:Um,factory:Um.\u0275fac});var T4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ea=(0,U.Z)(function n(){(0,B.Z)(this,n)}),M4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new ea,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("cx");d&&(i.cx=parseInt(d.value,10));var h=e.attributes.getNamedItem("cy");h&&(i.cy=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,10));var y=e.attributes.getNamedItem("ry");return y&&(i.ry=parseInt(y.value,10)),i}}]),n}(),TF=(0,U.Z)(function n(){(0,B.Z)(this,n)}),S4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new TF,o=e.attributes.getNamedItem("xlink:href");o&&(i.data=o.value);var a=e.attributes.getNamedItem("width");a&&(i.width=parseInt(a.value,10));var s=e.attributes.getNamedItem("height");return s&&(i.height=parseInt(s.value,10)),i}}]),n}(),bb=(0,U.Z)(function n(){(0,B.Z)(this,n)}),E4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new bb,o=e.attributes.getNamedItem("stroke");o&&(i.stroke=o.value);var a=e.attributes.getNamedItem("stroke-width");o&&(i.stroke_width=parseInt(a.value,10));var s=e.attributes.getNamedItem("stroke-dasharray");s&&(i.stroke_dasharray=s.value);var l=e.attributes.getNamedItem("x1");l&&(i.x1=parseInt(l.value,10));var u=e.attributes.getNamedItem("x2");u&&(i.x2=parseInt(u.value,10));var d=e.attributes.getNamedItem("y1");d&&(i.y1=parseInt(d.value,10));var h=e.attributes.getNamedItem("y2");return h&&(i.y2=parseInt(h.value,10)),i}}]),n}(),af=(0,U.Z)(function n(){(0,B.Z)(this,n)}),x4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new af,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("width");d&&(i.width=parseInt(d.value,10));var h=e.attributes.getNamedItem("height");h&&(i.height=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,0));var y=e.attributes.getNamedItem("ry");return y&&(i.ry=parseInt(y.value,0)),i}}]),n}(),Cb=(0,U.Z)(function n(){(0,B.Z)(this,n)}),D4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new Cb;i.text=e.textContent;var o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");a&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("font-family");s&&(i.font_family=s.value);var l=e.attributes.getNamedItem("font-size");l&&(i.font_size=+l.value);var u=e.attributes.getNamedItem("font-weight");u&&(i.font_weight=u.value);var d=e.attributes.getNamedItem("text-decoration");return d&&(i.text_decoration=d.value),i}}]),n}(),Wp=function(){function n(){(0,B.Z)(this,n),this.parser=new DOMParser,this.elementParsers={text:new D4e,image:new S4e,rect:new x4e,line:new E4e,ellipse:new M4e}}return(0,U.Z)(n,[{key:"supportedTags",value:function(){return Object.keys(this.elementParsers)}},{key:"convert",value:function(e){var o=this.parser.parseFromString(e,"text/xml").getElementsByTagName("svg");if(1!==o.length)throw new Error("Cannot locate svg element root in '".concat(e,"'"));var a=o[0],s=null,l=null;for(var u in a.children){var d=(l=a.children[u]).nodeName;if(d in this.elementParsers){s=this.elementParsers[d];break}}if(null===s)throw new Error("Cannot find parser for '".concat(e,"'"));var h=s.convert(l);return h.width=+a.getAttribute("width"),h.height=+a.getAttribute("height"),h}}]),n}();Wp.\u0275fac=function(r){return new(r||Wp)},Wp.\u0275prov=t.Yz7({token:Wp,factory:Wp.\u0275fac});var rv=function(){function n(r){(0,B.Z)(this,n),this.fontFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("text.text_element").data(function(h){return h.element&&h.element instanceof Cb?[h.element]:[]}),a=o.enter().append("text").attr("class","text_element noselect"),s=o.merge(a);s.attr("style",function(h){var g=i.fontFixer.fix(h),y=[];return g.font_family&&y.push('font-family: "'.concat(h.font_family,'"')),g.font_size&&y.push("font-size: ".concat(h.font_size,"pt")),g.font_weight&&y.push("font-weight: ".concat(h.font_weight)),y.join("; ")}).attr("fill",function(h){return h.fill}).attr("text-decoration",function(h){return h.text_decoration});var l=s.selectAll("tspan").data(function(h){return h.text.split(/\r?\n/)}),u=l.enter().append("tspan");l.merge(u).text(function(h){return h}).attr("xml:space","preserve").attr("x",0).attr("dy",function(h,g){return 0===g?"0em":"1.4em"}),l.exit().remove(),s.attr("transform",function(){var h=Ci(this).selectAll("tspan"),g=this.getBBox().height/h.size();return"translate(".concat(n.MARGIN,", ").concat(g-n.MARGIN,")")}),o.exit().remove()}}]),n}();rv.MARGIN=4,rv.\u0275fac=function(r){return new(r||rv)(t.LFG(os))},rv.\u0275prov=t.Yz7({token:rv,factory:rv.\u0275fac});var wb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof TF?[s.element]:[]}),o=i.enter().append("image").attr("class","image_element noselect");i.merge(o).attr("xlink:href",function(s){return s.data}).attr("width",function(s){return s.width}).attr("height",function(s){return s.height}),i.exit().remove()}}]),n}();wb.\u0275fac=function(r){return new(r||wb)},wb.\u0275prov=t.Yz7({token:wb,factory:wb.\u0275fac});var Yu=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"fix",value:function(e){if(e||""==e)return e in n.MAPPING?n.MAPPING[e]:e}}]),n}();Yu.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"12, 3, 5, 3","25, 25, 5, 25, 5":"12, 3, 5, 3, 5, 3"},Yu.\u0275fac=function(r){return new(r||Yu)},Yu.\u0275prov=t.Yz7({token:Yu,factory:Yu.\u0275fac});var kb=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("rect.rect_element").data(function(l){return l.element&&l.element instanceof af?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("rect").attr("class","rect_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("width",function(l){return l.width}).attr("height",function(l){return l.height}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();kb.\u0275fac=function(r){return new(r||kb)(t.LFG(Yu))},kb.\u0275prov=t.Yz7({token:kb,factory:kb.\u0275fac});var Tb=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("line.line_element").data(function(l){return l.element&&l.element instanceof bb?[l.element]:[]});o.enter().append("circle").attr("class","right"),o.enter().append("circle").attr("class","left");var a=o.enter().append("line").attr("class","line_element noselect");o.merge(a).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("x1",function(l){return l.x1}).attr("x2",function(l){return l.x2}).attr("y1",function(l){return l.y1}).attr("y2",function(l){return l.y2}),o.exit().remove()}}]),n}();Tb.\u0275fac=function(r){return new(r||Tb)(t.LFG(Yu))},Tb.\u0275prov=t.Yz7({token:Tb,factory:Tb.\u0275fac});var Mb=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("ellipse.ellipse_element").data(function(l){return l.element&&l.element instanceof ea?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("ellipse").attr("class","ellipse_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("cx",function(l){return l.cx}).attr("cy",function(l){return l.cy}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();Mb.\u0275fac=function(r){return new(r||Mb)(t.LFG(Yu))},Mb.\u0275prov=t.Yz7({token:Mb,factory:Mb.\u0275fac});var Sb=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.textDrawingWidget=r,this.imageDrawingWidget=e,this.rectDrawingWidget=i,this.lineDrawingWidget=o,this.ellipseDrawingWidget=a,this.selectionManager=s,this.mapSettingsService=l,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","drawing_body"),s=o.merge(a).attr("transform",function(l){return"translate(".concat(l.x,",").concat(l.y,") rotate(").concat(l.rotation,")")});this.drawingWidgets.forEach(function(l){l.draw(s)}),s.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof af||l.element instanceof ea}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(l){return l.element?l.element.width/2-13:0}).attr("y",function(l){return l.element?l.element.height/2-13:0}).attr("fill","red"),s.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof af||l.element instanceof ea}).append("text").attr("class","layer_label").text(function(l){return l.z}).attr("x",function(l){return l.z>=100?l.element?l.element.width/2-13:0:l.z>=10?l.element?l.element.width/2-9:0:l.element.width/2-5}).attr("y",function(l){return l.element?l.element.height/2+5:0}).attr("style",function(){var l=[];return l.push('font-family: "Noto Sans"'),l.push("font-size: 11pt"),l.push("font-weight: bold"),l.join("; ")}).attr("fill","#ffffff"),s.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),s.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1",function(l){return l.element.height}).attr("y2",function(l){return l.element.height}).attr("draggable","true").attr("cursor","ns-resize"),s.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element.width}).attr("x2",function(l){return l.element.width}).attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x1}).attr("cy",function(l){return l.element.y1}).attr("r",10).attr("cursor","move"),s.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x2}).attr("cy",function(l){return l.element.y2}).attr("r",10).attr("cursor","move"),s.classed("drawing_selected",function(l){return i.selectionManager.isSelected(l)})}}]),n}();Sb.\u0275fac=function(r){return new(r||Sb)(t.LFG(rv),t.LFG(wb),t.LFG(kb),t.LFG(Tb),t.LFG(Mb),t.LFG(Ll),t.LFG(fl))},Sb.\u0275prov=t.Yz7({token:Sb,factory:Sb.\u0275fac});var Vp=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new kF,this.draggingEnabled=!1,this.resizingFinished=new t.vpe,this.onContextMenu=new t.vpe,this.svgToDrawingConverter=new Wp}return(0,U.Z)(n,[{key:"redrawDrawing",value:function(e,i){this.drawingWidget.draw(this.selectDrawing(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing").data(function(De){return De.drawings.forEach(function(it){try{it.element=i.svgToDrawingConverter.convert(it.svg)}catch(ft){}}),De.drawings},function(De){return De.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(De){return De.id}).on("contextmenu",function(De){Ln.preventDefault(),i.onContextMenu.emit(new g4e(Ln,De))}),s=o.merge(a);this.drawingWidget.draw(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(s);var l,u,d,h,z,q,re,ae,g=!1,y=gg().on("start",function(De){document.body.style.cursor="ns-resize",d=De.y}).on("drag",function(De){var it=Ln;g?(u=l-(it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+u<0?(g=!1,l=d,De.element.height=Math.abs(De.element.height+it.dy)):(De.y=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+=u,De.element instanceof ea&&(De.element.cy=De.element.cy+u/2<0?1:De.element.cy+=u/2,De.element.ry=De.element.ry+u/2<0?1:De.element.ry+=u/2))):De.element.height+it.dy<0?(g=!0,l=d,De.element.height=Math.abs(De.element.height+it.dy)):(De.element.height+=it.dy,De.element instanceof ea&&(De.element.cy=De.element.cy+it.dy/2<0?1:De.element.cy+=it.dy/2,De.element.ry=De.element.ry+it.dy/2<0?1:De.element.ry+=it.dy/2)),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),L=gg().on("start",function(De){l=Ln.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+De.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(De){var it=Ln;g?De.element.height+it.dy<0?(g=!1,l=h,De.element.height=Math.abs(De.element.height+it.dy)):(De.element.height+=it.dy,De.element instanceof ea&&(De.element.cy=De.element.cy+it.dy/2<0?1:De.element.cy+=it.dy/2,De.element.ry=De.element.ry+it.dy/2<0?1:De.element.ry+=it.dy/2)):(u=l-(it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+u<0?(l=h,g=!0,De.element.height=Math.abs(De.element.height+it.dy)):(De.y=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+=u,De.element instanceof ea&&(De.element.cy=De.element.cy+u/2<0?1:De.element.cy+=u/2,De.element.ry=De.element.ry+u/2<0?1:De.element.ry+=u/2))),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Se=!1,Ce=gg().on("start",function(De){z=Ln.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),ae=z+De.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(De){var it=Ln;Se?De.element.width+it.dx<0?(z=ae,Se=!1,De.element.width=Math.abs(De.element.width+it.dx)):(De.element instanceof ea&&(De.element.cx=De.element.cx+it.dx/2<0?1:De.element.cx+=it.dx/2,De.element.rx=De.element.rx+it.dx/2<0?1:De.element.rx+=it.dx/2),De.element.width=De.element.width+it.dx<0?1:De.element.width+=it.dx):(q=z-(it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+q<0?(z=ae,Se=!0,De.element.width=Math.abs(De.element.width+it.dx)):(De.x=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+=q,De.element instanceof ea&&(De.element.cx=De.element.cx+q/2<0?1:De.element.cx+=q/2,De.element.rx=De.element.rx+q/2<0?1:De.element.rx+=q/2))),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Ee=gg().on("start",function(De){document.body.style.cursor="ew-resize",re=De.x}).on("drag",function(De){var it=Ln;Se?(q=z-(it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+q<0?(z=re,Se=!1,De.element.width=Math.abs(De.element.width+it.dx)):(De.x=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+=q,De.element instanceof ea&&(De.element.cx=De.element.cx+q/2<0?1:De.element.cx+=q/2,De.element.rx=De.element.rx+q/2<0?1:De.element.rx+=q/2))):De.element.width+it.dx<0?(z=re,Se=!0,De.element.width=Math.abs(De.element.width+it.dx)):(De.element instanceof ea&&(De.element.cx=De.element.cx+it.dx/2<0?1:De.element.cx+=it.dx/2,De.element.rx=De.element.rx+it.dx/2<0?1:De.element.rx+=it.dx/2),De.element.width=De.element.width+it.dx<0?1:De.element.width+=it.dx),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Ke=gg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(De){var it=Ln;De.element.width+=it.dx,De.element.height+=it.dy,De.element.x2+=it.dx,De.element.y2+=it.dy,i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),st=gg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(De){var it=Ln;De.element.width+=it.dx,De.element.height+=it.dy,De.element.x1+=it.dx,De.element.y1+=it.dy,i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))});s.select("line.bottom").call(y),s.select("line.top").call(L),s.select("line.right").call(Ce),s.select("line.left").call(Ee),s.select("circle.right").call(Ke),s.select("circle.left").call(st)}},{key:"createResizingEvent",value:function(e){var i=new T4e;return i.x=e.x,i.y=e.y,i.width=e.element.width,i.height=e.element.height,i.datum=e,i}},{key:"selectDrawing",value:function(e,i){return e.selectAll('g.drawing[drawing_id="'.concat(i.id,'"]'))}}]),n}();Vp.\u0275fac=function(r){return new(r||Vp)(t.LFG(Sb),t.LFG(Wp),t.LFG(Ks),t.LFG(rf))},Vp.\u0275prov=t.Yz7({token:Vp,factory:Vp.\u0275fac});var Eb=function(){function n(r,e,i){(0,B.Z)(this,n),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,U.Z)(n,[{key:"draw",value:function(e,i){var o=e.selectAll("g.layer").data(i,function(h){return h.index.toString()}),a=o.enter().append("g").attr("class","layer");a.append("g").attr("class","links"),a.append("g").attr("class","nodes"),a.append("g").attr("class","drawings");var s=o.merge(a);s.attr("data-index",function(h){return h.index});var l=s.select("g.links"),u=s.select("g.nodes"),d=s.select("g.drawings");o.exit().remove(),this.linksWidget.draw(l),this.nodesWidget.draw(u),this.drawingsWidget.draw(d)}}]),n}();Eb.\u0275fac=function(r){return new(r||Eb)(t.LFG(Um),t.LFG(zp),t.LFG(Vp))},Eb.\u0275prov=t.Yz7({token:Eb,factory:Eb.\u0275fac});var iv=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,U.Z)(n,[{key:"getNodesWidget",value:function(){return this.nodesWidget}},{key:"getDrawingLineTool",value:function(){return this.drawingLineTool}},{key:"getSelectionTool",value:function(){return this.selectionTool}},{key:"connect",value:function(e,i){this.drawingLineTool.connect(e,i)}},{key:"draw",value:function(e,i){e.attr("width",i.size.width).attr("height",i.size.height);var o=e.selectAll("g.canvas").data([i]),a=o.enter().append("g").attr("class","canvas");o.merge(a).attr("transform",function(s){var l=s.getZeroZeroTransformationPoint().x+s.transformation.x,u=s.getZeroZeroTransformationPoint().y+s.transformation.y,d=s.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")}),this.layersWidget.draw(o,this.layersManager.getLayersList()),this.drawingLineTool.draw(e,i),this.selectionTool.draw(e,i),this.movingTool.draw(e,i)}},{key:"disconnect",value:function(e){e.empty&&!e.empty()&&e.selectAll("*").remove()}}]),n}();iv.\u0275fac=function(r){return new(r||iv)(t.LFG(zp),t.LFG($g),t.LFG(Hp),t.LFG(Qg),t.LFG(Eb),t.LFG(Fm))},iv.\u0275prov=t.Yz7({token:iv,factory:iv.\u0275fac});var Yp=function(){function n(){(0,B.Z)(this,n),this.isSelectionToolActivated=new On.xQ,this.isMovingToolActivated=new On.xQ,this.isTextEditingToolActivated=new On.xQ,this.isTextAddingToolActivated=new On.xQ,this.isDrawLinkToolActivated=new On.xQ}return(0,U.Z)(n,[{key:"selectionToolActivation",value:function(e){this.isSelectionToolActivated.next(e)}},{key:"movingToolActivation",value:function(e){this.isMovingToolActivated.next(e)}},{key:"textEditingToolActivation",value:function(e){this.isTextEditingToolActivated.next(e)}},{key:"textAddingToolActivation",value:function(e){this.isTextAddingToolActivated.next(e)}},{key:"drawLinkToolActivation",value:function(e){this.isDrawLinkToolActivated.next(e)}}]),n}();Yp.\u0275fac=function(r){return new(r||Yp)},Yp.\u0275prov=t.Yz7({token:Yp,factory:Yp.\u0275fac});var sf=function(){function n(r){(0,B.Z)(this,n),this.context=r,this.scaleChangeEmitter=new t.vpe,this.currentScale=1}return(0,U.Z)(n,[{key:"getScale",value:function(){return this.currentScale}},{key:"setScale",value:function(e){this.currentScale=e,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}},{key:"resetToDefault",value:function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}}]),n}();sf.\u0275fac=function(r){return new(r||sf)(t.LFG(Ks))},sf.\u0275prov=t.Yz7({token:sf,factory:sf.\u0275fac});var Zl=(0,U.Z)(function n(){(0,B.Z)(this,n),this.dragged=new t.vpe,this.resized=new t.vpe,this.selected=new t.vpe,this.pointToAddSelected=new t.vpe,this.saved=new t.vpe,this.textAdded=new t.vpe,this.textEdited=new t.vpe,this.textSaved=new t.vpe});Zl.\u0275fac=function(r){return new(r||Zl)},Zl.\u0275prov=t.Yz7({token:Zl,factory:Zl.\u0275fac});var $2=function(){function n(r,e){(0,B.Z)(this,n),this.drawingsEventSource=r,this.context=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(i){""===i?e.deactivate():e.activate()})}},{key:"activate",value:function(){var e=this;this.deactivate(),this.mapListener=function(a){var s=(a.pageX-(e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x))/e.context.transformation.k,l=(a.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new p4e(s,l)),e.deactivate()},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivate",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"ngOnDestroy",value:function(){this.drawingSelected.unsubscribe()}}]),n}();$2.\u0275fac=function(r){return new(r||$2)(t.Y36(Zl),t.Y36(Ks))},$2.\u0275cmp=t.Xpm({type:$2,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var eA=function(){function n(r,e){(0,B.Z)(this,n),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new f4e(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),n}();eA.\u0275fac=function(r){return new(r||eA)(t.Y36(Vp),t.Y36(Zl))},eA.\u0275cmp=t.Xpm({type:eA,selectors:[["app-drawing-resizing"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var pl=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"createLink",value:function(e,i,o,a,s,l,u,d,h){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links"),{nodes:[{node_id:i.node_id,port_number:o.port_number,adapter_number:o.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:o.short_name,x:l,y:u}},{node_id:a.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:s.short_name,x:d,y:h}}]})}},{key:"getLink",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/links/").concat(o))}},{key:"deleteLink",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id))}},{key:"updateLink",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"updateLinkStyle",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"getAvailableFilters",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/available_filters"))}},{key:"updateNodes",value:function(e,i,o){var a=o.map(function(s){return{node_id:s.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:s.label.rotation,style:s.label.style,text:s.label.text,x:s.label.x,y:s.label.y}}});return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),{nodes:a})}},{key:"startCaptureOnLink",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/start"),o)}},{key:"stopCaptureOnLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stop"),{})}},{key:"resetLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/reset"),{})}},{key:"streamPcap",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stream"))}}]),n}();pl.\u0275fac=function(r){return new(r||pl)(t.LFG(ho.zw))},pl.\u0275prov=t.Yz7({token:pl,factory:pl.\u0275fac});var jm=m(6215),za=m(5366),O4e=["temporaryTextElement"],tA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.drawingsEventSource=r,this.toolsService=e,this.context=i,this.renderer=o,this.mapScaleService=a,this.linkService=s,this.linksDataSource=l,this.nodesDataSource=u,this.selectionManager=d,this.fontFixer=h,this.ngZone=g,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe(function(i){i?e.activateTextAdding():e.deactivateTextAdding()}),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))}},{key:"activateTextAdding",value:function(){var e=this;this.deactivateTextAdding(),this.mapListener=function(a){e.leftPosition=a.pageX.toString()+"px",e.topPosition=a.pageY.toString()+"px",e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.temporaryTextElement.nativeElement.focus(),document.documentElement.style.cursor="default";e.textListener=function(){e.drawingsEventSource.textAdded.emit(new m4e(e.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),a.pageX,a.pageY)),e.deactivateTextAdding(),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener)},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivateTextAdding",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"activateTextEditingForNodeLabels",value:function(){var e=this,i=Ci(this.svg);i.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(o,a,s){e.selectionManager.setSelected([]),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.editedLink=o,Ci(s[a]).attr("visibility","hidden"),Ci(s[a]).classed("editingMode",!0),e.editedNode=e.nodesDataSource.get(o.nodeId),e.editedLink=o;var l=(o.label.originalX+e.editedNode.x-1)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=(o.label.originalY+e.editedNode.y+4)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=l.toString()+"px",e.topPosition=u.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.label.text;var g,d=[],h=(0,An.Z)(o.label.style.split(";"));try{for(h.s();!(g=h.n()).done;){var y=g.value;d.push({property:y.split(": ")[0],value:y.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var L={font_family:d.find(function(q){return"font-family"===q.property})?d.find(function(q){return"font-family"===q.property}).value:"TypeWriter",font_size:d.find(function(q){return"font-size"===q.property})?Number(d.find(function(q){return"font-size"===q.property}).value):10,font_weight:d.find(function(q){return"font-weight"===q.property})?d.find(function(q){return"font-weight"===q.property}).value:"normal"};L=e.fontFixer.fix(L),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",d.find(function(q){return"fill"===q.property})?d.find(function(q){return"fill"===q.property}).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",L.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(L.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",L.font_weight);e.textListener=function(){var re=e.temporaryTextElement.nativeElement.innerText,ae=e.linksDataSource.get(e.editedLink.linkId);ae.nodes.find(function(Se){return Se.node_id===e.editedNode.node_id}).label.text=re,e.linkService.updateLink(e.controller,ae).subscribe(function(Se){i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")})},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"activateTextEditingForDrawings",value:function(){var e=this,i=Ci(this.svg);i.selectAll("text.text_element").on("dblclick",function(o,a,s){e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.editedElement=o,Ci(s[a]).attr("visibility","hidden"),Ci(s[a]).classed("editingMode",!0),e.editingDrawingId=s[a].parentElement.parentElement.getAttribute("drawing_id");var l=s[a].parentElement.getAttribute("transform").split(/\(|\)/),u=Number(l[1].split(/,/)[0])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,d=Number(l[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=u.toString()+"px",e.topPosition=d.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.text,e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",o.fill),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",o.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(o.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",o.font_weight);e.textListener=function(){var y=e.temporaryTextElement.nativeElement.innerText;e.drawingsEventSource.textEdited.emit(new _4e(e.editingDrawingId,y.replace(/\n$/,""),e.editedElement)),i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"ngOnDestroy",value:function(){this.textAddingSubscription.unsubscribe()}},{key:"clearStyle",value:function(){this.renderer.setStyle(this.temporaryTextElement.nativeElement,"color","#000000"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-family","Noto Sans"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-size","11pt"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-weight","bold")}}]),n}();tA.\u0275fac=function(r){return new(r||tA)(t.Y36(Zl),t.Y36(Yp),t.Y36(Ks),t.Y36(t.Qsj),t.Y36(sf),t.Y36(pl),t.Y36(jm.F),t.Y36(za.G),t.Y36(Ll),t.Y36(os),t.Y36(t.R0b))},tA.\u0275cmp=t.Xpm({type:tA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(O4e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.temporaryTextElement=i.first))},inputs:{svg:"svg",controller:"controller"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0,1),t._uU(2),t.qZA()),2&r&&(t.Udp("top",e.topPosition)("left",e.leftPosition),t.xp6(2),t.hij(" ",e.innerText,"\n"))},styles:[".temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:Noto Sans;font-size:11pt;font-weight:700;color:#000}"]});var xb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"inRectangle",value:function(e,i,o){return e.x<=i&&i<e.x+e.width&&e.y<=o&&o<e.y+e.height}}]),n}();xb.\u0275fac=function(r){return new(r||xb)},xb.\u0275prov=t.Yz7({token:xb,factory:xb.\u0275fac});var nA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(i){var o=e.graphDataManager.getNodes().filter(function(y){return e.inRectangleHelper.inRectangle(i,y.x,y.y)}),a=e.graphDataManager.getLinks().filter(function(y){return e.inRectangleHelper.inRectangle(i,y.x,y.y)}),s=e.graphDataManager.getDrawings().filter(function(y){return e.inRectangleHelper.inRectangle(i,y.x,y.y)}),l=e.graphDataManager.getNodes().filter(function(y){if(void 0===y.label)return!1;var L=y.x+y.label.x,z=y.y+y.label.y;return e.inRectangleHelper.inRectangle(i,L,z)}).map(function(y){return y.label}),u=e.graphDataManager.getLinks().filter(function(y){if(void 0===y.source||2!=y.nodes.length||void 0===y.nodes[0].label)return!1;var L=y.source.x+y.nodes[0].label.x,z=y.source.y+y.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,L,z)}).map(function(y){return y.nodes[0]}),d=e.graphDataManager.getLinks().filter(function(y){if(void 0===y.target||2!=y.nodes.length||void 0===y.nodes[1].label)return!1;var L=y.target.x+y.nodes[1].label.x,z=y.target.y+y.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,L,z)}).map(function(y){return y.nodes[1]}),h=[].concat((0,cn.Z)(u),(0,cn.Z)(d)),g=[].concat((0,cn.Z)(o),(0,cn.Z)(a),(0,cn.Z)(s),(0,cn.Z)(l),(0,cn.Z)(h));e.selectionManager.setSelected(g)})}},{key:"ngOnDestroy",value:function(){this.onSelection.unsubscribe()}}]),n}();nA.\u0275fac=function(r){return new(r||nA)(t.Y36(Jg),t.Y36(Up),t.Y36(xb),t.Y36(Ll))},nA.\u0275cmp=t.Xpm({type:nA,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){}});var rA=function(){function n(r,e){(0,B.Z)(this,n),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelected=this.selectionManager.selected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()}),this.onUnselected=this.selectionManager.unselected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()}}]),n}();rA.\u0275fac=function(r){return new(r||rA)(t.Y36(Ll),t.Y36(jp))},rA.\u0275cmp=t.Xpm({type:rA,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){}});var hd=(0,U.Z)(function n(){(0,B.Z)(this,n),this.created=new t.vpe,this.edited=new t.vpe,this.interfaceDragged=new t.vpe});hd.\u0275fac=function(r){return new(r||hd)},hd.\u0275prov=t.Yz7({token:hd,factory:hd.\u0275fac});var iA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.nodesWidget=r,this.drawingsWidget=e,this.linksWidget=i,this.labelWidget=o,this.interfaceWidget=a,this.selectionManager=s,this.nodesEventSource=l,this.drawingsEventSource=u,this.graphDataManager=d,this.linksEventSource=h,this.mapSettingsService=g,this.isMapLocked=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=Ci(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(o){e.isMapLocked=o}),this.start=(0,Gi.T)(this.nodesWidget.draggable.start,this.drawingsWidget.draggable.start,this.labelWidget.draggable.start,this.interfaceWidget.draggable.start).subscribe(function(o){var a=e.selectionManager.getSelected();o.datum instanceof fb&&0===a.filter(function(s){return s instanceof fb&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Nm&&0===a.filter(function(s){return s instanceof Nm&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Fk&&0===a.filter(function(s){return s instanceof Fk&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof X2&&0===a.filter(function(s){return s instanceof X2&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum])}),this.drag=(0,Gi.T)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(o){if(!e.isMapLocked){var a=e.selectionManager.getSelected(),s=a.filter(function(q){return q instanceof fb}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.nodesWidget.redrawNode(i,q),e.graphDataManager.getLinks().filter(function(ae){return void 0!==ae.target&&ae.target.id===q.id||void 0!==ae.source&&ae.source.id===q.id}).forEach(function(ae){e.linksWidget.redrawLink(i,ae)})}),a.filter(function(q){return q instanceof Nm}).filter(function(q){return!q.locked}).forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.drawingsWidget.redrawDrawing(i,q)}),a.filter(function(q){return q instanceof Fk}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getNodes().filter(function(Se){return Se.id===q.nodeId})[0];ae.label.x+=o.dx,ae.label.y+=o.dy,e.labelWidget.redrawLabel(i,q)}}),a.filter(function(q){return q instanceof X2}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getLinks().filter(function(Se){return Se.nodes[0].id===q.id||Se.nodes[1].id===q.id})[0];ae.nodes[0].id===q.id&&(ae.nodes[0].label.x+=o.dx,ae.nodes[0].label.y+=o.dy),ae.nodes[1].id===q.id&&(ae.nodes[1].label.x+=o.dx,ae.nodes[1].label.y+=o.dy),e.linksWidget.redrawLink(i,ae)}})}}),this.end=(0,Gi.T)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe(function(o){if(!e.isMapLocked){var a=e.selectionManager.getSelected(),s=a.filter(function(q){return q instanceof fb}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){e.nodesEventSource.dragged.emit(new Jk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Nm}).filter(function(q){return!q.locked}).forEach(function(q){e.drawingsEventSource.dragged.emit(new Jk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Fk}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Jk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof X2}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Jk(q,o.dx,o.dy))})}})}},{key:"ngOnDestroy",value:function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()}}]),n}();iA.\u0275fac=function(r){return new(r||iA)(t.Y36(zp),t.Y36(Vp),t.Y36(Um),t.Y36(Gp),t.Y36(of),t.Y36(Ll),t.Y36(pd),t.Y36(Zl),t.Y36(Up),t.Y36(hd),t.Y36(fl))},iA.\u0275cmp=t.Xpm({type:iA,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var oA=function(){function n(r,e){(0,B.Z)(this,n),this.linksWidget=r,this.linksEventSource=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=Ci(this.svg);this.linkEditedSubscription=this.linksEventSource.edited.subscribe(function(o){e.linksWidget.redrawLink(i,o)})}},{key:"ngOnDestroy",value:function(){this.linkEditedSubscription.unsubscribe()}}]),n}();oA.\u0275fac=function(r){return new(r||oA)(t.Y36(Um),t.Y36(hd))},oA.\u0275cmp=t.Xpm({type:oA,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var Hm=(0,U.Z)(function n(){(0,B.Z)(this,n),this.movingModeState=new t.vpe});Hm.\u0275fac=function(r){return new(r||Hm)},Hm.\u0275prov=t.Yz7({token:Hm,factory:Hm.\u0275fac});var aA=function(){function n(r,e,i){(0,B.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){e.activated=i,i||e.removelisteners()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"onMouseDown",value:function(e){var i=this;this.activated&&(this.mousemoveListener=function(o){Ci(i.element.nativeElement).selectAll("g.canvas").data([i.context]).attr("transform",function(){i.context.transformation.x=i.context.transformation.x+o.movementX,i.context.transformation.y=i.context.transformation.y+o.movementY;var l=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,u=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,d=i.context.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.mouseupListener=function(o){i.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))}},{key:"removelisteners",value:function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)}}]),n}();aA.\u0275fac=function(r){return new(r||aA)(t.Y36(t.SBq),t.Y36(Hm),t.Y36(Ks))},aA.\u0275dir=t.lG2({type:aA,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&t.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var sA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){i?e.addListener():e.removeListener()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"addListener",value:function(){var e=this;this.wheelListener=function(i){i.stopPropagation(),i.preventDefault();var o=i.deltaY;o=0===i.deltaMode?o/100:o/3,Ci(e.element.nativeElement).selectAll("g.canvas").data([e.context]).attr("transform",function(){e.context.transformation.k=e.context.transformation.k-o/10;var l=e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,d=e.context.transformation.k;return e.mapsScaleService.setScale(d),"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})}},{key:"removeListener",value:function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)}}]),n}();sA.\u0275fac=function(r){return new(r||sA)(t.Y36(t.SBq),t.Y36(Hm),t.Y36(Ks),t.Y36(sf))},sA.\u0275dir=t.lG2({type:sA,selectors:[["","zoomingCanvas",""]]});var P4e=["svg"],I4e=["textEditor"],Xk=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L){(0,B.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.mapSettings=a,this.element=s,this.interfaceLabelWidget=l,this.selectionToolWidget=u,this.movingToolWidget=d,this.graphLayout=h,this.toolsService=g,this.mapScaleService=y,this.mapSettingsService=L,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.subscriptions=[],this.settings={show_interface_labels:!0},this.gridVisibility=0,this.nodeGridX=0,this.nodeGridY=0,this.drawingGridX=0,this.drawingGridY=0,this.parentNativeElement=s.nativeElement}return(0,U.Z)(n,[{key:"showInterfaceLabels",set:function(e){e&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){this.mapSettings.isReadOnly=e}},{key:"resize",value:function(e){if(e)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var i=window.innerHeight-16;this.height>i?this.svg.attr("height",this.height):this.svg.attr("height",i)}}},{key:"ngOnChanges",value:function(e){(e.width&&!e.width.isFirstChange()||e.height&&!e.height.isFirstChange()||e.drawings&&!e.drawings.isFirstChange()||e.nodes&&!e.nodes.isFirstChange()||e.links&&!e.links.isFirstChange()||e.symbols&&!e.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(e.symbols&&this.onSymbolsChange(e.symbols),this.changeLayout())}},{key:"ngOnInit",value:function(){var e=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.mapChangeDetectorRef.hasBeenDrawn&&e.redraw()}),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe(function(i){return e.redraw()})),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe(function(i){e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe(function(i){e.selectionToolWidget.setEnabled(i),e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe(function(i){e.drawLinkTool=i})),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe(function(i){return e.resize(i)})}},{key:"ngOnDestroy",value:function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"applyMapSettingsChanges",value:function(){this.redraw()}},{key:"createGraph",value:function(e){var i=Ci(e);this.svg=i.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"changeLayout",value:function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()}},{key:"onSymbolsChange",value:function(e){this.graphDataManager.setSymbols(this.symbols)}},{key:"redraw",value:function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"updateGrid",value:function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)}},{key:"onResize",value:function(e){this.changeLayout()}}]),n}();Xk.\u0275fac=function(r){return new(r||Xk)(t.Y36(Up),t.Y36(Ks),t.Y36(jp),t.Y36(qg),t.Y36(rf),t.Y36(t.SBq),t.Y36(of),t.Y36(Hp),t.Y36(Qg),t.Y36(iv),t.Y36(Yp),t.Y36(sf),t.Y36(fl))},Xk.\u0275cmp=t.Xpm({type:Xk,selectors:[["app-d3-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(P4e,5),t.Gf(I4e,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.svgRef=i.first),t.iGM(i=t.CRH())&&(e.textEditor=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",controller:"controller",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[t.TTD],decls:20,vars:19,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"controller","svg"],["textEditor",""]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"filter",2),t._UZ(3,"feColorMatrix",3),t.qZA(),t.TgZ(4,"defs")(5,"pattern",4),t._UZ(6,"path",5),t.qZA()(),t.TgZ(7,"defs")(8,"pattern",6),t._UZ(9,"path",7),t.qZA()(),t._UZ(10,"rect",8)(11,"rect",9),t.qZA(),t.kcU(),t._UZ(12,"app-drawing-adding",10)(13,"app-drawing-resizing")(14,"app-selection-control")(15,"app-selection-select")(16,"app-text-editor",11,12)(18,"app-draggable-selection",10)(19,"app-link-editing",10)),2&r){var i=t.MAs(1);t.xp6(5),t.uIk("x",e.drawingGridX)("y",e.drawingGridY)("width",e.project.drawing_grid_size)("height",e.project.drawing_grid_size),t.xp6(1),t.zWS("d","M ",e.project.drawing_grid_size," 0 L 0 0 0 ",e.project.drawing_grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(2),t.uIk("x",e.nodeGridX)("y",e.nodeGridY)("width",e.project.grid_size)("height",e.project.grid_size),t.xp6(1),t.zWS("d","M ",e.project.grid_size," 0 L 0 0 0 ",e.project.grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(3),t.Q6J("svg",i),t.xp6(4),t.Q6J("controller",e.controller)("svg",i),t.xp6(2),t.Q6J("svg",i),t.xp6(1),t.Q6J("svg",i)}},dependencies:[$2,eA,tA,nA,rA,iA,oA,aA,sA],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var R4e=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Po.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}};function L4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",2),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"No"),t.qZA(),t.TgZ(3,"button",3),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onYesClick())}),t._uU(4," Yes "),t.qZA()()}}function Z4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",4),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"Ok"),t.qZA()()}}var $k=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project ".concat(this.existingProject.name," is open. You can not overwrite it."),this.isOpen=!0):this.confirmationMessage="Project ".concat(this.existingProject.name," already exist, overwrite it?")}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();$k.\u0275fac=function(r){return new(r||$k)(t.Y36(cr),t.Y36(ko))},$k.\u0275cmp=t.Xpm({type:$k,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.YNc(2,L4e,5,0,"div",0),t.YNc(3,Z4e,3,0,"div",0)),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage),t.xp6(1),t.Q6J("ngIf",!e.isOpen),t.xp6(1),t.Q6J("ngIf",e.isOpen))},dependencies:[se.O5,dn,dr]});var Ku=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function N4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function B4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}function F4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project with this name exists"),t.qZA())}Ku.\u0275fac=function(r){return new(r||Ku)},Ku.\u0275prov=t.Yz7({token:Ku,factory:Ku.\u0275fac});var U4e=function(r){return{"is-invalid":r}},eT=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=l,this.onAddProject=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,this.projectNameValidator.get],[R4e(this.controller,this.projectService)])})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.uuid=ns(),this.projectService.add(this.controller,this.projectNameForm.controls.projectName.value,this.uuid).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added")),e.router.navigate(["/controller",e.controller.id,"project",i.project_id])},function(i){e.toasterService.error("Cannot create new project"),console.log(i)})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open($k,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.addProject()})})})}}]),n}();function j4e(n,r){}eT.\u0275fac=function(r){return new(r||eT)(t.Y36(cr),t.Y36(ur),t.Y36(Gr),t.Y36(Vs.Y),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku))},eT.\u0275cmp=t.Xpm({type:eT,selectors:[["app-add-blank-project-dialog"]],features:[t._Bn([Ku])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new project"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,N4e,2,0,"mat-error",4),t.YNc(6,B4e,2,0,"mat-error",4),t.YNc(7,F4e,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add project "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,U4e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.projectExist)))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var H4e={bottomSheetState:(0,Zt.X$)("state",[(0,Zt.SB)("void, hidden",(0,Zt.oB)({transform:"translateY(100%)"})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"translateY(0%)"})),(0,Zt.eR)("visible => void, visible => hidden",(0,Zt.ru)([(0,Zt.jt)("".concat(Gt.mZ.COMPLEX," ").concat(Gt.yN.ACCELERATION_CURVE)),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})])),(0,Zt.eR)("void => visible",(0,Zt.ru)([(0,Zt.jt)("".concat(Gt.mZ.EXITING," ").concat(Gt.yN.DECELERATION_CURVE)),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})]))])},lA=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,y){var L;return(0,B.Z)(this,e),(L=r.call(this,i,o,a,s,l,u,d,y))._changeDetectorRef=g,L._animationState="void",L._animationStateChanged=new t.vpe,L._breakpointSubscription=h.observe([nd.u3.Medium,nd.u3.Large,nd.u3.XLarge]).subscribe(function(){L._toggleClass("mat-bottom-sheet-container-medium",h.isMatched(nd.u3.Medium)),L._toggleClass("mat-bottom-sheet-container-large",h.isMatched(nd.u3.Large)),L._toggleClass("mat-bottom-sheet-container-xlarge",h.isMatched(nd.u3.XLarge))}),L}return(0,U.Z)(e,[{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(o){"visible"===o.toState&&this._trapFocus(),this._animationStateChanged.emit(o)}},{key:"_onAnimationStart",value:function(o){this._animationStateChanged.emit(o)}},{key:"_captureInitialFocus",value:function(){}},{key:"_toggleClass",value:function(o,a){this._elementRef.nativeElement.classList.toggle(o,a)}}]),e}(ab);lA.\u0275fac=function(r){return new(r||lA)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(JD),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(nd.Yg),t.Y36(t.sBO),t.Y36(Yr.tE))},lA.\u0275cmp=t.Xpm({type:lA,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(r,e){1&r&&t.WFA("@state.start",function(o){return e._onAnimationStart(o)})("@state.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.uIk("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-label",e._config.ariaLabel),t.d8E("@state",e._animationState))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,j4e,0,0,"ng-template",0)},dependencies:[ao.Pl],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[H4e.bottomSheetState]}});var Db=(0,U.Z)(function n(){(0,B.Z)(this,n)});Db.\u0275fac=function(r){return new(r||Db)},Db.\u0275mod=t.oAB({type:Db}),Db.\u0275inj=t.cJS({imports:[sb,Gt.BQ,ao.eL,Gt.BQ]});var G4e=new t.OlP("MatBottomSheetData"),z4e=(0,U.Z)(function n(){(0,B.Z)(this,n),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}),MF=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this._ref=r,this._afterOpened=new On.xQ,this.containerInstance=i,this.disableClose=e.disableClose,i._animationStateChanged.pipe((0,$r.h)(function(a){return"done"===a.phaseName&&"visible"===a.toState}),(0,Ri.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,$r.h)(function(a){return"done"===a.phaseName&&"hidden"===a.toState}),(0,Ri.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._ref.close(o._result)}),r.overlayRef.detachments().subscribe(function(){o._ref.close(o._result)}),(0,Gi.T)(this.backdropClick(),this.keydownEvents().pipe((0,$r.h)(function(a){return a.keyCode===Tr.hY}))).subscribe(function(a){!o.disableClose&&("keydown"!==a.type||!(0,Tr.Vb)(a))&&(a.preventDefault(),o.dismiss())})}return(0,U.Z)(n,[{key:"instance",get:function(){return this._ref.componentInstance}},{key:"dismiss",value:function(e){var i=this;!this.containerInstance||(this.containerInstance._animationStateChanged.pipe((0,$r.h)(function(o){return"start"===o.phaseName}),(0,Ri.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._ref.close(i._result)},o.totalTime+100),i._ref.overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit(),this.containerInstance=null)}},{key:"afterDismissed",value:function(){return this._ref.closed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}}]),n}(),W4e=new t.OlP("mat-bottom-sheet-default-options"),lf=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._overlay=r,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=e.get(vm)}return(0,U.Z)(n,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,i){var s,o=this,a=Object.assign(Object.assign({},this._defaultOptions||new z4e),i);return this._dialog.open(e,Object.assign(Object.assign({},a),{disableClose:!0,maxWidth:"100%",container:lA,scrollStrategy:a.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:function(){return{bottomSheetRef:s}},providers:function(u,d,h){return s=new MF(u,a,h),[{provide:MF,useValue:s},{provide:G4e,useValue:a.data}]}})),s.afterDismissed().subscribe(function(){o._openedBottomSheetRef===s&&(o._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){var l;return null===(l=s.containerInstance)||void 0===l?void 0:l.enter()}),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}]),n}();lf.\u0275fac=function(r){return new(r||lf)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG(lf,12),t.LFG(W4e,8))},lf.\u0275prov=t.Yz7({token:lf,factory:lf.\u0275fac,providedIn:Db});var V4e=function(r){return{lightTheme:r}},md=function(){function n(r,e){(0,B.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();md.\u0275fac=function(r){return new(r||md)(t.Y36(MF),t.Y36(wc.f))},md.\u0275cmp=t.Xpm({type:md,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,V4e,e.isLightThemeEnabled)),t.xp6(2),t.Oqu(e.message))},dependencies:[se.mk,dn],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]});var uf=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return+e.value>=0?null:{negativeValue:!0}}}]),n}();uf.\u0275fac=function(r){return new(r||uf)},uf.\u0275prov=t.Yz7({token:uf,factory:uf.\u0275fac});var Fi=m(3251);function eW(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var ov={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var Sse=/[&<>"']/,K4e=new RegExp(Sse.source,"g"),Ese=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,q4e=new RegExp(Ese.source,"g"),J4e={"&":"&","<":"<",">":">",'"':""","'":"'"},xse=function(r){return J4e[r]};function Nl(n,r){if(r){if(Sse.test(n))return n.replace(K4e,xse)}else if(Ese.test(n))return n.replace(q4e,xse);return n}var Q4e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Dse(n){return n.replace(Q4e,function(r,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var X4e=/(^|[^\[])\^/g;function Uo(n,r){n="string"==typeof n?n:n.source,r=r||"";var e={replace:function(o,a){return a=(a=a.source||a).replace(X4e,"$1"),n=n.replace(o,a),e},getRegex:function(){return new RegExp(n,r)}};return e}var $4e=/[^\w:]/g,e8e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ase(n,r,e){if(n){var i;try{i=decodeURIComponent(Dse(e)).replace($4e,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!e8e.test(e)&&(e=function i8e(n,r){SF[" "+n]||(t8e.test(n)?SF[" "+n]=n+"/":SF[" "+n]=xF(n,"/",!0));var e=-1===(n=SF[" "+n]).indexOf(":");return"//"===r.substring(0,2)?e?r:n.replace(n8e,"$1")+r:"/"===r.charAt(0)?e?r:n.replace(r8e,"$1")+r:n+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var SF={},t8e=/^[^:]+:\/*[^/]*$/,n8e=/^([^:]+:)[\s\S]*$/,r8e=/^([^:]+:\/*[^/]*)[\s\S]*$/;var EF={exec:function(){}};function Ose(n,r){var i=n.replace(/\|/g,function(a,s,l){for(var u=!1,d=s;--d>=0&&"\\"===l[d];)u=!u;return u?"|":" |"}).split(/ \|/),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>r)i.splice(r);else for(;i.length<r;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function xF(n,r,e){var i=n.length;if(0===i)return"";for(var o=0;o<i;){var a=n.charAt(i-o-1);if(a!==r||e){if(a===r||!e)break;o++}else o++}return n.slice(0,i-o)}function Pse(n,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=n),r>>=1,n+=n;return e+n}function Ise(n,r,e,i){var o=r.href,a=r.title?Nl(r.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;var l={type:"link",raw:e,href:o,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}return{type:"image",raw:e,href:o,title:a,text:Nl(s)}}var DF=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov}return(0,U.Z)(n,[{key:"space",value:function(e){var i=this.rules.block.newline.exec(e);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}},{key:"code",value:function(e){var i=this.rules.block.code.exec(e);if(i){var o=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?o:xF(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function s8e(n,r){var e=n.match(/^(\s+)(?:```)/);if(null===e)return r;var i=e[1];return r.split("\n").map(function(o){var a=o.match(/^\s+/);return null===a?o:(0,Yn.Z)(a,1)[0].length>=i.length?o.slice(i.length):o}).join("\n")}(o,i[3]||"");return{type:"code",raw:o,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:a}}}},{key:"heading",value:function(e){var i=this.rules.block.heading.exec(e);if(i){var o=i[2].trim();if(/#$/.test(o)){var a=xF(o,"#");(this.options.pedantic||!a||/ $/.test(a))&&(o=a.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:this.lexer.inline(o)}}}},{key:"hr",value:function(e){var i=this.rules.block.hr.exec(e);if(i)return{type:"hr",raw:i[0]}}},{key:"blockquote",value:function(e){var i=this.rules.block.blockquote.exec(e);if(i){var o=i[0].replace(/^ *>[ \t]?/gm,""),a=this.lexer.state.top;this.lexer.state.top=!0;var s=this.lexer.blockTokens(o);return this.lexer.state.top=a,{type:"blockquote",raw:i[0],tokens:s,text:o}}}},{key:"list",value:function(e){var i=this.rules.block.list.exec(e);if(i){var o,a,s,l,u,d,h,g,y,L,z,q,re=i[1].trim(),ae=re.length>1,Se={type:"list",raw:"",ordered:ae,start:ae?+re.slice(0,-1):"",loose:!1,items:[]};re=ae?"\\d{1,9}\\".concat(re.slice(-1)):"\\".concat(re),this.options.pedantic&&(re=ae?re:"[*+-]");for(var Ce=new RegExp("^( {0,3}".concat(re,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(q=!1,(i=Ce.exec(e))&&!this.rules.block.hr.test(e));){if(o=i[0],e=e.substring(o.length),g=i[2].split("\n",1)[0].replace(/^\t+/,function($e){return" ".repeat(3*$e.length)}),y=e.split("\n",1)[0],this.options.pedantic?(l=2,z=g.trimLeft()):(l=(l=i[2].search(/[^ ]/))>4?1:l,z=g.slice(l),l+=i[1].length),d=!1,!g&&/^ *$/.test(y)&&(o+=y+"\n",e=e.substring(y.length+1),q=!0),!q)for(var Ee=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),Ke=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),st=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:```|~~~)")),De=new RegExp("^ {0,".concat(Math.min(3,l-1),"}#"));e&&(y=L=e.split("\n",1)[0],this.options.pedantic&&(y=y.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(st.test(y)||De.test(y)||Ee.test(y)||Ke.test(e)));){if(y.search(/[^ ]/)>=l||!y.trim())z+="\n"+y.slice(l);else{if(d||g.search(/[^ ]/)>=4||st.test(g)||De.test(g)||Ke.test(g))break;z+="\n"+y}!d&&!y.trim()&&(d=!0),o+=L+"\n",e=e.substring(L.length+1),g=y.slice(l)}Se.loose||(h?Se.loose=!0:/\n *\n *$/.test(o)&&(h=!0)),this.options.gfm&&((a=/^\[[ xX]\] /.exec(z))&&(s="[ ] "!==a[0],z=z.replace(/^\[[ xX]\] +/,""))),Se.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:z}),Se.raw+=o}Se.items[Se.items.length-1].raw=o.trimRight(),Se.items[Se.items.length-1].text=z.trimRight(),Se.raw=Se.raw.trimRight();var it=Se.items.length;for(u=0;u<it;u++)if(this.lexer.state.top=!1,Se.items[u].tokens=this.lexer.blockTokens(Se.items[u].text,[]),!Se.loose){var ft=Se.items[u].tokens.filter(function($e){return"space"===$e.type}),bt=ft.length>0&&ft.some(function($e){return/\n.*\n/.test($e.raw)});Se.loose=bt}if(Se.loose)for(u=0;u<it;u++)Se.items[u].loose=!0;return Se}}},{key:"html",value:function(e){var i=this.rules.block.html.exec(e);if(i){var o={type:"html",raw:i[0],pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]};if(this.options.sanitize){var a=this.options.sanitizer?this.options.sanitizer(i[0]):Nl(i[0]);o.type="paragraph",o.text=a,o.tokens=this.lexer.inline(a)}return o}}},{key:"def",value:function(e){var i=this.rules.block.def.exec(e);if(i){var o=i[1].toLowerCase().replace(/\s+/g," "),a=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline._escapes,"$1"):i[3];return{type:"def",tag:o,raw:i[0],href:a,title:s}}}},{key:"table",value:function(e){var i=this.rules.block.table.exec(e);if(i){var o={type:"table",header:Ose(i[1]).map(function(h){return{text:h}}),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(o.header.length===o.align.length){o.raw=i[0];var s,l,u,d,a=o.align.length;for(s=0;s<a;s++)/^ *-+: *$/.test(o.align[s])?o.align[s]="right":/^ *:-+: *$/.test(o.align[s])?o.align[s]="center":/^ *:-+ *$/.test(o.align[s])?o.align[s]="left":o.align[s]=null;for(a=o.rows.length,s=0;s<a;s++)o.rows[s]=Ose(o.rows[s],o.header.length).map(function(h){return{text:h}});for(a=o.header.length,l=0;l<a;l++)o.header[l].tokens=this.lexer.inline(o.header[l].text);for(a=o.rows.length,l=0;l<a;l++)for(d=o.rows[l],u=0;u<d.length;u++)d[u].tokens=this.lexer.inline(d[u].text);return o}}}},{key:"lheading",value:function(e){var i=this.rules.block.lheading.exec(e);if(i)return{type:"heading",raw:i[0],depth:"="===i[2].charAt(0)?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}},{key:"paragraph",value:function(e){var i=this.rules.block.paragraph.exec(e);if(i){var o="\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:o,tokens:this.lexer.inline(o)}}}},{key:"text",value:function(e){var i=this.rules.block.text.exec(e);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}},{key:"escape",value:function(e){var i=this.rules.inline.escape.exec(e);if(i)return{type:"escape",raw:i[0],text:Nl(i[1])}}},{key:"tag",value:function(e){var i=this.rules.inline.tag.exec(e);if(i)return!this.lexer.state.inLink&&/^<a /i.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Nl(i[0]):i[0]}}},{key:"link",value:function(e){var i=this.rules.inline.link.exec(e);if(i){var o=i[2].trim();if(!this.options.pedantic&&/^</.test(o)){if(!/>$/.test(o))return;var a=xF(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function o8e(n,r){if(-1===n.indexOf(r[1]))return-1;for(var e=n.length,i=0,o=0;o<e;o++)if("\\"===n[o])o++;else if(n[o]===r[0])i++;else if(n[o]===r[1]&&--i<0)return o;return-1}(i[2],"()");if(s>-1){var u=(0===i[0].indexOf("!")?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,u).trim(),i[3]=""}}var d=i[2],h="";if(this.options.pedantic){var g=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(d);g&&(d=g[1],h=g[3])}else h=i[3]?i[3].slice(1,-1):"";return d=d.trim(),/^</.test(d)&&(d=this.options.pedantic&&!/>$/.test(o)?d.slice(1):d.slice(1,-1)),Ise(i,{href:d&&d.replace(this.rules.inline._escapes,"$1"),title:h&&h.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}},{key:"reflink",value:function(e,i){var o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){var a=(o[2]||o[1]).replace(/\s+/g," ");if(!(a=i[a.toLowerCase()])){var s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return Ise(o,a,o[0],this.lexer)}}},{key:"emStrong",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(e);if(a&&(!a[3]||!o.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var s=a[1]||a[2]||"";if(!s||s&&(""===o||this.rules.inline.punctuation.exec(o))){var u,d,l=a[0].length-1,h=l,g=0,y="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(y.lastIndex=0,i=i.slice(-1*e.length+l);null!=(a=y.exec(i));)if(u=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(d=u.length,a[3]||a[4]){h+=d;continue}if((a[5]||a[6])&&l%3&&!((l+d)%3)){g+=d;continue}if(!((h-=d)>0)){d=Math.min(d,d+h+g);var L=e.slice(0,l+a.index+(a[0].length-u.length)+d);if(Math.min(l,d)%2){var z=L.slice(1,-1);return{type:"em",raw:L,text:z,tokens:this.lexer.inlineTokens(z)}}var q=L.slice(2,-2);return{type:"strong",raw:L,text:q,tokens:this.lexer.inlineTokens(q)}}}}}}},{key:"codespan",value:function(e){var i=this.rules.inline.code.exec(e);if(i){var o=i[2].replace(/\n/g," "),a=/[^ ]/.test(o),s=/^ /.test(o)&&/ $/.test(o);return a&&s&&(o=o.substring(1,o.length-1)),o=Nl(o,!0),{type:"codespan",raw:i[0],text:o}}}},{key:"br",value:function(e){var i=this.rules.inline.br.exec(e);if(i)return{type:"br",raw:i[0]}}},{key:"del",value:function(e){var i=this.rules.inline.del.exec(e);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}},{key:"autolink",value:function(e,i){var a,s,o=this.rules.inline.autolink.exec(e);if(o)return"@"===o[2]?s="mailto:"+(a=Nl(this.options.mangle?i(o[1]):o[1])):s=a=Nl(o[1]),{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(e,i){var o;if(o=this.rules.inline.url.exec(e)){var a,s;if("@"===o[2])s="mailto:"+(a=Nl(this.options.mangle?i(o[0]):o[0]));else{var l;do{l=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0]}while(l!==o[0]);a=Nl(o[0]),s="www."===o[1]?"http://"+o[0]:o[0]}return{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(e,i){var a,o=this.rules.inline.text.exec(e);if(o)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):Nl(o[0]):o[0]:Nl(this.options.smartypants?i(o[0]):o[0]),{type:"text",raw:o[0],text:a}}}]),n}(),Zr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:EF,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Zr.def=Uo(Zr.def).replace("label",Zr._label).replace("title",Zr._title).getRegex(),Zr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Zr.listItemStart=Uo(/^( *)(bull) */).replace("bull",Zr.bullet).getRegex(),Zr.list=Uo(Zr.list).replace(/bull/g,Zr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Zr.def.source+")").getRegex(),Zr._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Zr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Zr.html=Uo(Zr.html,"i").replace("comment",Zr._comment).replace("tag",Zr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zr.paragraph=Uo(Zr._paragraph).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.blockquote=Uo(Zr.blockquote).replace("paragraph",Zr.paragraph).getRegex(),Zr.normal=Vr({},Zr),Zr.gfm=Vr(Vr({},Zr.normal),{},{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Zr.gfm.table=Uo(Zr.gfm.table).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.gfm.paragraph=Uo(Zr._paragraph).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Zr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.pedantic=Vr(Vr({},Zr.normal),{},{html:Uo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Zr._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:EF,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Uo(Zr.normal._paragraph).replace("hr",Zr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Zr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var pr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:EF,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:EF,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function l8e(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function Rse(n){var e,i,r="",o=n.length;for(e=0;e<o;e++)i=n.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),r+="&#"+i+";";return r}pr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",pr.punctuation=Uo(pr.punctuation).replace(/punctuation/g,pr._punctuation).getRegex(),pr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pr.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,pr._comment=Uo(Zr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),pr.emStrong.lDelim=Uo(pr.emStrong.lDelim).replace(/punct/g,pr._punctuation).getRegex(),pr.emStrong.rDelimAst=Uo(pr.emStrong.rDelimAst,"g").replace(/punct/g,pr._punctuation).getRegex(),pr.emStrong.rDelimUnd=Uo(pr.emStrong.rDelimUnd,"g").replace(/punct/g,pr._punctuation).getRegex(),pr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pr._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pr.autolink=Uo(pr.autolink).replace("scheme",pr._scheme).replace("email",pr._email).getRegex(),pr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pr.tag=Uo(pr.tag).replace("comment",pr._comment).replace("attribute",pr._attribute).getRegex(),pr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pr.link=Uo(pr.link).replace("label",pr._label).replace("href",pr._href).replace("title",pr._title).getRegex(),pr.reflink=Uo(pr.reflink).replace("label",pr._label).replace("ref",Zr._label).getRegex(),pr.nolink=Uo(pr.nolink).replace("ref",Zr._label).getRegex(),pr.reflinkSearch=Uo(pr.reflinkSearch,"g").replace("reflink",pr.reflink).replace("nolink",pr.nolink).getRegex(),pr.normal=Vr({},pr),pr.pedantic=Vr(Vr({},pr.normal),{},{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Uo(/^!?\[(label)\]\((.*?)\)/).replace("label",pr._label).getRegex(),reflink:Uo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pr._label).getRegex()}),pr.gfm=Vr(Vr({},pr.normal),{},{escape:Uo(pr.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),pr.gfm.url=Uo(pr.gfm.url,"i").replace("email",pr.gfm._extended_email).getRegex(),pr.breaks=Vr(Vr({},pr.gfm),{},{br:Uo(pr.br).replace("{2,}","*").getRegex(),text:Uo(pr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var tT=function(){function n(r){(0,B.Z)(this,n),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||ov,this.options.tokenizer=this.options.tokenizer||new DF,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var e={block:Zr.normal,inline:pr.normal};this.options.pedantic?(e.block=Zr.pedantic,e.inline=pr.pedantic):this.options.gfm&&(e.block=Zr.gfm,this.options.breaks?e.inline=pr.breaks:e.inline=pr.gfm),this.tokenizer.rules=e}return(0,U.Z)(n,[{key:"lex",value:function(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(var i;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(g,y,L){return y+" ".repeat(L.length)});for(var a,s,l,u,h,d=function(){if(i.options.extensions&&i.options.extensions.block&&i.options.extensions.block.some(function(re){return!!(a=re.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return 0;if(a=i.tokenizer.space(e))return e=e.substring(a.raw.length),1===a.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(a),0;if(a=i.tokenizer.code(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?o.push(a):(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue[i.inlineQueue.length-1].src=s.text),0;if((a=i.tokenizer.fences(e))||(a=i.tokenizer.heading(e))||(a=i.tokenizer.hr(e))||(a=i.tokenizer.blockquote(e))||(a=i.tokenizer.list(e))||(a=i.tokenizer.html(e)))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.def(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?i.tokens.links[a.tag]||(i.tokens.links[a.tag]={href:a.href,title:a.title}):(s.raw+="\n"+a.raw,s.text+="\n"+a.raw,i.inlineQueue[i.inlineQueue.length-1].src=s.text),0;if((a=i.tokenizer.table(e))||(a=i.tokenizer.lheading(e)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startBlock){var z,y=1/0,L=e.slice(1);i.options.extensions.startBlock.forEach(function(re){"number"==typeof(z=re.call({lexer:this},L))&&z>=0&&(y=Math.min(y,z))}),y<1/0&&y>=0&&(l=e.substring(0,y+1))}if(i.state.top&&(a=i.tokenizer.paragraph(l)))return s=o[o.length-1],u&&"paragraph"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),u=l.length!==e.length,e=e.substring(a.raw.length),0;if(a=i.tokenizer.text(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),0;if(e){var q="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(q),1;throw new Error(q)}};e&&(0===(h=d())||1!==h););return this.state.top=!0,o}},{key:"inline",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:i}),i}},{key:"inlineTokens",value:function(e){var a,s,l,d,h,g,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var y=Object.keys(this.tokens.links);if(y.length>0)for(;null!=(d=this.tokenizer.rules.inline.reflinkSearch.exec(u));)y.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,d.index)+"["+Pse("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(d=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,d.index)+"["+Pse("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(d=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,d.index+d[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var z,L=function(){if(h||(g=""),h=!1,i.options.extensions&&i.options.extensions.inline&&i.options.extensions.inline.some(function(Ee){return!!(a=Ee.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return 0;if(a=i.tokenizer.escape(e))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.tag(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if(a=i.tokenizer.link(e))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.reflink(e,i.tokens.links))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if((a=i.tokenizer.emStrong(e,u,g))||(a=i.tokenizer.codespan(e))||(a=i.tokenizer.br(e))||(a=i.tokenizer.del(e))||(a=i.tokenizer.autolink(e,Rse))||!i.state.inLink&&(a=i.tokenizer.url(e,Rse)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startInline){var Se,re=1/0,ae=e.slice(1);i.options.extensions.startInline.forEach(function(Ee){"number"==typeof(Se=Ee.call({lexer:this},ae))&&Se>=0&&(re=Math.min(re,Se))}),re<1/0&&re>=0&&(l=e.substring(0,re+1))}if(a=i.tokenizer.inlineText(l,l8e))return e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(g=a.raw.slice(-1)),h=!0,(s=o[o.length-1])&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if(e){var Ce="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(Ce),1;throw new Error(Ce)}};e&&(0===(z=L())||1!==z););return o}}],[{key:"rules",get:function(){return{block:Zr,inline:pr}}},{key:"lex",value:function(e,i){return new n(i).lex(e)}},{key:"lexInline",value:function(e,i){return new n(i).inlineTokens(e)}}]),n}(),AF=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov}return(0,U.Z)(n,[{key:"code",value:function(e,i,o){var a=(i||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,a);null!=s&&s!==e&&(o=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",a?'<pre><code class="'+this.options.langPrefix+Nl(a)+'">'+(o?e:Nl(e,!0))+"</code></pre>\n":"<pre><code>"+(o?e:Nl(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,i,o,a){if(this.options.headerIds){var s=this.options.headerPrefix+a.slug(o);return"<h".concat(i,' id="').concat(s,'">').concat(e,"</h").concat(i,">\n")}return"<h".concat(i,">").concat(e,"</h").concat(i,">\n")}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(e,i,o){var a=i?"ol":"ul";return"<"+a+(i&&1!==o?' start="'+o+'"':"")+">\n"+e+"</"+a+">\n"}},{key:"listitem",value:function(e){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,i){return i&&(i="<tbody>".concat(i,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+i+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,i){var o=i.header?"th":"td";return(i.align?"<".concat(o,' align="').concat(i.align,'">'):"<".concat(o,">"))+e+"</".concat(o,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,i,o){if(null===(e=Ase(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<a href="'+e+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>"}},{key:"image",value:function(e,i,o){if(null===(e=Ase(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<img src="'.concat(e,'" alt="').concat(o,'"');return i&&(a+=' title="'.concat(i,'"')),a+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),n}(),tW=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,i,o){return""+o}},{key:"image",value:function(e,i,o){return""+o}},{key:"br",value:function(){return""}}]),n}(),nW=function(){function n(){(0,B.Z)(this,n),this.seen={}}return(0,U.Z)(n,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,i){var o=e,a=0;if(this.seen.hasOwnProperty(o)){a=this.seen[e];do{o=e+"-"+ ++a}while(this.seen.hasOwnProperty(o))}return i||(this.seen[e]=a,this.seen[o]=0),o}},{key:"slug",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.serialize(e);return this.getNextSafeSlug(o,i.dryrun)}}]),n}(),nT=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov,this.options.renderer=this.options.renderer||new AF,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new tW,this.slugger=new nW}return(0,U.Z)(n,[{key:"parse",value:function(e){var a,s,l,u,d,h,g,y,L,z,q,re,ae,Se,Ce,Ee,Ke,st,De,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",it=e.length;for(a=0;a<it;a++)if(z=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[z.type]&&(!1!==(De=this.options.extensions.renderers[z.type].call({parser:this},z))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(z.type)))o+=De||"";else switch(z.type){case"space":continue;case"hr":o+=this.renderer.hr();continue;case"heading":o+=this.renderer.heading(this.parseInline(z.tokens),z.depth,Dse(this.parseInline(z.tokens,this.textRenderer)),this.slugger);continue;case"code":o+=this.renderer.code(z.text,z.lang,z.escaped);continue;case"table":for(y="",g="",u=z.header.length,s=0;s<u;s++)g+=this.renderer.tablecell(this.parseInline(z.header[s].tokens),{header:!0,align:z.align[s]});for(y+=this.renderer.tablerow(g),L="",u=z.rows.length,s=0;s<u;s++){for(g="",d=(h=z.rows[s]).length,l=0;l<d;l++)g+=this.renderer.tablecell(this.parseInline(h[l].tokens),{header:!1,align:z.align[l]});L+=this.renderer.tablerow(g)}o+=this.renderer.table(y,L);continue;case"blockquote":L=this.parse(z.tokens),o+=this.renderer.blockquote(L);continue;case"list":for(q=z.ordered,re=z.start,ae=z.loose,u=z.items.length,L="",s=0;s<u;s++)Ee=(Ce=z.items[s]).checked,Ke=Ce.task,Se="",Ce.task&&(st=this.renderer.checkbox(Ee),ae?Ce.tokens.length>0&&"paragraph"===Ce.tokens[0].type?(Ce.tokens[0].text=st+" "+Ce.tokens[0].text,Ce.tokens[0].tokens&&Ce.tokens[0].tokens.length>0&&"text"===Ce.tokens[0].tokens[0].type&&(Ce.tokens[0].tokens[0].text=st+" "+Ce.tokens[0].tokens[0].text)):Ce.tokens.unshift({type:"text",text:st}):Se+=st),Se+=this.parse(Ce.tokens,ae),L+=this.renderer.listitem(Se,Ke,Ee);o+=this.renderer.list(L,q,re);continue;case"html":o+=this.renderer.html(z.text);continue;case"paragraph":o+=this.renderer.paragraph(this.parseInline(z.tokens));continue;case"text":for(L=z.tokens?this.parseInline(z.tokens):z.text;a+1<it&&"text"===e[a+1].type;)L+="\n"+((z=e[++a]).tokens?this.parseInline(z.tokens):z.text);o+=i?this.renderer.paragraph(L):L;continue;default:var ft='Token with "'+z.type+'" type was not found.';if(this.options.silent)return void console.error(ft);throw new Error(ft)}return o}},{key:"parseInline",value:function(e,i){i=i||this.renderer;var a,s,l,o="",u=e.length;for(a=0;a<u;a++)if(s=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(!1!==(l=this.options.extensions.renderers[s.type].call({parser:this},s))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)))o+=l||"";else switch(s.type){case"escape":case"text":o+=i.text(s.text);break;case"html":o+=i.html(s.text);break;case"link":o+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break;case"image":o+=i.image(s.href,s.title,s.text);break;case"strong":o+=i.strong(this.parseInline(s.tokens,i));break;case"em":o+=i.em(this.parseInline(s.tokens,i));break;case"codespan":o+=i.codespan(s.text);break;case"br":o+=i.br();break;case"del":o+=i.del(this.parseInline(s.tokens,i));break;default:var d='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(d);throw new Error(d)}return o}}],[{key:"parse",value:function(e,i){return new n(i).parse(e)}},{key:"parseInline",value:function(e,i){return new n(i).parseInline(e)}}]),n}(),uA=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov}return(0,U.Z)(n,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}}]),n}();function Lse(n,r){return function(e,i,o){"function"==typeof i&&(o=i,i=null);var a=Vr({},i),s=function u8e(n,r,e){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){var o="<p>An error occurred:</p><pre>"+Nl(i.message+"",!0)+"</pre>";return r?Promise.resolve(o):e?void e(null,o):o}if(r)return Promise.reject(i);if(!e)throw i;e(i)}}((i=Vr(Vr({},Nr.defaults),a)).silent,i.async,o);if(null==e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function a8e(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),o){var u,l=i.highlight;try{i.hooks&&(e=i.hooks.preprocess(e)),u=n(e,i)}catch(L){return s(L)}var d=function(z){var q;if(!z)try{i.walkTokens&&Nr.walkTokens(u,i.walkTokens),q=r(u,i),i.hooks&&(q=i.hooks.postprocess(q))}catch(re){z=re}return i.highlight=l,z?s(z):o(null,q)};if(!l||l.length<3||(delete i.highlight,!u.length))return d();var h=0;return Nr.walkTokens(u,function(L){"code"===L.type&&(h++,setTimeout(function(){l(L.text,L.lang,function(z,q){if(z)return d(z);null!=q&&q!==L.text&&(L.text=q,L.escaped=!0),0===--h&&d()})},0))}),void(0===h&&d())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(function(L){return n(L,i)}).then(function(L){return i.walkTokens?Promise.all(Nr.walkTokens(L,i.walkTokens)).then(function(){return L}):L}).then(function(L){return r(L,i)}).then(function(L){return i.hooks?i.hooks.postprocess(L):L}).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));var g=n(e,i);i.walkTokens&&Nr.walkTokens(g,i.walkTokens);var y=r(g,i);return i.hooks&&(y=i.hooks.postprocess(y)),y}catch(L){return s(L)}}}function Nr(n,r,e){return Lse(tT.lex,nT.parse)(n,r,e)}(0,Yw.Z)(uA,"passThroughHooks",new Set(["preprocess","postprocess"])),Nr.options=Nr.setOptions=function(n){return Nr.defaults=Vr(Vr({},Nr.defaults),n),function Y4e(n){ov=n}(Nr.defaults),Nr},Nr.getDefaults=eW,Nr.defaults=ov,Nr.use=function(){for(var n=Nr.defaults.extensions||{renderers:{},childTokens:{}},r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];e.forEach(function(o){var a=Vr({},o);if(a.async=Nr.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach(function(re){if(!re.name)throw new Error("extension name required");if(re.renderer){var ae=n.renderers[re.name];n.renderers[re.name]=ae?function(){for(var Se=arguments.length,Ce=new Array(Se),Ee=0;Ee<Se;Ee++)Ce[Ee]=arguments[Ee];var Ke=re.renderer.apply(this,Ce);return!1===Ke&&(Ke=ae.apply(this,Ce)),Ke}:re.renderer}if(re.tokenizer){if(!re.level||"block"!==re.level&&"inline"!==re.level)throw new Error("extension level must be 'block' or 'inline'");n[re.level]?n[re.level].unshift(re.tokenizer):n[re.level]=[re.tokenizer],re.start&&("block"===re.level?n.startBlock?n.startBlock.push(re.start):n.startBlock=[re.start]:"inline"===re.level&&(n.startInline?n.startInline.push(re.start):n.startInline=[re.start]))}re.childTokens&&(n.childTokens[re.name]=re.childTokens)}),a.extensions=n),o.renderer){var s=Nr.defaults.renderer||new AF,l=function(ae){var Se=s[ae];s[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke<Ce;Ke++)Ee[Ke]=arguments[Ke];var st=o.renderer[ae].apply(s,Ee);return!1===st&&(st=Se.apply(s,Ee)),st}};for(var u in o.renderer)l(u);a.renderer=s}if(o.tokenizer){var d=Nr.defaults.tokenizer||new DF,h=function(ae){var Se=d[ae];d[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke<Ce;Ke++)Ee[Ke]=arguments[Ke];var st=o.tokenizer[ae].apply(d,Ee);return!1===st&&(st=Se.apply(d,Ee)),st}};for(var g in o.tokenizer)h(g);a.tokenizer=d}if(o.hooks){var y=Nr.defaults.hooks||new uA,L=function(ae){var Se=y[ae];uA.passThroughHooks.has(ae)?y[ae]=function(Ce){if(Nr.defaults.async)return Promise.resolve(o.hooks[ae].call(y,Ce)).then(function(Ke){return Se.call(y,Ke)});var Ee=o.hooks[ae].call(y,Ce);return Se.call(y,Ee)}:y[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke<Ce;Ke++)Ee[Ke]=arguments[Ke];var st=o.hooks[ae].apply(y,Ee);return!1===st&&(st=Se.apply(y,Ee)),st}};for(var z in o.hooks)L(z);a.hooks=y}if(o.walkTokens){var q=Nr.defaults.walkTokens;a.walkTokens=function(re){var ae=[];return ae.push(o.walkTokens.call(this,re)),q&&(ae=ae.concat(q.call(this,re))),ae}}Nr.setOptions(a)})},Nr.walkTokens=function(n,r){var o,e=[],i=(0,An.Z)(n);try{var a=function(){var l=o.value;switch(e=e.concat(r.call(Nr,l)),l.type){case"table":var d,u=(0,An.Z)(l.header);try{for(u.s();!(d=u.n()).done;){var h=d.value;e=e.concat(Nr.walkTokens(h.tokens,r))}}catch(ae){u.e(ae)}finally{u.f()}var y,g=(0,An.Z)(l.rows);try{for(g.s();!(y=g.n()).done;){var q,L=y.value,z=(0,An.Z)(L);try{for(z.s();!(q=z.n()).done;){var re=q.value;e=e.concat(Nr.walkTokens(re.tokens,r))}}catch(ae){z.e(ae)}finally{z.f()}}}catch(ae){g.e(ae)}finally{g.f()}break;case"list":e=e.concat(Nr.walkTokens(l.items,r));break;default:Nr.defaults.extensions&&Nr.defaults.extensions.childTokens&&Nr.defaults.extensions.childTokens[l.type]?Nr.defaults.extensions.childTokens[l.type].forEach(function(ae){e=e.concat(Nr.walkTokens(l[ae],r))}):l.tokens&&(e=e.concat(Nr.walkTokens(l.tokens,r)))}};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}return e},Nr.parseInline=Lse(tT.lexInline,nT.parseInline),Nr.Parser=nT,Nr.parser=nT.parse,Nr.Renderer=AF,Nr.TextRenderer=tW,Nr.Lexer=tT,Nr.lexer=tT.lex,Nr.Tokenizer=DF,Nr.Slugger=nW,Nr.Hooks=uA,Nr.parse=Nr;var c8e=Nr.options,d8e=Nr.setOptions,f8e=Nr.use,p8e=Nr.walkTokens,h8e=Nr.parseInline,m8e=Nr,_8e=nT.parse,g8e=tT.lex,cA=function(){function n(r,e){(0,B.Z)(this,n),this.elementRef=r,this.renderer=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.updateText()}},{key:"ngOnChanges",value:function(){this.updateText()}},{key:"updateText",value:function(){var e=this.text;if(e&&e.length>0){var i=ht(e);this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",i)}}}]),n}();function v8e(n,r){if(1&n&&(t.TgZ(0,"span"),t._UZ(1,"div",4),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.s9C("text",e.markdown)}}cA.\u0275fac=function(r){return new(r||cA)(t.Y36(t.SBq),t.Y36(t.Qsj))},cA.\u0275dir=t.lG2({type:cA,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[t.TTD]});var dA=function(){function n(r){(0,B.Z)(this,n),this.projectService=r,this.markdown=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e.markdown=i)})}}]),n}();dA.\u0275fac=function(r){return new(r||dA)(t.Y36(Vs.Y))},dA.\u0275cmp=t.Xpm({type:dA,selectors:[["app-readme-editor"]],inputs:{controller:"controller",project:"project"},decls:5,vars:2,consts:[["label","Edit"],["matInput","","type","text",1,"editorWrapper",3,"ngModel","ngModelChange"],["label","Preview"],[4,"ngIf"],["appMarked","",1,"textWrapper",3,"text"]],template:function(r,e){1&r&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab",0)(2,"textarea",1),t.NdJ("ngModelChange",function(o){return e.markdown=o}),t.qZA()(),t.TgZ(3,"mat-tab",2),t.YNc(4,v8e,2,1,"span",3),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngModel",e.markdown),t.xp6(2),t.Q6J("ngIf",e.markdown))},dependencies:[se.O5,J.Fj,J.JJ,J.On,Kn,Fi.SP,Fi.uX,cA],styles:[".textWrapper{height:500px!important;overflow-y:scroll}.editorWrapper{background-color:#fff;color:#000;height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var y8e=["editor"];function b8e(n,r){if(1&n&&(t.TgZ(0,"mat-tab",27),t._UZ(1,"app-readme-editor",28,29),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function C8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Name"),t.qZA())}function w8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.name," ")}}function k8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Value"),t.qZA())}function T8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.value)}}function M8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Actions"),t.qZA())}function S8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",31)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteVariable(a))}),t.TgZ(2,"mat-icon",33),t._uU(3,"delete"),t.qZA()()()}}function E8e(n,r){1&n&&t._UZ(0,"tr",34)}function x8e(n,r){1&n&&t._UZ(0,"tr",35)}var OF=function(){return{standalone:!0}},fA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.projectService=i,this.toasterService=o,this.nonNegativeValidator=a,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,a.get]),height:new J.p4("",[J.kI.required,a.get]),nodeGridSize:new J.p4("",[J.kI.required,a.get]),drawingGridSize:new J.p4("",[J.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new J.p4("",[J.kI.required]),value:new J.p4("",[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach(function(i){return e.variables.push(i)}),this.auto_close=!this.project.auto_close}},{key:"addVariable",value:function(){if(this.variableFormGroup.valid){var e={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([e])}else this.toasterService.error("Fill all required fields with correct values.")}},{key:"deleteVariable",value:function(e){this.variables=this.variables.filter(function(i){return i!==e})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.auto_close,this.projectService.update(this.controller,this.project).subscribe(function(i){e.projectService.postReadmeFile(e.controller,e.project.project_id,e.editor.markdown).subscribe(function(o){e.toasterService.success("Project ".concat(i.name," updated.")),e.onNoClick()})})):this.toasterService.error("Fill all required fields with correct values.")}}]),n}();function D8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function A8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}fA.\u0275fac=function(r){return new(r||fA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Vs.Y),t.Y36(Zn),t.Y36(uf))},fA.\u0275cmp=t.Xpm({type:fA,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(y8e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.editor=i.first))},decls:50,vars:18,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Readme",4,"ngIf"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Readme"],[3,"controller","project"],["editor",""],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Edit project"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group")(4,"mat-tab",2)(5,"form",3)(6,"mat-form-field",4),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",4),t._UZ(9,"input",6),t.qZA(),t.TgZ(10,"mat-form-field",4),t._UZ(11,"input",7),t.qZA(),t.TgZ(12,"mat-form-field",4),t._UZ(13,"input",8),t.qZA(),t.TgZ(14,"mat-form-field",4),t._UZ(15,"input",9),t.qZA()(),t.TgZ(16,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_open=o}),t._uU(17," Open this project in the background when GNS3 controller starts "),t.qZA(),t.TgZ(18,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_start=o}),t._uU(19," Start all nodes when this project is opened "),t.qZA(),t.TgZ(20,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.auto_close=o}),t._uU(21," Leave this project running in the background after closing "),t.qZA(),t.TgZ(22,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.show_interface_labels=o}),t._uU(23," Show interface labels at start "),t.qZA()(),t.YNc(24,b8e,3,2,"mat-tab",11),t.TgZ(25,"mat-tab",12)(26,"form",3)(27,"mat-form-field",4),t._UZ(28,"input",13),t.qZA(),t.TgZ(29,"mat-form-field",4),t._UZ(30,"input",14),t.qZA()(),t.TgZ(31,"button",15),t.NdJ("click",function(){return e.addVariable()}),t._uU(32,"Add variable"),t.qZA(),t.TgZ(33,"table",16),t.ynx(34,17),t.YNc(35,C8e,2,0,"th",18),t.YNc(36,w8e,2,1,"td",19),t.BQk(),t.ynx(37,20),t.YNc(38,k8e,2,0,"th",18),t.YNc(39,T8e,2,1,"td",19),t.BQk(),t.ynx(40,21),t.YNc(41,M8e,2,0,"th",18),t.YNc(42,S8e,4,0,"td",19),t.BQk(),t.YNc(43,E8e,1,0,"tr",22),t.YNc(44,x8e,1,0,"tr",23),t.qZA()()()(),t.TgZ(45,"div",24)(46,"button",25),t.NdJ("click",function(){return e.onNoClick()}),t._uU(47,"Cancel"),t.qZA(),t.TgZ(48,"button",26),t.NdJ("click",function(){return e.onYesClick()}),t._uU(49,"Apply"),t.qZA()()),2&r&&(t.xp6(5),t.Q6J("formGroup",e.formGroup),t.xp6(11),t.Q6J("ngModelOptions",t.DdM(14,OF))("ngModel",e.project.auto_open),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,OF))("ngModel",e.project.auto_start),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,OF))("ngModel",e.auto_close),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,OF))("ngModel",e.project.show_interface_labels),t.xp6(2),t.Q6J("ngIf",e.controller&&e.project),t.xp6(2),t.Q6J("formGroup",e.variableFormGroup),t.xp6(7),t.Q6J("dataSource",e.variables),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,dr,ti,mi,Fi.SP,Fi.uX,dA],styles:[".form-field[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}"]});var O8e=function(r){return{empty:r}},P8e=function(r){return{"is-invalid":r}},rT=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.dialog=r,this.dialogRef=e,this.data=i,this.formBuilder=o,this.projectService=a,this.projectNameValidator=s,this.toasterService=l,this.uploadServiceService=u,this.snackBar=d,this.uploadProgress=0,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){var l=JSON.parse(o);e.resultMessage="An error has occurred: "+l.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(i,o,a,s){e.onImportProject.emit(e.uuid),e.resultMessage="Project was imported succesfully!",e.isFinishEnabled=!0},this.uploader.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"uploadProjectFile",value:function(e){this.projectNameForm.controls.projectName.setValue(e.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0}},{key:"onImportClick",value:function(){var e=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.importProject()})}},{key:"importProject",value:function(){var e=this.prepareUploadPath();this.uploader.queue.forEach(function(o){return o.url=e}),this.uploader.authToken="Bearer ".concat(this.controller.authToken),this.isFirstStepCompleted=!0;var i=this.uploader.queue[0];this.uploader.uploadItem(i),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Project"}})}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open($k,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.importProject()})})})}},{key:"onNoClick",value:function(){this.uploader.cancelAll(),this.dialogRef.close(!1)}},{key:"onFinishClick",value:function(){this.dialogRef.close(!1)}},{key:"onDeleteClick",value:function(){this.uploader.queue.pop(),this.isImportEnabled=!1,this.isDeleteVisible=!1,this.projectNameForm.controls.projectName.setValue("")}},{key:"prepareUploadPath",value:function(){this.uuid=ns();var e=this.projectNameForm.controls.projectName.value;return this.projectService.getUploadPath(this.controller,this.uuid,e)}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1),this.isFirstStepCompleted=!1,this.uploader.cancelAll(),this.dialogRef.close(!0)}}]),n}();rT.\u0275fac=function(r){return new(r||rT)(t.Y36(Gr),t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Vs.Y),t.Y36(Ku),t.Y36(Zn),t.Y36(ad),t.Y36(rd))},rT.\u0275cmp=t.Xpm({type:rT,selectors:[["app-import-project-dialog"]],features:[t._Bn([Ku])],decls:27,vars:16,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Import project"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"input",3,4),t.NdJ("change",function(a){return e.uploadProjectFile(a)}),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(5);return t.KtG(a.click())}),t._uU(7," Choose file "),t.qZA(),t.TgZ(8,"mat-form-field",6),t._UZ(9,"input",7),t.YNc(10,D8e,2,0,"mat-error",8),t.YNc(11,A8e,2,0,"mat-error",8),t.qZA(),t.TgZ(12,"button",9)(13,"mat-icon",10),t.NdJ("click",function(){return e.onDeleteClick()}),t._uU(14,"clear"),t.qZA()(),t.TgZ(15,"div",11)(16,"button",12),t.NdJ("click",function(){return e.onNoClick()}),t._uU(17,"Cancel"),t.qZA(),t.TgZ(18,"button",13),t.NdJ("click",function(){return e.onImportClick()}),t._uU(19," Import "),t.qZA()()()(),t.TgZ(20,"div",1)(21,"div",14)(22,"span"),t._uU(23),t.qZA()(),t.TgZ(24,"div",11)(25,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(26," Finish "),t.qZA()()()}2&r&&(t.xp6(2),t.Q6J("hidden",e.isFirstStepCompleted),t.xp6(1),t.Q6J("formGroup",e.projectNameForm),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(4),t.Q6J("ngClass",t.VKq(12,O8e,!e.isDeleteVisible)),t.xp6(1),t.Q6J("ngClass",t.VKq(14,P8e,e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.required),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.invalidName),t.xp6(1),t.Q6J("hidden",!e.isDeleteVisible),t.xp6(6),t.Q6J("disabled",!e.isImportEnabled),t.xp6(2),t.Q6J("hidden",!e.isFirstStepCompleted),t.xp6(3),t.Oqu(e.resultMessage),t.xp6(2),t.Q6J("disabled",!e.isFinishEnabled))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,Mp,kn.TO,kn.KE,dn,Dn,Kn,yr,dr,mi],styles:['.non-visible[_ngcontent-%COMP%]{display:none}.file-button[_ngcontent-%COMP%]{width:100%;margin-top:5px;margin-bottom:10px;padding:0}.file-name-form[_ngcontent-%COMP%]{float:right;width:100%}.file-name-form-field[_ngcontent-%COMP%]{width:90%}.empty[_ngcontent-%COMP%]{width:100%}.delete-button[_ngcontent-%COMP%]{background:transparent;border:none;outline:0;width:10%}.delete-icon[_ngcontent-%COMP%]{vertical-align:"middle"}.result-message-box[_ngcontent-%COMP%]{margin-top:10px;text-align:center}.progress-bar[_ngcontent-%COMP%]{background-color:#0097a7}']});var I8e=function(r){return{lightTheme:r}},iT=function(){function n(r,e){(0,B.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();function R8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function L8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}iT.\u0275fac=function(r){return new(r||iT)(t.Y36(MF),t.Y36(wc.f))},iT.\u0275cmp=t.Xpm({type:iT,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,I8e,e.isLightThemeEnabled)),t.xp6(2),t.hij("Do you want to navigate to ",e.projectMessage,"?"))},dependencies:[se.mk,dn],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]});var Z8e=function(r){return{"is-invalid":r}},pA=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.projectService=e,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Project with this name already exists."):e.nodesDataSource.getItems().filter(function(s){return"started"===s.status&&"vpcs"===s.node_type||"started"===s.status&&"virtualbox"===s.node_type||"started"===s.status&&"vmware"===s.node_type}).length>0?e.toasterService.error("Please stop all nodes in order to save project."):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added"))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();pA.\u0275fac=function(r){return new(r||pA)(t.Y36(cr),t.Y36(Vs.Y),t.Y36(za.G),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku))},pA.\u0275cmp=t.Xpm({type:pA,selectors:[["app-save-project-dialog"]],features:[t._Bn([Ku])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,R8e,2,0,"mat-error",4),t.YNc(6,L8e,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(11,"Save project"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,Z8e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Fr=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getNodeById",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/nodes/").concat(o))}},{key:"isolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/isolate"),{})}},{key:"unisolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/unisolate"),{})}},{key:"start",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/start"),{})}},{key:"startAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/start"),{})}},{key:"stop",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/stop"),{})}},{key:"stopAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/stop"),{})}},{key:"suspend",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/suspend"),{})}},{key:"suspendAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/suspend"),{})}},{key:"reload",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/reload"),{})}},{key:"reloadAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/reload"),{})}},{key:"resetAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/console/reset"),{})}},{key:"createFromTemplate",value:function(e,i,o,a,s,l){return l?this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:l}):this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:"local"})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(l=Math.round((l+o.width/2)/i.grid_size)*i.grid_size,u=Math.round((u+o.height/2)/i.grid_size)*i.grid_size,l=Math.round(l-o.width/2),u=Math.round(u-o.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/nodes/").concat(o.node_id),{x:l,y:u})}},{key:"updateLabel",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{label:{rotation:o.rotation,style:o.style,text:o.text,x:Math.round(o.x),y:Math.round(o.y)}})}},{key:"updateSymbol",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{symbol:o})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"updateNode",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,locked:i.locked,name:i.name,properties:i.properties})}},{key:"updateNodeWithCustomAdapters",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,custom_adapters:i.custom_adapters,name:i.name,properties:i.properties})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"duplicate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/duplicate"),{x:i.x+10,y:i.y+10,z:i.z})}},{key:"getNode",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"getDefaultCommand",value:function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'}},{key:"getNetworkConfiguration",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),{responseType:"text"})}},{key:"saveNetworkConfiguration",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),o)}},{key:"getStartupConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?o+="/files/startup.vpc":"iou"===i.node_type?o+="/files/startup-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.node_id,"_startup-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"getPrivateConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?o+="/files/private-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.node_id,"_private-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"saveConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?a+="/files/startup.vpc":"iou"===i.node_type?a+="/files/startup-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.node_id,"_startup-config.cfg")),this.httpController.post(e,a,o)}},{key:"savePrivateConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?a+="/files/private-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.node_id,"_private-config.cfg")),this.httpController.post(e,a,o)}}]),n}();function N8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start"),t.qZA()()}}Fr.\u0275fac=function(r){return new(r||Fr)(t.LFG(ho.zw))},Fr.\u0275prov=t.Yz7({token:Fr,factory:Fr.\u0275fac});var hA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach(function(o){("stopped"===o.status||"suspended"===o.status)&&(i.isNodeWithStoppedStatus=!0)}))}},{key:"startNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.start(e.controller,i).subscribe(function(o){},function(o){e.toasterService.error(o.error.message)})})}}]),n}();hA.\u0275fac=function(r){return new(r||hA)(t.Y36(Fr),t.Y36(Zn))},hA.\u0275cmp=t.Xpm({type:hA,selectors:[["app-start-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,N8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStoppedStatus)},dependencies:[se.O5,Er,Dn],encapsulation:2});var mA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"isolate",value:function(){var e=this;this.nodeService.isolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();mA.\u0275fac=function(r){return new(r||mA)(t.Y36(Fr),t.Y36(Zn))},mA.\u0275cmp=t.Xpm({type:mA,selectors:[["app-isolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.isolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_off"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Isolate"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var _A=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"unisolate",value:function(){var e=this;this.nodeService.unisolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();function B8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"stop"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop"),t.qZA()()}}_A.\u0275fac=function(r){return new(r||_A)(t.Y36(Fr),t.Y36(Zn))},_A.\u0275cmp=t.Xpm({type:_A,selectors:[["app-unisolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.unisolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_not_fixed"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Un-isolate"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var gA=function(){function n(r){(0,B.Z)(this,n),this.nodeService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"stopNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.stop(e.controller,i).subscribe(function(o){})})}}]),n}();gA.\u0275fac=function(r){return new(r||gA)(t.Y36(Fr))},gA.\u0275cmp=t.Xpm({type:gA,selectors:[["app-stop-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,B8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[se.O5,Er,Dn],encapsulation:2});var ya=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(YB.o);ya.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ya)))(e||ya)}}(),ya.\u0275prov=t.Yz7({token:ya,factory:ya.\u0275fac});var Wa=function(){function n(r,e){(0,B.Z)(this,n),this.httpController=r,this.svgToDrawingConverter=e}return(0,U.Z)(n,[{key:"add",value:function(e,i,o,a,s){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:s,x:Math.round(o),y:Math.round(a),z:1})}},{key:"duplicate",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:o.svg,rotation:o.rotation,x:o.x+10,y:o.y+10,z:o.z})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(o.element=this.svgToDrawingConverter.convert(o.svg),l=Math.round((l+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,u=Math.round((u+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,l=Math.round(l-o.element.width/2),u=Math.round(u-o.element.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/drawings/").concat(o.drawing_id),{x:l,y:u})}},{key:"updateSizeAndPosition",value:function(e,i,o,a,s){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:s,x:Math.round(o),y:Math.round(a)})}},{key:"updateText",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:o,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{locked:i.locked,svg:i.svg,rotation:i.rotation,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id))}},{key:"lockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/lock"),{})}},{key:"unLockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/unlock"),{})}}]),n}();Wa.\u0275fac=function(r){return new(r||Wa)(t.LFG(ho.zw),t.LFG(Wp))},Wa.\u0275prov=t.Yz7({token:Wa,factory:Wa.\u0275fac});var vA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerDown",value:function(){var e=this;this.nodes.forEach(function(i){i.z--,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z--,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();vA.\u0275fac=function(r){return new(r||vA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},vA.\u0275cmp=t.Xpm({type:vA,selectors:[["app-move-layer-down-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerDown()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_down"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer down"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var yA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerUp",value:function(){var e=this;this.nodes.forEach(function(i){i.z++,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z++,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();yA.\u0275fac=function(r){return new(r||yA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},yA.\u0275cmp=t.Xpm({type:yA,selectors:[["app-move-layer-up-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerUp()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_up"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer up"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var _d=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i,o="";if(e.element instanceof af)o="".concat(""==e.element.stroke_dasharray?'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'):'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'));else if(e.element instanceof ea)o="".concat(""==e.element.stroke_dasharray?'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'"/>'):'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" />'));else if(e.element instanceof bb)o='<line stroke="'.concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" x1="').concat(e.element.x1,'" x2="').concat(e.element.x2,'" y1="').concat(e.element.y1,'" y2="').concat(e.element.y2,'" stroke-dasharray="').concat(null!==(i=e.element.stroke_dasharray)&&void 0!==i?i:"none",'" />');else{if(!(e.element instanceof Cb))return"";o='<text fill="'.concat(e.element.fill,'" fill-opacity="1.0" font-family="').concat(e.element.font_family,'" font-size="').concat(e.element.font_size,'" font-weight="').concat(e.element.font_weight,'">').concat(e.element.text,"</text>")}return'<svg height="'.concat(e.element.height,'" width="').concat(e.element.width,'">').concat(o,"</svg>")}}]),n}();_d.\u0275fac=function(r){return new(r||_d)},_d.\u0275prov=t.Yz7({token:_d,factory:_d.\u0275fac});var av=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}}}]),n}();av.\u0275fac=function(r){return new(r||av)},av.\u0275prov=t.Yz7({token:av,factory:av.\u0275fac});var oT=function(){return{standalone:!0}};function F8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.fill=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,oT))("ngModel",i.element.fill)}}function U8e(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.value),t.xp6(1),t.hij(" ",e.name," ")}}function j8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.width=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,oT))("ngModel",i.element.width)}}function H8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.height=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,oT))("ngModel",i.element.height)}}function G8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.rx=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,oT))("ngModel",i.element.rx)}}var bA=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.formBuilder=s,this.toasterService=l,this.nonNegativeValidator=u,this.rotationValidator=d,this.qtDasharrayFixer=h,this.borderTypes=[{qt:"none",value:"none",name:"Solid"},{qt:"10, 2",value:"25, 25",name:"Dash"},{qt:"4, 2",value:"5, 25",name:"Dot"},{qt:"12, 3, 5, 3",value:"5, 25, 25",name:"Dash Dot"},{qt:"12, 3, 5, 3, 5, 3",value:"25, 25, 5, 25, 5",name:"Dash Dot Dot"},{qt:"",value:"",name:"No border"}],this.formGroup=this.formBuilder.group({borderWidth:new J.p4("",[J.kI.required,u.get]),rotation:new J.p4("",[J.kI.required,d.get])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e,i;this.element=new z8e,this.drawing.element instanceof af||this.drawing.element instanceof ea?(this.element.fill=this.drawing.element.fill,this.element.width=this.drawing.element.width,this.element.height=this.drawing.element.height,this.element.stroke=this.drawing.element.stroke,console.log(this.drawing.element.stroke_dasharray,this.drawing.element.stroke_width),this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(e=this.drawing.element.stroke_dasharray)&&void 0!==e?e:"none",this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof bb&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(i=this.drawing.element.stroke_dasharray)&&void 0!==i?i:"none",this.element.stroke_width=this.drawing.element.stroke_width),this.drawing.element instanceof af&&(this.element.rx=this.drawing.element.rx,this.element.ry=this.drawing.element.ry),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var i,o,e=this;if(this.formGroup.valid){""==this.element.stroke_dasharray?this.element.stroke_width=0:this.element.stroke_width=0===this.formGroup.get("borderWidth").value?2:this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof af||this.drawing.element instanceof ea?(this.drawing.element.fill=this.element.fill,this.drawing.element.width=this.element.width,this.drawing.element.height=this.element.height,this.drawing.element.stroke=null!==(i=this.element.stroke)&&void 0!==i?i:"#000000",this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof bb&&(""!=this.element.stroke_dasharray?(this.drawing.element.stroke=null!==(o=this.element.stroke)&&void 0!==o?o:"#000000",this.drawing.element.stroke_dasharray=""===this.element.stroke_dasharray?"none":this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width):this.toasterService.warning("No border style line element not supported"),this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width),this.drawing.element instanceof af&&(this.drawing.element.rx=this.element.rx,this.drawing.element.ry=this.element.rx);var a=this.drawingToMapDrawingConverter.convert(this.drawing);a.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(a),this.drawingService.update(this.controller,this.drawing).subscribe(function(s){e.drawingsDataSource.update(s),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();bA.\u0275fac=function(r){return new(r||bA)(t.Y36(cr),t.Y36(Bm),t.Y36(_d),t.Y36(Wa),t.Y36(ya),t.Y36(J.QS),t.Y36(Zn),t.Y36(uf),t.Y36(av),t.Y36(Yu))},bA.\u0275cmp=t.Xpm({type:bA,selectors:[["app-style-editor"]],decls:22,vars:12,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number","min","0","max","100"],["placeholder","Border style",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","placeholder","Width","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Height","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Corner radius","type","number","min","0","max","100",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2),t.YNc(4,F8e,2,3,"mat-form-field",3),t.TgZ(5,"mat-form-field",4)(6,"input",5),t.NdJ("ngModelChange",function(o){return e.element.stroke=o}),t.qZA()(),t.TgZ(7,"mat-form-field",4),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-form-field",4)(10,"mat-select",7),t.NdJ("ngModelChange",function(o){return e.element.stroke_dasharray=o}),t.YNc(11,U8e,2,2,"mat-option",8),t.qZA()(),t.YNc(12,j8e,2,3,"mat-form-field",3),t.YNc(13,H8e,2,3,"mat-form-field",3),t.YNc(14,G8e,2,3,"mat-form-field",3),t.TgZ(15,"mat-form-field",4),t._UZ(16,"input",9),t.qZA()()(),t.TgZ(17,"div",10)(18,"button",11),t.NdJ("click",function(){return e.onNoClick()}),t._uU(19,"Cancel"),t.qZA(),t.TgZ(20,"button",12),t.NdJ("click",function(){return e.onYesClick()}),t._uU(21,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.fill),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(10,oT))("ngModel",e.element.stroke),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(11,oT))("ngModel",e.element.stroke_dasharray),t.xp6(1),t.Q6J("ngForOf",e.borderTypes),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.width),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.height),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.rx))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.Fd,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,dr,ri.gD,Gt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var z8e=(0,U.Z)(function n(){(0,B.Z)(this,n)});function W8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editStyle())}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()()}}var CA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r,this.isImageDrawing=!1}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof TF}},{key:"editStyle",value:function(){var i=this.dialog.open(bA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing}}]),n}();function V8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}CA.\u0275fac=function(r){return new(r||CA)(t.Y36(Gr))},CA.\u0275cmp=t.Xpm({type:CA,selectors:[["app-edit-style-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,W8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.isImageDrawing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var wA=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.linkService=o,this.linksDataSource=a,this.linksEventSource=s,this.linkToMapLink=l,this.nonNegativeValidator=u,this.borderTypes=["Solid","Dash","Dot","Dash Dot","Dash Dot Dot"],this.formGroup=this.formBuilder.group({color:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,u.get]),type:new J.p4("",[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e,i;null!==(e=this.link.link_style)&&void 0!==e&&e.color?this.formGroup.controls.color.setValue(this.link.link_style.color):this.formGroup.controls.color.setValue("#000000"),this.formGroup.controls.width.setValue(this.link.link_style.width);var o=this.borderTypes[0];!(null===(i=this.link.link_style)||void 0===i)&&i.type&&(o=this.borderTypes[this.link.link_style.type]),this.formGroup.controls.type.setValue(o)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){this.link.link_style.color=this.formGroup.get("color").value,this.link.link_style.width=this.formGroup.get("width").value;var i=this.borderTypes.indexOf(this.formGroup.get("type").value);this.link.link_style.type=i,this.linkService.updateLinkStyle(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.linksEventSource.edited.next(e.linkToMapLink.convert(o)),location.reload(),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();wA.\u0275fac=function(r){return new(r||wA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Zn),t.Y36(pl),t.Y36(jm.F),t.Y36(hd),t.Y36(Kg),t.Y36(uf))},wA.\u0275cmp=t.Xpm({type:wA,selectors:[["app-link-style-editor"]],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Color","formControlName","color","type","color"],["matInput","","formControlName","width","placeholder","Width","type","number"],["placeholder","Type","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3),t._UZ(5,"input",4),t.qZA(),t.TgZ(6,"mat-form-field",3),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",3)(9,"mat-select",6),t.YNc(10,V8e,2,2,"mat-option",7),t.qZA()()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(7),t.Q6J("ngForOf",e.borderTypes))},dependencies:[se.sg,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,Kn,yr,dr,ri.gD,Gt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var kA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(wA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();kA.\u0275fac=function(r){return new(r||kA)(t.Y36(Gr))},kA.\u0275cmp=t.Xpm({type:kA,selectors:[["app-edit-link-style-action"]],inputs:{controller:"controller",project:"project",link:"link"},features:[t.TTD],decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editStyle()}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var Y8e=["textArea"],TA=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L,z){(0,B.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.renderer=s,this.nodeService=l,this.nodesDataSource=u,this.linkService=d,this.linksDataSource=h,this.formBuilder=g,this.toasterService=y,this.rotationValidator=L,this.fontFixer=z}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new J.p4("",[J.kI.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find(function(o){return o.node_id===e.linkNode.node_id}).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var i={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};i=this.fontFixer.fix(i),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",i.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size","".concat(i.font_size,"pt")),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",i.font_weight)}},{key:"getTextElementFromLabel",value:function(){var a,e=[],i=new Cb,o=(0,An.Z)(this.label.style.split(";"));try{for(o.s();!(a=o.n()).done;){var s=a.value;e.push({property:s.split(": ")[0],value:s.split(": ")[1]})}}catch(l){o.e(l)}finally{o.f()}return i.text=this.label.text?this.label.text:"",i.font_family=e.find(function(l){return"font-family"===l.property})?e.find(function(l){return"font-family"===l.property}).value:"TypeWriter",i.font_size=e.find(function(l){return"font-size"===l.property})?+e.find(function(l){return"font-size"===l.property}).value:10,i.font_weight=e.find(function(l){return"font-weight"===l.property})?e.find(function(l){return"font-weight"===l.property}).value:"normal",i.fill=e.find(function(l){return"fill"===l.property})?e.find(function(l){return"fill"===l.property}).value:"#000000",i.fill_opacity=e.find(function(l){return"fill-opacity"===l.property})?+e.find(function(l){return"fill-opacity"===l.property}).value:1,i}},{key:"getStyleFromTextElement",value:function(){return"font-family: ".concat(this.element.font_family,";font-size: ").concat(this.element.font_size,";font-weight: ").concat(this.element.font_weight,";fill: ").concat(this.element.fill,";fill-opacity: ").concat(this.element.fill_opacity,";")}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.controller,this.node,this.node.label).subscribe(function(o){e.nodesDataSource.update(o),e.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var i=this.drawingToMapDrawingConverter.convert(this.drawing);i.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(i),this.drawingService.update(this.controller,this.drawing).subscribe(function(o){e.drawingsDataSource.update(o),e.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")}},{key:"changeTextColor",value:function(e){this.renderer.setStyle(this.textArea.nativeElement,"color",e)}}]),n}();TA.\u0275fac=function(r){return new(r||TA)(t.Y36(cr),t.Y36(Bm),t.Y36(_d),t.Y36(Wa),t.Y36(ya),t.Y36(t.Qsj),t.Y36(Fr),t.Y36(za.G),t.Y36(pl),t.Y36(jm.F),t.Y36(J.QS),t.Y36(Zn),t.Y36(av),t.Y36(os))},TA.\u0275cmp=t.Xpm({type:TA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Y8e,7),2&r)&&(t.iGM(i=t.CRH())&&(e.textArea=i.first))},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Text editor"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.changeTextColor(o)})("ngModelChange",function(o){return e.element.fill=o}),t.qZA()(),t.TgZ(5,"form",4)(6,"mat-form-field",2),t._UZ(7,"input",5),t.qZA()(),t.TgZ(8,"textarea",6,7),t.NdJ("ngModelChange",function(o){return e.element.text=o}),t.qZA()(),t.TgZ(10,"div",8)(11,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(14,"Apply"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.element.fill),t.xp6(1),t.Q6J("formGroup",e.formGroup),t.xp6(3),t.Q6J("ngModel",e.element.text)("readonly",!e.isTextEditable))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,dr],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var MA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(TA,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing,i.node=this.node,i.label=this.label,i.link=this.link,i.linkNode=this.linkNode}}]),n}();MA.\u0275fac=function(r){return new(r||MA)(t.Y36(Gr))},MA.\u0275cmp=t.Xpm({type:MA,selectors:[["app-edit-text-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editText()}),t.TgZ(1,"mat-icon"),t._uU(2,"text_format"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit text"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var SA=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.linksDataSource=i,this.nodeService=o,this.drawingService=a,this.linkService=s,this.bottomSheet=l}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"confirmDelete",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete all selected objects?";i.afterDismissed().subscribe(function(a){a&&e.delete()})}},{key:"delete",value:function(){var e=this;this.nodes.forEach(function(i){e.nodesDataSource.remove(i),e.nodeService.delete(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){e.drawingsDataSource.remove(i),e.drawingService.delete(e.controller,i).subscribe(function(o){})}),this.links.forEach(function(i){e.linksDataSource.remove(i),e.linkService.deleteLink(e.controller,i).subscribe(function(){})})}}]),n}();SA.\u0275fac=function(r){return new(r||SA)(t.Y36(za.G),t.Y36(ya),t.Y36(jm.F),t.Y36(Fr),t.Y36(Wa),t.Y36(pl),t.Y36(lf))},SA.\u0275cmp=t.Xpm({type:SA,selectors:[["app-delete-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.confirmDelete()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Delete"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var EA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,U.Z)(n,[{key:"duplicate",value:function(){var a,e=this,i="",o=(0,An.Z)(this.nodes);try{for(o.s();!(a=o.n()).done;){var s=a.value;"stopped"===s.status?this.nodeService.duplicate(this.controller,s).subscribe(function(h){e.nodesDataSource.add(h)}):i+="".concat(s.name,", ")}}catch(h){o.e(h)}finally{o.f()}var u,l=(0,An.Z)(this.drawings);try{for(l.s();!(u=l.n()).done;){var d=u.value;this.drawingService.duplicate(this.controller,d.project_id,d).subscribe(function(h){e.drawingsDataSource.add(h)})}}catch(h){l.e(h)}finally{l.f()}i.length>0&&(i=i.substring(0,i.length-2),this.toasterService.error("Cannot duplicate node data for nodes: ".concat(i)))}}]),n}();function K8e(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"h6"),t._uU(2),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.hij(" ",e.name," "),t.xp6(2),t.hij(" ",e.description," ")}}EA.\u0275fac=function(r){return new(r||EA)(t.Y36(Fr),t.Y36(za.G),t.Y36(Wa),t.Y36(ya),t.Y36(Zn))},EA.\u0275cmp=t.Xpm({type:EA,selectors:[["app-duplicate-action"]],inputs:{controller:"controller",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.duplicate()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Duplicate"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var xA=function(){function n(r){(0,B.Z)(this,n),this.dialogRef=r}return(0,U.Z)(n,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();function q8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"mat-form-field",10)(3,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.frequency_drop[0]=a)}),t.qZA()()(),t.TgZ(4,"mat-tab",12)(5,"mat-form-field",10)(6,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.packet_loss[0]=a)}),t.qZA()()(),t.TgZ(7,"mat-tab",14)(8,"mat-form-field",10)(9,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[0]=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",10)(11,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[1]=a)}),t.qZA()()(),t.TgZ(12,"mat-tab",17)(13,"mat-form-field",10)(14,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.corrupt[0]=a)}),t.qZA()()(),t.TgZ(15,"mat-tab",18)(16,"mat-form-field",10)(17,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.bpf[0]=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.filters.frequency_drop[0]),t.xp6(3),t.Q6J("ngModel",i.filters.packet_loss[0]),t.xp6(3),t.Q6J("ngModel",i.filters.delay[0]),t.xp6(2),t.Q6J("ngModel",i.filters.delay[1]),t.xp6(3),t.Q6J("ngModel",i.filters.corrupt[0]),t.xp6(3),t.Q6J("ngModel",i.filters.bpf[0])}}xA.\u0275fac=function(r){return new(r||xA)(t.Y36(cr))},xA.\u0275cmp=t.Xpm({type:xA,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,K8e,5,2,"div",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(6,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.title),t.xp6(2),t.Q6J("ngForOf",e.messages))},dependencies:[se.sg,dn,yr,dr],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var DA=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkService.getLink(this.controller,this.link.project_id,this.link.link_id).subscribe(function(i){e.link=i,e.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},e.link.filters&&(e.filters.bpf=e.link.filters.bpf?e.link.filters.bpf:[],e.filters.corrupt=e.link.filters.corrupt?e.link.filters.corrupt:[0],e.filters.delay=e.link.filters.delay?e.link.filters.delay:[0,0],e.filters.frequency_drop=e.link.filters.frequency_drop?e.link.filters.frequency_drop:[0],e.filters.packet_loss=e.link.filters.packet_loss?e.link.filters.packet_loss:[0])}),this.linkService.getAvailableFilters(this.controller,this.link).subscribe(function(i){e.availableFilters=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onResetClick",value:function(){var e=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onYesClick",value:function(){var e=this;this.link.filters=this.filters,this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onHelpClick",value:function(){var i=this.dialog.open(xA,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.title="Help for filters";var o=[];this.availableFilters.forEach(function(a){o.push({name:a.name,description:a.description})}),i.messages=o}}]),n}();DA.\u0275fac=function(r){return new(r||DA)(t.Y36(cr),t.Y36(pl),t.Y36(Gr))},DA.\u0275cmp=t.Xpm({type:DA,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet filters"),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,q8e,18,6,"mat-tab-group",2),t.qZA(),t.TgZ(4,"div",3),t._UZ(5,"div",4),t.TgZ(6,"div",5)(7,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"Cancel"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onResetClick()}),t._uU(10,"Reset"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onYesClick()}),t._uU(12,"Apply"),t.qZA(),t._UZ(13,"div",8),t.TgZ(14,"button",6),t.NdJ("click",function(){return e.onHelpClick()}),t._uU(15,"Help"),t.qZA()()()),2&r&&(t.xp6(3),t.Q6J("ngIf",e.filters))},dependencies:[se.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Kn,yr,dr,Fi.SP,Fi.uX],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]});var AA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(DA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();AA.\u0275fac=function(r){return new(r||AA)(t.Y36(Gr))},AA.\u0275cmp=t.Xpm({type:AA,selectors:[["app-packet-filters-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openPacketFilters()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_list"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Packet filters"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var sv=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"startCapture",value:function(e,i,o,a){location.assign("gns3+pcap://".concat(e.host,":").concat(e.port,"?protocol=").concat(e.protocol.slice(0,-1),"&project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&project=").concat(i.name,"&name=").concat(a))}}]),n}();function J8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}sv.\u0275fac=function(r){return new(r||sv)},sv.\u0275prov=t.Yz7({token:sv,factory:sv.\u0275fac});var Q8e=function(){return{standalone:!0}},OA=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.linkService=e,this.formBuilder=i,this.toasterService=o,this.nodesDataSource=a,this.packetCaptureService=s,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new J.p4("",J.kI.required),fileName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"ethernet"===this.link.link_type?this.linkTypes=[["Ethernet","DLT_EN10MB"]]:this.linkTypes=[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var e=this.nodesDataSource.get(this.link.nodes[0].node_id),i=this.nodesDataSource.get(this.link.nodes[1].node_id),o=e.ports[this.link.nodes[0].port_number],a=i.ports[this.link.nodes[1].port_number];this.inputForm.controls.fileName.setValue("".concat(e.name,"_").concat(o.name,"_to_").concat(i.name,"_").concat(a.name).replace(new RegExp("[^0-9A-Za-z_-]","g"),""))}},{key:"onYesClick",value:function(){var e=this,i=!1;if(this.link.nodes.forEach(function(a){"started"===e.nodesDataSource.get(a.node_id).status&&(i=!0)}),i)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var o={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.controller,this.project,this.link,o.capture_file_name),this.linkService.startCaptureOnLink(this.controller,this.link,o).subscribe(function(){e.dialogRef.close()})}else this.toasterService.error("Cannot capture because there is no running device on this link")}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function X8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"loupe"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start capture"),t.qZA()()}}OA.\u0275fac=function(r){return new(r||OA)(t.Y36(cr),t.Y36(pl),t.Y36(J.QS),t.Y36(Zn),t.Y36(za.G),t.Y36(sv))},OA.\u0275cmp=t.Xpm({type:OA,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet capture"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-select",4),t.YNc(6,J8e,2,2,"mat-option",5),t.qZA()(),t.TgZ(7,"mat-form-field",3),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-checkbox",7),t.NdJ("ngModelChange",function(o){return e.startProgram=o}),t._uU(10," Start the capture visualization program "),t.qZA()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Ok"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngForOf",e.linkTypes),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(4,Q8e))("ngModel",e.startProgram))},dependencies:[se.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,dr,ti,ri.gD,Gt.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var PA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"startCapture",value:function(){var i=this.dialog.open(OA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();function $8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause_circle_filled"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop capture"),t.qZA()()}}PA.\u0275fac=function(r){return new(r||PA)(t.Y36(Gr))},PA.\u0275cmp=t.Xpm({type:PA,selectors:[["app-start-capture-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,X8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.capturing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var IA=function(){function n(r){(0,B.Z)(this,n),this.linkService=r}return(0,U.Z)(n,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),n}();function eUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.resumeLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Resume"),t.qZA()()}}IA.\u0275fac=function(r){return new(r||IA)(t.Y36(pl))},IA.\u0275cmp=t.Xpm({type:IA,selectors:[["app-stop-capture-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,$8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var RA=function(){function n(r){(0,B.Z)(this,n),this.linkService=r}return(0,U.Z)(n,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();function tUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}RA.\u0275fac=function(r){return new(r||RA)(t.Y36(pl))},RA.\u0275cmp=t.Xpm({type:RA,selectors:[["app-resume-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,eUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.suspend)},dependencies:[se.O5,Er,Dn],encapsulation:2});var LA=function(){function n(r){(0,B.Z)(this,n),this.linkService=r}return(0,U.Z)(n,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();LA.\u0275fac=function(r){return new(r||LA)(t.Y36(pl))},LA.\u0275cmp=t.Xpm({type:LA,selectors:[["app-suspend-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,tUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.suspend)},dependencies:[se.O5,Er,Dn],encapsulation:2});var Gm=m(9449),ZA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"console",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,a,s,l,u;return Rn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0!==this.nodes.filter(function(g){return"started"===g.status&&"none"!==g.console_type}).length){h.next=5;break}return this.toasterService.error("Device needs to be started in order to console to it."),h.abrupt("return");case 5:a=(0,An.Z)(this.nodes),h.prev=6,a.s();case 8:if((s=a.n()).done){h.next=17;break}if("started"===(l=s.value).status||"none"===l.console_type){h.next=12;break}return h.abrupt("continue",15);case 12:return u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=15,this.openConsole(u);case 15:h.next=8;break;case 17:h.next=22;break;case 19:h.prev=19,h.t0=h.catch(6),a.e(h.t0);case 22:return h.prev=22,a.f(),h.finish(22);case 25:case"end":return h.stop()}},e,this,[[6,19,22,25]])}))}},{key:"openConsole",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./console-executor.js").openConsole(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}}]),n}();ZA.\u0275fac=function(r){return new(r||ZA)(t.Y36(ul),t.Y36(or),t.Y36(Gm.g),t.Y36(Zn),t.Y36(Fr))},ZA.\u0275cmp=t.Xpm({type:ZA,selectors:[["app-console-device-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.console()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var Ab=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getInfoAboutNode",value:function(e,i){var o=[];return"cloud"===e.node_type?o.push("Cloud ".concat(e.name," is always on.")):"nat"===e.node_type?o.push("NAT ".concat(e.name," is always on.")):"ethernet-hub"===e.node_type?o.push("Ethernet hub ".concat(e.name," is always on.")):"ethernet_switch"===e.node_type?o.push("Ethernet switch ".concat(e.name," is always on.")):"frame_relay_switch"===e.node_type?o.push("Frame relay switch ".concat(e.name," is always on.")):"atm_switch"===e.node_type?o.push("ATM switch ".concat(e.name," is always on.")):"docker"===e.node_type?o.push("Docker ".concat(e.name," is ").concat(e.status,".")):"dynamips"===e.node_type?o.push("Dynamips ".concat(e.name," is always on.")):"virtualbox"===e.node_type?o.push("VirtualBox VM ".concat(e.name," is ").concat(e.status,".")):"vmware"===e.node_type?o.push("VMware VM ".concat(e.name," is ").concat(e.status,".")):"qemu"===e.node_type?o.push("QEMU VM ".concat(e.name," is ").concat(e.status,".")):"iou"===e.node_type?o.push("IOU ".concat(e.name," is always on.")):"vpcs"===e.node_type&&o.push("Node ".concat(e.name," is ").concat(e.status,".")),o.push("Running on controller ".concat(i.name," with port ").concat(i.port,".")),o.push("Controller ID is ".concat(i.id,".")),"none"!==e.console_type&&"null"!==e.console_type&&o.push("Console is on port ".concat(e.console," and type is ").concat(e.console_type,".")),o=o.concat(this.getInfoAboutPorts(e.ports))}},{key:"getInfoAboutPorts",value:function(e){var i="Ports: ";return e.forEach(function(o){i+="link_type: ".concat(o.link_type,",\n name: ").concat(o.name,"; ")}),i=i.substring(0,i.length-2)}},{key:"getCommandLine",value:function(e){return"cloud"===e.node_type||"nat"===e.node_type||"ethernet_hub"===e.node_type||"ethernet_switch"===e.node_type||"frame_relay_switch"===e.node_type||"atm_switch"===e.node_type||"dynamips"===e.node_type||"iou"===e.node_type?"Command line information is not supported for this type of node.":e.command_line?e.command_line:"Please start the node in order to get the command line information."}}]),n}();function nUe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e," ")}}Ab.\u0275fac=function(r){return new(r||Ab)},Ab.\u0275prov=t.Yz7({token:Ab,factory:Ab.\u0275fac});var NA=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.controller),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."}},{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();NA.\u0275fac=function(r){return new(r||NA)(t.Y36(cr),t.Y36(Ab))},NA.\u0275cmp=t.Xpm({type:NA,selectors:[["app-info-dialog"]],inputs:{controller:"controller",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group",2)(4,"mat-tab",3)(5,"div",4),t.YNc(6,nUe,2,1,"div",5),t.qZA()(),t.TgZ(7,"mat-tab",6)(8,"div",4),t._uU(9),t.qZA()(),t.TgZ(10,"mat-tab",7)(11,"div",4),t._uU(12),t.qZA()()()(),t.TgZ(13,"div",8)(14,"button",9),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(15,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.node.name),t.xp6(5),t.Q6J("ngForOf",e.infoList),t.xp6(3),t.hij(" ",e.usage," "),t.xp6(3),t.hij(" ",e.commandLine," "))},dependencies:[se.sg,dn,yr,dr,Fi.SP,Fi.uX],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var BA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"showNode",value:function(){var i=this.dialog.open(NA,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),n}();function rUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"textarea",7,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.config)}}function iUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()(),t.TgZ(4,"mat-tab",11)(5,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.privateConfig=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngModel",i.config),t.xp6(3),t.Q6J("ngModel",i.privateConfig)}}BA.\u0275fac=function(r){return new(r||BA)(t.Y36(Gr))},BA.\u0275cmp=t.Xpm({type:BA,selectors:[["app-show-node-action"]],inputs:{node:"node",controller:"controller"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.showNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"info"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Show node information"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var FA=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(i){e.config=i}),("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&this.nodeService.getPrivateConfiguration(this.controller,this.node).subscribe(function(i){e.privateConfig=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveConfiguration(this.controller,this.node,this.config).subscribe(function(i){"iou"===e.node.node_type||"dynamips"===e.node.node_type?e.nodeService.savePrivateConfiguration(e.controller,e.node,e.privateConfig).subscribe(function(o){e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))}):(e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved.")))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function oUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit config"),t.qZA()()}}FA.\u0275fac=function(r){return new(r||FA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn))},FA.\u0275cmp=t.Xpm({type:FA,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,rUe,3,1,"div",1),t.YNc(3,iUe,7,2,"mat-tab-group",2),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(8,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf","vpcs"===e.node.node_type),t.xp6(1),t.Q6J("ngIf","iou"===e.node.node_type||"dynamips"===e.node.node_type))},dependencies:[se.O5,J.Fj,J.JJ,J.On,dn,yr,dr,Fi.SP,Fi.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var UA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"editConfig",value:function(){var i=this.dialog.open(FA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),n}();UA.\u0275fac=function(r){return new(r||UA)(t.Y36(Gr))},UA.\u0275cmp=t.Xpm({type:UA,selectors:[["app-edit-config-action"]],inputs:{controller:"controller",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,oUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"iou"===e.node.node_type||"dynamips"===e.node.node_type)},dependencies:[se.O5,Er,Dn],encapsulation:2});var jA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"bringToFront",value:function(){var e=this,i=Math.max.apply(Math,(0,cn.Z)(this.nodes.map(function(s){return s.z}))),o=Math.max.apply(Math,(0,cn.Z)(this.drawings.map(function(s){return s.z}))),a=Math.max(i,o);a<100&&a++,this.nodes.forEach(function(s){s.z=a,e.nodesDataSource.update(s),e.nodeService.update(e.controller,s).subscribe(function(l){})}),this.drawings.forEach(function(s){s.z=a,e.drawingsDataSource.update(s),e.drawingService.update(e.controller,s).subscribe(function(l){})})}}]),n}();jA.\u0275fac=function(r){return new(r||jA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},jA.\u0275cmp=t.Xpm({type:jA,selectors:[["app-bring-to-front-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.bringToFront()}),t.TgZ(1,"mat-icon"),t._uU(2,"vertical_align_top"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Bring to front"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var aT=function(){function n(r){(0,B.Z)(this,n),this.dialogRef=r}return(0,U.Z)(n,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),n}();function aUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.exportConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"call_made"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Export config"),t.qZA()()}}aT.\u0275fac=function(r){return new(r||aT)(t.Y36(cr))},aT.\u0275cmp=t.Xpm({type:aT,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Choose configuration file"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div")(5,"button",3),t.NdJ("click",function(){return e.close("startup-config")}),t._uU(6,"startup configuration"),t.qZA()(),t.TgZ(7,"div")(8,"button",3),t.NdJ("click",function(){return e.close("private-config")}),t._uU(9,"private configuration"),t.qZA()()()())},dependencies:[dn,yr],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var HA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.dialog=e}return(0,U.Z)(n,[{key:"exportConfig",value:function(){var e=this;if("vpcs"===this.node.node_type)this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(a){e.downloadByHtmlTag(a)});else{var i=this.dialog.open(aT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){"startup-config"===a?e.nodeService.getStartupConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)}):"private-config"===a&&e.nodeService.getPrivateConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)})})}}},{key:"downloadByHtmlTag",value:function(e){var i=document.createElement("a");i.setAttribute("href","data:".concat("text/plain",";charset=utf-8,").concat(encodeURIComponent(e))),"vpcs"===this.node.node_type?i.setAttribute("download","".concat(this.node.name,"_startup.vpc")):("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&i.setAttribute("download","".concat(this.node.name,"_startup.cfg"));var a=new MouseEvent("click");i.dispatchEvent(a)}}]),n}();HA.\u0275fac=function(r){return new(r||HA)(t.Y36(Fr),t.Y36(Gr))},HA.\u0275cmp=t.Xpm({type:HA,selectors:[["app-export-config-action"]],inputs:{controller:"controller",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,aUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"dynamips"===e.node.node_type||"iou"===e.node.node_type)},dependencies:[se.O5,Er,Dn],encapsulation:2});var sUe=["fileInput"],GA=function(){function n(r,e,i){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,U.Z)(n,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open(aT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){e.configType=a,e.fileInput.nativeElement.click()})}else this.configType="startup-config",this.fileInput.nativeElement.click()}},{key:"importConfig",value:function(e){var i=this,o=e.target.files[0],a=new FileReader;a.onload=function(s){var l=a.result;"string"!=typeof l&&(l=l.toString()),"startup-config"===i.configType?i.nodeService.saveConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))}):"private-config"===i.configType&&i.nodeService.savePrivateConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))})},a.readAsText(o)}}]),n}();GA.\u0275fac=function(r){return new(r||GA)(t.Y36(Fr),t.Y36(Zn),t.Y36(Gr))},GA.\u0275cmp=t.Xpm({type:GA,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.fileInput=i.first))},inputs:{controller:"controller",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"input",0,1),t.NdJ("change",function(o){return e.importConfig(o)}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){return e.triggerClick()}),t.TgZ(3,"mat-icon"),t._uU(4,"call_received"),t.qZA(),t.TgZ(5,"span"),t._uU(6,"Import config"),t.qZA()())},dependencies:[Er,Dn],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]});var uT,IF,sT={UKNOWN:"Unknown"},rW={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:sT.UKNOWN},PF={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},lT={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},lv={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:sT.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},Zse=[lv.PS4,lv.CHROME_BOOK,lv.MAC,lv.DELL,lv.ASUS,lv.UNKNOWN],lUe={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:sT.UKNOWN},uUe={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:sT.UKNOWN.toLowerCase()},Nse={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},dUe=Object.assign(Object.assign(Object.assign(Object.assign({},PF),lT),Nse),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),iW={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},oW={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},fUe=Object.keys(iW).reduce(function(n,r){return n[r]=iW[r],n},{}),Bse=Object.keys(oW).reduce(function(n,r){return n[rW[r]]=oW[r],n},{}),Kp=Object.freeze({__proto__:null,GENERAL:sT,BROWSERS:rW,MOBILES_RE:PF,TABLETS_RE:lT,DEVICES:lv,DESKTOP_DEVICES:Zse,OS:lUe,OS_VERSIONS:uUe,OS_RE:Nse,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:dUe,OS_VERSIONS_RE_MAP:iW,BROWSER_VERSIONS_RE_MAP:oW,OS_VERSIONS_RE:fUe,BROWSER_VERSIONS_RE:Bse}),pUe=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"test",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.test(e):i&&Array.isArray(i.and)?i.and.every(function(a){return o.test(e,a)}):i&&Array.isArray(i.or)?i.or.some(function(a){return o.test(e,a)}):!(!i||!i.not)&&!this.test(e,i.not)}},{key:"exec",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.exec(e):i&&Array.isArray(i)?i.reduce(function(a,s){return a||o.exec(e,s)},null):null}}]),n}();!function(n){n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown"}(uT||(uT={})),function(n){n.Portrait="portrait",n.Landscape="landscape"}(IF||(IF={}));var aW="iPad",Ob=function(){function n(r){(0,B.Z)(this,n),this.platformId=r,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new pUe,this.deviceType="",this.orientation="",(0,se.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,U.Z)(n,[{key:"setDeviceInfo",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;i!==this.userAgent&&(this.userAgent=i);var o=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(o.forEach(function(l){e[l.prop]=Object.keys(Kp[l.const]).reduce(function(u,d){return"device"===Kp[l.const][d]&&(0,se.NF)(e.platformId)&&(e.reTree.test(e.userAgent,lT[aW])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[Kp[l.const][d]]=aW,Object):(u[Kp[l.const][d]]=e.reTree.test(i,Kp["".concat(l.const,"_RE")][d]),u)},{})}),o.forEach(function(l){e[l.prop]=Object.keys(Kp[l.const]).map(function(u){return Kp[l.const][u]}).reduce(function(u,d){return"device"===l.prop&&u===Kp[l.const].ANDROID?e[l.prop][d]?d:u:u===Kp[l.const].UNKNOWN&&e[l.prop][d]?d:u},Kp[l.const].UNKNOWN)}),this.browser_version="0",this.browser!==rW.UNKNOWN){var a=Bse[this.browser],s=this.reTree.exec(i,a);s&&(this.browser_version=s[1])}"undefined"!=typeof window&&window.matchMedia?this.orientation=window.matchMedia("(orientation: landscape)").matches?IF.Landscape:IF.Portrait:this.orientation=sT.UKNOWN,this.deviceType=this.isTablet()?uT.Tablet:this.isMobile(this.userAgent)?uT.Mobile:this.isDesktop(this.userAgent)?uT.Desktop:uT.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(this.isTablet(i))return!1;var o=Object.keys(PF).find(function(a){return e.reTree.test(i,PF[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,se.NF)(this.platformId)&&(this.reTree.test(this.userAgent,lT[aW])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(lT).find(function(a){return!!e.reTree.test(i,lT[a])});return!!o}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==lv.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&Zse.indexOf(this.device)>-1}}]),n}();Ob.\u0275fac=function(r){return new(r||Ob)(t.LFG(t.Lbi))},Ob.\u0275prov=t.Yz7({token:Ob,factory:Ob.\u0275fac,providedIn:"root"});var zA=function(){function n(r,e,i){(0,B.Z)(this,n),this.toasterService=r,this.nodeService=e,this.deviceService=i}return(0,U.Z)(n,[{key:"openConsole",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.startConsole()})}},{key:"createHiddenIframe",value:function(e,i){var o=document.createElement("iframe");return o.src=i,o.id="hiddenIframe",o.style.display="none",e.appendChild(o),o}},{key:"openUriUsingFirefox",value:function(e){var i=document.querySelector("#hiddenIframe");i||(i=this.createHiddenIframe(document.body,"about:blank"));try{i.contentWindow.location.href=e}catch(o){"NS_ERROR_UNKNOWN_PROTOCOL"===o.name&&this.toasterService.error("Protocol handler does not exist")}}},{key:"startConsole",value:function(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else{("0.0.0.0"===this.node.console_host||"0:0:0:0:0:0:0:0"===this.node.console_host||"::"===this.node.console_host)&&(this.node.console_host=this.controller.host);var e=this.deviceService.getDeviceInfo();try{var i;if("telnet"===this.node.console_type)i="gns3+telnet://[".concat(this.node.console_host,"]:").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else if("vnc"===this.node.console_type)i="gns3+vnc://[".concat(this.node.console_host,"]:").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else if(this.node.console_type.startsWith("spice"))i="gns3+spice://[".concat(this.node.console_host,"]:").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else{if(this.node.console_type.startsWith("http"))return i="".concat(this.node.console_type,"://[").concat(this.node.console_host,"]:").concat(this.node.console),window.open(i);this.toasterService.error("Supported console types are: telnet, vnc, spice and spice+agent.")}"Firefox"===e.browser?this.openUriUsingFirefox(i):location.assign(i)}catch(o){this.toasterService.error(o)}}}}]),n}();zA.\u0275fac=function(r){return new(r||zA)(t.Y36(Zn),t.Y36(Fr),t.Y36(Ob))},zA.\u0275cmp=t.Xpm({type:zA,selectors:[["app-console-device-action-browser"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var WA=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.symbol=this.node.symbol}},{key:"symbolChanged",value:function(e){this.symbol=e}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSelectClick",value:function(){var e=this;this.nodeService.updateSymbol(this.controller,this.node,this.symbol).subscribe(function(){e.onCloseClick()})}}]),n}();WA.\u0275fac=function(r){return new(r||WA)(t.Y36(cr),t.Y36(Fr))},WA.\u0275cmp=t.Xpm({type:WA,selectors:[["app-change-symbol-dialog"]],inputs:{controller:"controller",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"controller","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"app-symbols",3),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSelectClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change symbol for node: ",e.node.name,""),t.xp6(3),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[dn,yr,dr,Tk],styles:[".symbolsWrapper[_ngcontent-%COMP%]{height:350px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var VA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(WA,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function hUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.reloadNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"refresh"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Reload"),t.qZA()()}}VA.\u0275fac=function(r){return new(r||VA)(t.Y36(Gr))},VA.\u0275cmp=t.Xpm({type:VA,selectors:[["app-change-symbol-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeSymbol()}),t.TgZ(1,"mat-icon"),t._uU(2,"find_replace"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change symbol"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var YA=function(){function n(r){(0,B.Z)(this,n),this.nodeService=r,this.filteredNodes=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodes.forEach(function(i){("vpcs"===i.node_type||"qemu"===i.node_type||"virtualbox"===i.node_type||"vmware"===i.node_type)&&e.filteredNodes.push(i)})}},{key:"reloadNodes",value:function(){var e=this;this.filteredNodes.forEach(function(i){e.nodeService.reload(e.controller,i).subscribe(function(o){})})}}]),n}();function mUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}YA.\u0275fac=function(r){return new(r||YA)(t.Y36(Fr))},YA.\u0275cmp=t.Xpm({type:YA,selectors:[["app-reload-node-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,hUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.filteredNodes.length>0)},dependencies:[se.O5,Er,Dn],encapsulation:2});var KA=function(){function n(r){(0,B.Z)(this,n),this.nodeService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"suspendNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.suspend(e.controller,i).subscribe(function(o){})})}}]),n}();function _Ue(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function gUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function vUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function yUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function bUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Actions"),t.qZA())}function CUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",28)(1,"button",29),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",30),t._uU(3,"delete"),t.qZA()()()}}function wUe(n,r){1&n&&t._UZ(0,"tr",31)}function kUe(n,r){1&n&&t._UZ(0,"tr",32)}function TUe(n,r){if(1&n&&(t.TgZ(0,"table",19),t.ynx(1,20),t.YNc(2,_Ue,2,0,"th",21),t.YNc(3,gUe,2,1,"td",22),t.BQk(),t.ynx(4,23),t.YNc(5,vUe,2,0,"th",21),t.YNc(6,yUe,2,1,"td",22),t.BQk(),t.ynx(7,24),t.YNc(8,bUe,2,0,"th",21),t.YNc(9,CUe,4,0,"td",22),t.BQk(),t.YNc(10,wUe,1,0,"tr",25),t.YNc(11,kUe,1,0,"tr",26),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}KA.\u0275fac=function(r){return new(r||KA)(t.Y36(Fr))},KA.\u0275cmp=t.Xpm({type:KA,selectors:[["app-suspend-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,mUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[se.O5,Er,Dn],encapsulation:2});var qA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceVci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationVci:new J.p4("",J.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new J.p4("",J.kI.required),destinationVpi:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){var e;this.inputForm.valid?this.useVpiOnly?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.abstractForm.valid?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVpi,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVpi,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Yn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Yw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function MUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Name"),t.qZA())}function SUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function EUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Local port"),t.qZA())}function xUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rport)}}function DUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function AUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rhost)}}function OUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Remote port"),t.qZA())}function PUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.lport)}}function IUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function RUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function LUe(n,r){1&n&&t._UZ(0,"tr",22)}function ZUe(n,r){1&n&&t._UZ(0,"tr",23)}function NUe(n,r){if(1&n&&(t.TgZ(0,"table",8),t.ynx(1,9),t.YNc(2,MUe,2,0,"th",10),t.YNc(3,SUe,2,1,"td",11),t.BQk(),t.ynx(4,12),t.YNc(5,EUe,2,0,"th",10),t.YNc(6,xUe,2,1,"td",11),t.BQk(),t.ynx(7,13),t.YNc(8,DUe,2,0,"th",10),t.YNc(9,AUe,2,1,"td",11),t.BQk(),t.ynx(10,14),t.YNc(11,OUe,2,0,"th",10),t.YNc(12,PUe,2,1,"td",11),t.BQk(),t.ynx(13,15),t.YNc(14,IUe,2,0,"th",10),t.YNc(15,RUe,4,0,"td",11),t.BQk(),t.YNc(16,LUe,1,0,"tr",16),t.YNc(17,ZUe,1,0,"tr",17),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.dataSourceUdp),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function BUe(n,r){1&n&&t._UZ(0,"br")}qA.\u0275fac=function(r){return new(r||qA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},qA.\u0275cmp=t.Xpm({type:qA,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVci","placeholder","VCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,TUe,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"mat-checkbox",8),t.NdJ("ngModelChange",function(o){return e.useVpiOnly=o}),t._uU(12," Use VPI only (VP tunnel) "),t.qZA(),t.TgZ(13,"form",5),t._uU(14," Source "),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()()(),t.TgZ(17,"form",5)(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.sourceVpi=o}),t.qZA()()(),t.TgZ(20,"form",5)(21,"mat-form-field",6)(22,"input",11),t.NdJ("ngModelChange",function(o){return e.sourceVci=o}),t.qZA()(),t._uU(23," Destination "),t.TgZ(24,"mat-form-field",6)(25,"input",12),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()()(),t.TgZ(26,"form",5)(27,"mat-form-field",6)(28,"input",13),t.NdJ("ngModelChange",function(o){return e.destinationVpi=o}),t.qZA()()(),t.TgZ(29,"form",5)(30,"mat-form-field",6)(31,"input",14),t.NdJ("ngModelChange",function(o){return e.destinationVci=o}),t.qZA()()(),t.TgZ(32,"button",15),t.NdJ("click",function(){return e.add()}),t._uU(33,"Add"),t.qZA()()()()(),t.TgZ(34,"div",16)(35,"button",17),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(36,"Cancel"),t.qZA(),t.TgZ(37,"button",18),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(38,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("ngModel",e.useVpiOnly),t.xp6(2),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.sourceVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.sourceVci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.destinationVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.destinationVci))},dependencies:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,dr,ti,mi],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var JA=function(){function n(r){(0,B.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAddUdpInterface",value:function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.dataSourceUdp=this.dataSourceUdp.filter(function(i){return i!==e})}}]),n}();JA.\u0275fac=function(r){return new(r||JA)(t.Y36(kc))},JA.\u0275cmp=t.Xpm({type:JA,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.YNc(0,NUe,18,3,"table",0),t.YNc(1,BUe,1,0,"br",1),t.TgZ(2,"mat-form-field",2)(3,"input",3),t.NdJ("ngModelChange",function(o){return e.newPort.name=o}),t.qZA()(),t.TgZ(4,"mat-form-field",2)(5,"input",4),t.NdJ("ngModelChange",function(o){return e.newPort.lport=o}),t.qZA()(),t.TgZ(6,"mat-form-field",2)(7,"input",5),t.NdJ("ngModelChange",function(o){return e.newPort.rhost=o}),t.qZA()(),t.TgZ(8,"mat-form-field",2)(9,"input",6),t.NdJ("ngModelChange",function(o){return e.newPort.rport=o}),t.qZA()(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddUdpInterface()}),t._uU(11,"Add"),t.qZA()),2&r&&(t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",e.newPort.name),t.xp6(2),t.Q6J("ngModel",e.newPort.lport),t.xp6(2),t.Q6J("ngModel",e.newPort.rhost),t.xp6(2),t.Q6J("ngModel",e.newPort.rport))},dependencies:[se.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,mi],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var FUe=["udpTunnels"];function UUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function jUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function HUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function GUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var zUe=function(){return{standalone:!0}};function WUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t.YNc(2,UUe,5,1,"div",10),t.TgZ(3,"mat-form-field",11)(4,"mat-select",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(5,jUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(6,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(7,"Add"),t.qZA()(),t.TgZ(8,"mat-tab",15),t.YNc(9,HUe,5,1,"div",10),t.TgZ(10,"mat-form-field",16)(11,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(12,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(13,"Add"),t.qZA()(),t.TgZ(14,"mat-tab",18),t._UZ(15,"app-udp-tunnels",19,20),t.qZA(),t.TgZ(17,"mat-tab",21)(18,"form",22)(19,"mat-form-field",16)(20,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(21,"mat-form-field",11)(22,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,GUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(24,"mat-form-field",16)(25,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_host=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",16)(27,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_port=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",16)(29,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(30,"mat-tab",28)(31,"mat-form-field",16)(32,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,zUe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(4),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(4),t.Q6J("dataSourceUdp",i.portsMappingUdp),t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_http_path),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var QA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.builtInTemplatesConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.portsMappingEthernet=e.node.properties.ports_mapping.filter(function(o){return"ethernet"===o.type}),e.portsMappingTap=e.node.properties.ports_mapping.filter(function(o){return"tap"===o.type}),e.portsMappingUdp=e.node.properties.ports_mapping.filter(function(o){return"udp"===o.type})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function VUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",6)(2,"span",7),t._uU(3),t.qZA(),t.TgZ(4,"span",7)(5,"input",9),t.NdJ("ngModelChange",function(a){var l=t.CHM(e).$implicit;return t.KtG(l.port_name=a)}),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.hij(" Adapter ",i.adapter_number," "),t.xp6(2),t.Q6J("ngModel",i.port_name)}}function YUe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div",6)(2,"span",7),t._uU(3," Adapter number "),t.qZA(),t.TgZ(4,"span",7),t._uU(5," Port name "),t.qZA()(),t.TgZ(6,"div")(7,"mat-list"),t.YNc(8,VUe,6,2,"mat-list-item",8),t.qZA()()()),2&n){var e=t.oxw();t.xp6(8),t.Q6J("ngForOf",e.adapters)}}QA.\u0275fac=function(r){return new(r||QA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc))},QA.\u0275cmp=t.Xpm({type:QA,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(FUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.udpTunnels=i.first))},decls:13,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,WUe,33,16,"mat-tab-group",5),t.qZA(),t._UZ(7,"div"),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(12,"Apply"),t.qZA()()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ri.gD,Gt.ey,Fi.SP,Fi.uX,JA],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var XA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(o){e.adapters.push({adapter_number:0,port_name:""})})}},{key:"onSaveClick",value:function(){var e=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.onCancelClick(),e.toasterService.success("Configuration saved for node ".concat(e.node.name))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();XA.\u0275fac=function(r){return new(r||XA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Pp))},XA.\u0275cmp=t.Xpm({type:XA,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,YUe,9,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configure custom adapters for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[se.sg,se.O5,J.Fj,J.JJ,J.On,dn,Kn,yr,dr,mm,Oa],styles:["th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.column[_ngcontent-%COMP%]{width:50%}"]});function KUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",5)(1,"textarea",6),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.configuration=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.configuration)}}var $A=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNetworkConfiguration(this.controller,this.node).subscribe(function(i){e.configuration=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveNetworkConfiguration(this.controller,this.node,this.configuration).subscribe(function(i){e.onCancelClick(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function qUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function JUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}$A.\u0275fac=function(r){return new(r||$A)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn))},$A.\u0275cmp=t.Xpm({type:$A,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,KUe,2,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Edit network configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[se.O5,J.Fj,J.JJ,J.On,dn,Kn,yr,dr],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var sW=function(){return{standalone:!0}};function QUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.start_command=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",11)(9,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.adapters=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",11)(11,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.memory=a)}),t.qZA(),t.TgZ(12,"span",16),t._uU(13,"MB"),t.qZA()(),t.TgZ(14,"mat-form-field",11)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.configureCustomAdapters())}),t._uU(17," Configure custom adapters "),t.qZA(),t.TgZ(18,"mat-form-field",19)(19,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(20,qUe,2,2,"mat-option",21),t.qZA()(),t.TgZ(21,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA(),t.TgZ(23,"mat-form-field",11)(24,"mat-select",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_resolution=a)}),t.YNc(25,JUe,2,2,"mat-option",21),t.qZA()(),t.TgZ(26,"mat-form-field",11)(27,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_port=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",11)(29,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_path=a)}),t.qZA()(),t.TgZ(30,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.editNetworkConfiguration())}),t._uU(31," Edit network configuration "),t.qZA()(),t.TgZ(32,"h6"),t._uU(33,"Environment"),t.qZA(),t.TgZ(34,"mat-form-field",11)(35,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.environment=a)}),t.qZA()()(),t.TgZ(36,"mat-tab",27)(37,"h6"),t._uU(38,"Extra hosts"),t.qZA(),t.TgZ(39,"mat-form-field",11)(40,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_hosts=a)}),t.qZA()(),t._UZ(41,"br"),t.TgZ(42,"h6"),t._uU(43,"Additional volumes"),t.qZA(),t.TgZ(44,"mat-form-field",11)(45,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_volumes=a)}),t.qZA()()(),t.TgZ(46,"mat-tab",28)(47,"mat-form-field",11)(48,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.start_command),t.xp6(2),t.Q6J("ngModel",i.node.properties.adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.memory),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(20,sW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(21,sW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(22,sW))("ngModel",i.node.properties.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_path),t.xp6(6),t.Q6J("ngModel",i.node.properties.environment),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_hosts),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_volumes),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var eO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogReference=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.nonNegativeValidator=s,this.dialog=l,this.consoleTypes=[],this.consoleResolutions=["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),memory:new J.p4("",s.get),cpus:new J.p4("",s.get),startCommand:new J.p4(""),consoleHttpPort:new J.p4("",J.kI.required),consoleHttpPath:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.node.properties.cpus||(e.node.properties.cpus=0)})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes()}},{key:"configureCustomAdapters",value:function(){this.dialogRef=this.dialog.open(XA,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open($A,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogReference.close()}}]),n}();function XUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function $Ue(n,r){if(1&n&&t._UZ(0,"app-ports",17,18),2&n){var e=t.oxw(2);t.Q6J("ethernetPorts",e.node.properties.ports_mapping)}}eO.\u0275fac=function(r){return new(r||eO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Pp),t.Y36(uf),t.Y36(Gr))},eO.\u0275cmp=t.Xpm({type:eO,selectors:[["app-configurator-docker"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","formControlName","startCommand","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["formControlName","memory","matInput","","type","number","placeholder","Maximum memory",3,"ngModel","ngModelChange"],["matSuffix",""],["formControlName","cpus","matInput","","type","number","placeholder","Maximum CPUs",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,QUe,49,23,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.gD,Gt.ey,Fi.SP,Fi.uX],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var e7e=function(){return{standalone:!0}};function t7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",7)(1,"mat-card",8)(2,"form",9)(3,"mat-form-field",10)(4,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(7,XUe,2,2,"mat-option",14),t.qZA()()(),t.YNc(8,$Ue,2,1,"app-ports",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(6,e7e))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngIf",i.node.properties)}}var tO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();tO.\u0275fac=function(r){return new(r||tO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc))},tO.\u0275cmp=t.Xpm({type:tO,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Rg,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2),t.YNc(4,t7e,9,7,"div",3),t.qZA()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(3),t.Q6J("ngIf",e.node))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ri.gD,Gt.ey,Rg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var n7e=function(){return{standalone:!0}},nO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.numberOfPorts=e.node.ports.length,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"onSaveClick",value:function(){var e=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.node.properties.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})}else this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function r7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function i7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,r7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t._UZ(11,"br"),t.qZA(),t.TgZ(12,"mat-tab",17),t._UZ(13,"br"),t.TgZ(14,"form",10)(15,"mat-form-field",11)(16,"input",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(17,"span",19),t._uU(18,"MB"),t.qZA()(),t.TgZ(19,"mat-form-field",11)(20,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(21,"span",19),t._uU(22,"MB"),t.qZA()()()(),t.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(5),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.nvram),t.xp6(5),t.Q6J("ngModel",i.node.properties.usage)}}nO.\u0275fac=function(r){return new(r||nO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om))},nO.\u0275cmp=t.Xpm({type:nO,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",6)(10,"input",8),t.NdJ("ngModelChange",function(o){return e.numberOfPorts=o}),t.qZA()()()()()()(),t.TgZ(11,"div",9)(12,"button",10),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModel",e.numberOfPorts)("ngModelOptions",t.DdM(5,n7e)))},dependencies:[J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var rO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.memoryForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function o7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function a7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.ram)}}function s7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.nvram)}}function l7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,o7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t._UZ(11,"br"),t.TgZ(12,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_default_iou_values=a)}),t._uU(13," Use default IOU values for memories "),t.qZA(),t.YNc(14,a7e,4,1,"mat-form-field",17),t.YNc(15,s7e,4,1,"mat-form-field",17),t.qZA(),t.TgZ(16,"mat-tab",18),t._UZ(17,"br"),t.TgZ(18,"form",10)(19,"mat-form-field",11)(20,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ethernet_adapters=a)}),t.qZA()(),t.TgZ(21,"mat-form-field",11)(22,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.serial_adapters=a)}),t.qZA()()()(),t.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(3),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.serial_adapters),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}rO.\u0275fac=function(r){return new(r||rO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Mm))},rO.\u0275cmp=t.Xpm({type:rO,selectors:[["app-configurator-ios"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,i7e,26,9,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.gD,Gt.ey,Fi.SP,Fi.uX],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var iO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();iO.\u0275fac=function(r){return new(r||iO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Lg))},iO.\u0275cmp=t.Xpm({type:iO,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,l7e,26,12,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.gD,Gt.ey,Fi.SP,Fi.uX],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var oO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function u7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function c7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function d7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function f7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function p7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function h7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Size options "),t.TgZ(2,"mat-form-field",6)(3,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.preallocation=a)}),t.YNc(4,c7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(5,"mat-form-field",6)(6,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.cluster_size=a)}),t.YNc(7,d7e,2,2,"mat-option",9),t.qZA()(),t._uU(8," Refcounts "),t.TgZ(9,"mat-form-field",6)(10,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.lazy_refcounts=a)}),t.YNc(11,f7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(12,"mat-form-field",6)(13,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.refcount_bits=a)}),t.YNc(14,p7e,2,2,"mat-option",9),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.qemuImg.preallocation),t.xp6(1),t.Q6J("ngForOf",i.preallocationsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.cluster_size),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions),t.xp6(3),t.Q6J("ngModel",i.qemuImg.lazy_refcounts),t.xp6(1),t.Q6J("ngForOf",i.lazyRefcountsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.refcount_bits),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions)}}function m7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-radio-group",20)(2,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("dynamic"))}),t._uU(3,"Dynamic"),t.qZA(),t.TgZ(4,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("fixed"))}),t._uU(5,"Fixed"),t.qZA()()()}}function _7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function g7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Adapter type"),t._UZ(2,"br"),t.TgZ(3,"mat-radio-group",23)(4,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("ide"))}),t._uU(5,"IDE"),t.qZA(),t.TgZ(6,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("lsilogic"))}),t._uU(7,"LSI Logic"),t.qZA(),t.TgZ(8,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("buslogic"))}),t._uU(9,"BusLogic"),t.qZA(),t.TgZ(10,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("legacyESX"))}),t._uU(11,"Legacy (ESX)"),t.qZA()(),t._UZ(12,"br")(13,"br"),t._uU(14," Image file sizing mode"),t._UZ(15,"br"),t.TgZ(16,"mat-radio-group",20)(17,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("streamOptimized"))}),t._uU(18,"Stream optimized"),t.qZA(),t.TgZ(19,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentSparse"))}),t._uU(20,"Split every 2GB (sparse)"),t.qZA(),t.TgZ(21,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentFlat"))}),t._uU(22,"Split every 2GB (flat)"),t.qZA(),t.TgZ(23,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicSparse"))}),t._uU(24,"Monolithic sparse"),t.qZA(),t.TgZ(25,"mat-radio-button",26),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicFlat"))}),t._uU(26,"Monolithic flat"),t.qZA()(),t._UZ(27,"br")(28,"br"),t.TgZ(29,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.zeroed_grain=a)}),t.YNc(30,_7e,2,2,"mat-option",9),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(29),t.Q6J("ngModel",i.qemuImg.zeroed_grain),t.xp6(1),t.Q6J("ngForOf",i.zeroedGrainOptions)}}oO.\u0275fac=function(r){return new(r||oO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},oO.\u0275cmp=t.Xpm({type:oO,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var aO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.qemuService=a,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.qemuImg={}}},{key:"setSubformat",value:function(e){this.qemuImg.subformat=e}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.controller,this.qemuImg).subscribe(function(){e.dialogRef.close()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();aO.\u0275fac=function(r){return new(r||aO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Gu))},aO.\u0275cmp=t.Xpm({type:aO,selectors:[["app-qemu-image-creator"]],decls:25,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","qemu_img","placeholder","Qemu image path",3,"ngModel","ngModelChange"],["placeholder","Image format",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","text","formControlName","path","placeholder","File location",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Qemu image configurator"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.qemuImg.qemu_img=o}),t.qZA()()(),t.TgZ(9,"mat-form-field",6)(10,"mat-select",8),t.NdJ("ngModelChange",function(o){return e.qemuImg.format=o}),t.YNc(11,u7e,2,2,"mat-option",9),t.qZA()(),t.YNc(12,h7e,15,8,"div",10),t.YNc(13,m7e,6,0,"div",10),t.YNc(14,g7e,31,2,"div",10),t.TgZ(15,"form",5)(16,"mat-form-field",6)(17,"input",11),t.NdJ("ngModelChange",function(o){return e.qemuImg.path=o}),t.qZA()(),t.TgZ(18,"mat-form-field",6)(19,"input",12),t.NdJ("ngModelChange",function(o){return e.qemuImg.size=o}),t.qZA()()()()()()(),t.TgZ(20,"div",13)(21,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(24,"Apply"),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.qemu_img),t.xp6(2),t.Q6J("ngModel",e.qemuImg.format),t.xp6(1),t.Q6J("ngForOf",e.formatOptions),t.xp6(1),t.Q6J("ngIf","qcow2"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vhd"===e.qemuImg.format||"vdi"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vmdk"===e.qemuImg.format),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.path),t.xp6(2),t.Q6J("ngModel",e.qemuImg.size))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ri.gD,Gt.ey,rs,Ws],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var v7e=["customAdapters"];function y7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function b7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function C7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function w7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function k7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function T7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function M7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function S7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function E7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function x7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function D7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function A7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function O7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",50),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.cpu_throttling)}}function P7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var I7e=function(){return{standalone:!0}};function R7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.platform=a)}),t.YNc(8,y7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(9,"mat-form-field",11)(10,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(11,"span",16),t._uU(12,"MB"),t.qZA()()(),t.TgZ(13,"mat-form-field",11)(14,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.boot_priority=a)}),t.YNc(17,b7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(18,"mat-form-field",11)(19,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(20,C7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,w7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(24,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_auto_start=a)}),t._uU(25," Auto start console "),t.qZA()(),t.TgZ(26,"mat-tab",23)(27,"mat-card")(28,"button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.openQemuImageCreator())}),t._uU(29," Create Qemu image "),t.qZA(),t._UZ(30,"mat-card-title"),t.TgZ(31,"mat-card-subtitle"),t._uU(32," HDA (Primary Master) "),t.qZA(),t.TgZ(33,"mat-card-content")(34,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_image=a)}),t.YNc(35,k7e,2,2,"mat-option",14),t.qZA(),t.TgZ(36,"mat-form-field",11)(37,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_interface=a)}),t.YNc(38,T7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(39,"mat-card"),t._UZ(40,"mat-card-title"),t.TgZ(41,"mat-card-subtitle"),t._uU(42," HDB (Primary Slave) "),t.qZA(),t.TgZ(43,"mat-card-content")(44,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_image=a)}),t.YNc(45,M7e,2,2,"mat-option",14),t.qZA(),t.TgZ(46,"mat-form-field",11)(47,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_interface=a)}),t.YNc(48,S7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(49,"mat-card"),t._UZ(50,"mat-card-title"),t.TgZ(51,"mat-card-subtitle"),t._uU(52," HDC (Secondary Master) "),t.qZA(),t.TgZ(53,"mat-card-content")(54,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_image=a)}),t.YNc(55,E7e,2,2,"mat-option",14),t.qZA(),t.TgZ(56,"mat-form-field",11)(57,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_interface=a)}),t.YNc(58,x7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(59,"mat-card"),t._UZ(60,"mat-card-title"),t.TgZ(61,"mat-card-subtitle"),t._uU(62," HDD (Secondary Slave) "),t.qZA(),t.TgZ(63,"mat-card-content")(64,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_image=a)}),t.YNc(65,D7e,2,2,"mat-option",14),t.qZA(),t.TgZ(66,"mat-form-field",11)(67,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_interface=a)}),t.YNc(68,A7e,2,2,"mat-option",14),t.qZA()()()()(),t.TgZ(69,"mat-tab",27)(70,"div")(71,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(74);return t.KtG(a.click())}),t._uU(72,"Browse"),t.qZA(),t.TgZ(73,"input",29,30),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(75,"mat-form-field",31)(76,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cdrom_image=a)}),t.qZA()()()(),t.TgZ(77,"mat-tab",33),t._UZ(78,"br")(79,"br"),t.TgZ(80,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.replicate_network_connection_state=a)}),t._uU(81," Replicate network connection state "),t.qZA(),t._UZ(82,"app-custom-adapters-table",34,35),t.qZA(),t.TgZ(84,"mat-tab",36)(85,"mat-card"),t._UZ(86,"mat-card-title"),t.TgZ(87,"mat-card-subtitle"),t._uU(88," Linux boot specific settings "),t.qZA(),t.TgZ(89,"mat-card-content")(90,"div")(91,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(94);return t.KtG(a.click())}),t._uU(92," Browse "),t.qZA(),t.TgZ(93,"input",29,37),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(95,"mat-form-field",31)(96,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.initrd=a)}),t.qZA()()(),t.TgZ(97,"div")(98,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(99," Browse "),t.qZA(),t.TgZ(100,"input",29,39),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(102,"mat-form-field",31)(103,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_image=a)}),t.qZA()()(),t.TgZ(104,"mat-form-field",11)(105,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(106,"mat-card"),t._UZ(107,"mat-card-title"),t.TgZ(108,"mat-card-subtitle"),t._uU(109," Bios "),t.qZA(),t.TgZ(110,"mat-card-content")(111,"div")(112,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(115);return t.KtG(a.click())}),t._uU(113," Browse "),t.qZA(),t.TgZ(114,"input",29,42),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(116,"mat-form-field",31)(117,"input",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.bios_image=a)}),t.qZA()()()()(),t.TgZ(118,"mat-card"),t._UZ(119,"mat-card-title"),t.TgZ(120,"mat-card-subtitle"),t._uU(121," Optimization "),t.qZA(),t.TgZ(122,"mat-card-content")(123,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(124," Activate CPU throttling "),t.qZA(),t.YNc(125,O7e,2,1,"mat-form-field",44),t.TgZ(126,"mat-form-field",11)(127,"mat-select",45),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.process_priority=a)}),t.YNc(128,P7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(129,"mat-card"),t._UZ(130,"mat-card-title"),t.TgZ(131,"mat-card-subtitle"),t._uU(132," Additional settings "),t.qZA(),t.TgZ(133,"mat-card-content")(134,"mat-form-field",11)(135,"input",46),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.options=a)}),t.qZA()(),t._UZ(136,"br"),t.TgZ(137,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.tpm=a)}),t._uU(138," Enable the Trusted Platform Module (TPM) "),t.qZA(),t._UZ(139,"br"),t.TgZ(140,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.uefi=a)}),t._uU(141," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(142,"mat-tab",47)(143,"mat-form-field",11)(144,"textarea",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.platform)("ngModelOptions",t.DdM(47,I7e)),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(2),t.Q6J("ngModel",i.node.properties.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.properties.console_auto_start),t.xp6(10),t.Q6J("ngModel",i.node.properties.hda_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdb_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdc_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdd_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(8),t.Q6J("ngModel",i.node.properties.cdrom_image),t.xp6(4),t.Q6J("ngModel",i.node.properties.replicate_network_connection_state),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(14),t.Q6J("ngModel",i.node.properties.initrd),t.xp6(7),t.Q6J("ngModel",i.node.properties.kernel_image),t.xp6(2),t.Q6J("ngModel",i.node.properties.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.node.properties.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.node.properties.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.node.properties.options),t.xp6(2),t.Q6J("ngModel",i.node.properties.tpm),t.xp6(3),t.Q6J("ngModel",i.node.properties.uefi),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var sO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialog=r,this.dialogRef=e,this.nodeService=i,this.toasterService=o,this.formBuilder=a,this.qemuService=s,this.qemuConfigurationService=l,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.selectPlatform=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.selectPlatform=this.qemuConfigurationService.getPlatform()}},{key:"openQemuImageCreator",value:function(){this.dialogRefQemuImageCreator=this.dialog.open(aO,this.conf),this.dialogRefQemuImageCreator.componentInstance.controller=this.controller}},{key:"uploadCdromImageFile",value:function(e){this.node.properties.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.node.properties.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.node.properties.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.node.properties.bios_image=e.target.files[0].name}},{key:"getConfiguration",value:function(){var e=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach(function(i){e.networkTypes.push(i)}),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function L7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function Z7e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function N7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function B7e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function F7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Actions"),t.qZA())}function U7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",25)(1,"button",26),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",27),t._uU(3,"delete"),t.qZA()()()}}function j7e(n,r){1&n&&t._UZ(0,"tr",28)}function H7e(n,r){1&n&&t._UZ(0,"tr",29)}function G7e(n,r){if(1&n&&(t.TgZ(0,"table",16),t.ynx(1,17),t.YNc(2,L7e,2,0,"th",18),t.YNc(3,Z7e,2,1,"td",19),t.BQk(),t.ynx(4,20),t.YNc(5,N7e,2,0,"th",18),t.YNc(6,B7e,2,1,"td",19),t.BQk(),t.ynx(7,21),t.YNc(8,F7e,2,0,"th",18),t.YNc(9,U7e,4,0,"td",19),t.BQk(),t.YNc(10,j7e,1,0,"tr",22),t.YNc(11,H7e,1,0,"tr",23),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}sO.\u0275fac=function(r){return new(r||sO)(t.Y36(Gr),t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Gu),t.Y36(Em))},sO.\u0275cmp=t.Xpm({type:sO,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(v7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Platform",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","formControlName","ram","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","HDD"],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["label","CD/DVD"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Advanced"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,R7e,145,48,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Y0,lk,uk,Kn,yr,dr,ti,ri.gD,Gt.ey,Fi.SP,Fi.uX,Zg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var lO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceDlci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationDlci:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){if(this.inputForm.valid){var e={portIn:"".concat(this.sourcePort,":").concat(this.sourceDlci),portOut:"".concat(this.destinationPort,":").concat(this.destinationDlci)};this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceDlci="0",this.destinationPort="0",this.destinationDlci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Yn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Yw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();lO.\u0275fac=function(r){return new(r||lO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},lO.\u0275cmp=t.Xpm({type:lO,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,G7e,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"form",5),t._uU(12," Source "),t.TgZ(13,"mat-form-field",6)(14,"input",8),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()(),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourceDlci=o}),t.qZA()(),t._uU(17," Destination "),t.TgZ(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()(),t.TgZ(20,"mat-form-field",6)(21,"input",11),t.NdJ("ngModelChange",function(o){return e.destinationDlci=o}),t.qZA()()(),t.TgZ(22,"button",12),t.NdJ("click",function(){return e.add()}),t._uU(23,"Add"),t.qZA()()()()(),t.TgZ(24,"div",13)(25,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(28,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(2),t.Q6J("ngModel",e.sourceDlci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(2),t.Q6J("ngModel",e.destinationDlci))},dependencies:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,dr,mi],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var z7e=["customAdapters"];function W7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function V7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var lW=function(){return{standalone:!0}};function Y7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,W7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(13,"span",18),t._uU(14,"MB"),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(17,V7e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(18,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(19," Start VM in headless mode "),t.qZA()(),t.TgZ(20,"mat-tab",21),t._UZ(21,"br"),t.TgZ(22,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA(),t._UZ(24,"app-custom-adapters-table",22,23),t.qZA(),t.TgZ(26,"mat-tab",24)(27,"mat-form-field",11)(28,"textarea",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,lW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,lW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(19,lW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var uO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.virtualBoxConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();uO.\u0275fac=function(r){return new(r||uO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ng))},uO.\u0275cmp=t.Xpm({type:uO,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(z7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,Y7e,29,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.gD,Gt.ey,Fi.SP,Fi.uX,Zg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var K7e=["customAdapters"];function q7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function J7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var uW=function(){return{standalone:!0}};function Q7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,q7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(13,J7e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(14,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(15," Start VM in headless mode "),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.linked_clone=a)}),t._uU(18," Use a linked base VM (experimental) "),t.qZA()(),t.TgZ(19,"mat-tab",19),t._UZ(20,"br"),t.TgZ(21,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(22," Allow GNS3 to override non custom VMware adapter "),t.qZA(),t._UZ(23,"app-custom-adapters-table",20,21),t.qZA(),t.TgZ(25,"mat-tab",22)(26,"mat-form-field",11)(27,"textarea",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,uW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,uW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(19,uW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(3),t.Q6J("ngModel",i.node.properties.linked_clone),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var cO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vmwareConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function X7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}cO.\u0275fac=function(r){return new(r||cO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Bg))},cO.\u0275cmp=t.Xpm({type:cO,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(K7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,Q7e,28,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ti,ri.gD,Gt.ey,Fi.SP,Fi.uX,Zg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var Fse=function(){return{standalone:!0}},dO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();dO.\u0275fac=function(r){return new(r||dO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om))},dO.\u0275cmp=t.Xpm({type:dO,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",8)(10,"mat-select",9),t.NdJ("ngModelChange",function(o){return e.node.console_type=o}),t.YNc(11,X7e,2,2,"mat-option",10),t.qZA()(),t.TgZ(12,"mat-checkbox",11),t.NdJ("ngModelChange",function(o){return e.node.console_auto_start=o}),t._uU(13," Auto start console "),t.qZA()()()()()(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(18,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Fse))("ngModel",e.node.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(9,Fse))("ngModel",e.node.console_auto_start))},dependencies:[se.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ti,ri.gD,Gt.ey],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var fO=function(){function n(r){(0,B.Z)(this,n),this.dialog=r,this.conf={autoFocus:!1,width:"950px",disableClose:!0}}return(0,U.Z)(n,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(dO,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(nO,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(tO,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(QA,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(rO,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(iO,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(sO,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(uO,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(cO,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(eO,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(oO,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(lO,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(qA,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),n}();function $7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"search"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start Wireshark"),t.qZA()()}}fO.\u0275fac=function(r){return new(r||fO)(t.Y36(Gr))},fO.\u0275cmp=t.Xpm({type:fO,selectors:[["app-config-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.configureNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_applications"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Configure"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var pO=function(){function n(r){(0,B.Z)(this,n),this.packetCaptureService=r}return(0,U.Z)(n,[{key:"startCapture",value:function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.controller,this.project,this.link,e[0])}}]),n}();pO.\u0275fac=function(r){return new(r||pO)(t.Y36(sv))},pO.\u0275cmp=t.Xpm({type:pO,selectors:[["app-start-capture-on-started-link-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,$7e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var hO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o,this.projectService=a}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){1===this.nodes.length&&0===this.drawings.length?this.command=this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.command=this.drawings[0].locked?"Unlock item":"Lock item":this.command="Lock/unlock items"}},{key:"lock",value:function(){return wi(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:return a.next=2,this.nodes.forEach(function(s){s.locked=!s.locked,i.nodeService.updateNode(i.controller,s).subscribe(function(l){i.nodesDataSource.update(l)})});case 2:return a.next=4,this.drawings.forEach(function(s){s.locked=!s.locked,i.drawingService.update(i.controller,s).subscribe(function(l){i.drawingsDataSource.update(l)})});case 4:this.projectService.projectUpdateLockIcon();case 5:case"end":return a.stop()}},e,this)}))}}]),n}();hO.\u0275fac=function(r){return new(r||hO)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa),t.Y36(Vs.Y))},hO.\u0275cmp=t.Xpm({type:hO,selectors:[["app-lock-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},features:[t.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.lock()}),t.TgZ(1,"mat-icon"),t._uU(2,"lock"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&r&&(t.xp6(4),t.Oqu(e.command))},dependencies:[Er,Dn],encapsulation:2});var mO=function(){function n(r,e){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignHorizontally",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.y}),i/=this.nodes.length,this.nodes.forEach(function(o){o.y=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();mO.\u0275fac=function(r){return new(r||mO)(t.Y36(za.G),t.Y36(Fr))},mO.\u0275cmp=t.Xpm({type:mO,selectors:[["app-align-horizontally-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignHorizontally()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_horiz"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align horizontally"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var _O=function(){function n(r,e){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignVertically",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.x}),i/=this.nodes.length,this.nodes.forEach(function(o){o.x=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();_O.\u0275fac=function(r){return new(r||_O)(t.Y36(za.G),t.Y36(Fr))},_O.\u0275cmp=t.Xpm({type:_O,selectors:[["app-align-vertically-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignVertically()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align vertically"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var gO=function(){function n(r){(0,B.Z)(this,n),this.electronService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),n}();gO.\u0275fac=function(r){return new(r||gO)(t.Y36(ul))},gO.\u0275cmp=t.Xpm({type:gO,selectors:[["app-open-file-explorer-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.open()}),t.TgZ(1,"mat-icon"),t._uU(2,"tab"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Open file explorer"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var cu=function(){function n(r,e,i){(0,B.Z)(this,n),this.router=r,this.toasterService=e,this.mapSettingsService=i,this.nodeConsoleTrigger=new t.vpe,this.closeNodeConsoleTrigger=new On.xQ,this.consoleResized=new On.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return(0,U.Z)(n,[{key:"getNumberOfColumns",value:function(){return this.lastNumberOfColumns}},{key:"getNumberOfRows",value:function(){return this.lastNumberOfRows}},{key:"setNumberOfColumns",value:function(e){this.lastNumberOfColumns=e}},{key:"setNumberOfRows",value:function(e){this.lastNumberOfRows=e}},{key:"openConsoleForNode",value:function(e){this.nodeConsoleTrigger.emit(e)}},{key:"closeConsoleForNode",value:function(e){this.closeNodeConsoleTrigger.next(e)}},{key:"resizeTerminal",value:function(e){this.consoleResized.next(e)}},{key:"getLineWidth",value:function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}},{key:"getLineHeight",value:function(){return this.defaultConsoleHeight/this.defaultNumberOfRows}},{key:"getUrl",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/projects/").concat(i.project_id,"/nodes/").concat(i.node_id,"/console/ws?token=").concat(e.authToken)}},{key:"openConsolesForAllNodesInWidget",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles for them: ",a=0;e.forEach(function(s){"none"!==s.console_type&&("started"===s.status?(i.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){i.openConsoleForNode(s)},500)):(a++,o+=s.name+" "))}),a>0&&this.toasterService.error(o)}},{key:"openConsolesForAllNodesInNewTabs",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles in tabs for them: ",a=0;e.forEach(function(s){if("telnet"===s.console_type)if("started"===s.status){var l=i.router.url.split("/"),u="/static/web-ui/".concat(l[1],"/").concat(l[2],"/").concat(l[3],"/").concat(l[4],"/nodes/").concat(s.node_id);window.open(u)}else a++,o+=s.name+" "}),a>0&&this.toasterService.error(o)}}]),n}();cu.\u0275fac=function(r){return new(r||cu)(t.LFG(ur),t.LFG(Zn),t.LFG(fl))},cu.\u0275prov=t.Yz7({token:cu,factory:cu.\u0275fac});var vO=function(){function n(r){(0,B.Z)(this,n),this.nodeConsoleService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),n}();vO.\u0275fac=function(r){return new(r||vO)(t.Y36(cu))},vO.\u0275cmp=t.Xpm({type:vO,selectors:[["app-http-console-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var yO=function(){function n(r){(0,B.Z)(this,n),this.nodeConsoleService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),n}();yO.\u0275fac=function(r){return new(r||yO)(t.Y36(cu))},yO.\u0275cmp=t.Xpm({type:yO,selectors:[["app-http-console-new-tab-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console in new tab"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var bO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name})}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();bO.\u0275fac=function(r){return new(r||bO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},bO.\u0275cmp=t.Xpm({type:bO,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change hostname for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var CO=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(bO,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function eje(n,r){if(1&n&&t._UZ(0,"app-show-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function tje(n,r){if(1&n&&t._UZ(0,"app-config-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function nje(n,r){if(1&n&&t._UZ(0,"app-start-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function rje(n,r){if(1&n&&t._UZ(0,"app-suspend-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function ije(n,r){if(1&n&&t._UZ(0,"app-stop-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function oje(n,r){if(1&n&&t._UZ(0,"app-reload-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function aje(n,r){if(1&n&&t._UZ(0,"app-http-console-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function sje(n,r){if(1&n&&t._UZ(0,"app-http-console-new-tab-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function lje(n,r){if(1&n&&t._UZ(0,"app-console-device-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function uje(n,r){if(1&n&&t._UZ(0,"app-console-device-action-browser",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function cje(n,r){if(1&n&&t._UZ(0,"app-open-file-explorer-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function dje(n,r){if(1&n&&t._UZ(0,"app-isolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function fje(n,r){if(1&n&&t._UZ(0,"app-unisolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function pje(n,r){if(1&n&&t._UZ(0,"app-change-hostname-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function hje(n,r){if(1&n&&t._UZ(0,"app-change-symbol-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function mje(n,r){if(1&n&&t._UZ(0,"app-duplicate-action",16),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("nodes",e.nodes)("drawings",e.drawings)}}function _je(n,r){if(1&n&&t._UZ(0,"app-edit-style-action",17),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])}}function gje(n,r){if(1&n&&t._UZ(0,"app-edit-text-action",18),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])("node",e.nodes[0])("label",e.labels[0])("link",e.links[0])("linkNode",e.linkNodes[0])}}function vje(n,r){if(1&n&&t._UZ(0,"app-edit-config-action",19),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("node",e.nodes[0])}}function yje(n,r){if(1&n&&t._UZ(0,"app-export-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function bje(n,r){if(1&n&&t._UZ(0,"app-import-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function Cje(n,r){if(1&n&&t._UZ(0,"app-move-layer-up-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function wje(n,r){if(1&n&&t._UZ(0,"app-move-layer-down-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function kje(n,r){if(1&n&&t._UZ(0,"app-bring-to-front-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function Tje(n,r){if(1&n&&t._UZ(0,"app-start-capture-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function Mje(n,r){if(1&n&&t._UZ(0,"app-stop-capture-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function Sje(n,r){if(1&n&&t._UZ(0,"app-start-capture-on-started-link-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function Eje(n,r){if(1&n&&t._UZ(0,"app-packet-filters-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function xje(n,r){if(1&n&&t._UZ(0,"app-resume-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function Dje(n,r){if(1&n&&t._UZ(0,"app-suspend-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function Aje(n,r){if(1&n&&t._UZ(0,"app-reset-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function Oje(n,r){if(1&n&&t._UZ(0,"app-edit-link-style-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function Pje(n,r){if(1&n&&t._UZ(0,"app-lock-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function Ije(n,r){if(1&n&&t._UZ(0,"app-delete-action",23),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)("links",e.links)}}function Rje(n,r){if(1&n&&t._UZ(0,"app-align-horizontally-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function Lje(n,r){if(1&n&&t._UZ(0,"app-align-vertically-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}CO.\u0275fac=function(r){return new(r||CO)(t.Y36(Gr))},CO.\u0275cmp=t.Xpm({type:CO,selectors:[["app-change-hostname-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeHostname()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change hostname"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var cT=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.electronService=i,this.projectService=o,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledController=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledController="bundled"===this.controller.location}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"openMenuForDrawing",value:function(e,i,o){this.resetCapabilities(),this.hasTextCapabilities=e.element instanceof Cb,this.drawings=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForNode",value:function(e,i,o){this.resetCapabilities(),this.nodes=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForLabel",value:function(e,i,o,a){this.resetCapabilities(),this.labels=[e],this.nodes=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForInterfaceLabel",value:function(e,i,o,a){this.resetCapabilities(),this.linkNodes=[e],this.links=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForListOfElements",value:function(e,i,o,a,s,l){this.resetCapabilities(),this.drawings=e,this.nodes=i,this.labels=o,this.links=a,this.setPosition(s,l),this.contextMenu.openMenu()}},{key:"resetCapabilities",value:function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1}}]),n}();function Zje(n,r){if(1&n&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Nje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",16)(1,"mat-select",17),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s._changePageSize(a.value))}),t.YNc(2,Zje,2,2,"mat-option",18),t.qZA()()}if(2&n){var i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("panelClass",i.selectConfig.panelClass||"")("disableOptionCentering",i.selectConfig.disableOptionCentering)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function Bje(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e.pageSize)}}function Fje(n,r){if(1&n&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,Nje,3,8,"mat-form-field",14),t.YNc(4,Bje,2,1,"div",15),t.qZA()),2&n){var e=t.oxw();t.xp6(2),t.hij(" ",e._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function Uje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.firstPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function jje(n,r){if(1&n){var e=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.lastPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}cT.\u0275fac=function(r){return new(r||cT)(t.Y36(Dr),t.Y36(t.sBO),t.Y36(ul),t.Y36(Vs.Y))},cT.\u0275cmp=t.Xpm({type:cT,selectors:[["app-context-menu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ga,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{project:"project",controller:"controller"},decls:40,vars:41,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"controller","node",4,"ngIf"],[3,"controller","nodes",4,"ngIf"],[3,"controller","project","nodes","drawings",4,"ngIf"],[3,"controller","project","drawing",4,"ngIf"],[3,"controller","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"controller","project","node",4,"ngIf"],[3,"controller","nodes","drawings",4,"ngIf"],[3,"controller","project","link",4,"ngIf"],[3,"controller","link",4,"ngIf"],[3,"controller","nodes","drawings","links",4,"ngIf"],[3,"controller","node"],[3,"controller","nodes"],[3,"controller","project","nodes","drawings"],[3,"controller","project","drawing"],[3,"controller","project","drawing","node","label","link","linkNode"],[3,"controller","project","node"],[3,"controller","nodes","drawings"],[3,"controller","project","link"],[3,"controller","link"],[3,"controller","nodes","drawings","links"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0),t._UZ(1,"span",1),t.TgZ(2,"mat-menu",2,3),t.YNc(4,eje,1,2,"app-show-node-action",4),t.YNc(5,tje,1,2,"app-config-node-action",4),t.YNc(6,nje,1,2,"app-start-node-action",5),t.YNc(7,rje,1,2,"app-suspend-node-action",5),t.YNc(8,ije,1,2,"app-stop-node-action",5),t.YNc(9,oje,1,2,"app-reload-node-action",5),t.YNc(10,aje,1,2,"app-http-console-action",5),t.YNc(11,sje,1,2,"app-http-console-new-tab-action",5),t.YNc(12,lje,1,2,"app-console-device-action",5),t.YNc(13,uje,1,2,"app-console-device-action-browser",4),t.YNc(14,cje,1,2,"app-open-file-explorer-action",4),t.YNc(15,dje,1,2,"app-isolate-node-action",4),t.YNc(16,fje,1,2,"app-unisolate-node-action",4),t.YNc(17,pje,1,2,"app-change-hostname-action",4),t.YNc(18,hje,1,2,"app-change-symbol-action",4),t.YNc(19,mje,1,4,"app-duplicate-action",6),t.YNc(20,_je,1,3,"app-edit-style-action",7),t.YNc(21,gje,1,7,"app-edit-text-action",8),t.YNc(22,vje,1,3,"app-edit-config-action",9),t.YNc(23,yje,1,2,"app-export-config-action",4),t.YNc(24,bje,1,2,"app-import-config-action",4),t.YNc(25,Cje,1,3,"app-move-layer-up-action",10),t.YNc(26,wje,1,3,"app-move-layer-down-action",10),t.YNc(27,kje,1,3,"app-bring-to-front-action",10),t.YNc(28,Tje,1,3,"app-start-capture-action",11),t.YNc(29,Mje,1,2,"app-stop-capture-action",12),t.YNc(30,Sje,1,3,"app-start-capture-on-started-link-action",11),t.YNc(31,Eje,1,3,"app-packet-filters-action",11),t.YNc(32,xje,1,2,"app-resume-link-action",12),t.YNc(33,Dje,1,2,"app-suspend-link-action",12),t.YNc(34,Aje,1,2,"app-reset-link-action",12),t.YNc(35,Oje,1,3,"app-edit-link-style-action",11),t.YNc(36,Pje,1,3,"app-lock-action",10),t.YNc(37,Ije,1,4,"app-delete-action",13),t.YNc(38,Rje,1,2,"app-align-horizontally-action",5),t.YNc(39,Lje,1,2,"app-align-vertically-action",5),t.qZA()()),2&r){var i=t.MAs(3);t.Udp("left",e.leftPosition)("top",e.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(3),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&!e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.drawings.length>0||e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.drawings.length&&!e.hasTextCapabilities),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(1===e.drawings.length&&e.hasTextCapabilities&&0===e.labels.length&&0===e.linkNodes.length||1===e.labels.length&&0===e.linkNodes.length&&0===e.drawings.length||1===e.linkNodes.length&&0===e.labels.length&&0===e.drawings.length)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&"vpcs"===e.nodes[0].node_type),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0||e.links.length>0)&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1)}},dependencies:[se.O5,Ga,ga,hA,mA,_A,gA,vA,yA,CA,kA,MA,SA,EA,AA,PA,IA,RA,LA,ZA,BA,UA,jA,HA,GA,zA,VA,YA,KA,fO,pO,hO,mO,_O,gO,vO,yO,CO],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0px}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0px!important}"]});var zm=(0,U.Z)(function n(){(0,B.Z)(this,n),this.changes=new On.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(r,e,i){if(0==i||0==e)return"0 of ".concat(i);var o=r*e,a=o<(i=Math.max(i,0))?Math.min(o+e,i):o+e;return"".concat(o+1," \u2013 ").concat(a," of ").concat(i)}});zm.\u0275fac=function(r){return new(r||zm)},zm.\u0275prov=t.Yz7({token:zm,factory:zm.\u0275fac,providedIn:"root"});var Gje={provide:zm,deps:[[new t.FiY,new t.tp0,zm]],useFactory:function Hje(n){return n||new zm}},Wje=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Vje=(0,Gt.Id)((0,Gt.dB)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),RF=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;if((0,B.Z)(this,e),(s=r.call(this))._intl=i,s._changeDetectorRef=o,s._pageIndex=0,s._length=0,s._pageSizeOptions=[],s._hidePageSize=!1,s._showFirstLastButtons=!1,s.selectConfig={},s.page=new t.vpe,s._intlChanges=i.changes.subscribe(function(){return s._changeDetectorRef.markForCheck()}),a){var l=a.pageSize,u=a.pageSizeOptions,d=a.hidePageSize,h=a.showFirstLastButtons;null!=l&&(s._pageSize=l),null!=u&&(s._pageSizeOptions=u),null!=d&&(s._hidePageSize=d),null!=h&&(s._showFirstLastButtons=h)}return s}return(0,U.Z)(e,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(o){this._pageIndex=Math.max((0,En.su)(o),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(o){this._length=(0,En.su)(o),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(o){this._pageSize=Math.max((0,En.su)(o),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(o){this._pageSizeOptions=(o||[]).map(function(a){return(0,En.su)(a)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(o){this._hidePageSize=(0,En.Ig)(o)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(o){this._showFirstLastButtons=(0,En.Ig)(o)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var o=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(o)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var o=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(o)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var o=this.pageIndex;this.pageIndex=0,this._emitPageEvent(o)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var o=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(o)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var o=this.getNumberOfPages()-1;return this.pageIndex<o&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(o){var a=this.pageIndex*this.pageSize,s=this.pageIndex;this.pageIndex=Math.floor(a/o)||0,this.pageSize=o,this._emitPageEvent(s)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(o,a){return o-a}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(o){this.page.emit({previousPageIndex:o,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),e}(Vje);RF.\u0275fac=function(r){t.$Z()},RF.\u0275dir=t.lG2({type:RF,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]});var gd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,U.Z)(e)}(RF);gd.\u0275fac=function(r){return new(r||gd)(t.Y36(zm),t.Y36(t.sBO),t.Y36(Wje,8))},gd.\u0275cmp=t.Xpm({type:gd,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Fje,5,3,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,Uje,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return e.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA()(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return e.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA()(),t.YNc(13,jje,3,5,"button",11),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("ngIf",!e.hidePageSize),t.xp6(3),t.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),t.xp6(1),t.Q6J("ngIf",e.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),t.uIk("aria-label",e._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),t.uIk("aria-label",e._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",e.showFirstLastButtons))},dependencies:[se.sg,se.O5,dn,kn.KE,ri.gD,Gt.ey,mi],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0});var dT=(0,U.Z)(function n(){(0,B.Z)(this,n)});dT.\u0275fac=function(r){return new(r||dT)},dT.\u0275mod=t.oAB({type:dT}),dT.\u0275inj=t.cJS({providers:[Gje],imports:[se.ez,pm,ri.LD,G0,Gt.BQ]});var Yje=m(1452),fT=function(){function n(r){(0,B.Z)(this,n),this.dialogRef=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();function Kje(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Adapters: ",e.appliance.qemu.adapters,"")}}function qje(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Console type: ",e.appliance.qemu.console_type,"")}}fT.\u0275fac=function(r){return new(r||fT)(t.Y36(cr))},fT.\u0275cmp=t.Xpm({type:fT,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"button",1),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4,"No"),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(6," Yes "),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage))},dependencies:[dn,dr]});var wO=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();wO.\u0275fac=function(r){return new(r||wO)(t.Y36(cr),t.Y36(ko))},wO.\u0275cmp=t.Xpm({type:wO,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.qZA()(),t.TgZ(3,"div",2)(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div"),t._uU(7),t.qZA(),t.TgZ(8,"div"),t._uU(9),t.qZA(),t.YNc(10,Kje,2,1,"div",3),t.YNc(11,qje,2,1,"div",3),t.qZA(),t.TgZ(12,"div",4)(13,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Close"),t.qZA()()),2&r&&(t.xp6(2),t.Oqu(e.appliance.name),t.xp6(3),t.hij("Vendor: ",e.appliance.vendor_name,""),t.xp6(2),t.hij("Status: ",e.appliance.status,""),t.xp6(2),t.hij("Maintainer: ",e.appliance.maintainer,""),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu))},dependencies:[se.O5,dn,yr,lu,dr],encapsulation:2});var Jje=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Po.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{templateExist:!0}:null}))}};function Qje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is required"),t.qZA())}function Xje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is incorrect"),t.qZA())}function $je(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template with this name exists"),t.qZA())}var e9e=function(r){return{"is-invalid":r}},uv=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.toasterService=o,this.formBuilder=a,this.templateNameValidator=s,this.templateService=l,this.data=u}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.data.name;this.templateNameForm=this.formBuilder.group({templateName:new J.p4(i,[J.kI.required,this.templateNameValidator.get],[Jje(this.controller,this.templateService)])}),setTimeout(function(){e.templateNameForm.controls.templateName.markAsTouched()},100)}},{key:"form",get:function(){return this.templateNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.controller).subscribe(function(i){var o=e.templateNameForm.controls.templateName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Template with this name exists"):e.dialogRef.close(e.templateNameForm.controls.templateName.value)})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();uv.\u0275fac=function(r){return new(r||uv)(t.Y36(cr),t.Y36(ur),t.Y36(Gr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku),t.Y36(Xd),t.Y36(ko))},uv.\u0275cmp=t.Xpm({type:uv,selectors:[["app-template-name-dialog"]],features:[t._Bn([Ku])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Please enter name for the new template"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,Qje,2,0,"mat-error",4),t.YNc(6,Xje,2,0,"mat-error",4),t.YNc(7,$je,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add template "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,e9e,null==e.form.templateName?null:e.form.templateName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.touched)&&(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.templateExist)))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Pb=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getAppliances",value:function(e){return this.httpController.get(e,"/appliances")}},{key:"getAppliance",value:function(e,i){return this.httpController.get(e,i)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/images/upload/").concat(o,"?allow_raw_image=true")}},{key:"updateAppliances",value:function(e){return this.httpController.get(e,"/appliances?update=yes")}}]),n}();Pb.\u0275fac=function(r){return new(r||Pb)(t.LFG(ho.zw))},Pb.\u0275prov=t.Yz7({token:Pb,factory:Pb.\u0275fac});function n9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",i._getArrowDirectionState())}}var Use=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),i9e=(0,Gt.dB)((0,Gt.Id)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),qu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._defaultOptions=i,o.sortables=new Map,o._stateChanges=new On.xQ,o.start="asc",o._direction="",o.sortChange=new t.vpe,o}return(0,U.Z)(e,[{key:"direction",get:function(){return this._direction},set:function(o){this._direction=o}},{key:"disableClear",get:function(){return this._disableClear},set:function(o){this._disableClear=(0,En.Ig)(o)}},{key:"register",value:function(o){this.sortables.set(o.id,o)}},{key:"deregister",value:function(o){this.sortables.delete(o.id)}},{key:"sort",value:function(o){this.active!=o.id?(this.active=o.id,this.direction=o.start?o.start:this.start):this.direction=this.getNextSortDirection(o),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(o){var a,s,l;if(!o)return"";var u=null!==(s=null!==(a=null==o?void 0:o.disableClear)&&void 0!==a?a:this.disableClear)&&void 0!==s?s:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear),d=function o9e(n,r){var e=["asc","desc"];return"desc"==n&&e.reverse(),r||e.push(""),e}(o.start||this.start,u),h=d.indexOf(this.direction)+1;return h>=d.length&&(h=0),d[h]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(i9e);qu.\u0275fac=function(r){return new(r||qu)(t.Y36(Use,8))},qu.\u0275dir=t.lG2({type:qu,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]});var cv=Gt.mZ.ENTERING+" "+Gt.yN.STANDARD_CURVE,pT={indicator:(0,Zt.X$)("indicator",[(0,Zt.SB)("active-asc, asc",(0,Zt.oB)({transform:"translateY(0px)"})),(0,Zt.SB)("active-desc, desc",(0,Zt.oB)({transform:"translateY(10px)"})),(0,Zt.eR)("active-asc <=> active-desc",(0,Zt.jt)(cv))]),leftPointer:(0,Zt.X$)("leftPointer",[(0,Zt.SB)("active-asc, asc",(0,Zt.oB)({transform:"rotate(-45deg)"})),(0,Zt.SB)("active-desc, desc",(0,Zt.oB)({transform:"rotate(45deg)"})),(0,Zt.eR)("active-asc <=> active-desc",(0,Zt.jt)(cv))]),rightPointer:(0,Zt.X$)("rightPointer",[(0,Zt.SB)("active-asc, asc",(0,Zt.oB)({transform:"rotate(45deg)"})),(0,Zt.SB)("active-desc, desc",(0,Zt.oB)({transform:"rotate(-45deg)"})),(0,Zt.eR)("active-asc <=> active-desc",(0,Zt.jt)(cv))]),arrowOpacity:(0,Zt.X$)("arrowOpacity",[(0,Zt.SB)("desc-to-active, asc-to-active, active",(0,Zt.oB)({opacity:1})),(0,Zt.SB)("desc-to-hint, asc-to-hint, hint",(0,Zt.oB)({opacity:.54})),(0,Zt.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,Zt.oB)({opacity:0})),(0,Zt.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,Zt.jt)("0ms")),(0,Zt.eR)("* <=> *",(0,Zt.jt)(cv))]),arrowPosition:(0,Zt.X$)("arrowPosition",[(0,Zt.eR)("* => desc-to-hint, * => desc-to-active",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(-25%)"}),(0,Zt.oB)({transform:"translateY(0)"})]))),(0,Zt.eR)("* => hint-to-desc, * => active-to-desc",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(0)"}),(0,Zt.oB)({transform:"translateY(25%)"})]))),(0,Zt.eR)("* => asc-to-hint, * => asc-to-active",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(25%)"}),(0,Zt.oB)({transform:"translateY(0)"})]))),(0,Zt.eR)("* => hint-to-asc, * => active-to-asc",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(0)"}),(0,Zt.oB)({transform:"translateY(-25%)"})]))),(0,Zt.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,Zt.oB)({transform:"translateY(0)"})),(0,Zt.SB)("hint-to-desc, active-to-desc, desc",(0,Zt.oB)({transform:"translateY(-25%)"})),(0,Zt.SB)("hint-to-asc, active-to-asc, asc",(0,Zt.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,Zt.X$)("allowChildren",[(0,Zt.eR)("* <=> *",[(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})])])},Wm=(0,U.Z)(function n(){(0,B.Z)(this,n),this.changes=new On.xQ});Wm.\u0275fac=function(r){return new(r||Wm)},Wm.\u0275prov=t.Yz7({token:Wm,factory:Wm.\u0275fac,providedIn:"root"});var s9e={provide:Wm,deps:[[new t.FiY,new t.tp0,Wm]],useFactory:function a9e(n){return n||new Wm}},l9e=(0,Gt.Id)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),cf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this))._intl=i,g._changeDetectorRef=o,g._sort=a,g._columnDef=s,g._focusMonitor=l,g._elementRef=u,g._ariaDescriber=d,g._showIndicatorHint=!1,g._viewState={},g._arrowDirection="",g._disableViewStateAnimation=!1,g.arrowPosition="after",g._sortActionDescription="Sort",null!=h&&h.arrowPosition&&(g.arrowPosition=null==h?void 0:h.arrowPosition),g._handleStateChanges(),g}return(0,U.Z)(e,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(o){this._updateSortActionDescription(o)}},{key:"disableClear",get:function(){return this._disableClear},set:function(o){this._disableClear=(0,En.Ig)(o)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){var s=!!a;s!==o._showIndicatorHint&&(o._setIndicatorHintVisible(s),o._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(o){this._isDisabled()&&o||(this._showIndicatorHint=o,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(o){this._viewState=o||{},this._disableViewStateAnimation&&(this._viewState={toState:o.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(o){!this._isDisabled()&&(o.keyCode===Tr.L_||o.keyCode===Tr.K5)&&(o.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var o=this._viewState.fromState;return(o?"".concat(o,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_updateSortActionDescription",value:function(o){var a,s;this._sortButton&&(null===(a=this._ariaDescriber)||void 0===a||a.removeDescription(this._sortButton,this._sortActionDescription),null===(s=this._ariaDescriber)||void 0===s||s.describe(this._sortButton,o)),this._sortActionDescription=o}},{key:"_handleStateChanges",value:function(){var o=this;this._rerenderSubscription=(0,Gi.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){o._isSorted()&&(o._updateArrowDirection(),("hint"===o._viewState.toState||"active"===o._viewState.toState)&&(o._disableViewStateAnimation=!0),o._setAnimationTransitionState({fromState:o._arrowDirection,toState:"active"}),o._showIndicatorHint=!1),!o._isSorted()&&o._viewState&&"active"===o._viewState.toState&&(o._disableViewStateAnimation=!1,o._setAnimationTransitionState({fromState:"active",toState:o._arrowDirection})),o._changeDetectorRef.markForCheck()})}}]),e}(l9e);cf.\u0275fac=function(r){return new(r||cf)(t.Y36(Wm),t.Y36(t.sBO),t.Y36(qu,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(Yr.$s,8),t.Y36(Use,8))},cf.\u0275cmp=t.Xpm({type:cf,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._handleClick()})("keydown",function(o){return e._handleKeydown(o)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&r&&(t.uIk("aria-sort",e._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,n9e,6,6,"div",2),t.qZA()),2&r&&(t.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"===e.arrowPosition),t.uIk("tabindex",e._isDisabled()?null:0)("role",e._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",e._renderArrow()))},dependencies:[se.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[pT.indicator,pT.leftPointer,pT.rightPointer,pT.arrowOpacity,pT.arrowPosition,pT.allowChildren]},changeDetection:0});var hT=(0,U.Z)(function n(){(0,B.Z)(this,n)});hT.\u0275fac=function(r){return new(r||hT)},hT.\u0275mod=t.oAB({type:hT}),hT.\u0275inj=t.cJS({providers:[s9e],imports:[se.ez,Gt.BQ]});var kO=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filteredData.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();kO.\u0275fac=function(r){return new(r||kO)},kO.\u0275pipe=t.Yjl({name:"datasourcefilter",type:kO,pure:!0});var u9e=["stepper"];function c9e(n,r){1&n&&t._uU(0,"Please select how you want to create new template")}function d9e(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw();t.Oqu(e.actionTitle)}}function f9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function p9e(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function h9e(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function m9e(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Emulator "),t.qZA())}function _9e(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.emulator," ")}}function g9e(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Vendor "),t.qZA())}function v9e(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.vendor_name," ")}}function y9e(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function b9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",34)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.install(a))}),t.TgZ(2,"mat-icon",36),t._uU(3,"archive"),t.qZA()(),t.TgZ(4,"button",37),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.showInfo(a))}),t.TgZ(5,"mat-icon",38),t._uU(6,"info"),t.qZA()()()}}function C9e(n,r){1&n&&t._UZ(0,"mat-header-row")}function w9e(n,r){1&n&&t._UZ(0,"mat-row")}function k9e(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw(2);t.Oqu(e.secondActionTitle)}}function T9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function M9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function S9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,T9e,3,0,"span",32),t.YNc(5,M9e,3,0,"span",32),t.TgZ(6,"input",46,47),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.bios_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.bios_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.bios_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function E9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function x9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function D9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,E9e,3,0,"span",32),t.YNc(5,x9e,3,0,"span",32),t.TgZ(6,"input",46,51),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hda_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hda_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hda_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function A9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function O9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function P9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,A9e,3,0,"span",32),t.YNc(5,O9e,3,0,"span",32),t.TgZ(6,"input",46,52),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdb_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdb_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function I9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function R9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function L9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,I9e,3,0,"span",32),t.YNc(5,R9e,3,0,"span",32),t.TgZ(6,"input",46,53),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdc_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdc_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function Z9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function N9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function B9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Z9e,3,0,"span",32),t.YNc(5,N9e,3,0,"span",32),t.TgZ(6,"input",46,54),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdd_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdd_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdd_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function F9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function U9e(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function j9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,F9e,3,0,"span",32),t.YNc(5,U9e,3,0,"span",32),t.TgZ(6,"input",46,55),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.cdrom_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.cdrom_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.cdrom_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function H9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createQemuTemplateFromVersion(l))}),t._uU(6," Create "),t.qZA()()(),t.YNc(7,S9e,12,4,"div",44),t.YNc(8,D9e,12,4,"div",44),t.YNc(9,P9e,12,4,"div",44),t.YNc(10,L9e,12,4,"div",44),t.YNc(11,B9e,12,4,"div",44),t.YNc(12,j9e,12,4,"div",44),t.qZA()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.AsE("",o.applianceToInstall.name," version ",i.name,""),t.xp6(4),t.Q6J("ngIf",i.images.bios_image),t.xp6(1),t.Q6J("ngIf",i.images.hda_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdb_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdc_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdd_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.cdrom_image)}}function G9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"div"),t.YNc(8,H9e,13,8,"div",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.versions)}}function z9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"button",29),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.createDockerTemplate())}),t._uU(2," Create docker template "),t.qZA()()}}function W9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(7,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(6);return t.KtG(s.click())}),t._uU(8,"Import"),t.qZA(),t.TgZ(9,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIosTemplate(l))}),t._uU(10," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("uploader",o.uploaderImage)}}function V9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,W9e,11,2,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function Y9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(7,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(6);return t.KtG(s.click())}),t._uU(8,"Import"),t.qZA(),t.TgZ(9,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIouTemplate(l))}),t._uU(10," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("uploader",o.uploaderImage)}}function K9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,Y9e,11,2,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function q9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step"),t.YNc(1,k9e,1,1,"ng-template",3),t.TgZ(2,"mat-card",9),t.YNc(3,G9e,9,1,"div",32),t.YNc(4,z9e,3,0,"div",32),t.YNc(5,V9e,9,1,"div",32),t.YNc(6,K9e,9,1,"div",32),t.qZA(),t.TgZ(7,"div")(8,"button",30),t._uU(9,"Back"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onCloseClick())}),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("hidden",!(!i.isLinuxPlatform||i.applianceToInstall.dynamips)),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.qemu),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.docker),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.dynamips),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.iou)}}var J9e=function(){return{standalone:!0}},Q9e=function(){return[5,10,20,50,100]},mT=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L,z,q){(0,B.Z)(this,n),this.dialogRef=r,this.applianceService=e,this.changeDetector=i,this.toasterService=o,this.qemuService=a,this.dockerService=s,this.iosService=l,this.iouService=u,this.templateService=d,this.dialog=h,this.computeService=g,this.changeDetectorRef=y,this.progressService=L,this.snackBar=z,this.uploadServiceService=q,this.action="install",this.actionTitle="Install appliance from controller",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isLinuxPlatform=!1,this.isLocalComputerChosen=!1,this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[],this.uploadProgress=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Ap(e.allAppliances),e.dataSource.paginator=e.paginator}),this.templateService.list(this.controller).subscribe(function(i){e.templates=i}),this.computeService.getComputes(this.controller).subscribe(function(i){i.forEach(function(o){"linux"===o.capabilities.platform&&(e.isLinuxPlatform=!0)})}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i}),this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Ap(e.allAppliances),e.dataSource.paginator=e.paginator}),this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(i,o,a,s){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(i.url)},this.uploaderImage=new Eg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured because image already exists"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(i,o,a,s){e.toasterService.success("Image imported succesfully"),e.refreshImages(),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"updateAppliances",value:function(){var e=this;this.progressService.activate(),this.applianceService.updateAppliances(this.controller).subscribe(function(i){e.appliances=i,e.progressService.deactivate(),e.toasterService.success("Appliances are up-to-date.")},function(i){e.progressService.deactivate(),e.toasterService.error("Appliances were not updated correctly.")})}},{key:"refreshImages",value:function(){var e=this;this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"getAppliance",value:function(e){var i=this,o=e.split("/".concat(Ha.N.current_version)),a=o[o.length-1];this.applianceService.getAppliance(this.controller,a).subscribe(function(s){i.applianceToInstall=s,setTimeout(function(){i.stepper.next()},100)})}},{key:"addAppliance",value:function(e){var u,i=this,a=(e.target.files[0].name.split("-")[0],e.target.files[0].name),s=e.target.files[0],l=new FileReader;l.onloadend=function(){var d=JSON.parse(l.result);d.docker&&(u="docker"),d.dynamips&&(u="dynamips"),d.iou&&(u="iou"),d.qemu&&(u="qemu");var h=i.applianceService.getUploadPath(i.controller,u,a);i.uploader.queue.forEach(function(y){return y.url=h});var g=i.uploader.queue[0];g.options&&(g.options.disableMultipart=!0),g.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploader.uploadItem(g)},l.readAsText(s)}},{key:"filterAppliances",value:function(e){var i=this,o=this.allAppliances.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all categories"!==this.category&&this.category?this.appliances=o.filter(function(a){return a.category===i.category}):this.appliances=o,this.dataSource=new Ap(this.appliances),this.dataSource.paginator=this.paginator}},{key:"setAction",value:function(e){this.action=e,"install"===e?this.actionTitle="Install appliance from controller":"import"===e&&(this.actionTitle="Import an appliance file")}},{key:"setControllerType",value:function(e){this.isLocalComputerChosen=!0}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.appliances.slice();this.appliances=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?cW(o.name,a.name,s):"emulator"===e.active?cW(o.emulator,a.emulator,s):"vendor"===e.active?cW(o.vendor_name,a.vendor_name,s):0})}}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"install",value:function(e){var i=this;this.applianceToInstall=e,setTimeout(function(){i.stepper.next()},100)}},{key:"showInfo",value:function(e){this.dialog.open(wO,{width:"250px",data:{appliance:e}}).componentInstance.appliance=e}},{key:"importImage",value:function(e,i){var o=this;this.computeChecksumMd5(e.target.files[0],!1).then(function(a){var s=o.applianceToInstall.images.filter(function(u){return u.filename===i})[0];if(s.md5sum!==a){o.progressService.deactivate();var l=o.dialog.open(fT,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});l.componentInstance.confirmationMessage="This is not the correct file.\n The MD5 sum is ".concat(a," and should be ").concat(s.md5sum,". Do you want to accept it at your own risks?"),l.afterClosed().subscribe(function(u){u?(o.importImageFile(e),o.openSnackBar()):o.uploaderImage.clearQueue()})}else o.importImageFile(e),o.openSnackBar()})}},{key:"importImageFile",value:function(e){var u,i=this,a=(e.target.files[0].name.split("-")[0],e.target.files[0].name),s=e.target.files[0],l=new FileReader;l.onloadend=function(){i.applianceToInstall.qemu&&(u="qemu"),i.applianceToInstall.dynamips&&(u="dynamips"),i.applianceToInstall.iou&&(u="iou");var d=i.applianceService.getUploadPath(i.controller,u,a);i.uploaderImage.queue.forEach(function(g){return g.url=d});var h=i.uploaderImage.queue[0];h.options&&(h.options.disableMultipart=!0),h.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploaderImage.uploadItem(h)},l.readAsText(s)}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1)}},{key:"checkImageFromVersion",value:function(e){var i=this.applianceToInstall.images.filter(function(o){return o.filename===e})[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0;return!1}},{key:"checkImages",value:function(e){return e.images.hdb_disk_image?!(!this.checkImageFromVersion(e.images.hda_disk_image)||!this.checkImageFromVersion(e.images.hdb_disk_image)):!!this.checkImageFromVersion(e.images.hda_disk_image)}},{key:"openConfirmationDialog",value:function(e,i){var o=this.dialog.open(fT,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});o.componentInstance.confirmationMessage=e,o.afterClosed().subscribe(function(a){a&&window.open(i)})}},{key:"downloadImage",value:function(e){var o="The file is compressed with ".concat(e.compression,", it must be uncompressed first.");e.direct_download_url?e.compression?this.openConfirmationDialog(o,e.direct_download_url):window.open(e.direct_download_url):this.openConfirmationDialog("Download will redirect you where the required file can be downloaded, you may have to be registered with the vendor in order to download the file.",e.download_url)}},{key:"downloadImageFromVersion",value:function(e){var i=this;this.applianceToInstall.images.forEach(function(o){o.filename===e&&i.downloadImage(o)})}},{key:"getCategory",value:function(){return"multilayer_switch"===this.applianceToInstall.category?"switch":this.applianceToInstall.category}},{key:"createIouTemplate",value:function(e){var i=this,o=new $G;o.nvram=this.applianceToInstall.iou.nvram,o.ram=this.applianceToInstall.iou.ram,o.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,o.serial_adapters=this.applianceToInstall.iou.serial_adapters,o.startup_config=this.applianceToInstall.iou.startup_config,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ns(),o.path=e.filename,o.template_type="iou";var a=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.iouService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createIosTemplate",value:function(e){var i=this,o=new XG;o.chassis=this.applianceToInstall.dynamips.chassis,o.nvram=this.applianceToInstall.dynamips.nvram,o.platform=this.applianceToInstall.dynamips.platform,o.ram=this.applianceToInstall.dynamips.ram,o.startup_config=this.applianceToInstall.dynamips.startup_config,o.slot0=this.applianceToInstall.dynamips.slot0,o.slot1=this.applianceToInstall.dynamips.slot1,o.slot2=this.applianceToInstall.dynamips.slot2,o.slot3=this.applianceToInstall.dynamips.slot3,o.slot4=this.applianceToInstall.dynamips.slot4,o.slot5=this.applianceToInstall.dynamips.slot5,o.slot6=this.applianceToInstall.dynamips.slot6,o.slot7=this.applianceToInstall.dynamips.slot7,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ns(),o.image=e.filename,o.template_type="dynamips";var a=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.iosService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createDockerTemplate",value:function(){var e=this,i=new QG;i.adapters=this.applianceToInstall.docker.adapters,i.console_type=this.applianceToInstall.docker.console_type,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id="local",i.template_id=ns(),i.image=this.applianceToInstall.docker.image,i.template_type="docker";var o=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.controller=this.controller,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,e.dockerService.addTemplate(e.controller,i).subscribe(function(s){e.templateService.newTemplateCreated.next(s),e.toasterService.success("Template added"),e.dialogRef.close()})})}},{key:"createQemuTemplateFromVersion",value:function(e){var i=this;if(this.checkImages(e)){var o=new ez;o.ram=this.applianceToInstall.qemu.ram,o.adapters=this.applianceToInstall.qemu.adapters,o.adapter_type=this.applianceToInstall.qemu.adapter_type,o.boot_priority=this.applianceToInstall.qemu.boot_priority,o.console_type=this.applianceToInstall.qemu.console_type,o.hda_disk_interface=this.applianceToInstall.qemu.hda_disk_interface,o.hdb_disk_interface=this.applianceToInstall.qemu.hdb_disk_interface,o.hdc_disk_interface=this.applianceToInstall.qemu.hdc_disk_interface,o.hdd_disk_interface=this.applianceToInstall.qemu.hdd_disk_interface,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.first_port_name=this.applianceToInstall.first_port_name,o.port_name_format=this.applianceToInstall.port_name_format,o.port_segment_size=this.applianceToInstall.port_segment_size,o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ns(),o.hda_disk_image=e.images.hda_disk_image,o.hdb_disk_image=e.images.hdb_disk_image,o.hdc_disk_image=e.images.hdc_disk_image,o.hdd_disk_image=e.images.hdd_disk_image,o.cdrom_image=e.images.cdrom_image,o.template_type="qemu",o.usage=this.applianceToInstall.usage,o.platform=this.applianceToInstall.qemu.arch;var a=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.qemuService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}else this.toasterService.error("Please install required images first")}},{key:"computeChecksumMd5",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(o,a){var s=2097152,l=new Yje.ArrayBuffer,u=new FileReader,d=0;function h(g){var y=Math.min(e.size,g+s);u.readAsArrayBuffer(e.slice(g,y))}u.onerror=function(){a("MD5 computation failed - error reading the file")},u.onload=function(g){l.append(g.target.result),(d+=s)<e.size?h(d):o(l.end(i))},h(0)})}},{key:"openSnackBar",value:function(){this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}}]),n}();function cW(n,r,e){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}mT.\u0275fac=function(r){return new(r||mT)(t.Y36(cr),t.Y36(Pb),t.Y36(t.sBO),t.Y36(Zn),t.Y36(Gu),t.Y36(id),t.Y36(sd),t.Y36(ld),t.Y36(Xd),t.Y36(Gr),t.Y36(Qd.X),t.Y36(t.sBO),t.Y36(El),t.Y36(rd),t.Y36(ad))},mT.\u0275cmp=t.Xpm({type:mT,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(gd,7),t.Gf(u9e,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.paginator=i.first),t.iGM(i=t.CRH())&&(e.stepper=i.first))},inputs:{controller:"controller",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["fileBios",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file2",""],["file3",""],["file4",""],["file5",""],["file6",""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Add new template"),t.qZA(),t.TgZ(2,"mat-horizontal-stepper",1,2)(4,"mat-step"),t.YNc(5,c9e,1,0,"ng-template",3),t.TgZ(6,"mat-radio-group",4)(7,"mat-radio-button",5),t.NdJ("click",function(){return e.setAction("install")}),t._uU(8,"Install new appliance from the GNS controller"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"mat-radio-button",6),t.NdJ("click",function(){return e.setAction("import")}),t._uU(11,"Import an appliance file"),t.qZA()(),t.TgZ(12,"div")(13,"button",7),t._uU(14,"Next"),t.qZA(),t.TgZ(15,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(16,"Cancel"),t.qZA()()(),t.TgZ(17,"mat-step"),t.YNc(18,d9e,1,1,"ng-template",3),t.TgZ(19,"mat-card",9)(20,"div",10)(21,"mat-form-field",11)(22,"input",12),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(23,"mat-select",13),t.NdJ("selectionChange",function(a){return e.filterAppliances(a)})("ngModelChange",function(a){return e.category=a}),t.YNc(24,f9e,2,2,"mat-option",14),t.qZA()(),t.TgZ(25,"mat-table",15,16),t.NdJ("matSortChange",function(a){return e.sortData(a)}),t.ALo(27,"datasourcefilter"),t.ynx(28,17),t.YNc(29,p9e,2,0,"mat-header-cell",18),t.YNc(30,h9e,2,1,"mat-cell",19),t.BQk(),t.ynx(31,20),t.YNc(32,m9e,2,0,"mat-header-cell",18),t.YNc(33,_9e,2,1,"mat-cell",19),t.BQk(),t.ynx(34,21),t.YNc(35,g9e,2,0,"mat-header-cell",18),t.YNc(36,v9e,2,1,"mat-cell",19),t.BQk(),t.ynx(37,22),t.YNc(38,y9e,2,0,"mat-header-cell",18),t.YNc(39,b9e,7,0,"mat-cell",23),t.BQk(),t.YNc(40,C9e,1,0,"mat-header-row",24),t.YNc(41,w9e,1,0,"mat-row",25),t.qZA(),t._UZ(42,"mat-paginator",26),t.qZA(),t.TgZ(43,"mat-card",9)(44,"input",27,28),t.NdJ("change",function(a){return e.addAppliance(a)}),t.qZA(),t.TgZ(46,"button",29),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(45);return t.KtG(a.click())}),t._uU(47," Click to import appliance "),t.qZA()(),t.TgZ(48,"div")(49,"button",30),t._uU(50,"Back"),t.qZA(),t.TgZ(51,"button",31),t.NdJ("click",function(){return e.updateAppliances()}),t._uU(52," Update from online registry "),t.qZA(),t.TgZ(53,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(54,"Cancel"),t.qZA()()(),t.YNc(55,q9e,12,5,"mat-step",32),t.qZA()}2&r&&(t.xp6(2),t.Q6J("linear",!1),t.xp6(17),t.Q6J("hidden","install"!==e.action),t.xp6(3),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(17,J9e))("ngModel",e.category),t.xp6(1),t.Q6J("ngForOf",e.categories),t.xp6(1),t.Q6J("dataSource",t.xi3(27,14,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(18,Q9e)),t.xp6(1),t.Q6J("hidden","install"===e.action),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(7),t.Q6J("hidden","install"!==e.action),t.xp6(4),t.Q6J("ngIf",e.applianceToInstall))},dependencies:[se.sg,se.O5,J.Fj,J.JJ,J.On,Mp,kn.KE,gd,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,mm,Oa,qu,ri.gD,Gt.ey,mi,od,wm,$d,Pk,Ik,rs,Ws,kO],styles:[".radio-button[_ngcontent-%COMP%]{margin-bottom:30px}.tableHeader[_ngcontent-%COMP%], .filter-field[_ngcontent-%COMP%]{width:100%}.example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.element-row[_ngcontent-%COMP%]{position:relative}.element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.element-row[_ngcontent-%COMP%]:not(.expanded):hover{background:#f5f5f5}.element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}.list-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:15px}.list-item-inside[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;padding-left:30px;margin-bottom:15px}.button[_ngcontent-%COMP%]{margin-left:10px}.create-button[_ngcontent-%COMP%]{width:100%;margin-top:10px;margin-bottom:10px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.selection-group[_ngcontent-%COMP%]{padding-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}"],data:{animation:[(0,Zt.X$)("detailExpand",[(0,Zt.SB)("collapsed",(0,Zt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed",(0,Zt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var X9e=m(2033),$9e='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Ib_xmlns="http://www.w3.org/2000/xmlns/",Ib_xlink="http://www.w3.org/1999/xlink",Ib_svg="http://www.w3.org/2000/svg",jse="untitled";function tHe(){var n=document.createElementNS(Ib_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function rHe(n,r){function e(s){for(var u,d,l=getComputedStyle(s),h="",g=0,y=l.length;g<y;g++)u=l[g],(d=l.getPropertyValue(u))!==r.getPropertyValue(u)&&(h+="".concat(u,":").concat(d,";"));s.setAttribute("style",h)}for(var o=function i(s){var l=[];return l.push(s),function u(d){if(d&&d.hasChildNodes())for(var h=d.firstChild;h;)1===h.nodeType&&"SCRIPT"!==h.nodeName&&(l.push(h),u(h)),h=h.nextSibling}(s),l}(n),a=o.length;a--;)e(o[a])}function iHe(n){var r=document.createElement("style");r.innerHTML=Array.from(document.styleSheets).filter(function(e){return!e.href||e.href.startsWith(document.location.origin)}).map(function(e){return Array.from(e.cssRules).map(function(i){return i.cssText}).join(" ")}).join(" "),n.prepend(r)}var oHe=function nHe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.css,i=void 0===e?"inline":e;if(!(n instanceof SVGElement))throw new Error("SVG element is required");n.setAttribute("version","1.1"),n.removeAttribute("xmlns"),n.removeAttribute("xlink"),n.hasAttributeNS(Ib_xmlns,"xmlns")||n.setAttributeNS(Ib_xmlns,"xmlns",Ib_svg),n.hasAttributeNS(Ib_xmlns,"xmlns:xlink")||n.setAttributeNS(Ib_xmlns,"xmlns:xlink",Ib_xlink),"inline"===i?rHe(n,tHe()):"internal"===i&&iHe(n);var o=(new XMLSerializer).serializeToString(n),a=n.getBoundingClientRect(),s={top:a.top,left:a.left,width:a.width,height:a.height,class:n.getAttribute("class"),id:n.getAttribute("id"),name:n.getAttribute("name"),childElementCount:n.childElementCount,source:$9e+o};return s};function sHe(n,r,e){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",n),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){e&&e(),document.body.removeChild(i)},10)}var uHe=function lHe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jse,e=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));sHe("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var fHe=function(r,e,i){return uHe(oHe(r,i),e||function aHe(n){if(!(n instanceof SVGElement))throw new Error("SVG Element is required");return n.getAttribute("id")||n.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||jse}(r))};function pHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Name for screenshot is required"),t.qZA())}function hHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Entered name is incorrect"),t.qZA())}var mHe=function(r){return{"is-invalid":r}},TO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.toasterService=e,this.formBuilder=i,this.electronService=o,this.deviceService=a,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new J.p4("screenshot-".concat(Date.now()),[J.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.nameForm.controls}},{key:"onAddClick",value:function(){if(!this.nameForm.invalid){var e={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(e)}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"setFiletype",value:function(e){this.isPngAvailable&&(this.filetype=e)}}]),n}();TO.\u0275fac=function(r){return new(r||TO)(t.Y36(cr),t.Y36(Zn),t.Y36(J.QS),t.Y36(ul),t.Y36(Ob))},TO.\u0275cmp=t.Xpm({type:TO,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Take a screenshot"),t.qZA(),t.TgZ(2,"mat-radio-group",1)(3,"mat-radio-button",2),t.NdJ("click",function(){return e.setFiletype("svg")}),t._uU(4,"SVG"),t.qZA(),t.TgZ(5,"mat-radio-button",3),t.NdJ("click",function(){return e.setFiletype("png")}),t._uU(6,"PNG"),t.qZA()(),t.TgZ(7,"form",4)(8,"mat-form-field",5)(9,"input",6),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(10,pHe,2,0,"mat-error",7),t.YNc(11,hHe,2,0,"mat-error",7),t.qZA(),t.TgZ(12,"div",8)(13,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Cancel"),t.qZA(),t.TgZ(15,"button",10),t.NdJ("click",function(){return e.onAddClick()}),t._uU(16,"Take a screenshot"),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("disabled",!e.isPngAvailable),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,mHe,null==e.form.acreenshotName?null:e.form.acreenshotName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.acreenshotName?null:e.form.acreenshotName.errors.invalidName)))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr,rs,Ws],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var MO=function(){function n(r,e){(0,B.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"Unlock",isAction:!1}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data.actionType}},{key:"confirmAction",value:function(){this.confirmActionData.isAction="Lock"==this.data.actionType,this.dialogRef.close(this.confirmActionData)}}]),n}();MO.\u0275fac=function(r){return new(r||MO)(t.Y36(ko),t.Y36(cr))},MO.\u0275cmp=t.Xpm({type:MO,selectors:[["app-project-map-lock-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[dn,Pg,lu,dr,hm.d]});var Rb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new Cb;return e.height=100,e.width=100,e.fill="#000000",e.fill_opacity=0,e.font_family="Noto Sans",e.font_size=11,e.font_weight="bold",e}}]),n}();Rb.\u0275fac=function(r){return new(r||Rb)},Rb.\u0275prov=t.Yz7({token:Rb,factory:Rb.\u0275fac});var Lb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new ea;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.cx=100,e.cy=100,e.rx=100,e.ry=100,e.width=200,e.height=200,e}}]),n}();Lb.\u0275fac=function(r){return new(r||Lb)},Lb.\u0275prov=t.Yz7({token:Lb,factory:Lb.\u0275fac});var Zb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new af;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e.rx=0,e.ry=0,e}}]),n}();Zb.\u0275fac=function(r){return new(r||Zb)},Zb.\u0275prov=t.Yz7({token:Zb,factory:Zb.\u0275fac});var Nb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new bb;return e.stroke="#000000",e.stroke_width=2,e.x1=0,e.x2=200,e.y1=0,e.y2=0,e.width=100,e.height=0,e}}]),n}();Nb.\u0275fac=function(r){return new(r||Nb)},Nb.\u0275prov=t.Yz7({token:Nb,factory:Nb.\u0275fac});var dv=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.textElementFactory=r,this.ellipseElementFactory=e,this.rectangleElementFactory=i,this.lineElementFactory=o,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return(0,U.Z)(n,[{key:"getDrawingMock",value:function(e){this.factory=this.availableFactories[e];var i=new Nm;return i.element=this.factory.getDrawingElement(),i}}]),n}();dv.\u0275fac=function(r){return new(r||dv)(t.LFG(Rb),t.LFG(Lb),t.LFG(Zb),t.LFG(Nb))},dv.\u0275prov=t.Yz7({token:dv,factory:dv.\u0275fac});var SO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(i){return e.onDrawingSaved(i)})}},{key:"ngOnChanges",value:function(e){e.selectedDrawing&&!e.selectedDrawing.isFirstChange()&&(this.selectedDrawing=e.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))}},{key:"onDrawingSaved",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock(this.selectedDrawing),a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.pointToAddSelected.unsubscribe()}}]),n}();SO.\u0275fac=function(r){return new(r||SO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(dv),t.Y36(_d))},SO.\u0275cmp=t.Xpm({type:SO,selectors:[["app-drawing-added"]],inputs:{controller:"controller",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[t.TTD],decls:0,vars:0,template:function(r,e){}});var Hse=function(r){return{selected:r}};function _He(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",14),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,Hse,i.drawTools.isLineChosen))}}function gHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,Hse,i.drawTools.isLineChosen))}}var vHe=function(r,e){return{unmarkedLight:r,marked:e}},yHe=function(r){return{unmarkedLight:r}},_T=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.toolsService=r,this.mapSettingsService=e,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.projectServices=l,this.nodeService=u,this.nodesDataSource=d,this.drawingsDataSource=h,this.nodes=[],this.drawing=[],this.lock="lock_open",this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.projectSubscription=this.projectServices.projectLockIconSubject.subscribe(function(i){i&&e.getAllNodesAndDrawingStatus()}),this.getAllNodesAndDrawingStatus()}},{key:"getCssClassForIcon",value:function(e){return"text"===e?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===e?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}}},{key:"takeScreenshot",value:function(){var e=this;this.dialog.open(TO,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.saveImage(o)})}},{key:"saveImage",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){var o,a,s,l,u,d,h,g,y;return Rn().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if("png"!==e.filetype){q.next=21;break}o=document.getElementsByTagName("svg")[0].outerHTML.split("image"),a=1;case 3:if(!(a<o.length)){q.next=14;break}return s=o[a].split('"'),l=s[1].split("/"),q.next=8,this.symbolService.raw(this.controller,l[7]).toPromise();case 8:u=q.sent,d=u.split("--\x3e"),o[a]=d[1].substring(2),a+=2,q.next=3;break;case 14:h=o.join(),(g=document.createElement("div")).innerHTML=h,y=g.firstChild,X9e.saveSvgAsPng(y,"".concat(e.name,".png")),q.next=23;break;case 21:Ci("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),fHe(Ci("svg").node(),"".concat(e.name));case 23:case"end":return q.stop()}},i,this)}))}},{key:"addDrawing",value:function(e){switch("rectangle"===e&&this.drawTools.isRectangleChosen||"ellipse"===e&&this.drawTools.isEllipseChosen||"line"===e&&this.drawTools.isLineChosen||"text"===e&&this.drawTools.isTextChosen?document.documentElement.style.cursor="default":document.documentElement.style.cursor="crosshair",e){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===e?"":e}},{key:"onDrawingSaved",value:function(){this.resetDrawToolChoice()}},{key:"resetDrawToolChoice",value:function(){document.documentElement.style.cursor="default",this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}},{key:"getAllNodesAndDrawingStatus",value:function(){var e=this;this.projectServices.getProjectStatus(this.controller,this.project.project_id).subscribe(function(i){i?(e.isLocked=!0,e.lock="lock"):(e.isLocked=!1,e.lock="lock_open")}),this.projectServices.nodes(this.controller,this.project.project_id).subscribe(function(i){e.nodes=i,e.nodes.forEach(function(o){e.nodeService.updateNode(e.controller,o).subscribe(function(a){e.nodesDataSource.update(a)})})}),this.projectServices.drawings(this.controller,this.project.project_id).subscribe(function(i){e.drawing=i,e.drawing.forEach(function(o){e.drawingService.update(e.controller,o).subscribe(function(a){e.drawingsDataSource.update(a)})})})}},{key:"changeLockValue",value:function(){var e=this;this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked),this.dialog.open(MO,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:{isAction:this.isLocked,actionType:1==this.isLocked?"Lock":"Unlock"}}).afterClosed().subscribe(function(o){o&&""!=o&&("Lock"==o.actionType&&o.isAction?e.lockAllNode():e.unlockAllNode())})}},{key:"lockAllNode",value:function(){var e=this;this.lock="lock",this.drawingService.lockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"unlockAllNode",value:function(){var e=this;this.lock="lock_open",this.drawingService.unLockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u=i.createSvgFileForImage(l,s);i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'"\n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"ngOnDestroy",value:function(){}}]),n}();_T.\u0275fac=function(r){return new(r||_T)(t.Y36(Yp),t.Y36(fl),t.Y36(Wa),t.Y36(Op),t.Y36(Gr),t.Y36(wc.f),t.Y36(Vs.Y),t.Y36(Fr),t.Y36(za.G),t.Y36(ya))},_T.\u0275cmp=t.Xpm({type:_T,selectors:[["app-project-map-menu"]],inputs:{project:"project",controller:"controller"},decls:24,vars:16,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"controller","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){return e.addDrawing("text")}),t.TgZ(1,"mat-icon",1),t._uU(2,"create"),t.qZA()(),t.TgZ(3,"input",2,3),t.NdJ("change",function(a){return e.uploadImageFile(a)}),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(4);return t.KtG(a.click())}),t.TgZ(6,"mat-icon"),t._uU(7,"image"),t.qZA()(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.addDrawing("rectangle")}),t.TgZ(9,"mat-icon",1),t._uU(10,"crop_3_2"),t.qZA()(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.addDrawing("ellipse")}),t.TgZ(12,"mat-icon",1),t._uU(13,"panorama_fish_eye"),t.qZA()(),t.YNc(14,_He,3,3,"button",7),t.YNc(15,gHe,3,3,"button",7),t.TgZ(16,"button",8),t.NdJ("click",function(){return e.changeLockValue()}),t.TgZ(17,"mat-icon",1),t._uU(18),t.qZA()(),t.TgZ(19,"button",9),t.NdJ("click",function(){return e.takeScreenshot()}),t.TgZ(20,"mat-icon",1),t._uU(21,"photo_camera"),t.qZA()(),t.TgZ(22,"app-drawing-added",10),t.NdJ("drawingSaved",function(){return e.onDrawingSaved()}),t.qZA(),t._UZ(23,"div",11)}2&r&&(t.xp6(1),t.Q6J("ngClass",e.getCssClassForIcon("text")),t.xp6(8),t.Q6J("ngClass",e.getCssClassForIcon("rectangle")),t.xp6(3),t.Q6J("ngClass",e.getCssClassForIcon("ellipse")),t.xp6(2),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(2),t.Q6J("ngClass",t.WLB(11,vHe,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),t.xp6(1),t.Oqu(e.lock),t.xp6(2),t.Q6J("ngClass",t.VKq(14,yHe,!e.isLocked&&e.isLightThemeEnabled)),t.xp6(2),t.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},dependencies:[se.mk,se.O5,dn,Dn,mi,SO],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.unmarked[_ngcontent-%COMP%]{color:#fff!important}.unmarkedLight[_ngcontent-%COMP%]{color:#000!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var bHe=["text"],EO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,U.Z)(n,[{key:"ngAfterViewInit",value:function(){var e="";this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e=i,setTimeout(function(){var o=ht(e);document.getElementById("text").innerHTML=o},1e3))})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();EO.\u0275fac=function(r){return new(r||EO)(t.Y36(cr),t.Y36(Vs.Y),t.Y36(t.SBq),t.Y36(t.Qsj))},EO.\u0275cmp=t.Xpm({type:EO,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(bHe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.text=i.first))},decls:6,vars:0,consts:[["mat-dialog-title",""],["id","text",1,"textWrapper"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Project README"),t.qZA(),t._UZ(2,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"Close"),t.qZA()())},dependencies:[dn,yr,dr],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var fv=function(){function n(r,e,i){(0,B.Z)(this,n),this.nodesDataSource=r,this.linksDataSource=e,this.drawingsDataSource=i,this.nodeNotificationEmitter=new t.vpe,this.linkNotificationEmitter=new t.vpe,this.drawingNotificationEmitter=new t.vpe,this.infoNotificationEmitter=new t.vpe,this.warningNotificationEmitter=new t.vpe,this.errorNotificationEmitter=new t.vpe}return(0,U.Z)(n,[{key:"handleMessage",value:function(e){"node.updated"===e.action&&(this.nodesDataSource.update(e.event),this.nodeNotificationEmitter.emit(e)),"node.created"===e.action&&(this.nodesDataSource.add(e.event),this.nodeNotificationEmitter.emit(e)),"node.deleted"===e.action&&(this.nodesDataSource.remove(e.event),this.nodeNotificationEmitter.emit(e)),"link.created"===e.action&&(this.linksDataSource.add(e.event),this.linkNotificationEmitter.emit(e)),"link.updated"===e.action&&(this.linksDataSource.update(e.event),this.linkNotificationEmitter.emit(e)),"link.deleted"===e.action&&(this.linksDataSource.remove(e.event),this.linkNotificationEmitter.emit(e)),"drawing.created"===e.action&&(this.drawingsDataSource.add(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.updated"===e.action&&(this.drawingsDataSource.update(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.deleted"===e.action&&(this.drawingsDataSource.remove(e.event),this.drawingNotificationEmitter.emit(e)),"log.error"===e.action&&this.errorNotificationEmitter.emit(e.event.message),"log.warning"===e.action&&this.warningNotificationEmitter.emit(e.event.message),"log.info"===e.action&&this.infoNotificationEmitter.emit(e.event.message)}}]),n}();fv.\u0275fac=function(r){return new(r||fv)(t.LFG(za.G),t.LFG(jm.F),t.LFG(ya))},fv.\u0275prov=t.Yz7({token:fv,factory:fv.\u0275fac});var CHe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),wHe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),qp=function(){function n(r,e,i){(0,B.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this.cssFixer.fix(e.style),o=this.fontFixer.fixStyles(i),a=this.fontBBoxCalculator.calculate(e.text,o),s=new wHe;return s.rotation=e.rotation,s.style=e.style,s.text=e.text,s.x=e.x,s.y=e.y,null!==s.x&&(s.x-=3),null!==s.y&&(s.y-=a.height),s}}]),n}();qp.\u0275fac=function(r){return new(r||qp)(t.LFG(Ip),t.LFG(Sc),t.LFG(os))},qp.\u0275prov=t.Yz7({token:qp,factory:qp.\u0275fac});var kHe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),pv=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new kHe;return i.adapter_number=e.adapterNumber,i.link_type=e.linkType,i.name=e.name,i.port_number=e.portNumber,i.short_name=e.shortName,i}}]),n}();pv.\u0275fac=function(r){return new(r||pv)},pv.\u0275prov=t.Yz7({token:pv,factory:pv.\u0275fac});var Vm=function(){function n(r,e){(0,B.Z)(this,n),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new CHe;return o.node_id=e.id,o.command_line=e.commandLine,o.compute_id=e.computeId,o.console=e.console,o.console_host=e.consoleHost,o.console_type=e.consoleType,o.first_port_name=e.firstPortName,o.height=e.height,o.label=e.label?this.mapLabelToLabel.convert(e.label):void 0,o.locked=e.locked,o.name=e.name,o.node_directory=e.nodeDirectory,o.node_type=e.nodeType,o.port_name_format=e.portNameFormat,o.port_segment_size=e.portSegmentSize,o.ports=e.ports?e.ports.map(function(a){return i.mapPortToPort.convert(a)}):[],o.project_id=e.projectId,o.status=e.status,o.symbol=e.symbol,o.symbol_url=e.symbolUrl,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,o}}]),n}();Vm.\u0275fac=function(r){return new(r||Vm)(t.LFG(qp),t.LFG(pv))},Vm.\u0275prov=t.Yz7({token:Vm,factory:Vm.\u0275fac});var THe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Bb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new THe;return i.drawing_id=e.id,i.project_id=e.projectId,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i.element=e.element,i}}]),n}();Bb.\u0275fac=function(r){return new(r||Bb)},Bb.\u0275prov=t.Yz7({token:Bb,factory:Bb.\u0275fac});var MHe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),SHe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),hv=function(){function n(r){(0,B.Z)(this,n),this.mapLabelToLabel=r}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new SHe;return i.node_id=e.nodeId,i.adapter_number=e.adapterNumber,i.port_number=e.portNumber,i.label=this.mapLabelToLabel.convert(e.label),i}}]),n}();hv.\u0275fac=function(r){return new(r||hv)(t.LFG(qp))},hv.\u0275prov=t.Yz7({token:hv,factory:hv.\u0275fac});var Fb=function(){function n(r){(0,B.Z)(this,n),this.mapLinkNodeToMapLinkNode=r}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new MHe;return o.link_id=e.id,o.capture_file_name=e.captureFileName,o.capture_file_path=e.captureFilePath,o.capturing=e.capturing,o.filters=e.filters,o.link_type=e.linkType,o.link_style=e.link_style,o.nodes=e.nodes.map(function(a){return i.mapLinkNodeToMapLinkNode.convert(a)}),o.project_id=e.projectId,o.suspend=e.suspend,o}}]),n}();Fb.\u0275fac=function(r){return new(r||Fb)(t.LFG(hv))},Fb.\u0275prov=t.Yz7({token:Fb,factory:Fb.\u0275fac});var ZF=m(9740),Ub=function(){function n(r){(0,B.Z)(this,n),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,U.Z)(n,[{key:"fix",value:function(e){e.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var i=this.fontBBCalculator.calculate(e.label.text,e.label.style);return e.label.x=e.width/2-i.width/2,e.label.y=-i.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,e}}]),n}();Ub.\u0275fac=function(r){return new(r||Ub)(t.LFG(Ip))},Ub.\u0275prov=t.Yz7({token:Ub,factory:Ub.\u0275fac});var jb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"notificationsPath",value:function(e){var i="ws";return"https:"===e.protocol&&(i="wss"),"".concat(i,"://").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/notifications/ws?token=").concat(e.authToken)}},{key:"projectNotificationsPath",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/projects/").concat(i,"/notifications/ws?token=").concat(e.authToken)}}]),n}();jb.\u0275fac=function(r){return new(r||jb)},jb.\u0275prov=t.Yz7({token:jb,factory:jb.\u0275fac});var Gse=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.x=r,this.y=e,this.dx=i,this.dy=o}),gT=function(){function n(r){(0,B.Z)(this,n),this.elementRef=r,this.dragging=new t.vpe,this.dragged=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=oo.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){e.posX=e.item.x,e.posY=e.item.y,e.startX=d.clientX,e.startY=d.clientY});var o=oo.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=oo.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=oo.y.fromEvent(document,"scroll").startWith({}),l=oo.y.combineLatest(a,s),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Yn.Z)(h,2),y=g[0];g[1];return y}).do(function(h){var g=e.startX-h.clientX,y=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-y),e.dragging.emit(new Gse(e.item.x,e.item.y,-g,-y))}).skipUntil(o.take(1).do(function(h){var g=e.startX-h.clientX,y=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-y),e.dragged.emit(new Gse(e.item.x,e.item.y,-g,-y))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),n}();gT.\u0275fac=function(r){return new(r||gT)(t.Y36(t.SBq))},gT.\u0275cmp=t.Xpm({type:gT,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:["app-draggable",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var DHe=["label"],AHe=["image"],vT=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}},{key:"ngOnChanges",value:function(e){this.cd.detectChanges()}},{key:"ngAfterViewInit",value:function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()}},{key:"OnDragging",value:function(e){this.node.x=e.x,this.node.y=e.y,this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new Jk(this.node,e.dx,e.dy))}},{key:"symbol",get:function(){var e=this;if(this.symbols){var i=this.symbols.find(function(o){return o.symbol_id===e.node.symbol});return i?"data:image/svg+xml;base64,"+btoa(i.raw):"data:image/svg+xml;base64,none"}}},{key:"label_style",get:function(){if(null!=this.node){var e=this.cssFixer.fix(this.node.label.style);return e=this.fontFixer.fixStyles(e),this.sanitizer.bypassSecurityTrustStyle(e)}}},{key:"label_x",get:function(){if(null!=this.node)return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+n.NODE_LABEL_MARGIN}},{key:"label_y",get:function(){if(this.labelHeight=this.getLabelHeight(),null!=this.node)return null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-n.NODE_LABEL_MARGIN}},{key:"getLabelHeight",value:function(){if(null!=this.label)return this.label.nativeElement.getBBox().height}}]),n}();vT.NODE_LABEL_MARGIN=3,vT.\u0275fac=function(r){return new(r||vT)(t.Y36(Sc),t.Y36(os),t.Y36(Dr),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(pd))},vT.\u0275cmp=t.Xpm({type:vT,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(DHe,5),t.Gf(AHe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.label=i.first),t.iGM(i=t.CRH())&&(e.imageRef=i.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[t.TTD],attrs:["app-node",""],decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0)(1,"image",1,2),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.qZA(),t.TgZ(3,"text",3,4),t._uU(5),t.qZA()()),2&r&&(t.uIk("transform","translate("+(null==e.node?null:e.node.x)+","+(null==e.node?null:e.node.y)+")"),t.xp6(1),t.Q6J("app-draggable",e.node),t.uIk("width",null==e.node?null:e.node.width)("height",null==e.node?null:e.node.height)("x",0)("y",0)("href",e.symbol,null,"xlink"),t.xp6(2),t.uIk("style",e.label_style,t.Ckj)("x",e.label_x)("y",e.label_y),t.xp6(2),t.hij(" ",null==e.node||null==e.node.label?null:e.node.label.text," "))},dependencies:[gT],changeDetection:0});var PHe=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"d",value:function(e){var i,o,a,s,l,u,d,h=[[(null===(i=null==e?void 0:e.source)||void 0===i?void 0:i.x)+(null===(o=null==e?void 0:e.source)||void 0===o?void 0:o.width)/2,(null==e?void 0:e.source.y)+(null===(a=null==e?void 0:e.source)||void 0===a?void 0:a.height)/2],[(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.x)+(null===(l=null==e?void 0:e.target)||void 0===l?void 0:l.width)/2,(null===(u=null==e?void 0:e.target)||void 0===u?void 0:u.y)+(null===(d=null==e?void 0:e.target)||void 0===d?void 0:d.height)/2]],g=jd();return g.moveTo(h[0][0],h[0][1]),g.lineTo(h[1][0],h[1][1]),g.toString()}}]),n}(),IHe=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"linkToPoints",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return[[i.x,i.y],h,g,[o.x,o.y]]}},{key:"d",value:function(e){var i=this.linkToPoints(e),o=jd();return o.moveTo(i[0][0],i[0][1]),o.lineTo(i[1][0],i[1][1]),o.lineTo(i[2][0],i[2][1]),o.lineTo(i[3][0],i[3][1]),o.toString()}}]),n}();function LHe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",3)),2&n){var e=t.oxw(2);t.uIk("cx",e.point.x)("cy",e.point.y)}}function ZHe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"rect",4)),2&n){var e=t.oxw(2);t.uIk("x",e.point.x-5)("y",e.point.y-5)}}function NHe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,LHe,1,2,"circle",1),t.YNc(2,ZHe,1,2,"rect",2),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf","started"==e.status),t.xp6(1),t.Q6J("ngIf","stopped"==e.status)}}var yT=function(){function n(r,e){(0,B.Z)(this,n),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,U.Z)(n,[{key:"status",get:function(){return this.data.status},set:function(e){this.data.status=e,this.ref.markForCheck()}},{key:"path",get:function(){return this.data.path},set:function(e){this.data.path=e,this.ref.markForCheck()}},{key:"direction",get:function(){return this.data.direction},set:function(e){this.data.direction=e,this.ref.markForCheck()}},{key:"d",set:function(e){this.data.d!==e&&(this.data.d=e,this.ref.markForCheck())}},{key:"sourceStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null}},{key:"targetStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null}},{key:"point",get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint}}]),n}();yT.STOPPED_STATUS_RECT_WIDTH=10,yT.\u0275fac=function(r){return new(r||yT)(t.Y36(t.SBq),t.Y36(t.sBO))},yT.\u0275cmp=t.Xpm({type:yT,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:["app-status",""],decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(r,e){1&r&&t.YNc(0,NHe,3,2,"g",0),2&r&&t.Q6J("ngIf",e.status&&e.point&&e.direction)},dependencies:[se.O5]});var BHe=["textSvg"],xO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.elementRef=r,this.ref=e,this.sanitizer=i,this.cssFixer=o,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"x",set:function(e){this.label.x=e,this.ref.detectChanges()}},{key:"y",set:function(e){this.label.y=e,this.ref.detectChanges()}},{key:"text",get:function(){return this.label.text},set:function(e){this.label.text=e,this.ref.detectChanges()}},{key:"style",set:function(e){this.label.style=this.cssFixer.fix(e),this.ref.detectChanges()}},{key:"rotation",set:function(e){this.label.rotation=e,this.ref.detectChanges()}},{key:"sanitizedStyle",get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)}},{key:"rectX",get:function(){return 0}},{key:"rectY",get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize}},{key:"rectWidth",get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize}},{key:"rectHeight",get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize}},{key:"transform",get:function(){if(this.elementRef.nativeElement.getBBox){var e=this.elementRef.nativeElement.getBBox(),i=this.label.x,o=this.label.y+e.height;return"translate(".concat(i,", ").concat(o,") rotate(").concat(this.label.rotation,", ").concat(i,", ").concat(o,")")}}}]),n}();xO.\u0275fac=function(r){return new(r||xO)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Dr),t.Y36(Sc))},xO.\u0275cmp=t.Xpm({type:xO,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(BHe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:["app-interface-label",""],decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t._UZ(1,"rect",1),t.TgZ(2,"text",2,3),t._uU(4),t.qZA()()),2&r&&(t.uIk("transform",e.transform),t.xp6(1),t.uIk("x",e.rectX)("y",e.rectY)("width",e.rectWidth)("height",e.rectHeight),t.xp6(1),t.uIk("style",e.sanitizedStyle,t.Ckj)("x",e.borderSize)("y",-e.borderSize),t.xp6(2),t.hij(" ",e.text," "))}});var UHe=["path"];function HHe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",5,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function GHe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",7,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function zHe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.style),t.Q6J("x",(null==e.link||null==e.link.source?null:e.link.source.x)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.x))("y",(null==e.link||null==e.link.source?null:e.link.source.y)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.y))("text",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.text)("rotation",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.rotation)}}function WHe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.style),t.Q6J("x",(null==e.link||null==e.link.target?null:e.link.target.x)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.x))("y",(null==e.link||null==e.link.target?null:e.link.target.y)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.y))("text",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.text)("rotation",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.rotation)}}var DO=function(){function n(r,e){(0,B.Z)(this,n),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new PHe,this.serialLinkStrategy=new IHe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.ref.detectChanges()}},{key:"ngOnDestroy",value:function(){}},{key:"strategy",get:function(){return this.link&&null!=this.link&&"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy}},{key:"transform",get:function(){if(this.link){var e=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate (".concat(e.dx,", ").concat(e.dy,")")}}},{key:"d",get:function(){return this.strategy.d(this.link)}}]),n}();DO.\u0275fac=function(r){return new(r||DO)(t.Y36(Fp),t.Y36(t.sBO))},DO.\u0275cmp=t.Xpm({type:DO,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(UHe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.path=i.first))},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:["app-link",""],decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,HHe,2,1,"path",1),t.YNc(2,GHe,2,1,"path",2),t._UZ(3,"g",3)(4,"g",3),t.YNc(5,zHe,1,6,"g",4),t.YNc(6,WHe,1,6,"g",4),t.qZA()),2&r&&(t.uIk("link_id",null==e.link?null:e.link.id)("map-source",null==e.link||null==e.link.source?null:e.link.source.id)("map-target",null==e.link||null==e.link.target?null:e.link.target.id)("transform",e.transform),t.xp6(1),t.Q6J("ngIf","ethernet"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("ngIf","serial"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.source?null:e.link.source.status)("direction","source")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.target?null:e.link.target.status)("direction","target")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels))},dependencies:[se.O5,yT,xO]});var AO=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.ellipse&&isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null}},{key:"stroke_width",get:function(){return this.ellipse&&isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.ellipse&&this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null}}]),n}();AO.\u0275fac=function(r){return new(r||AO)(t.Y36(Yu))},AO.\u0275cmp=t.Xpm({type:AO,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:["app-ellipse",""],decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"ellipse",0)),2&r&&t.uIk("fill",null==e.ellipse?null:e.ellipse.fill)("fill-opacity",e.fill_opacity)("stroke",null==e.ellipse?null:e.ellipse.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("cx",null==e.ellipse?null:e.ellipse.cx)("cy",null==e.ellipse?null:e.ellipse.cy)("rx",null==e.ellipse?null:e.ellipse.rx)("ry",null==e.ellipse?null:e.ellipse.ry)}});var OO=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();OO.\u0275fac=function(r){return new(r||OO)},OO.\u0275cmp=t.Xpm({type:OO,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:["app-image",""],decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"image",0)),2&r&&t.uIk("href",null==e.image?null:e.image.data,null,"xlink")("width",null==e.image?null:e.image.width)("height",null==e.image?null:e.image.height)}});var PO=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"stroke_width",get:function(){return this.line&&isFinite(this.line.stroke_width)?this.line.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.line&&this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null}}]),n}();PO.\u0275fac=function(r){return new(r||PO)(t.Y36(Yu))},PO.\u0275cmp=t.Xpm({type:PO,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:["app-line",""],decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(r,e){var i;(1&r&&(t.O4$(),t._UZ(0,"line",0)),2&r)&&t.uIk("stroke",null==e.line?null:e.line.stroke)("stroke-width",null!==(i=e.stroke_width)&&void 0!==i?i:"")("stroke-dasharray",e.stroke_dasharray)("x1",null==e.line?null:e.line.x1)("x2",null==e.line?null:e.line.x2)("y1",null==e.line?null:e.line.y1)("y2",null==e.line?null:e.line.y2)}});var IO=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.rect&&isFinite(this.rect.fill_opacity)&&this.rect.fill_opacity?this.rect.fill_opacity:null}},{key:"stroke_width",get:function(){return this.rect&&isFinite(this.rect.stroke_width)&&this.rect.stroke_width?this.rect.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.rect&&this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null}}]),n}();IO.\u0275fac=function(r){return new(r||IO)(t.Y36(Yu))},IO.\u0275cmp=t.Xpm({type:IO,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:["app-rect",""],decls:1,vars:9,consts:[[1,"rect_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("fill",null==e.rect?null:e.rect.fill)("fill-opacity",e.fill_opacity?e.fill_opacity:"")("stroke",null==e.rect?null:e.rect.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("width",null==e.rect?null:e.rect.width)("height",null==e.rect?null:e.rect.height)("rx",null==e.rect?null:e.rect.rx)("ry",null==e.rect?null:e.rect.ry)}});var JHe=["text"];function XHe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan",3),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.uIk("dy",0==i?"0em":"1.4em"),t.xp6(1),t.hij(" ",e," ")}}var bT=function(){function n(r,e){(0,B.Z)(this,n),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.text&&(this.lines=this.getLines(this.text.text))}},{key:"ngDoCheck",value:function(){this.transformation=this.calculateTransformation()}},{key:"style",get:function(){if(this.text){var e=this.fontFixer.fix(this.text),i=[];return e.font_family&&i.push('font-family: "'.concat(this.text.font_family,'"')),e.font_size&&i.push("font-size: ".concat(this.text.font_size,"pt")),e.font_weight&&i.push("font-weight: ".concat(this.text.font_weight)),this.sanitizer.bypassSecurityTrustStyle(i.join("; "))}}},{key:"textDecoration",get:function(){if(this.text)return this.text.text_decoration}},{key:"calculateTransformation",value:function(){if(null!=this.textRef){var e=this.textRef.nativeElement.getElementsByTagName("tspan");if(e.length>0){var i=this.textRef.nativeElement.getBBox().height/e.length;return"translate(".concat(n.MARGIN,", ").concat(i-n.MARGIN,")")}return""}}},{key:"getLines",value:function(e){return e.split(/\r?\n/)}}]),n}();bT.MARGIN=4,bT.\u0275fac=function(r){return new(r||bT)(t.Y36(os),t.Y36(Dr))},bT.\u0275cmp=t.Xpm({type:bT,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(JHe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{text:["app-text","text"]},attrs:["app-text",""],decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"text",0,1),t.YNc(2,XHe,2,2,"tspan",2),t.qZA()),2&r){var i=t.MAs(1);t.uIk("style",e.style,t.Ckj)("text-decoration",e.textDecoration)("fill",null==i?null:i.fill)("transform",e.transformation),t.xp6(2),t.Q6J("ngForOf",e.lines)}},dependencies:[se.sg]});function eGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",6)),2&n){var e=t.oxw();t.Q6J("app-ellipse",null==e.drawing?null:e.drawing.element)}}function tGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",7)),2&n){var e=t.oxw();t.Q6J("app-image",null==e.drawing?null:e.drawing.element)}}function nGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Q6J("app-line",null==e.drawing?null:e.drawing.element)}}function rGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",9)),2&n){var e=t.oxw();t.Q6J("app-rect",null==e.drawing?null:e.drawing.element)}}function iGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",10)),2&n){var e=t.oxw();t.Q6J("app-text",null==e.drawing?null:e.drawing.element)}}var RO=function(){function n(r,e,i){(0,B.Z)(this,n),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(e){}}},{key:"OnDragging",value:function(e){this.drawing.x=e?e.x:"",this.drawing.y=e?e.y:"",this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new Jk(this.drawing,e.dx,e.dy))}},{key:"is",value:function(e,i){return!!e&&("ellipse"===i?e instanceof ea:"image"===i?e instanceof TF:"line"===i?e instanceof bb:"rect"===i?e instanceof af:"text"===i&&e instanceof Cb)}},{key:"transformation",get:function(){if(this.drawing)return"translate(".concat(this.drawing.x,",").concat(this.drawing.y,") rotate(").concat(this.drawing.rotation,")")}}]),n}();RO.\u0275fac=function(r){return new(r||RO)(t.Y36(Wp),t.Y36(Zl),t.Y36(t.sBO))},RO.\u0275cmp=t.Xpm({type:RO,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:["app-drawing",""],decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.YNc(1,eGe,1,1,"g",1),t.YNc(2,tGe,1,1,"g",2),t.YNc(3,nGe,1,1,"g",3),t.YNc(4,rGe,1,1,"g",4),t.YNc(5,iGe,1,1,"g",5),t.qZA()),2&r&&(t.Q6J("app-draggable",e.drawing),t.uIk("transform",e.transformation),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"ellipse")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"image")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"line")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"rect")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"text")))},dependencies:[se.O5,AO,OO,PO,IO,bT,gT]});function aGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",2)),2&n){var e=t.oxw();t.uIk("d",e.d)}}var LO=function(){function n(r){(0,B.Z)(this,n),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=oo.y.fromEvent(this.svg,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){d.target===e.svg&&(e.started=!0,e.startX=(null==d?void 0:d.clientX)+(null==window?void 0:window.scrollX),e.startY=(null==d?void 0:d.clientY)+(null==window?void 0:window.scrollY),e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())});var o=oo.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=oo.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=oo.y.fromEvent(document,"scroll").startWith({}),l=oo.y.combineLatest([a,s]),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Yn.Z)(h,2),y=g[0];g[1];return y}).do(function(h){!e.started||(e.visible=!0,e.width=h.clientX-e.startX+window.scrollX,e.height=h.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))}).skipUntil(o.take(1).do(function(h){!e.started||(e.visible=!1,e.started=!1,e.width=h.clientX-e.startX+window.scrollX,e.height=h.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}},{key:"d",get:function(){return this.rect(this.startX,this.startY,this.width,this.height)}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.rectangleSelected.emit(new wse(o,a,s,l))}}]),n}();LO.\u0275fac=function(r){return new(r||LO)(t.Y36(t.sBO))},LO.\u0275cmp=t.Xpm({type:LO,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:["app-selection",""],decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,aGe,1,1,"path",1),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",e.visible))},dependencies:[se.O5]});var sGe=["svg"];function lGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",12)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-link",e)("show-interface-labels",i.settings.show_interface_labels)}}function uGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",13)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-node",e)("symbols",i.symbols)}}function cGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",14)),2&n){var e=r.$implicit;t.Q6J("app-drawing",e)}}function dGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g")(1,"g",6),t.YNc(2,lGe,1,2,"g",7),t.qZA(),t.TgZ(3,"g",8),t.YNc(4,uGe,1,2,"g",9),t.qZA(),t.TgZ(5,"g",10),t.YNc(6,cGe,1,1,"g",11),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Q6J("ngForOf",e.links),t.xp6(2),t.Q6J("ngForOf",e.nodes),t.xp6(2),t.Q6J("ngForOf",e.drawings)}}var ZO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.changeDetectorRef=a,this.layersManger=s,this.graphLayout=l,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return(0,U.Z)(n,[{key:"showInterfaceLabels",set:function(e){this.settings.show_interface_labels=e,this.mapChangeDetectorRef.detectChanges()}},{key:"movingTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"selectionTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){}},{key:"ngOnChanges",value:function(e){}},{key:"ngOnInit",value:function(){var e=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.graphDataManager.setNodes(e.nodes),e.graphDataManager.setLinks(e.links),e.graphDataManager.setDrawings(e.drawings),e.graphDataManager.setSymbols(e.symbols),e.changeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.changesDetected.unsubscribe()}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"layers",get:function(){return this.layersManger.getLayersList()}},{key:"transform",get:function(){var e=new Ks;e.size=this.getSize();var i=e.getZeroZeroTransformationPoint().x+e.transformation.x,o=e.getZeroZeroTransformationPoint().y+e.transformation.y,a=e.transformation.k;return"translate(".concat(i,", ").concat(o,") scale(").concat(a,")")}},{key:"onResize",value:function(e){}}]),n}();ZO.\u0275fac=function(r){return new(r||ZO)(t.Y36(Up),t.Y36(Ks),t.Y36(jp),t.Y36(qg),t.Y36(t.sBO),t.Y36(Fm),t.Y36(iv))},ZO.\u0275cmp=t.Xpm({type:ZO,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.svg=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[t.TTD],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"g"),t.YNc(3,dGe,7,3,"g",2),t.qZA(),t._UZ(4,"g",3),t.TgZ(5,"filter",4),t._UZ(6,"feColorMatrix",5),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("width",e.width)("height",e.height),t.xp6(2),t.uIk("transform",e.transform),t.xp6(1),t.Q6J("ngForOf",e.layers),t.xp6(1),t.Q6J("app-selection",i)}},dependencies:[se.sg,vT,DO,RO,LO],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var Hb=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"onCancelClick",value:function(){this.dialogRef.close(n.CANCELLED)}},{key:"ngOnInit",value:function(){}}]),n}();Hb.\u0275fac=function(r){return new(r||Hb)(t.Y36(cr),t.Y36(ko))},Hb.\u0275cmp=t.Xpm({type:Hb,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Operation in progress"),t.qZA(),t.TgZ(2,"div",1),t._UZ(3,"mat-progress-bar",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("value",e.value))},dependencies:[dn,yr,lu,dr,cb]});var fGe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Ym=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"create",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots"),o)}},{key:"delete",value:function(e,i,o){return this.httpController.delete(e,"/projects/".concat(i,"/snapshots/").concat(o))}},{key:"list",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i,"/snapshots"))}},{key:"restore",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots/").concat(o,"/restore"),{})}}]),n}();Ym.\u0275fac=function(r){return new(r||Ym)(t.LFG(ho.zw))},Ym.\u0275prov=t.Yz7({token:Ym,factory:Ym.\u0275fac});var NO=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new fGe,this.snapshots=[],this.controller=s.controller,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new J.p4("",J.kI.required)}),this.project&&this.project.project_id&&this.snapshotService.list(this.controller,this.project.project_id).subscribe(function(u){u.forEach(function(d){l.snapshots.push(d.name)})}),this.nodesDataSource&&this.nodesDataSource.getItems().forEach(function(u){"stopped"!==u.status&&!l.isAlwaysRunningNode(u.node_type)&&(l.isInRunningState=!0)})}return(0,U.Z)(n,[{key:"isAlwaysRunningNode",value:function(e){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou"].includes(e)}},{key:"onAddClick",value:function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();NO.\u0275fac=function(r){return new(r||NO)(t.Y36(cr),t.Y36(J.QS),t.Y36(Zn),t.Y36(Ym),t.Y36(za.G),t.Y36(ko))},NO.\u0275cmp=t.Xpm({type:NO,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Create snapshot"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to snapshots "),t.qZA()(),t.TgZ(5,"div",3)(6,"form",4)(7,"mat-form-field",5),t._UZ(8,"input",6),t.qZA()()(),t.TgZ(9,"div",7)(10,"button",8),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",9),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13,"Add"),t.qZA()()),2&r&&(t.xp6(3),t.hYB("routerLink","/controller/",null==e.controller?null:e.controller.id,"/project/",null==e.project?null:e.project.project_id,"/snapshots"),t.xp6(3),t.Q6J("formGroup",e.inputForm))},dependencies:[Wo,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,Kn,yr,lu,dr],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;box-shadow:none!important;background:transparent!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important;box-shadow:none!important}"]});var mv=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"open",value:function(){return this.dialog.open(Hb,{width:"250px",autoFocus:!1,disableClose:!0})}}]),n}();mv.\u0275fac=function(r){return new(r||mv)(t.LFG(Gr))},mv.\u0275prov=t.Yz7({token:mv,factory:mv.\u0275fac});var BO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(NO,{width:"450px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){if(o&&e.project.project_id){var a=e.snapshotService.create(e.controller,e.project.project_id,o),s=e.progressDialogService.open(),l=a.subscribe(function(u){e.toaster.success("Snapshot '".concat(o.name,"' has been created.")),s.close()});s.afterClosed().subscribe(function(u){u===Hb.CANCELLED&&l.unsubscribe()})}})}}]),n}();BO.\u0275fac=function(r){return new(r||BO)(t.Y36(Gr),t.Y36(Ym),t.Y36(mv),t.Y36(Zn))},BO.\u0275cmp=t.Xpm({type:BO,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",controller:"controller"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",1,"snapshot-button","menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.createSnapshotModal()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA()())},dependencies:[dn,Dn,mi]});var FO=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function pGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function hGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function mGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function _Ge(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",19),t.NdJ("valueChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedTemplate.compute_id=a)}),t.YNc(1,mGe,2,2,"mat-option",8),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("value",i.selectedTemplate.compute_id),t.xp6(1),t.Q6J("ngForOf",i.nodeControllers)}}FO.\u0275fac=function(r){return new(r||FO)},FO.\u0275pipe=t.Yjl({name:"templatefilter",type:FO,pure:!0});var dW=function(){return{standalone:!0}},UO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.templateService=e,this.formBuilder=i,this.data=o,this.toasterService=a,this.nonNegativeValidator=s,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeControllers=["local","vm"],this.controller=o.controller,this.project=o.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new J.p4(1,[J.kI.compose([J.kI.required,s.get])])}),this.positionForm=this.formBuilder.group({top:new J.p4(0,J.kI.required),left:new J.p4(0,J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.templates=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});this.filteredTemplates=o.filter(function(a){return a.template_type===e.value.toString()})}},{key:"chooseTemplate",value:function(e){this.selectedTemplate=e.value,("cloud"===this.selectedTemplate.template_type||"ethernet_hub"===this.selectedTemplate.template_type||"ethernet_switch"===this.selectedTemplate.template_type)&&(this.selectedTemplate.compute_id="local")}},{key:"onAddClick",value:function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var e=this.positionForm.get("left").value,i=this.positionForm.get("top").value;if(e>this.project.scene_width/2||e<-this.project.scene_width/2||i>this.project.scene_height/2||i<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var o={template:this.selectedTemplate,controller:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:e,y:i};this.dialogRef.close(o)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")}}]),n}();UO.\u0275fac=function(r){return new(r||UO)(t.Y36(cr),t.Y36(Xd),t.Y36(J.QS),t.Y36(ko),t.Y36(Zn),t.Y36(uf))},UO.\u0275cmp=t.Xpm({type:UO,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name","ngDefaultControl","",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose controller for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose controller for node",3,"value","valueChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Add a node"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to template preferences "),t.qZA()(),t.TgZ(5,"div",3)(6,"div",0)(7,"h6"),t._uU(8,"Template"),t.qZA()(),t.TgZ(9,"mat-form-field",4)(10,"input",5),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(11,"mat-form-field",6)(12,"mat-select",7),t.NdJ("selectionChange",function(o){return e.filterTemplates(o)})("ngModelChange",function(o){return e.selectedType=o}),t.YNc(13,pGe,2,2,"mat-option",8),t.qZA()(),t.TgZ(14,"mat-form-field",6)(15,"mat-select",9),t.NdJ("selectionChange",function(o){return e.chooseTemplate(o)})("ngModelChange",function(o){return e.selectedTemplate=o}),t.YNc(16,hGe,2,2,"mat-option",8),t.ALo(17,"templatefilter"),t.qZA()(),t.TgZ(18,"div",0)(19,"h6"),t._uU(20,"Configuration"),t.qZA()(),t.TgZ(21,"form",10)(22,"mat-form-field",6),t._UZ(23,"input",11),t.qZA()(),t.YNc(24,_Ge,2,2,"mat-select",12),t.TgZ(25,"div",0)(26,"h6"),t._uU(27,"Position"),t.qZA()(),t.TgZ(28,"form",10),t._uU(29," Left:\xa0 "),t.TgZ(30,"mat-form-field"),t._UZ(31,"input",13),t.qZA(),t._uU(32," Top:\xa0 "),t.TgZ(33,"mat-form-field"),t._UZ(34,"input",14),t.qZA()()(),t.TgZ(35,"div",15)(36,"button",16),t.NdJ("click",function(){return e.onNoClick()}),t._uU(37,"Close"),t.qZA(),t.TgZ(38,"button",17),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add "),t.qZA()()),2&r&&(t.xp6(3),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(15,dW)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,dW))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,dW))("ngModel",e.selectedTemplate),t.xp6(1),t.Q6J("ngForOf",t.xi3(17,12,e.filteredTemplates,e.searchText)),t.xp6(5),t.Q6J("formGroup",e.configurationForm),t.xp6(3),t.Q6J("ngIf",e.selectedTemplate),t.xp6(4),t.Q6J("formGroup",e.positionForm))},dependencies:[se.sg,se.O5,Wo,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,lu,dr,ri.gD,Gt.ey,FO],styles:[".header[_ngcontent-%COMP%]{min-height:64px;display:flex;align-items:baseline;padding:8px 24px 0;font-size:20px;justify-content:space-between}.mat-table[_ngcontent-%COMP%]{height:200px;overflow:scroll}.mat-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.form-field[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}h6[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px;color:#0097a7}mat-table[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.filterBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}"]});function gGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var NF=function(r,e){return{templateText:r,lightTemplateText:e}};function vGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+1]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,NF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+1].name)}}function yGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+2]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,NF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+2].name)}}function bGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+3]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,NF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+3].name)}}function CGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",13)(1,"span",14)(2,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(2);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw().index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l]))}),t._UZ(3,"img",16),t.qZA(),t.TgZ(4,"div",17),t._uU(5),t.qZA()(),t.YNc(6,vGe,5,6,"span",18),t.YNc(7,yGe,5,6,"span",18),t.YNc(8,bGe,5,6,"span",18),t.qZA()}if(2&n){var i=t.oxw().index,o=t.oxw();t.xp6(3),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(6,NF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i].name),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+1]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+2]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+3])}}function wGe(n,r){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,CGe,9,9,"span",12),t.qZA()),2&n){var e=r.index;t.xp6(1),t.Q6J("ngIf",e%4==0)}}var zse=function(){return{standalone:!0}},jO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialog=r,this.templateService=e,this.scaleService=i,this.symbolService=o,this.domSanitizer=a,this.themeService=s,this.overlayContainer=l,this.onNodeCreation=new t.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.isLightThemeEnabled=!1,this.overlay=l.getContainerElement()}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(i){e.templates.push(i)}),this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.sortTemplates(),e.templates=i}),this.symbolService.list(this.controller),"light"===this.themeService.getActualTheme()&&(this.isLightThemeEnabled=!0),this.themeSubscription=this.themeService.themeChanged.subscribe(function(i){"light-theme"===i&&(e.isLightThemeEnabled=!0),e.toggleTheme()})}},{key:"toggleTheme",value:function(){this.overlay.classList.contains("dark-theme")?(this.overlay.classList.remove("dark-theme"),this.overlay.classList.add("light-theme")):this.overlay.classList.contains("light-theme")?(this.overlay.classList.remove("light-theme"),this.overlay.classList.add("dark-theme")):this.overlay.classList.add("light-theme")}},{key:"sortTemplates",value:function(){this.filteredTemplates=this.filteredTemplates.sort(function(e,i){return e.name<i.name?-1:1})}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all"!==this.selectedType&&this.selectedType?this.filteredTemplates=o.filter(function(a){return a.template_type===i.selectedType}):this.filteredTemplates=o,this.sortTemplates()}},{key:"dragStart",value:function(e){var i=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=i.top-event.clientY,this.movementX=i.left-event.clientX}},{key:"dragEnd",value:function(e,i){var o=this;this.symbolService.raw(this.controller,i.symbol.substring(1)).subscribe(function(a){var s=+a.split('width="')[1].split('"')[0]?+a.split('width="')[1].split('"')[0]:0,l=o.scaleService.getScale(),u={template:i,controller:"local",numberOfNodes:1,x:(o.startX+e.x-o.project.scene_width/2-s/2)*l+window.scrollX,y:(o.startY+e.y-o.project.scene_height/2)*l+window.scrollY};o.onNodeCreation.emit(u)})}},{key:"openDialog",value:function(){var e=this;this.dialog.open(UO,{width:"600px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){null!==o&&e.onNodeCreation.emit(o)})}},{key:"getImageSourceForTemplate",value:function(e){return this.symbolService.getSymbolFromTemplate(this.controller,e)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();jO.\u0275fac=function(r){return new(r||jO)(t.Y36(Gr),t.Y36(Xd),t.Y36(sf),t.Y36(Op),t.Y36(Dr),t.Y36(wc.f),t.Y36(Li.Xj))},jO.\u0275cmp=t.Xpm({type:jO,selectors:[["app-template"]],inputs:{controller:"controller",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search template by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",3,"dragStart","dragEnd"],[1,"image",3,"src"],[3,"ngClass"],["class","templateIcon",4,"ngIf"]],template:function(r,e){if(1&r&&(t.TgZ(0,"button",0)(1,"mat-icon"),t._uU(2,"add"),t.qZA()(),t.TgZ(3,"mat-menu",null,1)(5,"button",2),t.NdJ("click",function(){return e.openDialog()}),t.TgZ(6,"mat-icon"),t._uU(7,"add_to_queue"),t.qZA(),t.TgZ(8,"span"),t._uU(9,"Open dialog to configure"),t.qZA()(),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(11,"input",4),t.NdJ("keyup",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(12,"mat-form-field",5),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(13,"mat-select",6),t.NdJ("selectionChange",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.selectedType=a}),t.YNc(14,gGe,2,2,"mat-option",7),t.qZA()(),t.TgZ(15,"div",8)(16,"div",9),t.YNc(17,wGe,2,1,"mat-list-item",10),t.qZA()()()),2&r){var i=t.MAs(4);t.Q6J("matMenuTriggerFor",i),t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(7,zse)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,zse))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(3),t.Q6J("ngForOf",e.filteredTemplates)}},dependencies:[se.mk,se.sg,se.O5,J.Fj,J.JJ,J.On,kn.KE,Ga,Er,ga,GE,dn,Dn,Kn,Oa,ri.gD,Gt.ey,mi],styles:[".mat-menu-panel{max-width:400px;max-height:500px}.menu[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.form-field[_ngcontent-%COMP%]{width:90%;margin-left:5%;margin-right:5%}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.templateList[_ngcontent-%COMP%]{width:100%}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.lightTemplateText[_ngcontent-%COMP%]{word-wrap:break-word;color:#000}.templateIcon[_ngcontent-%COMP%]{width:80px!important;padding:10px}"]});var kGe=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function TGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",10),t.qZA())}function MGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",11),t.qZA())}function SGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.chooseInterface(s))}),t.YNc(1,TGe,2,0,"svg",7),t.YNc(2,MGe,2,0,"svg",7),t.TgZ(3,"span",8),t._uU(4),t.qZA()()}if(2&n){var i=r.$implicit;t.Q6J("disabled",!i.available),t.xp6(1),t.Q6J("ngIf",i.available),t.xp6(1),t.Q6J("ngIf",!i.available),t.xp6(2),t.Oqu(i.name)}}function EGe(n,r){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"span",2),t.TgZ(2,"mat-menu",3,4),t.YNc(4,SGe,5,4,"button",5),t.qZA()()),2&n){var e=t.MAs(3),i=t.oxw();t.Udp("left",i.leftPosition)("top",i.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Udp("min-height",0),t.xp6(2),t.Q6J("ngForOf",i.ports)}}var CT=function(){function n(r,e){(0,B.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0)}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"open",value:function(e,i,o){this.node=e,this.filterNodePorts(),this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"filterNodePorts",value:function(){var e=this,i=[];this.links.forEach(function(o){o.nodes.forEach(function(a){a.node_id===e.node.node_id&&i.push(a)})}),this.ports=[],this.node.ports.forEach(function(o){var a=i.filter(function(s){return s.adapter_number===o.adapter_number});0===a.length||0===a.filter(function(s){return s.port_number===o.port_number}).length?o.available=!0:o.available=!1,e.ports.push(o)})}},{key:"chooseInterface",value:function(e){this.onChooseInterface.emit({node:this.node,port:e})}}]),n}();CT.\u0275fac=function(r){return new(r||CT)(t.Y36(Dr),t.Y36(t.sBO))},CT.\u0275cmp=t.Xpm({type:CT,selectors:[["app-node-select-interface"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ga,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(r,e){1&r&&t.YNc(0,EGe,5,8,"div",0),2&r&&t.Q6J("ngIf",e.node)},dependencies:[se.sg,se.O5,Ga,Er,ga],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute}.context-menu-items[_ngcontent-%COMP%]{min-height:0px!important}.status[_ngcontent-%COMP%]{margin-right:10px}.port[_ngcontent-%COMP%]{margin-left:10px}"]});var HO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(i){var o=e.mapNodeToNode.convert(i.datum);e.nodeSelectInterfaceMenu.open(o,i.y,i.x)})}},{key:"ngOnDestroy",value:function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()}},{key:"onChooseInterface",value:function(e){var i=this.nodeToMapNode.convert(e.node),o=this.portToMapPort.convert(e.port);if(this.drawingLineTool.isDrawing()){var a=this.drawingLineTool.stop();this.linksEventSource.created.emit(new kGe(a.node,a.port,i,o))}else this.drawingLineTool.start(i.x+i.width/2,i.y+i.height/2,{node:i,port:o})}}]),n}();HO.\u0275fac=function(r){return new(r||HO)(t.Y36($g),t.Y36(pd),t.Y36(hd),t.Y36(Vm),t.Y36(Yg),t.Y36(Vg))},HO.\u0275cmp=t.Xpm({type:HO,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(CT,5),2&r)&&(t.iGM(i=t.CRH())&&(e.nodeSelectInterfaceMenu=i.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(r,e){1&r&&(t.TgZ(0,"app-node-select-interface",0),t.NdJ("onChooseInterface",function(o){return e.onChooseInterface(o)}),t.qZA()),2&r&&t.Q6J("links",e.links)},dependencies:[CT]});var GO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(i){return e.onDrawingResized(i)})}},{key:"onDrawingResized",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id),a=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.controller,o,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.update(s)})}},{key:"ngOnDestroy",value:function(){this.drawingResized.unsubscribe()}}]),n}();GO.\u0275fac=function(r){return new(r||GO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(_d))},GO.\u0275cmp=t.Xpm({type:GO,selectors:[["app-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var zO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(i){return e.onTextAdded(i)})}},{key:"onTextAdded",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock("text");o.element.text=e.savedText;var a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,(e.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(e.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textAdded.unsubscribe()}}]),n}();zO.\u0275fac=function(r){return new(r||zO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(dv),t.Y36(_d),t.Y36(Ks))},zO.\u0275cmp=t.Xpm({type:zO,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){}});var WO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(i){return e.onTextEdited(i)})}},{key:"onTextEdited",value:function(e){var i=this,o=new Nm;o.element=e.textElement,o.element.text=e.editedText;var a=this.mapDrawingToSvgConverter.convert(o),s=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.controller,s,a).subscribe(function(l){i.drawingsDataSource.update(l),i.drawingsEventSource.textSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textEdited.unsubscribe()}}]),n}();WO.\u0275fac=function(r){return new(r||WO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(_d))},WO.\u0275cmp=t.Xpm({type:WO,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var VO=function(){function n(r,e,i){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe(function(i){return e.onNodeDragged(i)})}},{key:"onNodeDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.nodeService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.nodesDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.nodeDragged.unsubscribe()}}]),n}();VO.\u0275fac=function(r){return new(r||VO)(t.Y36(za.G),t.Y36(Fr),t.Y36(pd))},VO.\u0275cmp=t.Xpm({type:VO,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var YO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(i){return e.onNodeLabelDragged(i)})}},{key:"onNodeLabelDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.nodeId),a=e.datum;a.x+=e.dx,a.y+=e.dy;var s=this.mapLabelToLabel.convert(a);o.label=s,this.nodeService.updateLabel(this.controller,o,o.label).subscribe(function(l){i.nodesDataSource.update(l)})}},{key:"ngOnDestroy",value:function(){this.nodeLabelDragged.unsubscribe()}}]),n}();YO.\u0275fac=function(r){return new(r||YO)(t.Y36(za.G),t.Y36(Fr),t.Y36(pd),t.Y36(qp))},YO.\u0275cmp=t.Xpm({type:YO,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var KO=function(){function n(r,e,i){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe(function(i){return e.onDrawingDragged(i)})}},{key:"onDrawingDragged",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.drawingService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.drawingsDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.drawingDragged.unsubscribe()}}]),n}();KO.\u0275fac=function(r){return new(r||KO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl))},KO.\u0275cmp=t.Xpm({type:KO,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var qO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkCreated=this.linksEventSource.created.subscribe(function(i){return e.onLinkCreated(i)})}},{key:"onLinkCreated",value:function(e){var i=this,o=Math.abs(e.sourceNode.x-e.targetNode.x),a=Math.abs(e.sourceNode.y-e.targetNode.y),s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2)),l=a/s,u=45/s*o,d=45/s*a,h=0,g=0,y=0,L=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5,g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5,y=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),L=Math.floor(e.targetNode.height/2)-Math.round(d)+5-Math.round(20*l)):e.sourceNode.x>e.targetNode.x&&e.sourceNode.y<e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5-Math.round(20*l),y=Math.floor(e.targetNode.width/2)+Math.round(u)+5,L=Math.floor(e.targetNode.height/2)-Math.round(d)-5):e.sourceNode.x<e.targetNode.x&&e.sourceNode.y>e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)-5-Math.round(20*l),y=Math.floor(e.targetNode.width/2)-Math.round(u)-5,L=Math.floor(e.targetNode.height/2)+Math.round(d)+5):e.sourceNode.x>=e.targetNode.x&&e.sourceNode.y>=e.targetNode.y&&(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)+5-Math.round(20*l),y=Math.floor(e.targetNode.width/2)+Math.round(u)+5,L=Math.floor(e.targetNode.height/2)+Math.round(d)+5);var z=this.mapNodeToNode.convert(e.sourceNode),q=this.mapPortToPort.convert(e.sourcePort),re=this.mapNodeToNode.convert(e.targetNode),ae=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.controller,z,q,re,ae,h,g,y,L).subscribe(function(){i.projectService.links(i.controller,i.project.project_id).subscribe(function(Se){i.linksDataSource.set(Se)})})}},{key:"ngOnDestroy",value:function(){this.linkCreated.unsubscribe()}}]),n}();qO.\u0275fac=function(r){return new(r||qO)(t.Y36(Vs.Y),t.Y36(pl),t.Y36(jm.F),t.Y36(hd),t.Y36(Vm),t.Y36(pv))},qO.\u0275cmp=t.Xpm({type:qO,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var JO=function(){function n(r,e,i){(0,B.Z)(this,n),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe(function(i){return e.onInterfaceLabelDragged(i)})}},{key:"onInterfaceLabelDragged",value:function(e){var i=this,o=this.linksDataSource.get(e.datum.linkId);o.nodes[0].node_id===e.datum.nodeId&&(o.nodes[0].label.x+=e.dx,o.nodes[0].label.y+=e.dy),o.nodes[1].node_id===e.datum.nodeId&&(o.nodes[1].label.x+=e.dx,o.nodes[1].label.y+=e.dy),this.linkService.updateNodes(this.controller,o,o.nodes).subscribe(function(a){i.linksDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.interfaceDragged.unsubscribe()}}]),n}();JO.\u0275fac=function(r){return new(r||JO)(t.Y36(pl),t.Y36(jm.F),t.Y36(hd))},JO.\u0275cmp=t.Xpm({type:JO,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var QO=function(){function n(r,e){(0,B.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data}},{key:"confirmAction",value:function(){this.confirmActionData.isAction=!0,this.dialogRef.close(this.confirmActionData)}}]),n}();QO.\u0275fac=function(r){return new(r||QO)(t.Y36(ko),t.Y36(cr))},QO.\u0275cmp=t.Xpm({type:QO,selectors:[["app-nodes-menu-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[dn,Pg,lu,dr,hm.d],styles:[".close-btn[_ngcontent-%COMP%]{height:30px;width:30px;margin-left:10px;margin-bottom:10px}.close-icon[_ngcontent-%COMP%]{font-size:15px}.text-padding[_ngcontent-%COMP%]{padding:15px 0 0}.mat-dialog-actions[_ngcontent-%COMP%]{min-height:31px}.heading-txt[_ngcontent-%COMP%]{text-transform:capitalize}"]});var XO=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.nodeService=r,this.nodeConsoleService=e,this.nodesDataSource=i,this.toasterService=o,this.controllerService=a,this.settingsService=s,this.mapSettingsService=l,this.electronService=u,this.dialog=d}return(0,U.Z)(n,[{key:"startConsoleForAllNodes",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,o,a,s,l,u;return Rn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!this.electronService.isElectronApp){h.next=23;break}i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),o=this.nodesDataSource.getItems(),a=(0,An.Z)(o),h.prev=4,a.s();case 6:if((s=a.n()).done){h.next=13;break}return l=s.value,u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=11,this.electronService.remote.require("./console-executor.js").openConsole(u);case 11:h.next=6;break;case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(4),a.e(h.t0);case 18:return h.prev=18,a.f(),h.finish(18);case 21:h.next=24;break;case 23:this.mapSettingsService.openConsolesInWidget?this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodesDataSource.getItems()):this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodesDataSource.getItems());case 24:case"end":return h.stop()}},e,this,[[4,15,18,21]])}))}},{key:"startNodes",value:function(){var e=this;this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully started")})}},{key:"stopNodes",value:function(){var e=this;this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully stopped")})}},{key:"suspendNodes",value:function(){var e=this;this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully suspended")})}},{key:"reloadNodes",value:function(){var e=this;this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully reloaded")})}},{key:"resetNodes",value:function(){var e=this;this.nodeService.resetAllNodes(this.controller,this.project).subscribe(function(){e.toasterService.success("Successfully reset all console connections")})}},{key:"confirmControlsActions",value:function(e){var i=this;this.dialog.open(QO,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:e}).afterClosed().subscribe(function(a){a.isAction&&"start"==a.actionType?i.startNodes():a.isAction&&"stop"==a.actionType?i.stopNodes():a.isAction&&"reload"==a.actionType?i.reloadNodes():a.isAction&&"suspend"==a.actionType?i.suspendNodes():i.resetNodes()})}}]),n}();XO.\u0275fac=function(r){return new(r||XO)(t.Y36(Fr),t.Y36(cu),t.Y36(za.G),t.Y36(Zn),t.Y36(or),t.Y36(Gm.g),t.Y36(fl),t.Y36(ul),t.Y36(Gr))},XO.\u0275cmp=t.Xpm({type:XO,selectors:[["app-nodes-menu"]],inputs:{project:"project",controller:"controller"},decls:19,vars:0,consts:[[1,"menu-button-group"],["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reset all console connections","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return e.startConsoleForAllNodes()}),t.TgZ(2,"mat-icon"),t._uU(3,"web_asset"),t.qZA()(),t.TgZ(4,"button",2),t.NdJ("click",function(){return e.confirmControlsActions("start")}),t.TgZ(5,"mat-icon"),t._uU(6,"play_arrow"),t.qZA()(),t.TgZ(7,"button",3),t.NdJ("click",function(){return e.confirmControlsActions("suspend")}),t.TgZ(8,"mat-icon"),t._uU(9,"pause"),t.qZA()(),t.TgZ(10,"button",4),t.NdJ("click",function(){return e.confirmControlsActions("stop")}),t.TgZ(11,"mat-icon"),t._uU(12,"stop"),t.qZA()(),t.TgZ(13,"button",5),t.NdJ("click",function(){return e.confirmControlsActions("reload")}),t.TgZ(14,"mat-icon"),t._uU(15,"replay"),t.qZA()(),t.TgZ(16,"button",6),t.NdJ("click",function(){return e.confirmControlsActions("reset")}),t.TgZ(17,"mat-icon"),t._uU(18,"compare_arrows"),t.qZA()()())},dependencies:[dn,Dn,mi],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var $O=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(i,o,a,s){"qemu"===e.template.template_type?e.qemuService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"iou"===e.template.template_type?e.iouService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"dynamips"===e.template.template_type?e.iosService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"docker"===e.template.template_type&&e.dockerService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()})}}},{key:"onUploadComplete",value:function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]}},{key:"uploadAppliance",value:function(e){var l,i=this,o=e.target.files[0],a=o.name,s=new FileReader;s.onloadend=function(){var u=JSON.parse(s.result);if(u.qemu)(l=new ez).template_type="qemu",l.adapter_type=u.qemu.adapter_type,l.adapters=u.qemu.adapters,l.ram=u.qemu.ram,l.options=u.qemu.options,l.console_type=u.qemu.console_type;else if(u.iou)(l=new $G).template_type="iou",l.console_type=u.iou.console_type,l.console_auto_start=u.iou.console_auto_start,l.ethernet_adapters=u.iou.ethernet_adapters,l.l1_keepalives=u.iou.l1_keepalives,l.use_default_iou_values=u.iou.use_default_iou_values,l.nvram=u.iou.nvram,l.ram=u.iou.ram,l.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(l=new XG).template_type="dynamips",l.platform=u.dynamips.platform,l.ram=u.dynamips.ram,l.nvram=u.dynamips.nvram,l.startup_config=u.dynamips.startup_config,l.wic0=u.dynamips.wic0,l.wic1=u.dynamips.wic1,l.wic2=u.dynamips.wic2,l.slot0=u.dynamips.slot0,l.slot1=u.dynamips.slot1,l.slot2=u.dynamips.slot2,l.slot3=u.dynamips.slot3,l.slot4=u.dynamips.slot4,l.slot5=u.dynamips.slot5,l.slot6=u.dynamips.slot6,l.slot7=u.dynamips.slot7;else{if(!u.docker)return void i.toasterService.error("Template type not supported");(l=new QG).template_type="docker",l.adapters=u.docker.adapters,l.console_type=u.docker.console_type,l.image=u.docker.image}l.name=u.name,l.category=u.category,l.builtin=!1,l.default_name_format="{name}-{0}",l.compute_id="vm","guest"===l.category?l.symbol=":/symbols/computer.svg":l.symbol=":/symbols/".concat(l.category,"_guest.svg"),i.template=l;var h=i.getUploadPath(i.controller,l.template_type,a);i.uploader.queue.forEach(function(y){return y.url=h});var g=i.uploader.queue[0];i.uploader.uploadItem(g)},s.readAsText(o)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/").concat(i,"/images/").concat(o)}}]),n}();$O.\u0275fac=function(r){return new(r||$O)(t.Y36(Zn),t.Y36(id),t.Y36(Gu),t.Y36(ld),t.Y36(sd))},$O.\u0275cmp=t.Xpm({type:$O,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){}});var Wse=m(4147).i8,_v=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(YB.o);_v.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_v)))(e||_v)}}(),_v.\u0275prov=t.Yz7({token:_v,factory:_v.\u0275fac});var xGe=["console"];function DGe(n,r){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t._UZ(2,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.message," ")}}var BF=function(r){return{lightTheme:r}},eP=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.projectWebServiceHandler=r,this.nodeService=e,this.nodesDataSource=i,this.logEventsDataSource=o,this.httpService=a,this.themeService=s,this.cd=l,this.nodeConsoleService=u,this.changeDetectorRef=d,this.version=Wse,this.command="",this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new J.p4(0)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeConsoleService.consoleResized.subscribe(function(i){e.style={bottom:"20px",left:"20px",width:"".concat(i.width,"px"),height:"".concat(i.height-70,"px")},e.changeDetectorRef.detectChanges()}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(i){var o=i.event,a="";a=o.label?"Event received: ".concat(i.action," - ").concat(e.printNode(o),"."):"Event received: ".concat(i.action," - ").concat(o.name,"."),e.showMessage({type:"map update",message:a})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printLink(o),".");e.showMessage({type:"map update",message:a})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printDrawing(o),".");e.showMessage({type:"map update",message:a})}),this.controllerRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(i){e.showMessage({type:"controller request",message:i})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(i){e.showMessage({type:"info",message:i})})}},{key:"ngAfterViewInit",value:function(){this.console.nativeElement&&(this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight)}},{key:"ngOnDestroy",value:function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.controllerRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()}},{key:"applyFilter",value:function(e){this.selectedFilter=e,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.handleCommand()}},{key:"handleCommand",value:function(){var e=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes started.")});else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes stopped.")});else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes suspended.")});else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes reloaded.")});else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var i=this.command.split(/[ ,]+/),o=this.nodesDataSource.getItems().find(function(a){return a.name.valueOf()===i[1].valueOf()});o?this.regexStart.test(this.command)?(this.showCommand("Starting node ".concat(i[1],"...")),this.nodeService.start(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," started."))})):this.regexStop.test(this.command)?(this.showCommand("Stopping node ".concat(i[1],"...")),this.nodeService.stop(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," stopped."))})):this.regexSuspend.test(this.command)?(this.showCommand("Suspending node ".concat(i[1],"...")),this.nodeService.suspend(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," suspended."))})):this.regexReload.test(this.command)?(this.showCommand("Reloading node ".concat(i[1],"...")),this.nodeService.reload(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," reloaded."))})):this.regexConsole.test(this.command)?"started"===o.status?(this.showCommand("Launching console for node ".concat(i[1],"...")),"telnet"===o.console_type?location.assign("gns3+telnet://[".concat(o.console_host,"]:").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):"vnc"===o.console_type?location.assign("gns3+vnc://[".concat(o.console_host,"]:").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("spice")?location.assign("gns3+spice://[".concat(o.console_host,"]:").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("http")?window.open("".concat(o.console_type,"://[").concat(o.console_host,"]:").concat(o.console)):this.showCommand("Supported console types are: telnet, vnc, spice and spice+agent")):this.showCommand("This node must be started before a console can be opened."):this.regexShow.test(this.command)&&(this.showCommand("Information about node ".concat(o.name,":")),this.showCommand(this.printNode(o))):this.showCommand("Node with ".concat(i[1]," name was not found."))}else this.showCommand("Unknown syntax: ".concat(this.command));this.command="",this.cd.detectChanges()}},{key:"clearConsole",value:function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight}},{key:"showCommand",value:function(e){this.showMessage({type:"command",message:e})}},{key:"showMessage",value:function(e){var i=this;this.logEventsDataSource.add(e),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout(function(){i.console.nativeElement.scrollTop=i.console.nativeElement.scrollHeight},100),this.cd.detectChanges()}},{key:"getFilteredEvents",value:function(){return"controller requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"controller request"===e.type}):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"error"===e.type}):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"warning"===e.type}):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"info"===e.type}):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"map update"===e.type||"command"===e.type}):this.logEventsDataSource.getItems()}},{key:"printNode",value:function(e){return"command_line: ".concat(e.command_line,",\n compute_id: ").concat(e.compute_id,",\n console: ").concat(e.console,",\n console_host: ").concat(e.console_host,",\n console_type: ").concat(e.console_type,",\n first_port_name: ").concat(e.first_port_name,",\n height: ").concat(e.height,",\n label: ").concat(e.label.text,",\n name: ").concat(e.name,",\n node_directory: ").concat(e.node_directory,",\n node_id: ").concat(e.node_id,",\n node_type: ").concat(e.node_type,",\n port_name_format: ").concat(e.port_name_format,",\n port_segment_size: ").concat(e.port_segment_size,", ")+this.printPorts(e.ports)+"project_id: ".concat(e.project_id,",\n status: ").concat(e.status,",\n symbol: ").concat(e.symbol,",\n symbol_url: ").concat(e.symbol_url,",\n width: ").concat(e.width,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}},{key:"printPorts",value:function(e){var i="ports: ";return e.forEach(function(o){i+="adapter_number: ".concat(o.adapter_number,",\n link_type: ").concat(o.link_type,",\n name: ").concat(o.name,",\n port_number: ").concat(o.port_number,",\n short_name: ").concat(o.short_name,", ")}),i}},{key:"printLink",value:function(e){return"capture_file_name: ".concat(e.capture_file_name,",\n capture_file_path: ").concat(e.capture_file_path,",\n capturing: ").concat(e.capturing,",\n link_id: ").concat(e.link_id,",\n link_type: ").concat(e.link_type,",\n project_id: ").concat(e.project_id,",\n suspend: ").concat(e.suspend,", ")}},{key:"printDrawing",value:function(e){return"drawing_id: ".concat(e.drawing_id,",\n project_id: ").concat(e.project_id,",\n rotation: ").concat(e.rotation,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}}]),n}();eP.\u0275fac=function(r){return new(r||eP)(t.Y36(fv),t.Y36(Fr),t.Y36(za.G),t.Y36(_v),t.Y36(ho.zw),t.Y36(wc.f),t.Y36(t.sBO),t.Y36(cu),t.Y36(t.sBO))},eP.\u0275cmp=t.Xpm({type:eP,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(xGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.console=i.first))},inputs:{controller:"controller",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t._uU(3," Apply filter "),t.qZA(),t.TgZ(4,"mat-menu",3,4)(6,"button",5),t.NdJ("click",function(){return e.applyFilter("all")}),t._uU(7,"all"),t.qZA(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.applyFilter("errors")}),t._uU(9,"errors"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return e.applyFilter("warnings")}),t._uU(11,"warnings"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return e.applyFilter("info")}),t._uU(13,"info"),t.qZA(),t.TgZ(14,"button",5),t.NdJ("click",function(){return e.applyFilter("map updates")}),t._uU(15,"map updates"),t.qZA(),t.TgZ(16,"button",5),t.NdJ("click",function(){return e.applyFilter("controller requests")}),t._uU(17,"controller requests"),t.qZA()()()(),t.TgZ(18,"div",6,7),t.YNc(20,DGe,3,1,"span",8),t.qZA(),t.TgZ(21,"div",9)(22,"mat-icon",10),t._uU(23,"keyboard_arrow_right"),t.qZA(),t.TgZ(24,"input",11),t.NdJ("keydown",function(a){return e.onKeyDown(a)})("ngModelChange",function(a){return e.command=a}),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Q6J("ngClass",t.VKq(8,BF,e.isLightThemeEnabled))("matMenuTriggerFor",i),t.xp6(16),t.Q6J("ngClass",t.VKq(10,BF,e.isLightThemeEnabled))("ngStyle",e.style),t.xp6(2),t.Q6J("ngForOf",e.filteredEvents),t.xp6(1),t.Q6J("ngClass",t.VKq(12,BF,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("ngClass",t.VKq(14,BF,e.isLightThemeEnabled))("ngModel",e.command)}},dependencies:[se.mk,se.sg,se.PC,J.Fj,J.JJ,J.On,Ga,Er,ga,Dn],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0});var Vse=m(4793),Yse=m(986),Kse=m(9162),AGe=["terminal"],tP=function(){function n(r,e){(0,B.Z)(this,n),this.consoleService=r,this.themeService=e,this.term=new Vse.Terminal,this.fitAddon=new Kse.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.consoleService.consoleResized.subscribe(function(i){var o=Math.floor(i.width/9),a=Math.floor(i.height/17);e.consoleService.setNumberOfColumns(o),e.consoleService.setNumberOfRows(a),e.term.resize(o,a)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())}},{key:"ngAfterViewInit",value:function(){var e=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var i=new WebSocket(this.consoleService.getUrl(this.controller,this.node));i.onerror=function(a){e.term.write("Connection lost")},i.onclose=function(a){e.consoleService.closeConsoleForNode(e.node)};var o=new Yse.AttachAddon(i);this.term.loadAddon(o),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler(function(a){return!(("KeyC"===a.code||"KeyV"===a.code)&&a.ctrlKey&&a.shiftKey)})}}]),n}();function OGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10),t.NdJ("mousemove",function(o){t.CHM(e);var a=t.oxw();return t.KtG(a.dragWidget(o))},!1,t.evT)("mouseup",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.toggleDragging(!1))},!1,t.evT),t.qZA()}}function PGe(n,r){1&n&&(t.TgZ(0,"div",11),t._uU(1,"GNS3 console"),t.qZA())}tP.\u0275fac=function(r){return new(r||tP)(t.Y36(cu),t.Y36(wc.f))},tP.\u0275cmp=t.Xpm({type:tP,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(AGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},inputs:{controller:"controller",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n',".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2});var nP=function(r){return{lightThemeConsoleHeader:r}};function IGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11),t._uU(1),t.qZA(),t.TgZ(2,"button",7),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().index,l=t.oxw();return t.KtG(l.removeTab(s))}),t.TgZ(3,"mat-icon"),t._uU(4,"close"),t.qZA()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("ngClass",t.VKq(2,nP,o.isLightThemeEnabled))}}function RGe(n,r){if(1&n&&(t.TgZ(0,"mat-tab",12),t.YNc(1,IGe,5,4,"ng-template",4),t.qZA()),2&n){var e=t.oxw();t.Q6J("label",e.tab)}}function LGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!0))}),t.TgZ(1,"mat-icon"),t._uU(2,"remove"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,nP,i.isLightThemeEnabled))}}function ZGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,nP,i.isLightThemeEnabled))}}function NGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",13),t.NdJ("mouseover",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.disableScroll(s))})("mouseout",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.enableScroll(s))}),t._UZ(1,"app-web-console",14),t.qZA()}if(2&n){var i=r.index,o=t.oxw();t.Q6J("hidden",o.isMinimized),t.xp6(1),t.Q6J("hidden",o.selected.value!==i+1)("controller",o.controller)("node",o.nodes[i])}}var BGe=function(r){return{lightTheme:r}},FGe=function(){return{right:!0,left:!0,bottom:!0,top:!0}},rP=function(){function n(r,e,i){(0,B.Z)(this,n),this.consoleService=r,this.themeService=e,this.mapSettingsService=i,this.closeConsole=new t.vpe,this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new J.p4(0)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"80px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe(function(i){e.addTab(i,!0)}),this.consoleService.closeNodeConsoleTrigger.subscribe(function(i){var o=e.nodes.findIndex(function(a){return a.node_id===i.node_id});e.removeTab(o)})}},{key:"minimize",value:function(e){this.isMinimized=e,this.style=e?{bottom:"20px",left:"20px",width:"".concat(this.resizedWidth,"px"),height:"56px"}:{bottom:"20px",left:"80px",width:"".concat(this.resizedWidth,"px"),height:"".concat(this.resizedHeight,"px")}}},{key:"addTab",value:function(e,i){this.minimize(!1),this.nodes.push(e),i&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++}},{key:"removeTab",value:function(e){this.nodes.splice(e,1),this.consoleService.openConsoles--}},{key:"toggleDragging",value:function(e){this.isDraggingEnabled=e}},{key:"dragWidget",value:function(e){var i=Number(e.movementX),o=Number(e.movementY),a=Number(this.style.width.split("px")[0]),s=Number(this.style.height.split("px")[0]),l=Number(this.style.left.split("px")[0])+i;if(this.style.top){var u=Number(this.style.top.split("px")[0])+o;this.style={position:"fixed",left:"".concat(l,"px"),top:"".concat(u,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}else{var d=Number(this.style.bottom.split("px")[0])-o;this.style={position:"fixed",left:"".concat(l,"px"),bottom:"".concat(d,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}}},{key:"validate",value:function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<500||e.rectangle.height<100))}},{key:"onResizeEnd",value:function(e){this.style={position:"fixed",left:"".concat(e.rectangle.left,"px"),top:"".concat(e.rectangle.top,"px"),width:"".concat(e.rectangle.width,"px"),height:"".concat(e.rectangle.height,"px")},this.styleInside={height:"".concat(e.rectangle.height-60,"px"),width:"".concat(e.rectangle.width,"px")},this.consoleService.consoleResized.next({width:e.rectangle.width,height:e.rectangle.height-53}),this.resizedWidth=e.rectangle.width,this.resizedHeight=e.rectangle.height}},{key:"close",value:function(){this.closeConsole.emit(!1)}},{key:"enableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!1)}},{key:"disableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!0)}}]),n}();rP.\u0275fac=function(r){return new(r||rP)(t.Y36(cu),t.Y36(wc.f),t.Y36(fl))},rP.\u0275cmp=t.Xpm({type:rP,selectors:[["app-console-wrapper"]],inputs:{controller:"controller",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color: white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","click"],[3,"hidden","controller","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","controller","node"]],template:function(r,e){1&r&&(t.YNc(0,OGe,1,0,"div",0),t.TgZ(1,"div",1),t.NdJ("mousedown",function(){return e.toggleDragging(!0)})("resizeStart",function(){return e.toggleDragging(!1)})("resizeEnd",function(o){return e.onResizeEnd(o)}),t.TgZ(2,"div",2)(3,"mat-tab-group",3),t.NdJ("selectedIndexChange",function(o){return e.selected.setValue(o)}),t.TgZ(4,"mat-tab"),t.YNc(5,PGe,2,0,"ng-template",4),t.qZA(),t.YNc(6,RGe,2,1,"mat-tab",5),t.qZA(),t.YNc(7,LGe,3,3,"button",6),t.YNc(8,ZGe,3,3,"button",6),t.TgZ(9,"button",7),t.NdJ("click",function(){return e.close()}),t.TgZ(10,"mat-icon"),t._uU(11,"close"),t.qZA()()(),t._UZ(12,"app-log-console",8),t.YNc(13,NGe,2,4,"div",9),t.qZA()),2&r&&(t.Q6J("ngIf",e.isDraggingEnabled),t.xp6(1),t.Q6J("ngClass",t.VKq(16,BGe,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",t.DdM(18,FGe))("enableGhostResize",!0),t.xp6(1),t.Q6J("ngClass",t.VKq(19,nP,e.isLightThemeEnabled)),t.xp6(1),t.Q6J("selectedIndex",e.selected.value),t.xp6(3),t.Q6J("ngForOf",e.nodes),t.xp6(1),t.Q6J("ngIf",!e.isMinimized),t.xp6(1),t.Q6J("ngIf",e.isMinimized),t.xp6(1),t.Q6J("ngClass",t.VKq(21,nP,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("hidden",0!==e.selected.value||e.isMinimized)("controller",e.controller)("project",e.project),t.xp6(1),t.Q6J("ngForOf",e.nodes))},dependencies:[se.mk,se.sg,se.O5,se.PC,qY.E$,dn,Dn,Fi.SP,Fi.uD,Fi.uX,eP,tP],styles:["@media screen and (max-width: 700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:40px;left:80px;height:180px;width:600px;background:#000000!important;color:#fff;overflow:hidden;font-size:12px;border-radius:8px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between;background:#263238!important}.lightThemeConsoleHeader[_ngcontent-%COMP%]{background:white!important;color:#000!important}[_nghost-%COMP%] .mat-tab-label{height:3rem!important;min-width:8rem!important}[_nghost-%COMP%] .mat-tab-label.mat-tab-label-active{border-bottom:2px solid #0097a7;box-sizing:border-box;font-weight:1200}[_nghost-%COMP%] .mat-ink-bar{display:none!important}.tabs[_ngcontent-%COMP%]{width:80%}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.xterm-console[_ngcontent-%COMP%]{background:black}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"]});var UGe=["topologySummaryContainer"];function jGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-d3-map",37),t.NdJ("nodeDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeDragged(a))})("drawingDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingDragged(a))})("onLinkCreated",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onLinkCreated(a))})("onDrawingResized",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingResized(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function HGe(n,r){if(1&n&&t._UZ(0,"app-experimental-map",38),2&n){var e=t.oxw(2);t.Q6J("symbols",e.symbols)("nodes",e.nodes)("links",e.links)("drawings",e.drawings)("width",e.project.scene_width)("height",e.project.scene_height)("show-interface-labels",e.isInterfaceLabelVisible)("selection-tool",e.tools.selection)("moving-tool",e.tools.moving)("draw-link-tool",e.tools.draw_link)("readonly",e.inReadOnlyMode)}}function GGe(n,r){1&n&&t._UZ(0,"mat-icon",39)}function zGe(n,r){1&n&&t._UZ(0,"mat-icon",40)}var FF=function(r){return{lightTheme:r}},WGe=function(r){return{selected:r}};function VGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",41)(1,"app-template",42),t.NdJ("onNodeCreation",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeCreation(a))}),t.qZA(),t.TgZ(2,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.toggleDrawLineMode())}),t.TgZ(3,"mat-icon"),t._uU(4,"timeline"),t.qZA()()()}if(2&n){var i=t.oxw(2);t.Q6J("ngClass",t.VKq(5,FF,i.isLightThemeEnabled)),t.xp6(1),t.Q6J("controller",i.controller)("project",i.project),t.xp6(1),t.Q6J("ngClass",t.VKq(7,WGe,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function YGe(n,r){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-snapshot-menu-item",12),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function KGe(n,r){if(1&n&&t._UZ(0,"app-draw-link-tool",44),2&n){var e=t.oxw(2);t.Q6J("links",e.links)}}function qGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-console-wrapper",45),t.NdJ("closeConsole",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.toggleShowConsole(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)}}var JGe=function(r,e){return{unmarkedLight:r,marked:e}},QGe=function(){return["/controllers"]},XGe=function(r){return["/controller",r,"projects"]},$Ge=function(r){return["/controller",r,"image-manager"]},eze=function(r){return{visible:r}};function tze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.YNc(1,jGe,1,10,"app-d3-map",3),t.YNc(2,HGe,1,11,"app-experimental-map",4),t.TgZ(3,"div",5)(4,"button",6),t.YNc(5,GGe,1,0,"mat-icon",7),t.YNc(6,zGe,1,0,"mat-icon",8),t.qZA(),t.TgZ(7,"div",9),t.YNc(8,VGe,5,9,"div",10),t.TgZ(9,"div",11),t._UZ(10,"app-nodes-menu",12)(11,"app-context-menu",13),t.qZA()(),t.TgZ(12,"div")(13,"button",14),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleShowTopologySummary(!u.isTopologySummaryVisible))}),t.TgZ(14,"mat-icon"),t._uU(15,"toc"),t.qZA()()(),t.TgZ(16,"mat-menu",15,16)(18,"button",17)(19,"mat-icon"),t._uU(20,"developer_board"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Controllers"),t.qZA()(),t.TgZ(23,"button",17)(24,"mat-icon"),t._uU(25,"work"),t.qZA(),t.TgZ(26,"span"),t._uU(27,"Projects"),t.qZA()(),t.TgZ(28,"button",17)(29,"mat-icon"),t._uU(30,"settings_applications"),t.qZA(),t.TgZ(31,"span"),t._uU(32,"Template preferences"),t.qZA()(),t.TgZ(33,"button",17)(34,"mat-icon"),t._uU(35,"collections"),t.qZA(),t.TgZ(36,"span"),t._uU(37,"Image manager"),t.qZA()(),t.TgZ(38,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewTemplate())}),t.TgZ(39,"mat-icon"),t._uU(40,"control_point"),t.qZA(),t.TgZ(41,"span"),t._uU(42,"New template"),t.qZA()(),t._UZ(43,"app-import-appliance",12),t.TgZ(44,"button",19)(45,"mat-icon"),t._uU(46,"settings"),t.qZA(),t.TgZ(47,"span"),t._uU(48,"Project settings"),t.qZA()(),t.TgZ(49,"button",19)(50,"mat-icon"),t._uU(51,"view_module"),t.qZA(),t.TgZ(52,"span"),t._uU(53,"Map settings"),t.qZA()()(),t.TgZ(54,"mat-menu",15,20)(56,"div")(57,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewProject())}),t.TgZ(58,"mat-icon"),t._uU(59,"add"),t.qZA(),t.TgZ(60,"span"),t._uU(61,"Add new blank project"),t.qZA()(),t.TgZ(62,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.saveProject())}),t.TgZ(63,"mat-icon"),t._uU(64,"save"),t.qZA(),t.TgZ(65,"span"),t._uU(66,"Save project as"),t.qZA()(),t.TgZ(67,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.editProject())}),t.TgZ(68,"mat-icon"),t._uU(69,"edit"),t.qZA(),t.TgZ(70,"span"),t._uU(71,"Edit project"),t.qZA()(),t.TgZ(72,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.exportProject())}),t.TgZ(73,"mat-icon"),t._uU(74,"call_made"),t.qZA(),t.TgZ(75,"span"),t._uU(76,"Export project"),t.qZA()(),t.TgZ(77,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.importProject())}),t.TgZ(78,"mat-icon"),t._uU(79,"call_received"),t.qZA(),t.TgZ(80,"span"),t._uU(81,"Import project"),t.qZA()(),t.TgZ(82,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.closeProject())}),t.TgZ(83,"mat-icon"),t._uU(84,"close"),t.qZA(),t.TgZ(85,"span"),t._uU(86,"Close project"),t.qZA()(),t.TgZ(87,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.deleteProject())}),t.TgZ(88,"mat-icon"),t._uU(89,"delete"),t.qZA(),t.TgZ(90,"span"),t._uU(91,"Delete project"),t.qZA()()()(),t.TgZ(92,"mat-menu",15,21)(94,"div",22)(95,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowInterfaceLabels(u.checked))}),t._uU(96," Show interface labels "),t.qZA(),t._UZ(97,"br"),t.TgZ(98,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowConsole(u.checked))}),t._uU(99," Show console "),t.qZA(),t._UZ(100,"br"),t.TgZ(101,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowTopologySummary(u.checked))}),t._uU(102," Show topology/controllers summary "),t.qZA(),t._UZ(103,"br"),t.TgZ(104,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleNotifications(u.checked))}),t._uU(105," Show notifications "),t.qZA(),t._UZ(106,"br"),t.TgZ(107,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleLayers(u.checked))}),t._uU(108," Show layers "),t.qZA(),t._UZ(109,"br"),t.TgZ(110,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleGrid(u.checked))}),t._uU(111," Show grid "),t.qZA(),t._UZ(112,"br"),t.TgZ(113,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSnapToGrid(u.checked))}),t._uU(114," Snap to grid "),t.qZA(),t._UZ(115,"br"),t.TgZ(116,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSymbolScaling(u.checked))}),t._uU(117," Scale symbols "),t.qZA(),t._UZ(118,"br"),t.qZA()()(),t.TgZ(119,"div",24)(120,"div",25)(121,"button",26),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(122,"mat-icon"),t._uU(123,"near_me"),t.qZA()(),t.TgZ(124,"button",27),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(125,"mat-icon"),t._uU(126,"zoom_out_map"),t.qZA()(),t.TgZ(127,"button",28),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomIn())}),t.TgZ(128,"mat-icon"),t._uU(129,"zoom_in"),t.qZA()(),t.TgZ(130,"button",29),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.resetZoom())}),t.TgZ(131,"mat-icon"),t._uU(132,"adjust"),t.qZA()(),t.TgZ(133,"button",30),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomOut())}),t.TgZ(134,"mat-icon"),t._uU(135,"zoom_out"),t.qZA()()(),t.TgZ(136,"div",25),t._UZ(137,"app-project-map-menu",12),t.qZA(),t.YNc(138,YGe,2,2,"div",31),t.qZA(),t._UZ(139,"app-progress"),t.YNc(140,KGe,1,1,"app-draw-link-tool",32),t._UZ(141,"app-drawing-dragged",12)(142,"app-drawing-resized",33)(143,"app-interface-label-dragged",33)(144,"app-link-created",12)(145,"app-node-dragged",12)(146,"app-node-label-dragged",33),t.TgZ(147,"app-text-added",34),t.NdJ("drawingSaved",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.onDrawingSaved())}),t.qZA(),t._UZ(148,"app-text-edited",33),t.TgZ(149,"div",35),t.YNc(150,qGe,1,2,"app-console-wrapper",36),t.qZA()()}if(2&n){var i=t.MAs(17),o=t.MAs(55),a=t.MAs(93),s=t.oxw();t.Q6J("ngClass",t.VKq(53,FF,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("ngIf",!s.settings.angular_map),t.xp6(1),t.Q6J("ngIf",s.settings.angular_map),t.xp6(1),t.Q6J("ngClass",t.VKq(55,FF,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(1),t.Q6J("ngIf",!s.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",s.isLightThemeEnabled),t.xp6(2),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("project",s.project)("controller",s.controller),t.xp6(2),t.Q6J("ngClass",t.WLB(57,JGe,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),t.xp6(3),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(60,QGe)),t.xp6(5),t.Q6J("routerLink",t.VKq(61,XGe,s.controller.id)),t.xp6(5),t.MGl("routerLink","/controller/",s.controller.id,"/preferences"),t.xp6(5),t.Q6J("routerLink",t.VKq(63,$Ge,s.controller.id)),t.xp6(10),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.Q6J("matMenuTriggerFor",a),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(38),t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("ngModel",s.isInterfaceLabelVisible),t.xp6(3),t.Q6J("ngModel",s.isConsoleVisible),t.xp6(3),t.Q6J("ngModel",s.isTopologySummaryVisible),t.xp6(3),t.Q6J("ngModel",s.notificationsVisibility),t.xp6(3),t.Q6J("ngModel",s.layersVisibility),t.xp6(3),t.Q6J("ngModel",s.gridVisibility),t.xp6(3),t.Q6J("ngModel",s.project.snap_to_grid),t.xp6(3),t.Q6J("ngModel",s.symbolScaling),t.xp6(3),t.Q6J("ngClass",t.VKq(65,FF,s.isLightThemeEnabled)),t.xp6(2),t.Q6J("color",s.tools.moving?"basic":"primary"),t.xp6(3),t.Q6J("color",s.tools.moving?"primary":"basic"),t.xp6(13),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("ngIf",s.tools.draw_link),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("ngClass",t.VKq(67,eze,!s.isConsoleVisible)),t.xp6(1),t.Q6J("ngIf",s.project)}}function nze(n,r){}var iP=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L,z,q,re,ae,Se,Ce,Ee,Ke,st,De,it,ft,bt,$e,Ie,ct,Bt,jt,It,Tn,Hn,zn,ar,kr,_r,Wr,jr,Kr,jo,tr,br,Mn,gn,nr){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.projectService=i,this.nodeService=o,this.drawingService=a,this.progressService=s,this.projectWebServiceHandler=l,this.mapChangeDetectorRef=u,this.nodeWidget=d,this.drawingsWidget=h,this.linkWidget=g,this.labelWidget=y,this.interfaceLabelWidget=L,this.mapNodeToNode=z,this.mapDrawingToDrawing=q,this.mapLabelToLabel=re,this.mapLinkToLink=ae,this.mapLinkNodeToLinkNode=Se,this.nodesDataSource=Ce,this.linksDataSource=Ee,this.drawingsDataSource=Ke,this.settingsService=st,this.toolsService=De,this.selectionManager=it,this.selectionTool=ft,this.recentlyOpenedProjectService=bt,this.movingEventSource=$e,this.mapScaleService=Ie,this.nodeCreatedLabelStylesFixer=ct,this.toasterService=Bt,this.dialog=jt,this.router=It,this.mapNodesDataSource=Tn,this.mapLinksDataSource=Hn,this.mapDrawingsDataSource=zn,this.mapSymbolsDataSource=ar,this.mapSettingsService=kr,this.ethernetLinkWidget=_r,this.serialLinkWidget=Wr,this.bottomSheet=jr,this.notificationService=Kr,this.themeService=jo,this.title=tr,this.nodeConsoleService=br,this.symbolService=Mn,this.cd=gn,this.viewContainerRef=nr,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.isProjectMapMenuVisible=!1,this.isConsoleVisible=!0,this.isTopologySummaryVisible=!0,this.isInterfaceLabelVisible=!1,this.notificationsVisibility=!1,this.layersVisibility=!1,this.gridVisibility=!1,this.toolbarVisibility=!0,this.symbolScaling=!0,this.tools={selection:!0,moving:!1,draw_link:!1,text_editing:!0},this.inReadOnlyMode=!1,this.scrollX=0,this.scrollY=0,this.scrollEnabled=!1,this.isLightThemeEnabled=!1,this.projectMapSubscription=new xa.w}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.getSettings(),this.progressService.activate(),this.controllerService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(i){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1})}},{key:"getSettings",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.cd.detectChanges(),this.settings=this.settingsService.getAll(),this.symbolScaling=this.mapSettingsService.getSymbolScaling(),this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe(function(i){return e.isConsoleVisible=i}),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")}},{key:"lazyLoadTopologySummary",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.isTopologySummaryVisible){s.next=10;break}return s.next=3,m.e(465).then(m.bind(m,2465));case 3:i=s.sent,o=i.TopologySummaryComponent,this.instance=this.viewContainerRef.createComponent(o),this.instance.instance.controller=this.controller,this.instance.instance.project=this.project,s.next=11;break;case 10:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy());case 11:case"end":return s.stop()}},e,this)}))}},{key:"addSubscriptions",value:function(){var e=this;this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe(function(i){e.scrollEnabled&&e.centerCanvas()})),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe(function(i){e.drawings=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe(function(i){!e.controller||(i.forEach(function(o){return wi(e,void 0,void 0,Rn().mark(function a(){var s;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.symbol_url="".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(Ha.N.current_version,"/symbols/").concat(o.symbol,"/raw"),0!=o.width||0!=o.height){u.next=7;break}return u.next=4,this.symbolService.getDimensions(this.controller,o.symbol).toPromise();case 4:s=u.sent,o.width=s.width,o.height=s.height;case 7:case"end":return u.stop()}},a,this)}))}),e.nodes=i,e.mapSettingsService.getSymbolScaling()&&e.applyScalingOfNodeSymbols(),e.mapChangeDetectorRef.detectChanges())})),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe(function(i){console.log("from project map component"),e.links=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})})),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})})),this.projectMapSubscription.add(this.mapSettingsService.symbolScalingSubject.subscribe(function(i){i&&e.applyScalingOfNodeSymbols()}))}},{key:"applyScalingOfNodeSymbols",value:function(){var e=this;this.nodesDataSource.getItems().forEach(function(i){if(i.height>e.symbolService.getMaximumSymbolSize()){var o=e.symbolService.scaleDimensionsForNode(i);i.width=o.width,i.height=o.height}})}},{key:"getData",value:function(){var e=this,i=this.route.paramMap.subscribe(function(o){var a=parseInt(o.get("controller_id"),10);(0,hs.D)(e.controllerService.get(a)).pipe((0,_s.zg)(function(s){return s||e.router.navigate(["/controllers"]),e.controller=s,e.projectService.get(s,o.get("project_id")).pipe((0,$n.U)(function(l){return l}))}),(0,_s.zg)(function(s){return e.project=s,s||e.router.navigate(["/controllers"]),e.projectService.open(e.controller,e.project.project_id),e.title.setTitle(e.project.name),e.isInterfaceLabelVisible=e.mapSettingsService.showInterfaceLabels,e.toggleShowTopologySummary(e.mapSettingsService.isTopologySummaryVisible),e.recentlyOpenedProjectService.setcontrollerId(e.controller.id.toString()),"opened"===e.project.status?new oo.y(function(l){l.next(e.project)}):e.projectService.open(e.controller,e.project.project_id)})).subscribe(function(s){e.onProjectLoad(s),e.mapSettingsService.openReadme&&e.showReadme()},function(s){e.progressService.setError(s)},function(){e.progressService.deactivate()})});this.projectMapSubscription.add(i)}},{key:"addKeyboardListeners",value:function(){var e=this;Fg.bind("ctrl++",function(i){i.preventDefault(),e.zoomIn()}),Fg.bind("ctrl+-",function(i){i.preventDefault(),e.zoomOut()}),Fg.bind("ctrl+0",function(i){i.preventDefault(),e.resetZoom()}),Fg.bind("ctrl+a",function(i){i.preventDefault();var o=e.mapNodesDataSource.getItems(),a=e.mapDrawingsDataSource.getItems(),s=e.mapLinksDataSource.getItems(),l=e.mapSymbolsDataSource.getItems();e.selectionManager.setSelected(o.concat(a).concat(s).concat(l))}),Fg.bind("ctrl+h",function(i){i.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),Fg.bind("ctrl+shift+a",function(i){i.preventDefault(),e.selectionManager.setSelected([])}),Fg.bind("ctrl+shift+s",function(i){i.preventDefault(),e.router.navigate(["/controller",e.controller.id,"preferences"])}),Fg.bind("del",function(i){i.preventDefault(),e.deleteItems()})}},{key:"deleteItems",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete all selected objects?";i.afterDismissed().subscribe(function(a){if(a){var s=e.selectionManager.getSelected();s.filter(function(l){return l instanceof fb}).forEach(function(l){var u=e.mapNodeToNode.convert(l);e.nodeService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Node has been deleted")})}),s.filter(function(l){return l instanceof Nm}).forEach(function(l){var u=e.mapDrawingToDrawing.convert(l);e.drawingService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Drawing has been deleted")})})}})}},{key:"onProjectLoad",value:function(e){var i=this;this.readonly=this.projectService.isReadOnly(e),this.recentlyOpenedProjectService.setProjectId(this.project.project_id);var o=this.projectService.nodes(this.controller,e.project_id).pipe((0,_s.zg)(function(a){return i.nodesDataSource.set(a),i.projectService.links(i.controller,e.project_id)}),(0,_s.zg)(function(a){return i.linksDataSource.set(a),i.projectService.drawings(i.controller,e.project_id)})).subscribe(function(a){i.drawingsDataSource.set(a),i.setUpMapCallbacks(),i.setUpProjectWS(e),i.progressService.deactivate()});this.projectMapSubscription.add(o)}},{key:"setUpProjectWS",value:function(e){var i=this;this.projectws=new WebSocket(this.notificationService.projectNotificationsPath(this.controller,e.project_id)),this.projectws.onmessage=function(o){i.projectWebServiceHandler.handleMessage(JSON.parse(o.data))},this.projectws.onerror=function(o){i.toasterService.error("Connection to host lost. Error: ".concat(o.data))}}},{key:"setUpWS",value:function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.controller))}},{key:"setUpMapCallbacks",value:function(){var e=this;this.readonly||this.toolsService.selectionToolActivation(!0);var i=this.linkWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[y],g.event.pageY,g.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[y],g.event.pageY,g.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[y],g.event.pageY,g.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(g){var y=e.mapNodeToNode.convert(g.node);e.contextMenu.openMenuForNode(y,g.event.pageY,g.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(g){var y=e.mapDrawingToDrawing.convert(g.drawing);e.contextMenu.openMenuForDrawing(y,g.event.pageY,g.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(g){var y=e.mapLabelToLabel.convert(g.label),L=e.nodes.find(function(z){return z.node_id===g.label.nodeId});e.contextMenu.openMenuForLabel(y,L,g.event.screenY-60,g.event.screenX)}),d=this.interfaceLabelWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkNodeToLinkNode.convert(g.interfaceLabel),L=e.links.find(function(z){return z.link_id===g.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(y,L,g.event.pageY,g.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(g){var y=e.selectionManager.getSelected();if(!(y.length<2)&&g instanceof MouseEvent){var L=[],z=[],q=[],re=[];y.forEach(function(ae){ae instanceof Nm?L.push(e.mapDrawingToDrawing.convert(ae)):ae instanceof fb?z.push(e.mapNodeToNode.convert(ae)):ae instanceof Fk?q.push(e.mapLabelToLabel.convert(ae)):ae instanceof bse&&re.push(e.mapLinkToLink.convert(ae))}),e.contextMenu.openMenuForListOfElements(L,z,q,re,g.pageY,g.pageX)}});this.projectMapSubscription.add(i),this.projectMapSubscription.add(o),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(l),this.projectMapSubscription.add(h),this.projectMapSubscription.add(u),this.projectMapSubscription.add(d),this.mapChangeDetectorRef.detectChanges()}},{key:"onNodeCreation",value:function(e){var i=this;!e||(e.x=e.x/this.mapScaleService.getScale(),e.y=e.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.controller,this.project,e.template,e.x,e.y,e.controller).subscribe(function(o){i.projectService.nodes(i.controller,i.project.project_id).subscribe(function(a){a.filter(function(s){return null===s.label.style}).forEach(function(s){var l=i.nodeCreatedLabelStylesFixer.fix(s);i.nodeService.updateLabel(i.controller,s,l.label).subscribe()}),i.nodesDataSource.set(a),e.numberOfNodes--,e.numberOfNodes>0?(e.x=e.x+50<i.project.scene_width/2?e.x+50:e.x,e.y=e.y+50<i.project.scene_height/2?e.y+50:e.y,i.onNodeCreation(e)):i.progressService.deactivate()})},function(o){i.toasterService.error(o.error.message),i.progressService.deactivate()}))}},{key:"fitInView",value:function(){if(this.drawings.forEach(function(it){var ft=it.svg.split('"'),bt=parseInt(ft[1],10),$e=parseInt(ft[3],10);it.element={width:$e,height:bt}}),0!==this.nodes.length||0!==this.drawings.length){var e,i,o,a,s=[];this.nodes.forEach(function(it){var ft=new rze;ft.node=it,ft.top=it.y,ft.left=it.x,ft.bottom=it.y+it.height,ft.right=it.x+it.width,it.y+it.label.y<ft.top&&(ft.top=it.y+it.label.y),it.x+it.label.x<ft.left&&(ft.left=it.x+it.label.x),it.y+it.label.y>ft.bottom&&(ft.bottom=it.y+it.label.y),it.x+it.label.x>ft.right&&(ft.right=it.x+it.label.x),s.push(ft)});var l=s.sort(function(it,ft){return it.left-ft.left})[0],u=s.sort(function(it,ft){return it.right-ft.right})[s.length-1],d=s.sort(function(it,ft){return it.top-ft.top})[0],h=s.sort(function(it,ft){return it.bottom-ft.bottom})[s.length-1],g=[];this.drawings.forEach(function(it){var ft=new ize;ft.drawing=it,ft.top=it.y,ft.left=it.x,ft.bottom=it.y+it.element.height,ft.right=it.x+it.element.width,g.push(ft)});var y=g.sort(function(it,ft){return it.left-ft.left})[0],L=g.sort(function(it,ft){return it.right-ft.right})[g.length-1],z=g.sort(function(it,ft){return it.top-ft.top})[0],q=g.sort(function(it,ft){return it.bottom-ft.bottom})[g.length-1];y&&l?(e=l.left<y.left?l.left:y.left,i=u.right>L.right?u.right:L.right,o=d.top<z.top?d.top:z.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!y?(e=l.left,i=u.right,o=d.top,a=h.bottom):y&&!l?(e=y.left,i=L.right,o=z.top,a=q.bottom):(e=0,i=0,o=0,a=0);e-=20,i+=20,o-=20,a+=20;var ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Se=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Ce=i-e,Ee=a-o,Ke=Ce/ae,st=Ee/Se,De=1/Math.max(Ke,st);De!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(De),this.project.scene_width=this.project.scene_width*De,this.project.scene_height=this.project.scene_height*De,st<Ce?(this.scrollX=e*De-(ae-Ce*De)/2+this.project.scene_width/2,this.scrollY=o*De+this.project.scene_height/2):(this.scrollX=e*De+this.project.scene_width/2,this.scrollY=o*De-(Se-Ee*De)/2+this.project.scene_height/2)):(this.scrollX=e*De+this.project.scene_width/2,this.scrollY=o*De+this.project.scene_height/2),this.scrollEnabled=!0}}},{key:"centerCanvas",value:function(){window.scrollTo(this.scrollX,this.scrollY),this.scrollEnabled=!1}},{key:"centerView",value:function(){if(this.project){var e=this.project.scene_width-document.documentElement.clientWidth>0?(this.project.scene_width-document.documentElement.clientWidth)/2:0,i=this.project.scene_height-document.documentElement.clientHeight>0?(this.project.scene_height-document.documentElement.clientHeight)/2:0;window.scrollTo(e,i)}else this.toasterService.error("Please wait until all components are loaded.")}},{key:"onDrawingSaved",value:function(){this.projectMapMenuComponent.resetDrawToolChoice()}},{key:"readonly",get:function(){return this.inReadOnlyMode},set:function(e){this.inReadOnlyMode=e,e?(this.tools.selection=!1,this.toolsService.selectionToolActivation(!1)):(this.tools.selection=!0,this.toolsService.selectionToolActivation(!0))}},{key:"toggleSymbolScaling",value:function(e){this.symbolScaling=e,this.mapSettingsService.setSymbolScaling(e)}},{key:"toggleMovingMode",value:function(){this.tools.moving=!this.tools.moving,this.movingEventSource.movingModeState.emit(this.tools.moving),this.readonly||(this.tools.selection=!this.tools.moving,this.toolsService.selectionToolActivation(this.tools.selection))}},{key:"toggleDrawLineMode",value:function(){this.tools.draw_link=!this.tools.draw_link,this.toolsService.drawLinkToolActivation(this.tools.draw_link)}},{key:"toggleShowInterfaceLabels",value:function(e){this.isInterfaceLabelVisible=e,this.mapSettingsService.toggleShowInterfaceLabels(this.isInterfaceLabelVisible),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"toggleShowConsole",value:function(e){this.isConsoleVisible=e,this.mapSettingsService.toggleLogConsole(this.isConsoleVisible)}},{key:"toggleShowTopologySummary",value:function(e){this.isTopologySummaryVisible=e,this.mapSettingsService.toggleTopologySummary(this.isTopologySummaryVisible),this.lazyLoadTopologySummary()}},{key:"toggleNotifications",value:function(e){this.notificationsVisibility=e,this.notificationsVisibility?localStorage.setItem("notificationsVisibility","true"):localStorage.removeItem("notificationsVisibility")}},{key:"toggleLayers",value:function(e){this.layersVisibility=e,this.mapSettingsService.toggleLayers(e),this.layersVisibility?localStorage.setItem("layersVisibility","true"):localStorage.removeItem("layersVisibility"),this.mapChild.applyMapSettingsChanges()}},{key:"toggleGrid",value:function(e){this.gridVisibility=e,this.gridVisibility?localStorage.setItem("gridVisibility","true"):localStorage.removeItem("gridVisibility"),this.mapChild.gridVisibility=this.gridVisibility?1:0}},{key:"toggleSnapToGrid",value:function(e){this.project.snap_to_grid=e}},{key:"showMessage",value:function(e){this.notificationsVisibility&&("error"===e.type&&this.toasterService.error(e.message),"warning"===e.type&&this.toasterService.warning(e.message))}},{key:"hideMenu",value:function(){this.projectMapMenuComponent.resetDrawToolChoice(),this.isProjectMapMenuVisible=!1}},{key:"showMenu",value:function(){this.isProjectMapMenuVisible=!0}},{key:"zoomIn",value:function(){this.mapScaleService.setScale(this.mapScaleService.getScale()+.1)}},{key:"zoomOut",value:function(){var e=this.mapScaleService.getScale();e-.1>0&&this.mapScaleService.setScale(e-.1)}},{key:"resetZoom",value:function(){this.mapScaleService.resetToDefault()}},{key:"addNewProject",value:function(){this.dialog.open(eT,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"saveProject",value:function(){var i=this.dialog.open(pA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(fA,{width:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(rT,{width:"400px",autoFocus:!1,disableClose:!0});o.componentInstance.controller=this.controller;var s=o.componentInstance.onImportProject.subscribe(function(l){i=l});o.afterClosed().subscribe(function(l){if(s.unsubscribe(),i&&!l){e.bottomSheet.open(iT);var u=e.bottomSheet._openedBottomSheetRef;u.instance.projectMessage="imported project";u.afterDismissed().subscribe(function(h){h&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"exportProject",value:function(){this.nodes.filter(function(e){return"virtualbox"===e.node_type}).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter(function(e){return"started"===e.status&&"vpcs"===e.node_type||"started"===e.status&&"virtualbox"===e.node_type||"started"===e.status&&"vmware"===e.node_type}).length>0?this.toasterService.error("Project with running nodes cannot be exported."):this.exportPortableProjectDialog()}},{key:"exportPortableProjectDialog",value:function(){this.dialog.open(Bk,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n height="'.concat(s.height,'" width="').concat(s.width,'">\n<image height="').concat(s.height,'" width="').concat(s.width,'"\n xlink:href="').concat(l,'"/>\n</svg>');i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"closeProject",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to close the project?";i.afterDismissed().subscribe(function(a){a&&e.projectService.close(e.controller,e.project.project_id).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"projects"])})})}},{key:"deleteProject",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the project?";i.afterDismissed().subscribe(function(a){a&&e.projectService.delete(e.controller,e.project.project_id).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"projects"])})})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(mT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"showReadme",value:function(){var i=this.dialog.open(EO,{width:"600px",height:"650px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()}}]),n}();iP.\u0275fac=function(r){return new(r||iP)(t.Y36(fr),t.Y36(or),t.Y36(Vs.Y),t.Y36(Fr),t.Y36(Wa),t.Y36(El),t.Y36(fv),t.Y36(jp),t.Y36(Xg),t.Y36(Vp),t.Y36(nv),t.Y36(Gp),t.Y36(of),t.Y36(Vm),t.Y36(Bb),t.Y36(qp),t.Y36(Fb),t.Y36(hv),t.Y36(za.G),t.Y36(jm.F),t.Y36(ya),t.Y36(Gm.g),t.Y36(Yp),t.Y36(Ll),t.Y36(Hp),t.Y36(ZF.p),t.Y36(Hm),t.Y36(sf),t.Y36(Ub),t.Y36(Zn),t.Y36(Gr),t.Y36(ur),t.Y36(Pm),t.Y36(Im),t.Y36(Rm),t.Y36(Lm),t.Y36(fl),t.Y36(ev),t.Y36(tv),t.Y36(lf),t.Y36(jb),t.Y36(wc.f),t.Y36(ni),t.Y36(cu),t.Y36(Op),t.Y36(t.sBO),t.Y36(t.s_b))},iP.\u0275cmp=t.Xpm({type:iP,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(cT,5),t.Gf(Xk,5),t.Gf(_T,5),t.Gf(UGe,5,t.s_b)),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first),t.iGM(i=t.CRH())&&(e.mapChild=i.first),t.iGM(i=t.CRH())&&(e.projectMapMenuComponent=i.first),t.iGM(i=t.CRH())&&(e.topologySummaryContainer=i.first))},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[1,"project-map",3,"ngClass"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"controller","project"],[3,"project","controller"],["matTooltip","Toggle topology/controllers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"controller"],[3,"controller","project","drawingSaved"],[3,"ngClass"],[3,"controller","project","closeConsole",4,"ngIf"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"controller","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"controller","project","closeConsole"]],template:function(r,e){1&r&&(t.YNc(0,tze,151,69,"div",0),t.YNc(1,nze,0,0,"ng-template",null,1,t.W1O)),2&r&&t.Q6J("ngIf",e.project)},dependencies:[se.mk,se.O5,Wo,J.JJ,J.On,Xk,ZO,Ga,Er,ga,dn,Dn,ti,mi,BO,cT,jO,z0,HO,GO,zO,WO,VO,YO,KO,qO,JO,XO,_T,$O,rP],styles:[".wrapper{height:600px}app-root,app-project-map,.project-map,app-map{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0;left:0;right:0;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px #0003;z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid rgba(255,255,255,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid black}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px #0003;z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:18px!important}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid rgba(255,255,255,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:#f4f8fcf2!important}#project-toolbar.lightTheme .zoom-button,#project-toolbar.lightTheme .reset-zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px #0003,0 6px 20px -20px #00000030}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:0;left:92px;right:0;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;display:flex}#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:gray}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}svg.map image:hover,svg.map image.chosen,g.selected{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}g.node text,.noselect{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.light-theme .context-menu-items .mat-menu-item:hover{background-color:#999898cb!important}.visible{display:none}mat-menu-panel{min-height:0px}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}\n"],encapsulation:2});var rze=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ize=(0,U.Z)(function n(){(0,B.Z)(this,n)}),oP=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.projectService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.name=this.project.name}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSaveClick",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.name).subscribe(function(){e.dialogRef.close()})}}]),n}();function oze(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function aze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all projects?"),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected projects"),t.qZA(),t.YNc(6,oze,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function sze(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function lze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}oP.\u0275fac=function(r){return new(r||oP)(t.Y36(cr),t.Y36(Vs.Y))},oP.\u0275cmp=t.Xpm({type:oP,selectors:[["app-choose-name-dialog"]],inputs:{controller:"controller",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.name=o}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Save project"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.name))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,dn,Kn,yr,dr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var uze=function(r){return{"deleted-error-text":r}};function cze(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,lze,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,uze,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function dze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Project can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,cze,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function fze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Projects deleted successfully.")}}function pze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,dze,4,1,"div",0),t.YNc(3,fze,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var aP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.projectService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.projectService.delete(e.deleteData.controller,o.project_id).pipe((0,ed.K)(function(a){return(0,qn.of)(a)})))}),oo.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();function hze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function mze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",25),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function _ze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",26),t._uU(1," Name "),t.qZA())}aP.\u0275fac=function(r){return new(r||aP)(t.Y36(ko),t.Y36(cr),t.Y36(Vs.Y),t.Y36(Zn))},aP.\u0275cmp=t.Xpm({type:aP,selectors:[["app-confirmation-delete-all-projects"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,aze,12,1,"div",0),t.YNc(1,sze,5,0,"div",0),t.YNc(2,pze,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[se.mk,se.sg,se.O5,dn,Pg,yr,lu,dr,ou]});var gze=function(r,e){return["/controller",r,"project",e]};function vze(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",27),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,gze,i.controller.id,e.project_id)),t.xp6(1),t.Oqu(e.name)}}function yze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",28),t._uU(1," Actions "),t.qZA())}function bze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.open(o))}),t.TgZ(1,"mat-icon",36),t._uU(2,"play_arrow"),t.qZA()()}}function Cze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.close(o))}),t.TgZ(1,"mat-icon",38),t._uU(2,"pause"),t.qZA()()}}function wze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.duplicate(o))}),t.TgZ(1,"mat-icon",40),t._uU(2,"save"),t.qZA()()}}function kze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",29),t.YNc(1,bze,3,0,"button",30),t.YNc(2,Cze,3,0,"button",31),t.YNc(3,wze,3,0,"button",32),t.TgZ(4,"button",33),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.exportSelectProject(s))}),t.TgZ(5,"mat-icon",34),t._uU(6,"arrow_downward"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(1),t.Q6J("ngIf","closed"==i.status),t.xp6(1),t.Q6J("ngIf","opened"==i.status),t.xp6(1),t.Q6J("ngIf","closed"==i.status)}}function Tze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",42),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function Mze(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell",28),t.YNc(1,Tze,3,0,"button",41),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function Sze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",44),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.delete(o))}),t.TgZ(1,"mat-icon",45),t._uU(2,"delete"),t.qZA()()}}function Eze(n,r){if(1&n&&(t.TgZ(0,"mat-cell",28),t.YNc(1,Sze,3,0,"button",43),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","closed"==e.status&&i.selection.isSelected(e))}}function xze(n,r){1&n&&t._UZ(0,"mat-header-row")}function Dze(n,r){1&n&&t._UZ(0,"mat-row")}var Aze=function(){return{standalone:!0}},wT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.route=r,this.projectService=e,this.settingsService=i,this.progressService=o,this.dialog=a,this.router=s,this.bottomSheet=l,this.toasterService=u,this.electronService=d,this.recentlyOpenedProjectService=h,this.projectDatabase=new Oze,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new Si.Ov(!0,[])}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.recentlyOpenedProjectService.setcontrollerIdProjectList(this.controller.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new Pze(this.projectDatabase,this.sort),this.settings=this.settingsService.getAll(),this.projectService.projectListSubject.subscribe(function(){return e.refresh()})}},{key:"refresh",value:function(){var e=this;this.projectService.list(this.controller).subscribe(function(i){e.projectDatabase.addProjects(i)},function(i){e.progressService.setError(i)})}},{key:"delete",value:function(e){var i=this;this.bottomSheet.open(md);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to delete the project?";o.afterDismissed().subscribe(function(s){s&&i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.refresh()})})}},{key:"open",value:function(e){var i=this;this.progressService.activate(),this.projectService.open(this.controller,e.project_id).subscribe(function(){i.refresh()},function(){i.refresh(),i.progressService.deactivate(),i.toasterService.error("Project was deleted.")},function(){i.progressService.deactivate()})}},{key:"close",value:function(e){var i=this;this.bottomSheet.open(md);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to close the project?";o.afterDismissed().subscribe(function(s){s&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.refresh(),i.progressService.deactivate()})})}},{key:"duplicate",value:function(e){var i=this,o=this.dialog.open(oP,{width:"400px",autoFocus:!1,disableClose:!0}),a=o.componentInstance;a.controller=this.controller,a.project=e,o.afterClosed().subscribe(function(){i.refresh()})}},{key:"addBlankProject",value:function(){this.dialog.open(eT,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(rT,{width:"400px",autoFocus:!1,disableClose:!0});o.componentInstance.controller=this.controller;var s=o.componentInstance.onImportProject.subscribe(function(l){i=l});o.afterClosed().subscribe(function(){if(e.refresh(),s.unsubscribe(),i){e.bottomSheet.open(iT);var l=e.bottomSheet._openedBottomSheetRef;l.instance.projectMessage="imported project";l.afterDismissed().subscribe(function(d){d&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(aP,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.refresh(),!1;e.unChecked(),e.refresh(),e.toasterService.success("All projects deleted")})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.projectDatabase.data.length}},{key:"selectAllImages",value:function(){this.isAllSelected()?this.unChecked():this.allChecked()}},{key:"unChecked",value:function(){this.selection.clear(),this.isAllDelete=!1}},{key:"allChecked",value:function(){var e=this;this.projectDatabase.data.forEach(function(i){return e.selection.select(i)}),this.isAllDelete=!0}},{key:"exportSelectProject",value:function(e){this.project=e,this.project.project_id&&this.exportPortableProjectDialog()}},{key:"exportPortableProjectDialog",value:function(){this.dialog.open(Bk,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}}]),n}();wT.\u0275fac=function(r){return new(r||wT)(t.Y36(fr),t.Y36(Vs.Y),t.Y36(Gm.g),t.Y36(El),t.Y36(Gr),t.Y36(ur),t.Y36(lf),t.Y36(Zn),t.Y36(ul),t.Y36(ZF.p))},wT.\u0275cmp=t.Xpm({type:wT,selectors:[["app-projects"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(qu,7),2&r)&&(t.iGM(i=t.CRH())&&(e.sort=i.first))},decls:31,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search project by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","actions"],["class","action",4,"matHeaderCellDef"],["class","action","style","text-align: right",4,"matCellDef"],["matColumnDef","delete"],["class","action",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[1,"action"],[1,"action",2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Export project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Export project"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Save project as"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["aria-label","Delete project"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Projects"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.addBlankProject()}),t._uU(6," Add blank project "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.importProject()}),t._uU(8," Import project "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",6)(11,"input",7),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()()(),t.TgZ(12,"div",8)(13,"div",9)(14,"mat-table",10,11),t.ALo(16,"projectsfilter"),t.ynx(17,12),t.YNc(18,hze,2,2,"mat-header-cell",13),t.YNc(19,mze,2,1,"mat-cell",14),t.BQk(),t.ynx(20,15),t.YNc(21,_ze,2,0,"mat-header-cell",16),t.YNc(22,vze,3,5,"mat-cell",14),t.BQk(),t.ynx(23,17),t.YNc(24,yze,2,0,"mat-header-cell",18),t.YNc(25,kze,7,3,"mat-cell",19),t.BQk(),t.ynx(26,20),t.YNc(27,Mze,2,1,"mat-header-cell",18),t.YNc(28,Eze,2,1,"mat-cell",21),t.BQk(),t.YNc(29,xze,1,0,"mat-header-row",22),t.YNc(30,Dze,1,0,"mat-row",23),t.qZA()()()()),2&r&&(t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(8,Aze)),t.xp6(3),t.Q6J("dataSource",t.xi3(16,5,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},styles:[".import-button[_ngcontent-%COMP%], .add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}table[_ngcontent-%COMP%]{width:100%}.action[_ngcontent-%COMP%]{justify-content:center}"]});var Oze=function(){function n(){(0,B.Z)(this,n),this.dataChange=new Wi.X([])}return(0,U.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addProjects",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()))}}]),n}(),Pze=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,U.Z)(e,[{key:"connect",value:function(){var o=this,a=[this.projectDatabase.dataChange,this.sort.sortChange];return Gi.T.apply(void 0,a).pipe((0,$n.U)(function(){return o.sort.active&&""!==o.sort.direction?o.projectDatabase.data.sort(function(s,l){var u=s[o.sort.active],d=l[o.sort.active];return((isNaN(+u)?u:+u)<(isNaN(+d)?d:+d)?-1:1)*("asc"===o.sort.direction?1:-1)}):o.projectDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Si.o2);function Ize(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function Rze(n,r){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var sP=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.electronService=e,this.controllerService=i,this.toasterService=o,this.data=a,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),path:new J.p4(""),ubridge_path:new J.p4(""),host:new J.p4("",[J.kI.required]),port:new J.p4("",[J.kI.required,J.kI.min(1)]),protocol:new J.p4("http:")})}return(0,U.Z)(n,[{key:"getLocations",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.numberOfLocalControllers();case 2:return i=s.sent,o=[],this.electronService.isElectronApp&&0===i&&o.push({key:"local",name:"Local"}),o.push({key:"remote",name:"Remote"}),s.abrupt("return",o);case 7:case"end":return s.stop()}},e,this)}))}},{key:"getDefaultLocation",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.numberOfLocalControllers();case 2:if(i=a.sent,!this.electronService.isElectronApp||0!==i){a.next=5;break}return a.abrupt("return","local");case 5:return a.abrupt("return","remote");case 6:case"end":return a.stop()}},e,this)}))}},{key:"numberOfLocalControllers",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerService.findAll();case 2:return i=a.sent,a.abrupt("return",i.filter(function(s){return"local"===s.location}).length);case 4:case"end":return a.stop()}},e,this)}))}},{key:"getDefaultHost",value:function(){return"127.0.0.1"}},{key:"getDefaultPort",value:function(){return 3080}},{key:"getDefaultLocalControllerPath",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getLocalControllerPath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"getDefaultUbridgePath",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getUbridgePath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"ngOnInit",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var o,a,s,i=this;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.getLocations();case 2:return this.locations=u.sent,u.next=5,this.getDefaultLocalControllerPath();case 5:return o=u.sent,u.next=8,this.getDefaultUbridgePath();case 8:return a=u.sent,this.controllerForm.get("location").valueChanges.subscribe(function(d){var h=i.controllerForm.get("path"),g=i.controllerForm.get("ubridge_path");"local"===d?(h.setValue(o),h.setValidators([J.kI.required]),g.setValue(a),g.setValidators([J.kI.required])):(h.setValue(""),h.clearValidators(),g.setValue(""),g.clearValidators()),[h,g].forEach(function(y){y.updateValueAndValidity({onlySelf:!0})})}),u.next=12,this.getDefaultLocation();case 12:s=u.sent,this.controllerForm.get("location").setValue(s),this.controllerForm.get("host").setValue(this.getDefaultHost()),this.controllerForm.get("port").setValue(this.getDefaultPort());case 16:case"end":return u.stop()}},e,this)}))}},{key:"onAddClick",value:function(){var e=this;if(this.controllerForm.valid){var i=Object.assign({},this.controllerForm.value);this.controllerService.checkControllerVersion(i).subscribe(function(o){o.version.split(".")[0]>=3?(e.dialogRef.close(i),e.toasterService.success("Controller ".concat(i.name," added."))):(e.dialogRef.close(),e.toasterService.error("Controller version is not supported."))},function(o){e.toasterService.error("Cannot connect to the controller: "+o)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();sP.\u0275fac=function(r){return new(r||sP)(t.Y36(cr),t.Y36(ul),t.Y36(or),t.Y36(Zn),t.Y36(ko))},sP.\u0275cmp=t.Xpm({type:sP,selectors:[["app-add-controller-dialog"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["placeholder","Protocol","formControlName","protocol"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Add controller"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"mat-form-field"),t._UZ(5,"input",3),t.YNc(6,Ize,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",5),t.qZA(),t.TgZ(9,"mat-form-field"),t._UZ(10,"input",6),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",7),t.YNc(13,Rze,2,2,"mat-option",8),t.qZA()()(),t.TgZ(14,"div",9)(15,"button",10),t.NdJ("click",function(){return e.onNoClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",11),t.NdJ("click",function(){return e.onAddClick()}),t._uU(18,"Add"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.controllerForm),t.xp6(4),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(7),t.Q6J("ngForOf",e.protocols))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,lu,dr,ri.gD,Gt.ey],encapsulation:2});var gv=function(){function n(r){var e=this;(0,B.Z)(this,n),this.electronService=r,this.controllerStatusChanged=new On.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){e.controllerStatusChanged.next(o)})}return(0,U.Z)(n,[{key:"statusChannel",get:function(){return"local-controller-status-events"}},{key:"start",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){var o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o={controllerName:e.name,status:"starting",message:""},this.controllerStatusChanged.next(o),s.next=4,this.electronService.remote.require("./local-controller.js").startLocalController(e);case 4:return s.abrupt("return",s.sent);case 5:case"end":return s.stop()}},i,this)}))}},{key:"stop",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./local-controller.js").stopLocalController(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}},{key:"stopAll",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.electronService.remote.require("./local-controller.js").stopAllLocalControllers();case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},e,this)}))}},{key:"getRunningControllers",value:function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-controller.js").getRunningControllers():[]}},{key:"ngOnDestroy",value:function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)}}]),n}();gv.\u0275fac=function(r){return new(r||gv)(t.LFG(ul))},gv.\u0275prov=t.Yz7({token:gv,factory:gv.\u0275fac});var fW=m(5887);function Lze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card",2)(1,"mat-card-content",3),t._uU(2," We've discovered GNS3 controller on "),t.TgZ(3,"b"),t._uU(4),t.qZA(),t._uU(5,", would you like to add to the list? "),t.qZA(),t.TgZ(6,"mat-card-actions",4)(7,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.ignore(a.discoveredController))}),t._uU(8,"NO"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.accept(a.discoveredController))}),t._uU(10,"YES"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(4),t.AsE("",null==i.discoveredController?null:i.discoveredController.host,":",null==i.discoveredController?null:i.discoveredController.port,"")}}function Zze(n,r){1&n&&t._UZ(0,"mat-divider")}var kT=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.versionService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.defaultControllers=[{host:"127.0.0.1",port:3080}]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized&&this.discoverFirstController(),this.controllerService.serviceInitialized.subscribe(function(i){return wi(e,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.discoverFirstController();case 1:case"end":return s.stop()}},o,this)}))})}},{key:"discoverFirstController",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.discoverControllers();case 2:return i=s.sent,s.next=5,this.controllerService.findAll();case 5:s.sent.forEach(function(l){i=i.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),i.length>0&&(this.discoveredController=i.shift());case 8:case"end":return s.stop()}},e,this)}))}},{key:"discoverControllers",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var o,i=this;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o=[],this.defaultControllers.forEach(function(l){return wi(i,void 0,void 0,Rn().mark(function u(){var d;return Rn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(d=new wB).host=l.host,d.port=l.port,y.next=5,this.versionService.get(d).toPromise().catch(function(L){return null});case 5:y.sent&&o.push(d);case 7:case"end":return y.stop()}},u,this)}))}),s.abrupt("return",o);case 3:case"end":return s.stop()}},e,this)}))}},{key:"discoverFirstAvailableController",value:function(){var e=this;(0,j0.D)([(0,hs.D)(this.controllerService.findAll()).pipe((0,$n.U)(function(i){return i})),this.discovery()]).subscribe(function(i){var o=(0,Yn.Z)(i,2),a=o[0],s=o[1];a.forEach(function(l){s=s.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),s.length>0&&(e.discoveredController=s.shift())},function(i){})}},{key:"discovery",value:function(){var e=this,i=[];return this.defaultControllers.forEach(function(o){i.push(e.isControllerAvailable(o.host,o.port).catch(function(a){return fW.Observable.of(null)}))}),new fW.Observable(function(o){(0,j0.D)(i).subscribe(function(a){o.next(a.filter(function(s){return null!=s})),o.complete()})})}},{key:"isControllerAvailable",value:function(e,i){var o=new wB;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return fW.Observable.of(o)})}},{key:"ignore",value:function(e){this.discoveredController=null}},{key:"accept",value:function(e){var i=this;null==e.name&&(e.name=e.host),e.location="remote",e.protocol=location.protocol,this.controllerService.create(e).then(function(o){i.controllerDatabase.addController(o),i.discoveredController=null})}}]),n}();function Nze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," ID "),t.qZA())}function Bze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Fze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}kT.\u0275fac=function(r){return new(r||kT)(t.Y36(gm),t.Y36(or),t.Y36(Dp),t.Y36(fr))},kT.\u0275cmp=t.Xpm({type:kT,selectors:[["app-controller-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.YNc(0,Lze,11,2,"mat-card",0),t.YNc(1,Zze,1,0,"mat-divider",1)),2&r&&(t.Q6J("ngIf",e.discoveredController),t.xp6(1),t.Q6J("ngIf",e.discoveredController))},dependencies:[se.O5,dn,di,Y0,ID,hm.d]});var Uze=function(r){return["/controller",r,"login"]};function jze(n,r){if(1&n&&(t.TgZ(0,"a",22),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(2,Uze,e.id)),t.xp6(1),t.Oqu(e.name)}}function Hze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function Gze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,jze,2,4,"a",20),t.YNc(2,Hze,2,1,"span",21),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===i.getControllerStatus(e)||"remote"===e.location||"bundled"===e.location),t.xp6(1),t.Q6J("ngIf","running"!=i.getControllerStatus(e)&&"remote"!==e.location&&"bundled"!==e.location)}}function zze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Location "),t.qZA())}function Wze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.location," ")}}function Vze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Host "),t.qZA())}function Yze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.host," ")}}function Kze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Port "),t.qZA())}function qze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.port," ")}}function Jze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function Qze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.openProjects(o))}),t.TgZ(1,"mat-icon",31),t._uU(2,"arrow_forward"),t.qZA()()}}function Xze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.startController(o))}),t.TgZ(1,"mat-icon",33),t._uU(2,"play_arrow"),t.qZA()()}}function $ze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.stopController(o))}),t.TgZ(1,"mat-icon",35),t._uU(2,"stop"),t.qZA()()}}function eWe(n,r){1&n&&t._UZ(0,"mat-spinner",36),2&n&&t.Q6J("diameter",24)}function tWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",23),t.YNc(1,Qze,3,0,"button",24),t.YNc(2,Xze,3,0,"button",25),t.YNc(3,$ze,3,0,"button",26),t.YNc(4,eWe,1,1,"mat-spinner",27),t.TgZ(5,"button",28),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.deleteController(l))}),t.TgZ(6,"mat-icon",29),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===o.getControllerStatus(i)||"remote"===i.location||"bundled"===i.location),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"stopped"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"running"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"starting"===o.getControllerStatus(i))}}function nWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function rWe(n,r){1&n&&t._UZ(0,"mat-row")}function iWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startLocalController())}),t._uU(1," Start local controller "),t.qZA()}}var lP=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.dialog=r,this.controllerService=e,this.controllerDatabase=i,this.controllerManagement=o,this.changeDetector=a,this.electronService=s,this.childProcessService=l,this.bottomSheet=u,this.route=d,this.router=h,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return(0,U.Z)(n,[{key:"getControllers",value:function(){var e=this,i=this.controllerManagement.getRunningControllers();this.controllerService.findAll().then(function(o){o.forEach(function(a){i.findIndex(function(l){return a.name===l})>=0&&(a.status="running")}),o.forEach(function(a){e.controllerService.checkControllerVersion(a).subscribe(function(s){s.version.split(".")[0]>=3&&(a.protocol||(a.protocol=location.protocol),e.controllerDatabase.find(a.name)||e.controllerDatabase.addController(a))},function(s){})})})}},{key:"ngOnInit",value:function(){var e=this;this.isElectronApp=this.electronService.isElectronApp,this.controllerService&&this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService&&this.controllerService.isServiceInitialized&&this.controllerService.serviceInitialized.subscribe(function(i){return wi(e,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.getControllers();case 1:case"end":return s.stop()}},o,this)}))}),this.dataSource=new oWe(this.controllerDatabase),this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){var o=e.controllerDatabase.find(i.controllerName);!o||("starting"===i.status&&(o.status="starting"),"stopped"===i.status&&(o.status="stopped"),"errored"===i.status&&(o.status="stopped"),"started"===i.status&&(o.status="running"),e.controllerDatabase.update(o),e.changeDetector.detectChanges())})}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe()}},{key:"startLocalController",value:function(){var e=this.controllerDatabase.data.find(function(i){return"bundled"===i.location||"local"});this.startController(e)}},{key:"openProjects",value:function(e){this.router.navigate(["/controller",e.id,"projects"])}},{key:"createModal",value:function(){var e=this;this.dialog.open(sP,{width:"350px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.controllerService.create(o).then(function(a){e.controllerDatabase.addController(a)})})}},{key:"getControllerStatus",value:function(e){if("local"===e.location)return void 0===e.status?"stopped":e.status}},{key:"deleteController",value:function(e){var i=this;this.bottomSheet.open(md);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to delete the controller?";o.afterDismissed().subscribe(function(s){s&&i.controllerService.delete(e).then(function(){i.controllerDatabase.remove(e)})})}},{key:"startController",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.start(e);case 2:case"end":return a.stop()}},i,this)}))}},{key:"stopController",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.stop(e);case 2:case"end":return a.stop()}},i,this)}))}}]),n}();lP.\u0275fac=function(r){return new(r||lP)(t.Y36(Gr),t.Y36(or),t.Y36(Dp),t.Y36(gv),t.Y36(t.sBO),t.Y36(ul),t.Y36(fG),t.Y36(lf),t.Y36(fr),t.Y36(ur))},lP.\u0275cmp=t.Xpm({type:lP,selectors:[["app-controller-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove controller"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start controller"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop controller"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Controllers"),t.qZA()(),t.TgZ(4,"div",2),t._UZ(5,"app-controller-discovery"),t.TgZ(6,"div",3)(7,"mat-table",4,5),t.ynx(9,6),t.YNc(10,Nze,2,0,"mat-header-cell",7),t.YNc(11,Bze,2,1,"mat-cell",8),t.BQk(),t.ynx(12,9),t.YNc(13,Fze,2,0,"mat-header-cell",7),t.YNc(14,Gze,3,2,"mat-cell",8),t.BQk(),t.ynx(15,10),t.YNc(16,zze,2,0,"mat-header-cell",7),t.YNc(17,Wze,2,1,"mat-cell",8),t.BQk(),t.ynx(18,11),t.YNc(19,Vze,2,0,"mat-header-cell",7),t.YNc(20,Yze,2,1,"mat-cell",8),t.BQk(),t.ynx(21,12),t.YNc(22,Kze,2,0,"mat-header-cell",7),t.YNc(23,qze,2,1,"mat-cell",8),t.BQk(),t.ynx(24,13),t.YNc(25,Jze,2,0,"mat-header-cell",7),t.YNc(26,tWe,8,4,"mat-cell",14),t.BQk(),t.YNc(27,nWe,1,0,"mat-header-row",15),t.YNc(28,rWe,1,0,"mat-row",16),t.qZA()(),t.TgZ(29,"div",17),t.YNc(30,iWe,2,0,"button",18),t.TgZ(31,"button",19),t.NdJ("click",function(){return e.createModal()}),t._uU(32,"Add Controller"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("dataSource",e.dataSource),t.xp6(20),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isElectronApp))},dependencies:[se.O5,Gs,dn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,mi,kT],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}table[_ngcontent-%COMP%]{width:100%}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}"]});var oWe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,U.Z)(e,[{key:"connect",value:function(){var o=this;return(0,Gi.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Si.o2),Gb=function(){function n(r){(0,B.Z)(this,n),this.electronService=r}return(0,U.Z)(n,[{key:"get",value:function(){if(this.electronService.isElectronApp){if(this.electronService.isLinux)return'xfce4-terminal --tab -T "%d" -e "telnet %h %p"';if(this.electronService.isWindows)return'putty.exe -telnet %h %p -loghost "%d"'}}}]),n}();Gb.\u0275fac=function(r){return new(r||Gb)(t.LFG(ul))},Gb.\u0275prov=t.Yz7({token:Gb,factory:Gb.\u0275fac});var vv=function(){function n(r,e){(0,B.Z)(this,n),this.defaultConsoleService=r,this.settingsService=e}return(0,U.Z)(n,[{key:"command",get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)}}]),n}();vv.\u0275fac=function(r){return new(r||vv)(t.LFG(Gb),t.LFG(Gm.g))},vv.\u0275prov=t.Yz7({token:vv,factory:vv.\u0275fac});var uP=function(){function n(r,e,i){(0,B.Z)(this,n),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new J.nJ({command:new J.p4("")})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.consoleForm.get("command").setValue(this.consoleService.command)}},{key:"goBack",value:function(){this.router.navigate(["/settings"])}},{key:"save",value:function(){var e=this.consoleForm.value;this.consoleService.command=e.command,this.toasterService.success("Console command has been updated."),this.goBack()}}]),n}();uP.\u0275fac=function(r){return new(r||uP)(t.Y36(ur),t.Y36(vv),t.Y36(Zn))},uP.\u0275cmp=t.Xpm({type:uP,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Console settings"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-form-field",6),t._UZ(9,"textarea",7),t.qZA(),t.TgZ(10,"div",8),t._uU(11," The following variables are replaced by GNS3:"),t._UZ(12,"br"),t._uU(13," %h: console IP or hostname"),t._UZ(14,"br"),t._uU(15," %p: console port"),t._UZ(16,"br"),t._uU(17," %s: path of the serial connection"),t._UZ(18,"br"),t._uU(19," %d: title of the console"),t._UZ(20,"br"),t._uU(21," %i: Project UUID"),t._UZ(22,"br"),t._uU(23," %c: controller URL (http://user:password@controller:port) "),t.qZA()()(),t.TgZ(24,"div",9)(25,"button",10),t.NdJ("click",function(){return e.goBack()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",11),t.NdJ("click",function(){return e.save()}),t._uU(28,"Save"),t.qZA(),t._UZ(29,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("formGroup",e.consoleForm))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Kn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var zb=function(){function n(r){(0,B.Z)(this,n),this.httpClient=r}return(0,U.Z)(n,[{key:"getLatestVersion",value:function(){return this.httpClient.get("http://update.gns3.net/")}}]),n}();zb.\u0275fac=function(r){return new(r||zb)(t.LFG(fc.eN))},zb.\u0275prov=t.Yz7({token:zb,factory:zb.\u0275fac});var cP=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.settings=this.settingsService.getAll(),this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openReadme=this.mapSettingsService.openReadme,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget}},{key:"save",value:function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenReadme(this.openReadme),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)}},{key:"setDarkMode",value:function(e){this.themeService.setDarkMode(e)}},{key:"checkForUpdates",value:function(){window.open("https://gns3.com/software")}}]),n}();cP.\u0275fac=function(r){return new(r||cP)(t.Y36(Gm.g),t.Y36(Zn),t.Y36(vv),t.Y36(wc.f),t.Y36(fl),t.Y36(zb))},cP.\u0275cmp=t.Xpm({type:cP,selectors:[["app-settings"]],decls:51,vars:8,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"theme-panel"],["mat-raised-button","",3,"click"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Settings"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel",4)(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Local settings "),t.qZA(),t.TgZ(11,"mat-panel-description"),t._uU(12," Customize your local settings "),t.qZA()(),t.TgZ(13,"div")(14,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.crash_reports=o}),t._uU(15,"Send anonymous crash reports"),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.integrateLinksLabelsToLinks=o}),t._uU(18,"Integrate link labels to links"),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openReadme=o}),t._uU(21,"Automatically open project README files"),t.qZA(),t._UZ(22,"br"),t.TgZ(23,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.anonymous_statistics=o}),t._uU(24,"Send anonymous usage statistics"),t.qZA(),t._UZ(25,"br"),t.TgZ(26,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openConsolesInWidget=o}),t._uU(27,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),t.qZA()()(),t.TgZ(28,"mat-expansion-panel",4)(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Theme settings "),t.qZA(),t.TgZ(32,"mat-panel-description"),t._uU(33," Customize theme settings "),t.qZA()(),t.TgZ(34,"div",6)(35,"button",7),t.NdJ("click",function(){return e.setDarkMode(!1)}),t._uU(36,"Switch to light theme"),t.qZA(),t.TgZ(37,"button",7),t.NdJ("click",function(){return e.setDarkMode(!0)}),t._uU(38,"Switch to dark theme"),t.qZA()()(),t.TgZ(39,"mat-expansion-panel",4)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Updates "),t.qZA(),t.TgZ(43,"mat-panel-description"),t._uU(44," Check for updates "),t.qZA()(),t.TgZ(45,"div",6)(46,"button",8),t.NdJ("click",function(){return e.checkForUpdates()}),t._uU(47,"Check for updates"),t.qZA()()()()(),t.TgZ(48,"div",9)(49,"button",10),t.NdJ("click",function(){return e.save()}),t._uU(50,"Save settings"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("expanded",!0),t.xp6(7),t.Q6J("ngModel",e.settings.crash_reports),t.xp6(3),t.Q6J("ngModel",e.integrateLinksLabelsToLinks),t.xp6(3),t.Q6J("ngModel",e.openReadme),t.xp6(3),t.Q6J("ngModel",e.settings.anonymous_statistics),t.xp6(3),t.Q6J("ngModel",e.openConsolesInWidget),t.xp6(2),t.Q6J("expanded",!1),t.xp6(11),t.Q6J("expanded",!1))},dependencies:[J.JJ,J.On,dn,ti,Dl,xl,au,Uu,BD],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var dP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e){var i=new Date(1e3*+e),o=i.getHours(),a="0"+i.getMinutes(),s="0"+i.getSeconds(),l=i.getFullYear(),u=i.getMonth()+1,d=i.getDate();return o+":"+a.substr(-2)+":"+s.substr(-2)+" "+d+"/"+u+"/"+l}}]),n}();dP.\u0275fac=function(r){return new(r||dP)},dP.\u0275pipe=t.Yjl({name:"datefilter",type:dP,pure:!0});var fP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function aWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Name "),t.qZA())}function sWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function lWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Date "),t.qZA())}function uWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.ALo(2,"datefilter"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.created_at)," ")}}function cWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function dWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.restoreSnapshot(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"restore"),t.qZA()(),t.TgZ(4,"button",22),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteSnapshot(a))}),t.TgZ(5,"mat-icon",23),t._uU(6,"delete"),t.qZA()()()}}function fWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function pWe(n,r){1&n&&t._UZ(0,"mat-row")}fP.\u0275fac=function(r){return new(r||fP)},fP.\u0275pipe=t.Yjl({name:"namefilter",type:fP,pure:!0});var pP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.controller=this.route.snapshot.data.controller,this.getSnapshots()}},{key:"getSnapshots",value:function(){var e=this;this.snapshotService.list(this.controller,this.projectId).subscribe(function(i){e.snapshots=i})}},{key:"restoreSnapshot",value:function(e){var i=this,o=this.snapshotService.restore(this.controller,this.projectId,e.snapshot_id.toString()),a=this.progressDialogService.open(),s=o.subscribe(function(l){i.toaster.success("Snapshot ".concat(e.name," has been restored.")),a.close()});a.afterClosed().subscribe(function(l){l===Hb.CANCELLED&&s.unsubscribe()})}},{key:"deleteSnapshot",value:function(e){var i=this;this.snapshotService.delete(this.controller,this.projectId,e.snapshot_id.toString()).subscribe(function(){i.getSnapshots(),i.toaster.success("Snapshot ".concat(e.name," has been deleted."))})}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.snapshots.slice();this.snapshots=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?function mWe(n,r,e){return n=n.toLowerCase(),r=r.toLowerCase(),(n<r?-1:1)*(e?1:-1)}(o.name,a.name,s):"creationDate"===e.active?function hWe(n,r,e){return(n<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),n}();pP.\u0275fac=function(r){return new(r||pP)(t.Y36(fr),t.Y36(Ym),t.Y36(mv),t.Y36(Zn))},pP.\u0275cmp=t.Xpm({type:pP,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Snapshots"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"mat-form-field",5)(8,"input",6),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(9,"mat-table",7,8),t.NdJ("matSortChange",function(o){return e.sortData(o)}),t.ALo(11,"namefilter"),t.ynx(12,9),t.YNc(13,aWe,2,0,"mat-header-cell",10),t.YNc(14,sWe,2,1,"mat-cell",11),t.BQk(),t.ynx(15,12),t.YNc(16,lWe,2,0,"mat-header-cell",10),t.YNc(17,uWe,3,3,"mat-cell",11),t.BQk(),t.ynx(18,13),t.YNc(19,cWe,2,0,"mat-header-cell",14),t.YNc(20,dWe,7,0,"mat-cell",15),t.BQk(),t.YNc(21,fWe,1,0,"mat-header-row",16),t.YNc(22,pWe,1,0,"mat-row",17),t.qZA()()()()),2&r&&(t.xp6(8),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("dataSource",t.xi3(11,4,e.snapshots,e.searchText)),t.xp6(12),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,qu,cf,mi,dP,fP],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var qse=new t.OlP("MatChipRemove"),Jse=new t.OlP("MatChipAvatar"),Qse=new t.OlP("MatChipTrailingIcon"),gWe=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r}),vWe=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)(gWe),"primary"),-1),TT=(0,U.Z)(function n(){(0,B.Z)(this,n)});TT.\u0275fac=function(r){return new(r||TT)},TT.\u0275dir=t.lG2({type:TT,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[t._Bn([{provide:Jse,useExisting:TT}])]});var MT=(0,U.Z)(function n(){(0,B.Z)(this,n)});MT.\u0275fac=function(r){return new(r||MT)},MT.\u0275dir=t.lG2({type:MT,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[t._Bn([{provide:Qse,useExisting:MT}])]});var yv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this,i))._ngZone=o,g._changeDetectorRef=l,g._hasFocus=!1,g.chipListSelectable=!0,g._chipListMultiple=!1,g._chipListDisabled=!1,g.role="option",g._selected=!1,g._selectable=!0,g._disabled=!1,g._removable=!0,g._onFocus=new On.xQ,g._onBlur=new On.xQ,g.selectionChange=new t.vpe,g.destroyed=new t.vpe,g.removed=new t.vpe,g._addHostClassName(),g._chipRippleTarget=u.createElement("div"),g._chipRippleTarget.classList.add("mat-chip-ripple"),g._elementRef.nativeElement.appendChild(g._chipRippleTarget),g._chipRipple=new Gt.IR((0,lD.Z)(g),o,g._chipRippleTarget,a),g._chipRipple.setupTriggerEvents(i),g.rippleConfig=s||{},g._animationsDisabled="NoopAnimations"===d,g.tabIndex=null!=h&&parseInt(h)||-1,g}return(0,U.Z)(e,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(o){var a=(0,En.Ig)(o);a!==this._selected&&(this._selected=a,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(o){this._value=o}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(o){this._selectable=(0,En.Ig)(o)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"removable",get:function(){return this._removable},set:function(o){this._removable=(0,En.Ig)(o)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var o="mat-basic-chip",a=this._elementRef.nativeElement;a.hasAttribute(o)||a.tagName.toLowerCase()===o?a.classList.add(o):a.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(o),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(o){this.disabled&&o.preventDefault()}},{key:"_handleKeydown",value:function(o){if(!this.disabled)switch(o.keyCode){case Tr.yY:case Tr.ZH:this.remove(),o.preventDefault();break;case Tr.L_:this.selectable&&this.toggleSelected(!0),o.preventDefault()}}},{key:"_blur",value:function(){var o=this;this._ngZone.onStable.pipe((0,Ri.q)(1)).subscribe(function(){o._ngZone.run(function(){o._hasFocus=!1,o._onBlur.next({chip:o})})})}},{key:"_dispatchSelectionChange",value:function(){var o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:o,selected:this._selected})}}]),e}(vWe);yv.\u0275fac=function(r){return new(r||yv)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(bi.t4),t.Y36(Gt.Y2,8),t.Y36(t.sBO),t.Y36(se.K0),t.Y36(t.QbO,8),t.$8M("tabindex"))},yv.\u0275dir=t.lG2({type:yv,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Jse,5),t.Suo(i,Qse,5),t.Suo(i,qse,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.avatar=o.first),t.iGM(o=t.CRH())&&(e.trailingIcon=o.first),t.iGM(o=t.CRH())&&(e.removeIcon=o.first))},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("keydown",function(o){return e._handleKeydown(o)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&r&&(t.uIk("tabindex",e.disabled?null:e.tabIndex)("role",e.role)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),t.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[t.qOj]});var ST=function(){function n(r,e){(0,B.Z)(this,n),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,U.Z)(n,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),n}();ST.\u0275fac=function(r){return new(r||ST)(t.Y36(yv),t.Y36(t.SBq))},ST.\u0275dir=t.lG2({type:ST,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})},features:[t._Bn([{provide:qse,useExisting:ST}])]});var Xse=new t.OlP("mat-chips-default-options"),yWe=0,hP=function(){function n(r,e){(0,B.Z)(this,n),this._elementRef=r,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new t.vpe,this.placeholder="",this.id="mat-chip-list-input-".concat(yWe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,U.Z)(n,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=(0,En.Ig)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(e){if(e){if(e.keyCode===Tr.Mf&&!(0,Tr.Vb)(e,"shiftKey")&&this._chipList._allowFocusEscape(),e.keyCode===Tr.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&e.keyCode===Tr.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!(0,Tr.Vb)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),n}();hP.\u0275fac=function(r){return new(r||hP)(t.Y36(t.SBq),t.Y36(Xse))},hP.\u0275dir=t.lG2({type:hP,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)})("keyup",function(o){return e._keyup(o)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&r&&(t.Ikx("id",e.id),t.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[t.TTD]});var bWe=(0,Gt.FD)(function(){return(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),CWe=0,wWe=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.value=e}),Wb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,u,s,l,d))._elementRef=i,h._changeDetectorRef=o,h._dir=a,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new On.xQ,h._uid="mat-chip-list-".concat(CWe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(g,y){return g===y},h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new t.vpe,h.valueChange=new t.vpe,h.ngControl&&(h.ngControl.valueAccessor=(0,lD.Z)(h)),h}return(0,U.Z)(e,[{key:"selected",get:function(){var o,a;return this.multiple?(null===(o=this._selectionModel)||void 0===o?void 0:o.selected)||[]:null===(a=this._selectionModel)||void 0===a?void 0:a.selected[0]}},{key:"role",get:function(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"},set:function(o){this._explicitRole=o}},{key:"multiple",get:function(){return this._multiple},set:function(o){this._multiple=(0,En.Ig)(o),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(o){this._compareWith=o,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(o){this.writeValue(o),this._value=o}},{key:"id",get:function(){return this._chipInput?this._chipInput.id: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,En.Ig)(o),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(o){this._placeholder=o,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,En.Ig)(o),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(o){this._selectable=(0,En.Ig)(o),this._syncChipsState()}},{key:"tabIndex",set:function(o){this._userTabIndex=o,this._tabIndex=o}},{key:"chipSelectionChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o._onFocus})))}},{key:"chipBlurChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o.destroyed})))}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Pr.R)(this._destroyed)).subscribe(function(a){return o._keyManager.withHorizontalOrientation(a)}),this._keyManager.tabOut.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.chips.changes.pipe((0,Oo.O)(null),(0,Pr.R)(this._destroyed)).subscribe(function(){(o.disabled||!o.selectable)&&Promise.resolve().then(function(){o._syncChipsState()}),o._resetChips(),o._initializeSelection(),o._updateTabIndex(),o._updateFocusForDestroyedChips(),o.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Si.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(o){this._chipInput=o,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",o.id)}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"writeValue",value:function(o){this.chips&&this._setSelectionByValue(o,!1)}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this.stateChanges.next()}},{key:"onContainerClick",value:function(o){this._originatesFromChip(o)||this.focus()}},{key:"focus",value:function(o){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(o),this.stateChanges.next()))}},{key:"_focusInput",value:function(o){this._chipInput&&this._chipInput.focus(o)}},{key:"_keydown",value:function(o){var a=o.target;a&&a.classList.contains("mat-chip")&&(this._keyManager.onKeydown(o),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var o=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(o)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(o){return o>=0&&o<this.chips.length}},{key:"_setSelectionByValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(u){return u.deselect()}),Array.isArray(o))o.forEach(function(u){return a._selectValue(u,s)}),this._sortValues();else{var l=this._selectValue(o,s);l&&s&&this._keyManager.setActiveItem(l)}}},{key:"_selectValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this.chips.find(function(u){return null!=u.value&&a._compareWith(u.value,o)});return l&&(s?l.selectViaInteraction():l.select(),this._selectionModel.select(l)),l}},{key:"_initializeSelection",value:function(){var o=this;Promise.resolve().then(function(){(o.ngControl||o._value)&&(o._setSelectionByValue(o.ngControl?o.ngControl.value:o._value,!1),o.stateChanges.next())})}},{key:"_clearSelection",value:function(o){this._selectionModel.clear(),this.chips.forEach(function(a){a!==o&&a.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var o=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(a){a.selected&&o._selectionModel.select(a)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(o){var a=null;a=Array.isArray(this.selected)?this.selected.map(function(s){return s.value}):this.selected?this.selected.value:o,this._value=a,this.change.emit(new wWe(this,a)),this.valueChange.emit(a),this._onChange(a),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var o=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){o.focused||o._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var o=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){o._tabIndex=o._userTabIndex||0,o._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var o=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(a){a.source.selected?o._selectionModel.select(a.source):o._selectionModel.deselect(a.source),o.multiple||o.chips.forEach(function(s){!o._selectionModel.isSelected(s)&&s.selected&&s.deselect()}),a.isUserInput&&o._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var o=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(a){var s=o.chips.toArray().indexOf(a.chip);o._isValidIndex(s)&&o._keyManager.updateActiveItem(s),o.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){o._blur(),o.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var o=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(a){var s=a.chip,l=o.chips.toArray().indexOf(a.chip);o._isValidIndex(l)&&s._hasFocus&&(o._lastDestroyedChipIndex=l)})}},{key:"_originatesFromChip",value:function(o){for(var a=o.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-chip"))return!0;a=a.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(o){return o._hasFocus})}},{key:"_syncChipsState",value:function(){var o=this;this.chips&&this.chips.forEach(function(a){a._chipListDisabled=o._disabled,a._chipListMultiple=o.multiple,a.chipListSelectable=o._selectable})}}]),e}(bWe);Wb.\u0275fac=function(r){return new(r||Wb)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(nl.Is,8),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Gt.rD),t.Y36(J.a5,10))},Wb.\u0275cmp=t.Xpm({type:Wb,selectors:[["mat-chip-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,yv,5),2&r)&&(t.iGM(o=t.CRH())&&(e.chips=o))},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.Ikx("id",e._uid),t.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),t.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[t._Bn([{provide:kn.Eo,useExisting:Wb}]),t.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0});var ET=(0,U.Z)(function n(){(0,B.Z)(this,n)});ET.\u0275fac=function(r){return new(r||ET)},ET.\u0275mod=t.oAB({type:ET}),ET.\u0275inj=t.cJS({providers:[Gt.rD,{provide:Xse,useValue:{separatorKeyCodes:[Tr.K5]}}],imports:[Gt.BQ]});var kWe=function(){return["Load average","(last 1 minute)"]},TWe=function(){return["Load average","(last 5 minutes)"]},MWe=function(){return["Load average","(last 15 minutes)"]},mP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"formatBytes",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var o=1024,a=i<0?0:i,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(e)/Math.log(o));return parseFloat((e/Math.pow(o,l)).toFixed(a))+" "+s[l]}}]),n}();function SWe(n,r){1&n&&(t.TgZ(0,"div"),t._uU(1,"Statistics not loaded"),t.qZA())}function EWe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t._UZ(2,"app-status-chart",2),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.compute_name," "),t.xp6(1),t.Q6J("computeStatistics",e)}}mP.\u0275fac=function(r){return new(r||mP)},mP.\u0275cmp=t.Xpm({type:mP,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(r,e){1&r&&(t.TgZ(0,"mat-card")(1,"div",0),t._UZ(2,"circle-progress",1)(3,"circle-progress",1)(4,"circle-progress",1)(5,"circle-progress",1),t.qZA(),t.TgZ(6,"div",0),t._UZ(7,"circle-progress",1)(8,"circle-progress",1)(9,"circle-progress",1),t.qZA(),t.TgZ(10,"div",2)(11,"mat-chip-list")(12,"mat-chip",3),t._uU(13),t.qZA()(),t.TgZ(14,"mat-chip-list")(15,"mat-chip",3),t._uU(16),t.qZA()(),t.TgZ(17,"mat-chip-list")(18,"mat-chip",3),t._uU(19),t.qZA()()(),t.TgZ(20,"div",2)(21,"mat-chip-list")(22,"mat-chip",3),t._uU(23),t.qZA()(),t.TgZ(24,"mat-chip-list")(25,"mat-chip",3),t._uU(26),t.qZA()(),t.TgZ(27,"mat-chip-list")(28,"mat-chip",3),t._uU(29),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(111,kWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(112,TWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(113,MWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(4),t.hij("Memory total: ",e.formatBytes(e.computeStatistics.statistics.memory_total),""),t.xp6(3),t.hij("Memory used: ",e.formatBytes(e.computeStatistics.statistics.memory_used),""),t.xp6(3),t.hij("Memory free: ",e.formatBytes(e.computeStatistics.statistics.memory_free),""),t.xp6(4),t.hij("Swap total: ",e.formatBytes(e.computeStatistics.statistics.swap_total),""),t.xp6(3),t.hij("Swap used: ",e.formatBytes(e.computeStatistics.statistics.swap_used),""),t.xp6(3),t.hij("Swap free: ",e.formatBytes(e.computeStatistics.statistics.swap_free),""))},dependencies:[di,Wb,yv,sD],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;max-height:250px!important}.chips-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-bottom:10px}"]});var _P=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.getStatistics()}},{key:"getStatistics",value:function(){var e=this;this.controllerService.get(Number(this.controllerId)).then(function(i){e.computeService.getStatistics(i).subscribe(function(o){e.computeStatistics=o,setTimeout(function(){e.getStatistics()},2e4)})})}}]),n}();_P.\u0275fac=function(r){return new(r||_P)(t.Y36(fr),t.Y36(Qd.X),t.Y36(or),t.Y36(Zn))},_P.\u0275cmp=t.Xpm({type:_P,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(r,e){1&r&&(t.YNc(0,SWe,2,0,"div",0),t.YNc(1,EWe,3,2,"div",1)),2&r&&(t.Q6J("ngIf",!e.computeStatistics.length),t.xp6(1),t.Q6J("ngForOf",e.computeStatistics))},dependencies:[se.sg,se.O5,mP]});var gP=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.controllerId=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();gP.\u0275fac=function(r){return new(r||gP)(t.Y36(fr))},gP.\u0275cmp=t.Xpm({type:gP,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"System status"),t.qZA()()(),t.TgZ(5,"div",4),t._UZ(6,"app-status-info"),t.qZA()())},dependencies:[_P]});var xWe=["terminal"],xT=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.consoleService=r,this.controllerService=e,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new xa.w,this.term=new Vse.Terminal,this.fitAddon=new Kse.FitAddon}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized?this.getData():this.subscriptions.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()}))}},{key:"getData",value:function(){var e=this;this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe(function(i){e.fitAddon.fit()}),this.controllerService.get(+this.controllerId).then(function(i){e.controller=i,e.nodeService.getNodeById(e.controller,e.projectId,e.nodeId).subscribe(function(o){e.node=o,e.title.setTitle(e.node.name),e.openTerminal()})})}},{key:"openTerminal",value:function(){var e=this;setTimeout(function(){e.term.open(e.terminal.nativeElement);var i=new WebSocket(e.consoleService.getUrl(e.controller,e.node));i.onerror=function(l){e.term.write("Connection lost\r\n")},i.onclose=function(l){e.term.write("Connection closed\r\n")};var o=new Yse.AttachAddon(i);e.term.loadAddon(o),e.term.setOption("cursorBlink",!0),e.term.loadAddon(e.fitAddon),e.fitAddon.activate(e.term),e.fitAddon.fit(),e.term.focus(),e.term.attachCustomKeyEventHandler(function(l){return!(("KeyC"===l.code||"KeyV"===l.code)&&l.ctrlKey&&l.shiftKey)});var a=Math.round(window.innerWidth/e.consoleService.getLineWidth()),s=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(a,s)},0)}}]),n}();xT.\u0275fac=function(r){return new(r||xT)(t.Y36(cu),t.Y36(or),t.Y36(fr),t.Y36(ni),t.Y36(Fr))},xT.\u0275cmp=t.Xpm({type:xT,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(xWe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n'],encapsulation:2});var Vb=function(){function n(r,e){(0,B.Z)(this,n),this.consoleService=r,this.bottomSheet=e}return(0,U.Z)(n,[{key:"canDeactivate",value:function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(md);var e=this.bottomSheet._openedBottomSheetRef;return e.instance.message="Exiting the project will close open consoles, do you want to continue?",e.afterDismissed()}return!0}}]),n}();Vb.\u0275fac=function(r){return new(r||Vb)(t.LFG(cu),t.LFG(lf))},Vb.\u0275prov=t.Yz7({token:Vb,factory:Vb.\u0275fac});var Ur=function(){function n(r,e,i){(0,B.Z)(this,n),this.controllerService=r,this.loginService=e,this.router=i}return(0,U.Z)(n,[{key:"canActivate",value:function(e,i){return wi(this,void 0,void 0,Rn().mark(function o(){var s,l,a=this;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=e.paramMap.get("controller_id"),this.loginService.controller_id=s,d.next=4,this.controllerService.get(parseInt(s,10));case 4:return l=d.sent,d.prev=5,d.next=8,this.loginService.getLoggedUser(l);case 8:d.next=12;break;case 10:d.prev=10,d.t0=d.catch(5);case 12:return d.abrupt("return",this.controllerService.get(parseInt(s,10)).then(function(h){if(h.authToken&&!h.tokenExpired)return!0;a.router.navigate(["/controller",h.id,"login"],{queryParams:{returnUrl:i.url}})}));case 13:case"end":return d.stop()}},o,this,[[5,10]])}))}}]),n}();Ur.\u0275fac=function(r){return new(r||Ur)(t.LFG(or),t.LFG(_m),t.LFG(ur))},Ur.\u0275prov=t.Yz7({token:Ur,factory:Ur.\u0275fac});var DWe=["*",[["mat-toolbar-row"]]],OWe=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}()),vP=(0,U.Z)(function n(){(0,B.Z)(this,n)});vP.\u0275fac=function(r){return new(r||vP)},vP.\u0275dir=t.lG2({type:vP,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var yP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,U.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return o._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){this._toolbarRows.length}}]),e}(OWe);yP.\u0275fac=function(r){return new(r||yP)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(se.K0))},yP.\u0275cmp=t.Xpm({type:yP,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,vP,5),2&r)&&(t.iGM(o=t.CRH())&&(e._toolbarRows=o))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(DWe),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0});var DT=(0,U.Z)(function n(){(0,B.Z)(this,n)});function PWe(n,r){1&n&&(t.TgZ(0,"button",16),t._UZ(1,"mat-icon",17),t.qZA())}function IWe(n,r){if(1&n&&(t.TgZ(0,"button",18),t._UZ(1,"mat-icon",17),t.qZA()),2&n){t.oxw();var e=t.MAs(45);t.Q6J("matMenuTriggerFor",e)}}function RWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.listProjects())}),t._uU(1," Projects "),t.qZA()}}function LWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.backToProject())}),t._uU(1," Back to project "),t.qZA()}}function ZWe(n,r){if(1&n&&(t.TgZ(0,"button",20)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();var e=t.MAs(8);t.Q6J("matMenuTriggerFor",e)}}DT.\u0275fac=function(r){return new(r||DT)},DT.\u0275mod=t.oAB({type:DT}),DT.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var NWe=function(r){return["controller",r,"systemstatus"]},BWe=function(r){return["controller",r,"settings"]},FWe=function(r){return["controller",r,"management","users"]},UWe=function(r){return["controller",r,"help"]},jWe=function(r){return["/controller",r,"loggeduser"]},HWe=function(){return["/controllers"]},GWe=function(r){return["/controller",r,"projects"]},zWe=function(r){return["controller",r,"preferences"]},WWe=function(r){return["controller",r,"image-manager"]};function VWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-toolbar",3),t.YNc(1,PWe,2,0,"button",4),t.YNc(2,IWe,2,1,"button",5),t.YNc(3,RWe,2,0,"button",6),t.YNc(4,LWe,2,0,"button",6),t._UZ(5,"span",7),t.YNc(6,ZWe,3,1,"button",8),t.TgZ(7,"mat-menu",null,9)(9,"button",10)(10,"mat-icon"),t._uU(11,"info"),t.qZA(),t.TgZ(12,"span"),t._uU(13,"System status"),t.qZA()(),t.TgZ(14,"button",10)(15,"mat-icon"),t._uU(16,"settings"),t.qZA(),t.TgZ(17,"span"),t._uU(18,"Settings"),t.qZA()(),t.TgZ(19,"button",10)(20,"mat-icon"),t._uU(21,"groups"),t.qZA(),t.TgZ(22,"span"),t._uU(23,"Management"),t.qZA()(),t.TgZ(24,"button",10)(25,"mat-icon"),t._uU(26,"help"),t.qZA(),t.TgZ(27,"span"),t._uU(28,"Help"),t.qZA()(),t.TgZ(29,"button",10)(30,"mat-icon"),t._uU(31,"person"),t.qZA(),t.TgZ(32,"span"),t._uU(33,"User info"),t.qZA()(),t.TgZ(34,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goToDocumentation())}),t.TgZ(35,"mat-icon"),t._uU(36,"person"),t.qZA(),t.TgZ(37,"span"),t._uU(38,"API documentation"),t.qZA()(),t.TgZ(39,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.logout())}),t.TgZ(40,"mat-icon"),t._uU(41,"highlight_off"),t.qZA(),t.TgZ(42,"span"),t._uU(43,"Logout"),t.qZA()()(),t.TgZ(44,"mat-menu",12,13)(46,"button",14)(47,"mat-icon"),t._uU(48,"developer_board"),t.qZA(),t.TgZ(49,"span"),t._uU(50,"Controllers"),t.qZA()(),t.TgZ(51,"button",14)(52,"mat-icon"),t._uU(53,"work"),t.qZA(),t.TgZ(54,"span"),t._uU(55,"Projects"),t.qZA()(),t.TgZ(56,"button",10)(57,"mat-icon"),t._uU(58,"settings_applications"),t.qZA(),t.TgZ(59,"span"),t._uU(60,"Template preferences"),t.qZA()(),t.TgZ(61,"button",10)(62,"mat-icon"),t._uU(63,"collections"),t.qZA(),t.TgZ(64,"span"),t._uU(65,"Image manager"),t.qZA()(),t.TgZ(66,"button",15),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addNewTemplate())}),t.TgZ(67,"mat-icon"),t._uU(68,"control_point"),t.qZA(),t.TgZ(69,"span"),t._uU(70,"New template"),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"==i.router.url),t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(1),t.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.controllerIdProjectList),t.xp6(1),t.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedcontrollerId&&!i.isLoginPage),t.xp6(2),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(3),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(24,NWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(26,BWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(28,FWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(30,UWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(32,jWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(34,HWe)),t.xp6(5),t.Q6J("routerLink",t.VKq(35,GWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(37,zWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(39,WWe,i.controllerId))}}var bP=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,B.Z)(this,n),this.electronService=r,this.recentlyOpenedProjectService=e,this.controllerManagement=i,this.toasterService=o,this.progressService=a,this.dialog=s,this.router=l,this.route=u,this.controllerService=d,this.projectService=h,this.isInstalledSoftwareAvailable=!1,this.uiVersion=Wse,this.isLoginPage=!1,this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new xa.w,this.router.events.subscribe(function(y){y instanceof Jd&&(g.controllerId=g.route.children[0].snapshot.paramMap.get("controller_id"),g.getData())})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkIfUserIsLoginPage(),this.routeSubscription=this.router.events.subscribe(function(i){i instanceof Jd&&e.checkIfUserIsLoginPage()}),this.recentlyOpenedcontrollerId=this.recentlyOpenedProjectService.getcontrollerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.controllerIdProjectList=this.recentlyOpenedProjectService.getcontrollerIdProjectList(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){"errored"===i.status&&(console.error(i.message),e.toasterService.error(i.message)),"stderr"===i.status&&(console.error(i.message),e.toasterService.error(i.message))}),this.shouldStopControllersOnClosing=this.electronService.isElectronApp}},{key:"goToDocumentation",value:function(){this.controllerService.get(+this.controllerId).then(function(e){window.open("".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/docs"))})}},{key:"checkIfUserIsLoginPage",value:function(){this.router.url.includes("login")?this.isLoginPage=!0:this.isLoginPage=!1}},{key:"logout",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){i.authToken=null,e.controllerService.update(i).then(function(o){return e.router.navigate(["/controller",i.id,"login"])})})}},{key:"listProjects",value:function(){var e=this;this.router.navigate(["/controller",this.controllerIdProjectList,"projects"]).catch(function(i){return e.toasterService.error("Cannot list projects")})}},{key:"backToProject",value:function(){var e=this;this.router.navigate(["/controller",this.recentlyOpenedcontrollerId,"project",this.recentlyOpenedProjectId]).catch(function(i){return e.toasterService.error("Cannot navigate to the last opened project")})}},{key:"onBeforeUnload",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(this.shouldStopControllersOnClosing){a.next=2;break}return a.abrupt("return");case 2:return e.preventDefault(),e.returnValue=!1,this.progressService.activate(),a.next=7,this.controllerManagement.stopAll();case 7:return this.shouldStopControllersOnClosing=!1,this.progressService.deactivate(),window.close(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},i,this)}))}},{key:"getData",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){e.controller=i})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(mT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe(),this.routeSubscription.unsubscribe()}}]),n}();bP.\u0275fac=function(r){return new(r||bP)(t.Y36(ul),t.Y36(ZF.p),t.Y36(gv),t.Y36(Zn),t.Y36(El),t.Y36(Gr),t.Y36(ur),t.Y36(fr),t.Y36(or),t.Y36(Vs.Y))},bP.\u0275cmp=t.Xpm({type:bP,selectors:[["app-default-layout"]],hostBindings:function(r,e){1&r&&t.NdJ("beforeunload",function(o){return e.onBeforeUnload(o)},!1,t.Jf7)},decls:7,vars:2,consts:[["color","primary",4,"ngIf"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["color","primary"],["mat-icon-button","",4,"ngIf"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor",4,"ngIf"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"disabled","routerLink"],["mat-menu-item","",3,"disabled","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-icon-button",""],["svgIcon","gns3"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor"],["mat-button","",3,"click"],["mat-button","",3,"matMenuTriggerFor"]],template:function(r,e){1&r&&(t.TgZ(0,"header"),t.YNc(1,VWe,71,41,"mat-toolbar",0),t.qZA(),t.TgZ(2,"main",1),t._UZ(3,"router-outlet"),t.qZA(),t._UZ(4,"app-progress"),t.TgZ(5,"footer",2),t._uU(6),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf","/controllers"!=e.router.url),t.xp6(5),t.hij("GNS3 Web UI \xa9 2022 - v",e.uiVersion,""))},dependencies:[se.O5,fm,Wo,Ga,Er,ga,dn,yP,Dn,mi,z0],styles:["html,body{height:100%}app-root,app-default-layout{height:100%}app-default-layout{display:flex;flex-direction:column;height:100vh}.footer{padding:20px;margin:auto 0 0}.default-content{margin:0 auto;max-width:940px;padding-top:20px;padding-bottom:20px}header{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;z-index:10}.default-header h1{font-weight:300;margin:0;font-size:20px;padding:28px 8px}.default-header{margin:0 auto;max-width:940px}.buttons-bar{padding-top:10px;text-align:right}.fill-space{flex:1 1 auto}.container>*{width:100%}.container{padding:0%}.mat-dialog-content>*{width:100%}\n"],encapsulation:2});var vd=function(){function n(r){(0,B.Z)(this,n),this.controllerService=r}return(0,U.Z)(n,[{key:"resolve",value:function(e){return this.controllerService.get(parseInt(e.params.controller_id))}}]),n}();vd.\u0275fac=function(r){return new(r||vd)(t.LFG(or))},vd.\u0275prov=t.Yz7({token:vd,factory:vd.\u0275fac});var $se=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tp.H)(500).pipe((0,Po.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.username===o.value&&o.value!==i})?{userExists:!0}:null}))}},ele=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tp.H)(500).pipe((0,Po.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.email===o.value&&o.value!==i})?{emailExists:!0}:null}))}};function tle(n){n.get("password").value===n.get("confirmPassword").value||n.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var Bl=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getInformationAboutLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me/")}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i))}},{key:"list",value:function(e){return this.httpController.get(e,"/access/users")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/users",i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/users/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/users/".concat(i.user_id),i)}},{key:"getGroupsByUserId",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i,"/groups"))}}]),n}();Bl.\u0275fac=function(r){return new(r||Bl)(t.LFG(ho.zw))},Bl.\u0275prov=t.Yz7({token:Bl,factory:Bl.\u0275fac});var Ec=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getGroups",value:function(e){return this.httpController.get(e,"/access/groups")}},{key:"getGroupMember",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/members"))}},{key:"addGroup",value:function(e,i){return this.httpController.post(e,"/access/groups",{name:i})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/groups/".concat(i))}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i))}},{key:"addMemberToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id),{})}},{key:"removeUser",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id),{name:i.name})}},{key:"getGroupRole",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/roles"))}},{key:"removeRole",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id))}},{key:"addRoleToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id),{})}}]),n}();Ec.\u0275fac=function(r){return new(r||Ec)(t.LFG(ho.zw))},Ec.\u0275prov=t.Yz7({token:Ec,factory:Ec.\u0275fac,providedIn:"root"});var YWe=["panel"];function KWe(n,r){if(1&n&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&n){var e=r.id,i=t.oxw();t.Q6J("id",i.id)("ngClass",i._classList),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var JWe=0,QWe=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.option=e}),XWe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),nle=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function $We(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});var CP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this))._changeDetectorRef=i,l._elementRef=o,l._activeOptionChanges=xa.w.EMPTY,l.showPanel=!1,l._isOpen=!1,l.displayWith=null,l.optionSelected=new t.vpe,l.opened=new t.vpe,l.closed=new t.vpe,l.optionActivated=new t.vpe,l._classList={},l.id="mat-autocomplete-".concat(JWe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l._autoSelectActiveOption=!!a.autoSelectActiveOption,l}return(0,U.Z)(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(o){this._autoActiveFirstOption=(0,En.Ig)(o)}},{key:"autoSelectActiveOption",get:function(){return this._autoSelectActiveOption},set:function(o){this._autoSelectActiveOption=(0,En.Ig)(o)}},{key:"classList",set:function(o){o&&o.length?this._classList=(0,En.du)(o).reduce(function(a,s){return a[s]=!0,a},{}):this._classList={},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(a){o.isOpen&&o.optionActivated.emit({source:o,option:o.options.toArray()[a]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(o){this.panel&&(this.panel.nativeElement.scrollTop=o)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(o){var a=new QWe(this,o);this.optionSelected.emit(a)}},{key:"_getPanelAriaLabelledby",value:function(o){if(this.ariaLabel)return null;var a=o?o+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:o}},{key:"_setVisibilityClasses",value:function(o){o[this._visibleClass]=this.showPanel,o[this._hiddenClass]=!this.showPanel}}]),e}(XWe);CP.\u0275fac=function(r){return new(r||CP)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(nle),t.Y36(bi.t4))},CP.\u0275dir=t.lG2({type:CP,viewQuery:function(r,e){var i;(1&r&&(t.Gf(t.Rgc,7),t.Gf(YWe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.template=i.first),t.iGM(i=t.CRH())&&(e.panel=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]});var Jp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,U.Z)(e)}(CP);Jp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Jp)))(e||Jp)}}(),Jp.\u0275cmp=t.Xpm({type:Jp,selectors:[["mat-autocomplete"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Gt.K7,5),t.Suo(i,Gt.ey,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.optionGroups=o),t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:Gt.HF,useExisting:Jp}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,KWe,3,4,"ng-template"))},dependencies:[se.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0});var rle=new t.OlP("mat-autocomplete-scroll-strategy");var tVe={provide:rle,deps:[Li.aV],useFactory:function eVe(n){return function(){return n.scrollStrategies.reposition()}}},nVe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return Qp}),multi:!0};var wP=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var y=this;(0,B.Z)(this,n),this._element=r,this._overlay=e,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=d,this._viewportRuler=h,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=xa.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new On.xQ,this._windowBlurHandler=function(){y._canOpenOnNextFocus=y._document.activeElement!==y._element.nativeElement||y.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,uD.P)(function(){var L=y.autocomplete?y.autocomplete.options:null;return L?L.changes.pipe((0,Oo.O)(L),(0,Po.w)(function(){return Gi.T.apply(void 0,(0,cn.Z)(L.map(function(z){return z.onSelectionChange})))})):y._zone.onStable.pipe((0,Ri.q)(1),(0,Po.w)(function(){return y.optionSelections}))}),this._scrollStrategy=s}return(0,U.Z)(n,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=(0,En.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this,i=this._getWindow();void 0!==i&&this._zone.runOutsideAngular(function(){return i.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){var e=this;this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(function(){e.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return(0,Gi.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,$r.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,$r.h)(function(){return e._overlayAttached})):(0,qn.of)()).pipe((0,$n.U)(function(i){return i instanceof Gt.rN?i:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return(0,Gi.T)((0,Xf.R)(this._document,"click"),(0,Xf.R)(this._document,"auxclick"),(0,Xf.R)(this._document,"touchend")).pipe((0,$r.h)(function(i){var o=(0,bi.sA)(i),a=e._formField?e._formField._elementRef.nativeElement:null,s=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&o!==e._element.nativeElement&&e._document.activeElement!==e._element.nativeElement&&(!a||!a.contains(o))&&(!s||!s.contains(o))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(o)}))}},{key:"writeValue",value:function(e){var i=this;Promise.resolve(null).then(function(){return i._assignOptionValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=(0,Tr.Vb)(e);if(i===Tr.hY&&!o&&e.preventDefault(),this.activeOption&&i===Tr.K5&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var a=this.autocomplete._keyManager.activeItem,s=i===Tr.LH||i===Tr.JH;i===Tr.Mf||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}},{key:"_handleInput",value:function(e){var i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,this._onChange(o),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_handleClick",value:function(){this._canOpen()&&!this.panelOpen&&this.openPanel()}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,i=this._zone.onStable.pipe((0,Ri.q)(1)),o=this.autocomplete.options.changes.pipe((0,aa.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,qG.g)(0));return(0,Gi.T)(i,o).pipe((0,Po.w)(function(){return e._zone.run(function(){var a=e.panelOpen;e._resetActiveItem(),e.autocomplete._setVisibility(),e._changeDetectorRef.detectChanges(),e.panelOpen&&e._overlayRef.updatePosition(),a!==e.panelOpen&&(e.panelOpen?e.autocomplete.opened.emit():e.autocomplete.closed.emit())}),e.panelClosingActions}),(0,Ri.q)(1)).subscribe(function(a){return e._setValueAndClose(a)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_assignOptionValue",value:function(e){var i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(null!=i?i:"")}},{key:"_updateNativeInputValue",value:function(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}},{key:"_setValueAndClose",value:function(e){var i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(i){i!==e&&i.selected&&i.deselect()})}},{key:"_attachOverlay",value:function(){var i,e=this;this.autocomplete;var o=this._overlayRef;o?(this._positionStrategy.setOrigin(this._getConnectedElement()),o.updateSize({width:this._getPanelWidth()})):(this._portal=new ao.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(i=this._formField)||void 0===i?void 0:i.getLabelId()}),o=this._overlay.create(this._getOverlayConfig()),this._overlayRef=o,this._handleOverlayEvents(o),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&o&&o.updateSize({width:e._getPanelWidth()})})),o&&!o.hasAttached()&&(o.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var a=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&a!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new Li.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var s,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];s="above"===this.position?a:"below"===this.position?i:[].concat(i,a),e.withPositions(s)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var i=this.autocomplete,o=(0,Gt.CB)(e,i.options,i.optionGroups);if(0===e&&1===o)i._setScrollTop(0);else if(i.panel){var a=i.options.toArray()[e];if(a){var s=a._getHostElement(),l=(0,Gt.jH)(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}},{key:"_handleOverlayEvents",value:function(e){var i=this;e.keydownEvents().subscribe(function(o){var a;(o.keyCode===Tr.hY&&!(0,Tr.Vb)(o)||o.keyCode===Tr.LH&&(0,Tr.Vb)(o,"altKey"))&&(i._pendingAutoselectedOption&&(i._updateNativeInputValue(null!==(a=i._valueBeforeAutoSelection)&&void 0!==a?a:""),i._pendingAutoselectedOption=null),i._closeKeyEventStream.next(),i._resetActiveItem(),o.stopPropagation(),o.preventDefault())}),e.outsidePointerEvents().subscribe()}}]),n}();wP.\u0275fac=function(r){return new(r||wP)(t.Y36(t.SBq),t.Y36(Li.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(rle),t.Y36(nl.Is,8),t.Y36(kn.G_,9),t.Y36(se.K0,8),t.Y36(sa.rL),t.Y36(nle,8))},wP.\u0275dir=t.lG2({type:wP,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]});var Qp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,U.Z)(e)}(wP);Qp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Qp)))(e||Qp)}}(),Qp.\u0275dir=t.lG2({type:Qp,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,e){1&r&&t.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(o){return e._handleInput(o)})("keydown",function(o){return e._handleKeydown(o)})("click",function(){return e._handleClick()}),2&r&&t.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",e.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([nVe]),t.qOj]});var kP=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.elementRef=r});kP.\u0275fac=function(r){return new(r||kP)(t.Y36(t.SBq))},kP.\u0275dir=t.lG2({type:kP});var TP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(kP);TP.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(TP)))(e||TP)}}(),TP.\u0275dir=t.lG2({type:TP,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[t.qOj]});var AT=(0,U.Z)(function n(){(0,B.Z)(this,n)});function rVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required"),t.qZA())}function iVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect"),t.qZA())}function oVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists"),t.qZA())}function aVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required"),t.qZA())}function sVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid"),t.qZA())}function lVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"A password between 6 and 100 characters is required."),t.qZA())}function uVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}function cVe(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function dVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",21)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"mat-icon",22),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteGroup(s))}),t._uU(5,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.name)}}AT.\u0275fac=function(r){return new(r||AT)},AT.\u0275mod=t.oAB({type:AT}),AT.\u0275inj=t.cJS({providers:[tVe],imports:[Li.U8,Gt.Ng,Gt.BQ,se.ez,sa.ZD,Gt.Ng,Gt.BQ]});var MP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.userService=e,this.toasterService=i,this.groupService=o,this.groupsToAdd=new Set([]),this.autocompleteControl=new J.p4}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addUserForm=new J.nJ({username:new J.p4(null,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[$se(this.controller,this.userService)]),full_name:new J.p4,email:new J.p4(null,[J.kI.email,J.kI.required],[ele(this.controller,this.userService)]),password:new J.p4(null,[J.kI.required,J.kI.minLength(6),J.kI.maxLength(100)]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),is_active:new J.p4(!0)},{validators:[tle]}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i,e.filteredGroups=e.autocompleteControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.groups.filter(function(o){return o.name.toLowerCase().includes(i)})}}},{key:"form",get:function(){return this.addUserForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this;if(this.addUserForm.valid){var i=this.addUserForm.value,o=Array.from(this.groupsToAdd.values());this.userService.add(this.controller,i).subscribe(function(a){e.toasterService.success("User ".concat(a.username," added")),o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,s,a).subscribe(function(){e.toasterService.success("user ".concat(a.username," was added to group ").concat(s.name))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(a.username," to group ").concat(s.name))})}),e.dialogRef.close()},function(a){e.toasterService.error("Cannot create user : "+a)})}}},{key:"deleteGroup",value:function(e){this.groupsToAdd.delete(e)}},{key:"selectedGroup",value:function(e){this.groupsToAdd.add(e)}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}}]),n}();function fVe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.AsE("",e.username," ",e.full_name?"- "+e.full_name:"","")}}MP.\u0275fac=function(r){return new(r||MP)(t.Y36(cr),t.Y36(Bl),t.Y36(Zn),t.Y36(Ec))},MP.\u0275cmp=t.Xpm({type:MP,selectors:[["app-add-user-dialog"]],decls:40,vars:16,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["matInput","","type","password","formControlName","password","placeholder","Password"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["formControlName","is_active"],[1,"my-2"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"groups"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"groupList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new user"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2),t._UZ(4,"input",3),t.YNc(5,rVe,2,0,"mat-error",4),t.YNc(6,iVe,2,0,"mat-error",4),t.YNc(7,oVe,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"mat-form-field",2),t._UZ(9,"input",5),t.qZA(),t.TgZ(10,"mat-form-field",2),t._UZ(11,"input",6),t.YNc(12,aVe,2,0,"mat-error",4),t.YNc(13,sVe,2,0,"mat-error",4),t.qZA(),t.TgZ(14,"mat-form-field",2),t._UZ(15,"input",7),t.YNc(16,lVe,2,0,"mat-error",4),t.qZA(),t.TgZ(17,"mat-form-field",2),t._UZ(18,"input",8),t.YNc(19,uVe,2,0,"mat-error",4),t.qZA(),t.TgZ(20,"mat-checkbox",9),t._uU(21,"Is active"),t.qZA(),t._UZ(22,"mat-divider",10),t.TgZ(23,"h6"),t._uU(24," Add user to groups : "),t.qZA(),t.TgZ(25,"mat-form-field",2)(26,"mat-label"),t._uU(27,"Groups"),t.qZA(),t._UZ(28,"input",11),t.TgZ(29,"mat-autocomplete",12,13),t.NdJ("optionSelected",function(a){return e.selectedGroup(a.option.value)}),t.YNc(31,cVe,2,2,"mat-option",14),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div",15),t.YNc(34,dVe,6,1,"div",16),t.qZA(),t.TgZ(35,"div",17)(36,"button",18),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(37,"Cancel"),t.qZA(),t.TgZ(38,"button",19),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add user "),t.qZA()()()),2&r){var i=t.MAs(30);t.xp6(2),t.Q6J("formGroup",e.addUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(3),t.Q6J("ngIf",(null==e.form.password?null:e.form.password.touched)&&(null==e.form.password?null:e.form.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.form.confirmPassword?null:e.form.confirmPassword.touched)&&(null==e.form.confirmPassword?null:e.form.confirmPassword.errors)),t.xp6(9),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(32,14,e.filteredGroups)),t.xp6(3),t.Q6J("ngForOf",e.groupsToAdd),t.xp6(4),t.Q6J("disabled",!e.addUserForm.valid)}},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,dn,Dn,Kn,yr,dr,ti,hm.d,Gt.ey,Jp,Qp,se.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}"]});var OT=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();OT.\u0275fac=function(r){return new(r||OT)(t.Y36(cr),t.Y36(ko))},OT.\u0275cmp=t.Xpm({type:OT,selectors:[["app-delete-user-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following users ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,fVe,2,2,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.users))},dependencies:[se.sg,dn,yr,dr],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var SP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.data.filter(function(o){return o.username&&o.username.toLowerCase().includes(i)||o.full_name&&o.full_name.toLowerCase().includes(i)||o.email&&o.email.toLowerCase().includes(i)})):e:[]}}]),n}();SP.\u0275fac=function(r){return new(r||SP)},SP.\u0275pipe=t.Yjl({name:"userFilter",type:SP,pure:!0});var pVe=["usersPaginator"],hVe=["usersSort"];function mVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",33)(1,"mat-checkbox",34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function _Ve(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"mat-checkbox",35),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function gVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Username"),t.qZA())}var vVe=function(r,e){return["/controller",r,"management","users",e]};function yVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",37),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,vVe,i.controller.id,e.user_id))("matTooltip",e.username),t.xp6(1),t.Oqu(e.username)}}function bVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Full Name"),t.qZA())}function CVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.full_name),t.xp6(1),t.Oqu(e.full_name)}}function wVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Mail"),t.qZA())}function kVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.email),t.xp6(1),t.Oqu(e.email)}}function TVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Active"),t.qZA())}function MVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.is_active)}}function SVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Login"),t.qZA())}function EVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.last_login)}}function xVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Update"),t.qZA())}function DVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.updated_at?e.updated_at:e.created_at)}}function AVe(n,r){1&n&&t._UZ(0,"mat-header-cell",33)}function OVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"button",42),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function PVe(n,r){1&n&&t._UZ(0,"mat-header-row")}function IVe(n,r){1&n&&t._UZ(0,"mat-row")}var RVe=function(){return{standalone:!0}},LVe=function(){return[5,10,20]};function ZVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Users"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete Users "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addUser())}),t._uU(8," Add User "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"userFilter"),t.ynx(18,14),t.YNc(19,mVe,2,2,"mat-header-cell",15),t.YNc(20,_Ve,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,gVe,2,0,"mat-header-cell",18),t.YNc(23,yVe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,bVe,2,0,"mat-header-cell",18),t.YNc(26,CVe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,wVe,2,0,"mat-header-cell",18),t.YNc(29,kVe,3,2,"mat-cell",19),t.BQk(),t.ynx(30,22),t.YNc(31,TVe,2,0,"mat-header-cell",23),t.YNc(32,MVe,2,1,"mat-cell",24),t.BQk(),t.ynx(33,25),t.YNc(34,SVe,2,0,"mat-header-cell",18),t.YNc(35,EVe,2,1,"mat-cell",26),t.BQk(),t.ynx(36,27),t.YNc(37,xVe,2,0,"mat-header-cell",18),t.YNc(38,DVe,2,1,"mat-cell",26),t.BQk(),t.ynx(39,28),t.YNc(40,AVe,1,0,"mat-header-cell",15),t.YNc(41,OVe,4,0,"mat-cell",16),t.BQk(),t.YNc(42,PVe,1,0,"mat-header-row",29),t.YNc(43,IVe,1,0,"mat-row",30),t.qZA(),t._UZ(44,"mat-paginator",31,32),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,RVe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(28),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,LVe))}}function NVe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var EP=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.router=e,this.userService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Ap,this.displayedColumns=["select","username","full_name","email","is_active","last_login","updated_at","delete"],this.selection=new Si.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.usersPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.usersSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"username":case"full_name":case"email":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.userService.list(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addUser",value:function(){var e=this,i=this.dialog.open(MP,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(OT,{width:"500px",data:{users:[e]}}).afterClosed().subscribe(function(o){o&&i.userService.delete(i.controller,e.user_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete user ".concat(e.username))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(OT,{width:"500px",data:{users:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.userService.delete(e.controller,o.user_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete user ".concat(o.username))})}),e.selection.clear())})}}]),n}();function BVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card")(1,"mat-list")(2,"mat-list-item"),t._uU(3),t.qZA(),t.TgZ(4,"mat-list-item"),t._uU(5),t.qZA(),t.TgZ(6,"mat-list-item"),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.copyToken())}),t._uU(10,"Click to copy access token"),t.qZA(),t._UZ(11,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(3),t.hij(" Username: ",i.user.username," "),t.xp6(2),t.hij(" Full name: ",i.user.full_name," "),t.xp6(2),t.hij(" Email: ",i.user.email," ")}}EP.\u0275fac=function(r){return new(r||EP)(t.Y36(fr),t.Y36(ur),t.Y36(Bl),t.Y36(El),t.Y36(or),t.Y36(Gr),t.Y36(Zn))},EP.\u0275cmp=t.Xpm({type:EP,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(pVe,5),t.Gf(hVe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.usersPaginator=i),t.iGM(i=t.CRH())&&(e.usersSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by username, full name or email",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","usersSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","username"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","full_name"],["matColumnDef","email"],["matColumnDef","is_active"],["mat-sort-header","","class","active-col",4,"matHeaderCellDef"],["class","active-col",4,"matCellDef"],["matColumnDef","last_login"],["class","overflow-col",4,"matCellDef"],["matColumnDef","updated_at"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["usersPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-sort-header","",1,"active-col"],[1,"active-col"],[1,"overflow-col"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,ZVe,46,12,"div",0),t.YNc(1,NVe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,mi,SP],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px;white-space:pre-line}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var xP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.userService.getInformationAboutLoggedUser(o).subscribe(function(a){e.user=a})})}},{key:"copyToken",value:function(){var e=document.createElement("textarea");e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.opacity="0",e.value=this.controller.authToken,document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.toasterService.success("Token copied")}}]),n}();xP.\u0275fac=function(r){return new(r||xP)(t.Y36(fr),t.Y36(or),t.Y36(Bl),t.Y36(Zn))},xP.\u0275cmp=t.Xpm({type:xP,selectors:[["app-logged-user"]],decls:7,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[4,"ngIf"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"full_width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Logged in user info"),t.qZA()()(),t.TgZ(5,"div",4),t.YNc(6,BVe,12,3,"mat-card",5),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("ngIf",e.user))},dependencies:[se.O5,dn,di,mm,Oa],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var bv=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images")}},{key:"getImagePath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/images/upload/").concat(o,"?install_appliances=").concat(i)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Ha.N.current_version,"/images/upload/").concat(o)}},{key:"uploadedImage",value:function(e,i,o,a){return this.httpController.post(e,"/images/upload/".concat(o,"?install_appliances=").concat(i),a)}},{key:"deleteFile",value:function(e,i){return this.httpController.delete(e,"/images/".concat(i))}}]),n}();function FVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h5"),t._uU(4,"Would you like to automatically install appliances for this image?"),t.qZA()(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t.TgZ(9,"div",5)(10,"mat-radio-group",6),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectInstallApplianceOption(a))}),t.TgZ(11,"mat-radio-button",7),t._uU(12," Yes "),t.qZA(),t.TgZ(13,"mat-radio-button",8),t._uU(14," No "),t.qZA()()(),t.TgZ(15,"div",9)(16,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.isInstallAppliance=!a.isInstallAppliance)}),t._uU(17,"Next"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(10),t.Q6J("value",i.install_appliance),t.xp6(1),t.Q6J("checked",i.install_appliance),t.xp6(2),t.Q6J("checked",!i.install_appliance)}}function UVe(n,r){1&n&&(t.TgZ(0,"h5"),t._uU(1,"Please Select image"),t.qZA())}function jVe(n,r){1&n&&(t.TgZ(0,"p",17),t._uU(1,"Uploaded image details"),t.qZA())}function HVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"input",19,20),t.NdJ("onFileSelected",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("uploader",i.uploaderImage)}}function GVe(n,r){if(1&n&&t._UZ(0,"mat-progress-bar",26),2&n){var e=t.oxw(4);t.Q6J("value",e.uploadProgress.progress)}}function zVe(n,r){1&n&&t._UZ(0,"mat-progress-bar",26),2&n&&t.Q6J("value",0)}function WVe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,GVe,1,1,"mat-progress-bar",25),t.YNc(2,zVe,1,1,"mat-progress-bar",25),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-4"),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==i.uploadProgress.some?null:i.uploadProgress.some.name)),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==i.uploadProgress.some?null:i.uploadProgress.some.name)&&!e.isUploaded)}}function VVe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-2"),t.xp6(1),t.hij(" ",i.uploadProgress.progress+" %"," ")}}function YVe(n,r){1&n&&(t.TgZ(0,"div",27),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ","0 %"," "))}bv.\u0275fac=function(r){return new(r||bv)(t.LFG(ho.zw))},bv.\u0275prov=t.Yz7({token:bv,factory:bv.\u0275fac,providedIn:"root"});var KVe=function(r){return{"uploaded-error-text":r}};function qVe(n,r){if(1&n&&(t.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),t._uU(3),t.qZA()(),t.YNc(4,WVe,3,5,"div",23),t.YNc(5,VVe,2,4,"div",23),t.YNc(6,YVe,2,1,"div",24),t.qZA()),2&n){var e=r.$implicit,i=r.index,o=t.oxw(2);t.xp6(1),t.Tol(e.isError||e.isUploaded?"col-md-10":"col-md-6"),t.xp6(1),t.Q6J("ngClass",t.VKq(11,KVe,e.isError)),t.xp6(1),t.HOy(" ",i+1,". ",e.isError?"Image ":""," ",null==e||null==e.some?null:e.some.name," ",e.isError?" already exists":""," "),t.xp6(1),t.Q6J("ngIf",!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!o.uploadProgress.isUploaded)}}function JVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.uploaderImage.queue.length>0?o.cancelUploading():o.dialogRef.close(!1))}),t._uU(2," Cancel "),t.qZA()()}}function QVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",11)(2,"div",12),t.YNc(3,UVe,2,0,"h5",0),t.YNc(4,jVe,2,0,"p",13),t.qZA(),t.YNc(5,HVe,5,1,"div",14),t.TgZ(6,"div")(7,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(8,"mat-icon"),t._uU(9,"close"),t.qZA()()()(),t.YNc(10,qVe,7,13,"div",15),t.YNc(11,JVe,3,0,"div",16),t.qZA()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Gre("",i.uploaderImage.queue.length>0?"col-md-6 txt-align":"col-md-2 txt-align"," "),t.xp6(4),t.Q6J("ngForOf",i.uploaderImage.queue),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0&&!i.uploadProgress.isUploaded)}}var DP=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.data=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.uploadServiceService=a,this.isInstallAppliance=!1,this.install_appliance=!1,this.selectFile=[],this.uploadProgress=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data,this.uploaderImage=new Eg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){var l={name:i.file.name,message:JSON.parse(o)};e.toasterService.error(null==l?void 0:l.message.message)},this.uploaderImage.onSuccessItem=function(i,o,a,s){var l={filename:i.file.name,message:JSON.parse(o)};e.toasterService.success("Image "+(null==l?void 0:l.message.filename)+" imported succesfully")},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i}}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.dialogRef.close(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image file Uploading canceled")}},{key:"selectInstallApplianceOption",value:function(e){this.install_appliance=e.value}},{key:"uploadImageFile",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){var o,a,s;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;)s=a.value,this.selectFile.push(s)}catch(d){o.e(d)}finally{o.f()}return u.next=4,this.importImageFile();case 4:case"end":return u.stop()}},i,this)}))}},{key:"importImageFile",value:function(){var e=this;this.selectFile.forEach(function(i,o){var a=i.name,s=i,l=new FileReader;l.onloadend=function(){var u=e.imageService.getImagePath(e.controller,e.install_appliance,a),d=e.uploaderImage.queue[o];d.url=u,d.options&&(d.options.disableMultipart=!0),d.options.headers=[{name:"Authorization",value:"Bearer "+e.controller.authToken}],e.uploaderImage.uploadItem(d)},l.readAsText(s)})}}]),n}();function XVe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function $Ve(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all files ?."),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected files"),t.qZA(),t.YNc(6,XVe,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function eYe(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function tYe(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}DP.\u0275fac=function(r){return new(r||DP)(t.Y36(ko),t.Y36(cr),t.Y36(bv),t.Y36(Zn),t.Y36(ad))},DP.\u0275cmp=t.Xpm({type:DP,selectors:[["app-add-image-dialog"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"row"],[1,"col-md-10"],[1,"col-md-2","txt-align"],["mat-button","",3,"click"],["mat-dialog-content",""],["name","install_appliances",1,"choose-instal-appliance",3,"value","change"],["value","true",1,"instal-appliances-button",3,"checked"],["value","false",1,"instal-appliances-button",3,"checked"],["mat-dialog-actions","","align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"row",2,"display","flex"],[1,"col-md-6"],["class","uploaded-text",4,"ngIf"],["class","col-md-4 txt-align",4,"ngIf"],["class","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end",4,"ngIf"],[1,"uploaded-text"],[1,"col-md-4","txt-align"],["type","file","accept",".bin,.image,.qcow2,.vmdk","multiple","","ng2FileSelect","",1,"non-visible",3,"uploader","onFileSelected"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[3,"ngClass"],[3,"class",4,"ngIf"],["class","col-md-2",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-2"]],template:function(r,e){1&r&&(t.YNc(0,FVe,18,3,"div",0),t.YNc(1,QVe,12,8,"div",0)),2&r&&(t.Q6J("ngIf",!e.isInstallAppliance),t.xp6(1),t.Q6J("ngIf",e.isInstallAppliance))},dependencies:[se.mk,se.sg,se.O5,Mp,dn,Dn,lu,dr,cb,rs,Ws],styles:[".progress-bar[_ngcontent-%COMP%]{padding:0}.progress[_ngcontent-%COMP%]{width:50px;background-color:#263238;height:28px;margin-left:13px}.mat-input-element[_ngcontent-%COMP%]{font-size:medium;font-weight:200}#fileInput[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:10;opacity:0;height:100%;left:0;top:0}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto;background:transparent;padding:0}.mat-toolbar-single-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px}.mat-form-field[_ngcontent-%COMP%]{width:100%}.message[_ngcontent-%COMP%]{background-color:#ddd;padding:15px;color:#333;border:#aaa solid 1px;border-radius:4px;margin:15px 0}.preview[_ngcontent-%COMP%]{max-width:200px;vertical-align:middle}.list-card[_ngcontent-%COMP%]{margin-top:20px}.list-item[_ngcontent-%COMP%]{margin-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}mat-progress-bar[_ngcontent-%COMP%]{margin-top:10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.uploaded-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.uploaded-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}.choose-instal-appliance[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0 11px;align-items:flex-start}.instal-appliances-button[_ngcontent-%COMP%]{margin:11px}"],data:{animation:[(0,Zt.X$)("detailExpand",[(0,Zt.SB)("collapsed",(0,Zt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed",(0,Zt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var nYe=function(r){return{"deleted-error-text":r}};function rYe(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,tYe,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,nYe,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function iYe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Images can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,rYe,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function oYe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Images deleted successfully.")}}function aYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,iYe,4,1,"div",0),t.YNc(3,oYe,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var AP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.imageService.deleteFile(e.deleteData.controller,o.filename).pipe((0,ed.K)(function(a){return(0,qn.of)(a)})))}),oo.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();AP.\u0275fac=function(r){return new(r||AP)(t.Y36(ko),t.Y36(cr),t.Y36(bv),t.Y36(Zn))},AP.\u0275cmp=t.Xpm({type:AP,selectors:[["app-deleteallfiles-dialog"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,$Ve,12,1,"div",0),t.YNc(1,eYe,5,0,"div",0),t.YNc(2,aYe,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[se.mk,se.sg,se.O5,dn,Pg,yr,lu,dr,ou],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var sYe=function(){function n(){(0,B.Z)(this,n),this.dataChange=new Wi.X([])}return(0,U.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),n}(),lYe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,U.Z)(e,[{key:"connect",value:function(){var o=this;return(0,Gi.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Si.o2);function uYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function cYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",20),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function dYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," File Name "),t.qZA())}function fYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"mat-list-item",21),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.filename)}}function pYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Type "),t.qZA())}function hYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.image_type," ")}}function mYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Size "),t.qZA())}function _Ye(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",(e.image_size/1e6).toFixed()," MB ")}}function gYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function vYe(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell"),t.YNc(1,gYe,3,0,"button",22),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function yYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.deleteFile(o.path))}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function bYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,yYe,3,0,"button",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.selection.isSelected(e))}}function CYe(n,r){1&n&&t._UZ(0,"mat-header-row")}function wYe(n,r){1&n&&t._UZ(0,"mat-row")}var OP=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.imageService=r,this.progressService=e,this.route=i,this.controllerService=o,this.versionService=a,this.dialog=s,this.toasterService=l,this.imageDatabase=new sYe,this.isAllDelete=!1,this.selection=new Si.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=parseInt(this.route.snapshot.paramMap.get("controller_id"));this.controllerService.get(i).then(function(o){e.controller=o,o.authToken&&e.getImages()}),this.dataSource=new lYe(this.imageDatabase)}},{key:"getImages",value:function(){var e=this;this.imageService.getImages(this.controller).subscribe(function(i){e.imageDatabase.addImages(i)},function(i){e.toasterService.error(i.error.message)})}},{key:"deleteFile",value:function(e){var i=this;this.imageService.deleteFile(this.controller,e).subscribe(function(o){i.getImages(),i.unChecked(),i.toasterService.success("File deleted")},function(o){i.getImages(),i.unChecked(),i.toasterService.error(o.error.message)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.imageDatabase.data.length}},{key:"selectAllImages",value:function(){this.isAllSelected()?this.unChecked():this.allChecked()}},{key:"unChecked",value:function(){this.selection.clear(),this.isAllDelete=!1}},{key:"allChecked",value:function(){var e=this;this.imageDatabase.data.forEach(function(i){return e.selection.select(i)}),this.isAllDelete=!0}},{key:"addImageDialog",value:function(){var e=this;this.dialog.open(DP,{width:"600px",maxHeight:"550px",autoFocus:!1,disableClose:!0,data:this.controller}).afterClosed().subscribe(function(o){if(!o)return e.getImages(),e.unChecked(),!1;e.getImages(),e.unChecked()})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(AP,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.getImages(),!1;e.unChecked(),e.getImages(),e.toasterService.success("All files deleted")})}}]),n}();function kYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password must be between 6 and 100 characters. "),t.qZA())}function TYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}OP.\u0275fac=function(r){return new(r||OP)(t.Y36(bv),t.Y36(El),t.Y36(fr),t.Y36(or),t.Y36(gm),t.Y36(Gr),t.Y36(Zn))},OP.\u0275cmp=t.Xpm({type:OP,selectors:[["app-image-manager"]],decls:33,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-9"],[1,"col-md-3","btn-box"],["mat-button","",1,"img-btn",3,"click"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","filename"],["matColumnDef","image_type"],["matColumnDef","image_size"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["role","listitem"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),t._uU(5,"Image Manager"),t.qZA()(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.addImageDialog()}),t.TgZ(8,"mat-icon"),t._uU(9,"add"),t.qZA(),t._uU(10," Add Image "),t.qZA()()()(),t.TgZ(11,"div",6),t._UZ(12,"app-controller-discovery"),t.TgZ(13,"div",7)(14,"mat-table",8,9),t.ynx(16,10),t.YNc(17,uYe,2,2,"mat-header-cell",11),t.YNc(18,cYe,2,1,"mat-cell",12),t.BQk(),t.ynx(19,13),t.YNc(20,dYe,2,0,"mat-header-cell",11),t.YNc(21,fYe,3,1,"mat-cell",12),t.BQk(),t.ynx(22,14),t.YNc(23,pYe,2,0,"mat-header-cell",11),t.YNc(24,hYe,2,1,"mat-cell",12),t.BQk(),t.ynx(25,15),t.YNc(26,mYe,2,0,"mat-header-cell",11),t.YNc(27,_Ye,2,1,"mat-cell",12),t.BQk(),t.ynx(28,16),t.YNc(29,vYe,2,1,"mat-header-cell",11),t.YNc(30,bYe,2,1,"mat-cell",12),t.BQk(),t.YNc(31,CYe,1,0,"mat-header-row",17),t.YNc(32,wYe,1,0,"mat-row",18),t.qZA()()()()),2&r&&(t.xp6(14),t.Q6J("dataSource",e.dataSource),t.xp6(17),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[se.O5,dn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ti,Oa,kT],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.img-btn[_ngcontent-%COMP%]{margin:auto}.btn-box[_ngcontent-%COMP%]{display:flex;margin-top:10px}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%], mat-footer-cell[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;overflow:initial;min-height:inherit}"]});var PP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.user=this.data.user,this.editPasswordForm=new J.nJ({password:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required])},{validators:[tle]})}},{key:"passwordForm",get:function(){return this.editPasswordForm.controls}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onPasswordSave",value:function(){var e=this;if(this.editPasswordForm.valid){var i={};i.password=this.editPasswordForm.get("password").value,i.user_id=this.user.user_id,console.log(i),this.userService.update(this.data.controller,i).subscribe(function(o){e.toasterService.success("User ".concat(o.username," password updated")),e.editPasswordForm.reset(),e.dialogRef.close(!0)},function(o){e.toasterService.error("Cannot update password for user : "+o)})}}}]),n}();PP.\u0275fac=function(r){return new(r||PP)(t.Y36(cr),t.Y36(ko),t.Y36(Bl),t.Y36(Zn))},PP.\u0275cmp=t.Xpm({type:PP,selectors:[["app-change-user-password"]],decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","password","formControlName","password","placeholder","Password"],[4,"ngIf"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"disabled","click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Change password for user : "),t.qZA(),t.TgZ(2,"div")(3,"form",1)(4,"mat-form-field",2),t._UZ(5,"input",3),t.YNc(6,kYe,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field",2),t._UZ(8,"input",5),t.YNc(9,TYe,2,0,"mat-error",4),t.qZA(),t.TgZ(10,"div",6)(11,"button",7),t.NdJ("click",function(){return e.onCancel()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",8),t.NdJ("click",function(){return e.onPasswordSave()}),t._uU(14," Change password "),t.qZA()()()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.editPasswordForm),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.password?null:e.passwordForm.password.touched)&&(null==e.passwordForm.password?null:e.passwordForm.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.touched)&&(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.errors)),t.xp6(4),t.Q6J("disabled",!e.editPasswordForm.valid))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var df=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getEndpoints",value:function(e){return this.httpController.get(e,"/access/acl/endpoints")}},{key:"list",value:function(e){return this.httpController.get(e,"/access/acl")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/acl",i)}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/acl/".concat(i))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/acl/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/acl/".concat(i.ace_id),i)}}]),n}();df.\u0275fac=function(r){return new(r||df)(t.LFG(ho.zw))},df.\u0275prov=t.Yz7({token:df,factory:df.\u0275fac,providedIn:"root"});var ff=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/roles")}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/roles/".concat(i))}},{key:"create",value:function(e,i){return this.httpController.post(e,"/access/roles",i)}},{key:"getById",value:function(e,i){return this.httpController.get(e,"/access/roles/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/roles/".concat(i.role_id),{name:i.name,description:i.description})}},{key:"setPrivileges",value:function(e,i,o){return this.httpController.put(e,"/access/roles/".concat(i,"/privileges/").concat(o),void 0)}},{key:"removePrivileges",value:function(e,i,o){return this.httpController.delete(e,"/access/roles/".concat(i,"/privileges/").concat(o))}}]),n}();function MYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required "),t.qZA())}function SYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect "),t.qZA())}function EYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists "),t.qZA())}function xYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required "),t.qZA())}function DYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid "),t.qZA())}function AYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this email exists "),t.qZA())}ff.\u0275fac=function(r){return new(r||ff)(t.LFG(ho.zw))},ff.\u0275prov=t.Yz7({token:ff,factory:ff.\u0275fac,providedIn:"root"});var OYe=function(r,e){return["/controller",r,"management","groups",e]};function PYe(n,r){if(1&n&&(t.TgZ(0,"li")(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,OYe,i.controller.id,e.user_group_id)),t.xp6(1),t.Oqu(e.name)}}function IYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Endpoint "),t.qZA())}function RYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function LYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Role "),t.qZA())}function ZYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function NYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Propagate "),t.qZA())}function BYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function FYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Allowed "),t.qZA())}function UYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function jYe(n,r){1&n&&t._UZ(0,"tr",36)}function HYe(n,r){1&n&&t._UZ(0,"tr",37)}var GYe=function(r){return["/controller",r,"management","users"]},IP=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.userService=r,this.toasterService=e,this.route=i,this.router=o,this.dialog=a,this.aclService=s,this.roleService=l,this.changingPassword=!1,this.aceDatasource=new Ap,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.route.data.subscribe(function(i){e.user=i.user,e.user_id=e.user.user_id,e.groups=i.groups,e.aces=i.aces,e.initForm(),e.roleService.get(e.controller).subscribe(function(o){e.aclService.getEndpoints(e.controller).subscribe(function(a){e.aceDatasource.data=e.aces.map(function(s){var l=a.filter(function(d){return d.endpoint===s.path})[0],u=o.filter(function(d){return d.role_id===s.role_id})[0];return Object.assign(Object.assign({},s),{endpoint_name:l.name,role_name:u.name})})})})})}},{key:"initForm",value:function(){this.editUserForm=new J.nJ({username:new J.p4(this.user.username,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[$se(this.controller,this.userService,this.user.username)]),full_name:new J.p4(this.user.full_name),email:new J.p4(this.user.email,[J.kI.email,J.kI.required],[ele(this.controller,this.userService,this.user.email)]),is_active:new J.p4(this.user.is_active)})}},{key:"form",get:function(){return this.editUserForm.controls}},{key:"onEditClick",value:function(){var e=this;if(this.editUserForm.valid){var i=this.getUpdatedValues();i.user_id=this.user.user_id,this.userService.update(this.controller,i).subscribe(function(o){e.toasterService.success("User ".concat(o.username," updated"))},function(o){e.toasterService.error("Cannot update user : "+o)})}}},{key:"getUpdatedValues",value:function(){var e=this,i={};return Object.keys(this.editUserForm.controls).forEach(function(o){var a=e.editUserForm.get(o);a.dirty&&a.value!==e.user[o]&&(i[o]=a.value)}),i}},{key:"onChangePassword",value:function(){this.dialog.open(PP,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),n}();IP.\u0275fac=function(r){return new(r||IP)(t.Y36(Bl),t.Y36(Zn),t.Y36(fr),t.Y36(ur),t.Y36(Gr),t.Y36(df),t.Y36(ff))},IP.\u0275cmp=t.Xpm({type:IP,selectors:[["app-user-detail"]],decls:65,vars:21,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to user management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to user management"],[1,"col"],[1,"default-content"],["label","Details",1,"details"],[1,"user-edit"],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["formControlName","is_active"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Groups"],[1,"user-groups"],[4,"ngFor","ngForOf"],["label","ACEs"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()()(),t.TgZ(8,"div",6)(9,"mat-tab-group")(10,"mat-tab",7)(11,"div",8)(12,"form",9)(13,"mat-form-field",10),t._UZ(14,"input",11),t.YNc(15,MYe,2,0,"mat-error",12),t.YNc(16,SYe,2,0,"mat-error",12),t.YNc(17,EYe,2,0,"mat-error",12),t.qZA(),t.TgZ(18,"mat-form-field",10),t._UZ(19,"input",13),t.qZA(),t.TgZ(20,"mat-form-field",10),t._UZ(21,"input",14),t.YNc(22,xYe,2,0,"mat-error",12),t.YNc(23,DYe,2,0,"mat-error",12),t.YNc(24,AYe,2,0,"mat-error",12),t.qZA(),t.TgZ(25,"mat-checkbox",15),t._uU(26,"Is active"),t.qZA(),t.TgZ(27,"div")(28,"mat-checkbox",16),t._uU(29,"Is Superadmin"),t.qZA()(),t.TgZ(30,"div",17)(31,"button",18),t.NdJ("click",function(){return e.onEditClick()}),t._uU(32," Edit user "),t.qZA()()(),t.TgZ(33,"button",19),t.NdJ("click",function(){return e.onChangePassword()}),t._uU(34," Change Password "),t.qZA(),t.TgZ(35,"div")(36,"div"),t._uU(37),t.qZA(),t.TgZ(38,"div"),t._uU(39),t.qZA(),t.TgZ(40,"div"),t._uU(41),t.qZA(),t.TgZ(42,"div"),t._uU(43),t.qZA()()()(),t.TgZ(44,"mat-tab",20)(45,"div",21)(46,"ul"),t.YNc(47,PYe,3,5,"li",22),t.qZA()()(),t.TgZ(48,"mat-tab",23)(49,"div",6)(50,"table",24),t.ynx(51,25),t.YNc(52,IYe,2,0,"th",26),t.YNc(53,RYe,2,1,"td",27),t.BQk(),t.ynx(54,28),t.YNc(55,LYe,2,0,"th",26),t.YNc(56,ZYe,2,1,"td",27),t.BQk(),t.ynx(57,29),t.YNc(58,NYe,2,0,"th",26),t.YNc(59,BYe,2,1,"td",27),t.BQk(),t.ynx(60,30),t.YNc(61,FYe,2,0,"th",26),t.YNc(62,UYe,2,1,"td",27),t.BQk(),t.YNc(63,jYe,1,0,"tr",31),t.YNc(64,HYe,1,0,"tr",32),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(19,GYe,e.controller.id)),t.xp6(4),t.hij("User ",e.user.username,""),t.xp6(5),t.Q6J("formGroup",e.editUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.emailExists)),t.xp6(4),t.Q6J("checked",e.user.is_superadmin),t.xp6(3),t.Q6J("disabled",!e.editUserForm.valid),t.xp6(6),t.hij("Creation date: ",e.user.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.user.updated_at,""),t.xp6(2),t.hij("Last login: ",e.user.last_login,""),t.xp6(2),t.hij("UUID: ",e.user.user_id,""),t.xp6(4),t.Q6J("ngForOf",e.groups),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[se.sg,se.O5,Wo,Gs,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,dr,ti,mi,Fi.SP,Fi.uX],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}table[_ngcontent-%COMP%]{width:100%}"]});var PT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.userService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();function zYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"a",2,3),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.activeLink=l)}),t._uU(2),t.qZA()}if(2&n){var i=r.$implicit,o=t.MAs(1);t.MGl("routerLink","./",i,""),t.Q6J("active",o.isActive),t.xp6(2),t.hij("",i.charAt(0).toUpperCase()+i.slice(1)," ")}}PT.\u0275fac=function(r){return new(r||PT)(t.LFG(or),t.LFG(Bl))},PT.\u0275prov=t.Yz7({token:PT,factory:PT.\u0275fac,providedIn:"root"});var RP=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.router=e,this.controllerService=i,this.links=["users","groups","roles","pools","ACL"],this.activeLink=this.links[0]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o})}}]),n}();RP.\u0275fac=function(r){return new(r||RP)(t.Y36(fr),t.Y36(ur),t.Y36(or))},RP.\u0275cmp=t.Xpm({type:RP,selectors:[["app-management"]],decls:3,vars:1,consts:[["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click"],["rla","routerLinkActive"]],template:function(r,e){1&r&&(t.TgZ(0,"nav",0),t.YNc(1,zYe,3,3,"a",1),t.qZA(),t._UZ(2,"router-outlet")),2&r&&(t.xp6(1),t.Q6J("ngForOf",e.links))},dependencies:[se.sg,fm,Gs,nk,Fi.BU,Fi.Nj]});var IT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.userService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.getGroupsByUserId(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();IT.\u0275fac=function(r){return new(r||IT)(t.LFG(or),t.LFG(Bl))},IT.\u0275prov=t.Yz7({token:IT,factory:IT.\u0275fac,providedIn:"root"});var WYe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Po.w)(function(){return e.getGroups(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},Yb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function VYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is required"),t.qZA())}function YYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is incorrect"),t.qZA())}function KYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group with this name exists"),t.qZA())}function qYe(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE(" ",e.username," - ",e.email," ")}}function JYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",16)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"mat-icon",17),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.delUser(s))}),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.username),t.xp6(2),t.Oqu(i.email)}}Yb.\u0275fac=function(r){return new(r||Yb)},Yb.\u0275prov=t.Yz7({token:Yb,factory:Yb.\u0275fac});var QYe=function(r){return{"is-invalid":r}},LP=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.groupNameValidator=o,this.groupService=a,this.userService=s,this.toasterService=l,this.usersToAdd=new Set([]),this.loading=!1,this.autocompleteControl=new J.p4}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data.controller,this.groupNameForm=this.formBuilder.group({groupName:new J.p4(null,[J.kI.required,this.groupNameValidator.get],[WYe(this.data.controller,this.groupService)])}),this.userService.list(this.controller).subscribe(function(i){e.users=i,e.filteredUsers=e.autocompleteControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.groupNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.groupNameForm.invalid){var i=this.groupNameForm.controls.groupName.value,o=Array.from(this.usersToAdd.values());this.groupService.addGroup(this.controller,i).subscribe(function(a){o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,a,s).subscribe(function(){e.toasterService.success("user ".concat(s.username," was added"))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(s.username," to group ").concat(i))})}),e.dialogRef.close(!0)},function(a){e.toasterService.error("An error occur while trying to create new group ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"selectedUser",value:function(e){this.usersToAdd.add(e)}},{key:"delUser",value:function(e){this.usersToAdd.delete(e)}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.users.filter(function(o){var a;return o.username.toLowerCase().includes(i)||(null===(a=o.email)||void 0===a?void 0:a.toLowerCase().includes(i))})}}},{key:"displayFn",value:function(e){return e&&e.username?e.username:""}}]),n}();function XYe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}LP.\u0275fac=function(r){return new(r||LP)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Yb),t.Y36(Ec),t.Y36(Bl),t.Y36(Zn))},LP.\u0275cmp=t.Xpm({type:LP,selectors:[["app-add-group-dialog"]],features:[t._Bn([Yb])],decls:25,vars:14,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","groupName","placeholder","Please enter group name",3,"ngClass","keydown"],[4,"ngIf"],[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"users"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"],[3,"value"],[1,"userList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new group"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(a){return e.onKeyDown(a)}),t.qZA(),t.YNc(5,VYe,2,0,"mat-error",4),t.YNc(6,YYe,2,0,"mat-error",4),t.YNc(7,KYe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"h5"),t._uU(9,"Add users to group: "),t.qZA(),t.TgZ(10,"mat-form-field",5)(11,"mat-label"),t._uU(12,"Users"),t.qZA(),t._UZ(13,"input",6),t.TgZ(14,"mat-autocomplete",7,8),t.NdJ("optionSelected",function(a){return e.selectedUser(a.option.value)}),t.YNc(16,qYe,2,3,"mat-option",9),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"div",10),t.YNc(19,JYe,8,2,"div",11),t.qZA(),t.TgZ(20,"div",12)(21,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",14),t.NdJ("click",function(){return e.onAddClick()}),t._uU(24," Add group "),t.qZA()()),2&r){var i=t.MAs(15);t.xp6(2),t.Q6J("formGroup",e.groupNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(12,QYe,null==e.form.groupName?null:e.form.groupName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.touched)&&(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.projectExist)),t.xp6(6),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(17,10,e.filteredUsers)),t.xp6(3),t.Q6J("ngForOf",e.usersToAdd)}},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,dn,Dn,Kn,yr,dr,Gt.ey,Jp,Qp,se.Ov],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var ZP=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();ZP.\u0275fac=function(r){return new(r||ZP)(t.Y36(cr),t.Y36(ko))},ZP.\u0275cmp=t.Xpm({type:ZP,selectors:[["app-delete-group-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete group named: "),t.qZA(),t.YNc(2,XYe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.groups))},dependencies:[se.sg,dn,yr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var NP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();NP.\u0275fac=function(r){return new(r||NP)},NP.\u0275pipe=t.Yjl({name:"groupFilter",type:NP,pure:!0});var $Ye=["groupsPaginator"],eKe=["groupsSort"];function tKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",28)(1,"mat-checkbox",29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function nKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",30)(1,"mat-checkbox",31),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function rKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Name"),t.qZA())}function iKe(n,r){if(1&n&&(t.TgZ(0,"td",33)(1,"a",34),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/groups/",e.user_group_id,""),t.xp6(1),t.Oqu(e.name)}}function oKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Creation date"),t.qZA())}function aKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function sKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Last update"),t.qZA())}function lKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function uKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," is built-in"),t.qZA())}function cKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.is_builtin," ")}}function dKe(n,r){1&n&&t._UZ(0,"th",35)}function fKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"button",36),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function pKe(n,r){1&n&&t._UZ(0,"tr",37)}function hKe(n,r){1&n&&t._UZ(0,"tr",38)}var mKe=function(){return{standalone:!0}},_Ke=function(){return[5,10,20]};function gKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Groups"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected groups "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addGroup())}),t._uU(8," Add group "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"groupFilter"),t.ynx(16,13),t.YNc(17,tKe,2,2,"th",14),t.YNc(18,nKe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,rKe,2,0,"th",17),t.YNc(21,iKe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,oKe,2,0,"th",17),t.YNc(24,aKe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,sKe,2,0,"th",17),t.YNc(27,lKe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,uKe,2,0,"th",17),t.YNc(30,cKe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,dKe,1,0,"th",23),t.YNc(33,fKe,4,0,"td",18),t.BQk(),t.YNc(34,pKe,1,0,"tr",24),t.YNc(35,hKe,1,0,"tr",25),t.qZA(),t._UZ(36,"mat-paginator",26,27),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,mKe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(21),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,_Ke))}}function vKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",39),t.qZA())}var BP=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.groupService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","is_builtin","delete"],this.selection=new Si.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.groupsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.groupsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.groups.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.groups.forEach(function(i){return e.selection.select(i)})}},{key:"addGroup",value:function(){var e=this;this.dialog.open(LP,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.groupService.getGroups(this.controller).subscribe(function(i){e.isReady=!0,e.groups=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(ZP,{width:"500px",height:"250px",data:{groups:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.groupService.delete(i.controller,s.user_group_id)});(0,j0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete group")})}})}}]),n}();function yKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," role name is required "),t.qZA())}function bKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," Role name is incorrect "),t.qZA())}BP.\u0275fac=function(r){return new(r||BP)(t.Y36(fr),t.Y36(or),t.Y36(Zn),t.Y36(Ec),t.Y36(Gr))},BP.\u0275cmp=t.Xpm({type:BP,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf($Ye,5),t.Gf(eKe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.groupsPaginator=i),t.iGM(i=t.CRH())&&(e.groupsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-group-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-group-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search group by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["groupsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","is_builtin"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["groupsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,gKe,38,12,"div",0),t.YNc(1,vKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,NP],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-group-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var CKe=function(r){return{"is-invalid":r}},FP=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.roleNameForm=this.formBuilder.group({name:new J.p4,description:new J.p4})}},{key:"form",get:function(){return this.roleNameForm.controls}},{key:"onAddClick",value:function(){if(!this.roleNameForm.invalid){var e=this.roleNameForm.controls.name.value,i=this.roleNameForm.controls.description.value;this.dialogRef.close({name:e,description:i})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function wKe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}FP.\u0275fac=function(r){return new(r||FP)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS))},FP.\u0275cmp=t.Xpm({type:FP,selectors:[["app-add-role-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Please enter role name",3,"ngClass"],[4,"ngIf"],["matInput","","type","text","formControlName","description","placeholder","Please enter a description"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new role"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field"),t._UZ(4,"input",2),t.YNc(5,yKe,2,0,"mat-error",3),t.YNc(6,bKe,2,0,"mat-error",3),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",4),t.qZA(),t.TgZ(9,"div",5)(10,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13," Add Role "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.roleNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,CKe,null==e.form.name?null:e.form.name.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.touched)&&(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.invalidName)))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var UP=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();UP.\u0275fac=function(r){return new(r||UP)(t.Y36(cr),t.Y36(ko))},UP.\u0275cmp=t.Xpm({type:UP,selectors:[["app-delete-role-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete role named: "),t.qZA(),t.YNc(2,wKe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.roles))},dependencies:[se.sg,dn,yr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var jP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();jP.\u0275fac=function(r){return new(r||jP)},jP.\u0275pipe=t.Yjl({name:"roleFilter",type:jP,pure:!0});var kKe=["rolesPaginator"],TKe=["rolesSort"];function MKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",26)(1,"mat-checkbox",27),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function SKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"mat-checkbox",28),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function EKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Name"),t.qZA())}var xKe=function(r,e){return["/controller",r,"management","roles",e]};function DKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",30),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,xKe,i.controller.id,e.role_id))("matTooltip",e.name),t.xp6(1),t.Oqu(e.name)}}function AKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Description"),t.qZA())}function OKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",31),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.description),t.xp6(1),t.Oqu(e.description)}}function PKe(n,r){1&n&&t._UZ(0,"mat-header-cell",26)}function IKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function RKe(n,r){1&n&&t._UZ(0,"mat-header-row")}function LKe(n,r){1&n&&t._UZ(0,"mat-row")}var ZKe=function(){return{standalone:!0}},NKe=function(){return[5,10,20]};function BKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Roles"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete roles "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addRole())}),t._uU(8," Add role "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"roleFilter"),t.ynx(18,14),t.YNc(19,MKe,2,2,"mat-header-cell",15),t.YNc(20,SKe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,EKe,2,0,"mat-header-cell",18),t.YNc(23,DKe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,AKe,2,0,"mat-header-cell",18),t.YNc(26,OKe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,PKe,1,0,"mat-header-cell",15),t.YNc(29,IKe,4,0,"mat-cell",16),t.BQk(),t.YNc(30,RKe,1,0,"mat-header-row",22),t.YNc(31,LKe,1,0,"mat-row",23),t.qZA(),t._UZ(32,"mat-paginator",24,25),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,ZKe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,NKe))}}function FKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",33),t.qZA())}var HP=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.router=e,this.roleService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Ap,this.displayedColumns=["select","name","description","delete"],this.selection=new Si.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.rolesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.rolesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"refresh",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addRole",value:function(){var e=this;this.dialog.open(FP,{width:"400px",autoFocus:!1,disableClose:!0,data:{controller:this.controller}}).afterClosed().subscribe(function(o){o&&e.roleService.create(e.controller,o).subscribe(function(){e.toasterService.success("".concat(o.name," role created")),e.refresh()},function(a){return e.toasterService.error("".concat(a.message,"\n ").concat(a.error.message))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(i){return e.selection.select(i)})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(UP,{width:"500px",height:"250px",data:{roles:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.roleService.delete(i.controller,s.role_id)});(0,j0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete role")})}})}}]),n}();function UKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-icon",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.addUser(o))}),t._uU(1,"add"),t.qZA()}}function jKe(n,r){1&n&&t._UZ(0,"mat-spinner")}function HKe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.YNc(5,UKe,2,0,"mat-icon",6),t.YNc(6,jKe,1,0,"mat-spinner",7),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.email),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",i.loading)}}HP.\u0275fac=function(r){return new(r||HP)(t.Y36(fr),t.Y36(ur),t.Y36(ff),t.Y36(El),t.Y36(or),t.Y36(Gr),t.Y36(Zn))},HP.\u0275cmp=t.Xpm({type:HP,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(kKe,5),t.Gf(TKe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.rolesPaginator=i),t.iGM(i=t.CRH())&&(e.rolesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search role by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","rolesSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","description"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["rolesPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,BKe,34,12,"div",0),t.YNc(1,FKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,mi,jP],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.permission[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-right:20px;font-size:10px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}.permissions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}"]});var GP=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new Wi.X([]),this.displayedUsers=new Wi.X([]),this.loading=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.getUsers()}},{key:"onSearch",value:function(){var e=this;(0,Tp.H)(500).subscribe(function(){var i=e.users.value.filter(function(o){var a;return o.username.includes(e.searchText)||(null===(a=o.email)||void 0===a?void 0:a.includes(e.searchText))});e.displayedUsers.next(i)})}},{key:"getUsers",value:function(){var e=this;(0,j0.D)([this.userService.list(this.data.controller),this.groupService.getGroupMember(this.data.controller,this.data.group.user_group_id)]).subscribe(function(i){var o=(0,Yn.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(d){return d.user_id===u.user_id})});e.users.next(l),e.displayedUsers.next(l)})}},{key:"addUser",value:function(e){var i=this;this.loading=!0,this.groupService.addMemberToGroup(this.data.controller,this.data.group,e).subscribe(function(){i.toastService.success("user ".concat(e.username," was added")),i.getUsers(),i.loading=!1},function(o){console.log(o),i.toastService.error("error while adding user ".concat(e.username," to group ").concat(i.data.group.name)),i.loading=!1})}}]),n}();GP.\u0275fac=function(r){return new(r||GP)(t.Y36(cr),t.Y36(ko),t.Y36(Bl),t.Y36(Ec),t.Y36(Zn))},GP.\u0275cmp=t.Xpm({type:GP,selectors:[["app-add-user-to-group-dialog"]],decls:10,vars:5,consts:[[1,"title"],[1,"filter"],[1,"input-field"],["matInput","","type","text",3,"ngModel","ngModelChange","keydown"],["class","userList",4,"ngFor","ngForOf"],[1,"userList"],[3,"click",4,"ngIf"],[4,"ngIf"],[3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h3"),t._uU(2),t.qZA()(),t.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),t._uU(6,"Search user "),t.qZA(),t.TgZ(7,"input",3),t.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),t.qZA()()(),t.YNc(8,HKe,7,4,"div",4),t.ALo(9,"async")),2&r&&(t.xp6(2),t.hij("Add User To group: ",e.data.group.name,""),t.xp6(5),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngForOf",t.lcZ(9,3,e.displayedUsers)))},dependencies:[se.sg,se.O5,J.Fj,J.JJ,J.On,kn.KE,kn.hX,Dn,Kn,ou,se.Ov],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}.title[_ngcontent-%COMP%]{width:100%;text-align:center}.filter[_ngcontent-%COMP%]{display:flex;width:600px;justify-content:center;margin-bottom:50px}mat-form-field[_ngcontent-%COMP%]{width:600px}input[_ngcontent-%COMP%]{width:100%}.userList[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:10px}mat-spinner[_ngcontent-%COMP%]{width:36px}"]});var RT,zP=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),n}();zP.\u0275fac=function(r){return new(r||zP)(t.Y36(cr),t.Y36(ko))},zP.\u0275cmp=t.Xpm({type:zP,selectors:[["app-remove-user-to-group-dialog"]],decls:10,vars:1,consts:[[1,"header"],[1,"button"],["mat-button","","mat-raised-button","","color","primary",3,"click"],["mat-button","","mat-raised-button","","color","warn",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div"),t._uU(2,"Confirm ?"),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA()(),t.TgZ(5,"div",1)(6,"button",2),t.NdJ("click",function(){return e.onCancel()}),t._uU(7,"No, cancel"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return e.onConfirm()}),t._uU(9,"Yes, remove"),t.qZA()()),2&r&&(t.xp6(4),t.hij("Removing: ",e.data.name,""))},dependencies:[dn],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:center}.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;text-align:center;margin-bottom:20px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}"]}),function(n){n.group="group",n.user="user"}(RT||(RT={}));var WP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?(i||(i={length:e.length,pageIndex:0,pageSize:5}),e.slice(i.pageIndex*i.pageSize,(i.pageIndex+1)*i.pageSize)):[]}}]),n}();WP.\u0275fac=function(r){return new(r||WP)},WP.\u0275pipe=t.Yjl({name:"paginator",type:WP,pure:!0});var VP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?void 0===i||""===i?e:e.filter(function(o){return o.username.toLowerCase().includes(i.toLowerCase())}):[]}}]),n}();VP.\u0275fac=function(r){return new(r||VP)},VP.\u0275pipe=t.Yjl({name:"membersFilter",type:VP,pure:!0});var GKe=function(r,e){return["/controller",r,"management","users",e]};function zKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"a",30)(2,"div"),t._uU(3),t.qZA()(),t.TgZ(4,"mat-icon",14),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.openRemoveUserDialog(l))}),t._uU(5,"delete"),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,GKe,o.controller.id,i.user_id)),t.xp6(2),t.Oqu(i.username)}}function WKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Endpoint "),t.qZA())}function VKe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function YKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Role "),t.qZA())}function KKe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function qKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Propagate "),t.qZA())}function JKe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function QKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Allowed "),t.qZA())}function XKe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function $Ke(n,r){1&n&&t._UZ(0,"tr",33)}function eqe(n,r){1&n&&t._UZ(0,"tr",34)}var tqe=function(r){return["/controller",r,"management","groups"]},nqe=function(){return[5,20,50,100]},YP=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this.route=r,this.dialog=e,this.groupService=i,this.toastService=o,this.aclService=a,this.roleService=s,this.aceDatasource=new Ap,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"],this.route.data.subscribe(function(u){l.controller=u.controller,l.group=u.group,l.aces=u.aces,l.members=u.members.sort(function(d,h){return d.username.toLowerCase().localeCompare(h.username.toLowerCase())}),l.editGroupForm=new J.nJ({groupname:new J.p4(l.group.name,[J.kI.required])})})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.aclService.getEndpoints(e.controller).subscribe(function(o){e.aceDatasource.data=e.aces.map(function(a){var s=o.filter(function(u){return u.endpoint===a.path})[0],l=i.filter(function(u){return u.role_id===a.role_id})[0];return Object.assign(Object.assign({},a),{endpoint_name:s.name,role_name:l.name})})})})}},{key:"onUpdate",value:function(){var e=this;this.group.name=this.editGroupForm.get("groupname").value,console.log(this.editGroupForm.get("groupname")),this.groupService.update(this.controller,this.group).subscribe(function(){e.toastService.success("group updated")},function(i){e.toastService.error("Error: Cannot update group"),console.log(i)})}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(GP,{width:"700px",height:"500px",data:{controller:this.controller,group:this.group}}).afterClosed().subscribe(function(){e.reloadMembers()})}},{key:"openRemoveUserDialog",value:function(e){var i=this;this.dialog.open(zP,{width:"500px",height:"200px",data:{name:e.username}}).afterClosed().subscribe(function(o){o&&i.groupService.removeUser(i.controller,i.group,e).subscribe(function(){i.toastService.success("User ".concat(e.username," was removed")),i.reloadMembers()},function(a){i.toastService.error("Error while removing user ".concat(e.username," from ").concat(i.group.name)),console.log(a)})})}},{key:"reloadMembers",value:function(){var e=this;this.groupService.getGroupMember(this.controller,this.group.user_group_id).subscribe(function(i){e.members=i})}}]),n}();YP.\u0275fac=function(r){return new(r||YP)(t.Y36(fr),t.Y36(Gr),t.Y36(Ec),t.Y36(Zn),t.Y36(df),t.Y36(ff))},YP.\u0275cmp=t.Xpm({type:YP,selectors:[["app-group-details"]],decls:59,vars:24,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to group management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to group management"],[1,"col"],["label","Details",1,"details"],[1,"input-field",3,"formGroup"],["matInput","","type","text","formControlName","groupname"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["label","Members"],[1,"members"],[1,"clickable",3,"click"],[1,"search"],["matInput","","placeholder","filter members",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],["label","ACEs"],[1,"default-content"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"mat-tab-group")(9,"mat-tab",6)(10,"div")(11,"div")(12,"form",7)(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Group name:"),t.qZA(),t._UZ(16,"input",8),t.qZA()()(),t.TgZ(17,"div")(18,"mat-checkbox",9),t._uU(19,"Is built-in"),t.qZA()(),t.TgZ(20,"div",10)(21,"button",11),t.NdJ("click",function(){return e.onUpdate()}),t._uU(22," Update Group "),t.qZA()()(),t.TgZ(23,"div")(24,"div"),t._uU(25),t.qZA(),t.TgZ(26,"div"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.qZA()()(),t.TgZ(30,"mat-tab",12)(31,"div",13)(32,"div")(33,"mat-icon",14),t.NdJ("click",function(){return e.openAddUserDialog()}),t._uU(34,"person_add"),t.qZA()(),t.TgZ(35,"div",15)(36,"mat-form-field")(37,"input",16),t.NdJ("ngModelChange",function(o){return e.searchMembers=o}),t.qZA()()(),t.YNc(38,zKe,6,5,"div",17),t.ALo(39,"paginator"),t.ALo(40,"membersFilter"),t.TgZ(41,"mat-paginator",18),t.NdJ("page",function(o){return e.pageEvent=o}),t.qZA()()(),t.TgZ(42,"mat-tab",19)(43,"div",20)(44,"table",21),t.ynx(45,22),t.YNc(46,WKe,2,0,"th",23),t.YNc(47,VKe,2,1,"td",24),t.BQk(),t.ynx(48,25),t.YNc(49,YKe,2,0,"th",23),t.YNc(50,KKe,2,1,"td",24),t.BQk(),t.ynx(51,26),t.YNc(52,qKe,2,0,"th",23),t.YNc(53,JKe,2,1,"td",24),t.BQk(),t.ynx(54,27),t.YNc(55,QKe,2,0,"th",23),t.YNc(56,XKe,2,1,"td",24),t.BQk(),t.YNc(57,$Ke,1,0,"tr",28),t.YNc(58,eqe,1,0,"tr",29),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(21,tqe,e.controller.id)),t.xp6(4),t.hij("Group ",e.group.name,""),t.xp6(5),t.Q6J("formGroup",e.editGroupForm),t.xp6(6),t.Q6J("checked",e.group.is_builtin),t.xp6(3),t.Q6J("disabled",!e.editGroupForm.valid||e.group.is_builtin),t.xp6(4),t.hij("Creation date: ",e.group.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.group.updated_at,""),t.xp6(2),t.hij("UUID: ",e.group.user_group_id,""),t.xp6(8),t.Q6J("ngModel",e.searchMembers),t.xp6(1),t.Q6J("ngForOf",t.xi3(39,15,t.xi3(40,18,e.members,e.searchMembers),e.pageEvent)),t.xp6(3),t.Q6J("length",e.members.length)("pageSizeOptions",t.DdM(23,nqe)),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[se.sg,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,gd,dn,U0,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,dr,ti,mi,Fi.SP,Fi.uX,WP,VP],styles:["table[_ngcontent-%COMP%]{width:100%}.main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.members[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}.members[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:5px}.clickable[_ngcontent-%COMP%]{cursor:pointer}.details[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:20px}.button-div[_ngcontent-%COMP%]{float:right}.members[_ngcontent-%COMP%] > .search[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:stretch;width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%}.roles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var LT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.getGroupMember(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();LT.\u0275fac=function(r){return new(r||LT)(t.LFG(or),t.LFG(Ec))},LT.\u0275prov=t.Yz7({token:LT,factory:LT.\u0275fac,providedIn:"root"});var ZT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();ZT.\u0275fac=function(r){return new(r||ZT)(t.LFG(or),t.LFG(Ec))},ZT.\u0275prov=t.Yz7({token:ZT,factory:ZT.\u0275fac,providedIn:"root"});var NT=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/privileges")}}]),n}();NT.\u0275fac=function(r){return new(r||NT)(t.LFG(ho.zw))},NT.\u0275prov=t.Yz7({token:NT,factory:NT.\u0275fac,providedIn:"root"});var ile=function(){function n(r){(0,B.Z)(this,n),this.ownedPrivileges=r,this.change={add:new Set,delete:new Set}}return(0,U.Z)(n,[{key:"add",value:function(e){this.change.delete.has(e)&&this.change.delete.delete(e),!this.ownedPrivileges.includes(e)&&this.change.add.add(e)}},{key:"delete",value:function(e){this.change.add.has(e)&&this.change.add.delete(e),this.ownedPrivileges.includes(e)&&this.change.delete.add(e)}},{key:"isAdded",value:function(e){return this.change.add.has(e)}},{key:"isDeleted",value:function(e){return this.change.delete.has(e)}},{key:"get",value:function(){return{add:Array.from(this.change.add),delete:Array.from(this.change.delete)}}}]),n}(),KP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e){if(e){var i={};e.forEach(function(h){var g=h.name.split("."),y=(0,Yn.Z)(g,2),L=y[0],z=y[1];i.hasOwnProperty(L)?i[L].push({verb:z,privilege:h}):i[L]=[{verb:z,privilege:h}]});for(var o=[],a=0,s=Object.entries(i);a<s.length;a++){var l=(0,Yn.Z)(s[a],2),u=l[0],d=l[1];o.push({key:u,values:d})}return o}}}]),n}();function rqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8)(1,"mat-icon",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!0)}),t._uU(2,"edit"),t.qZA()()}}function iqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!1)}),t._uU(1,"Cancel"),t.qZA()}}function oqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.close())}),t._uU(1,"Update"),t.qZA()}}function aqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,rqe,3,0,"button",5),t.YNc(2,iqe,2,0,"button",6),t.YNc(3,oqe,2,0,"button",7),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode)}}KP.\u0275fac=function(r){return new(r||KP)},KP.\u0275pipe=t.Yjl({name:"groupPrivileges",type:KP,pure:!0});var sqe=function(r,e){return{add:r,delete:e}};function lqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"mat-checkbox",19),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.onPrivilegeChange(s.checked,u.privilege))}),t.qZA(),t.TgZ(2,"div",20),t._uU(3),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("checked",o.ownedPrivilegesList.includes(i.privilege.privilege_id)),t.xp6(1),t.Q6J("ngClass",t.WLB(3,sqe,o.changer.isAdded(i.privilege.privilege_id),o.changer.isDeleted(i.privilege.privilege_id))),t.xp6(1),t.hij(" ",i.verb,"")}}function uqe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",14)(2,"div",15),t._uU(3),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,lqe,4,6,"div",17),t.qZA()()()),2&n){var e=t.oxw().$implicit;t.xp6(3),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}var cqe=function(r){return{box:r}};function dqe(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(4);t.Q6J("ngClass",t.VKq(2,cqe,i.ownedPrivilegesList.includes(e.privilege.privilege_id))),t.xp6(1),t.Oqu(e.verb)}}function fqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,dqe,2,4,"div",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngIf",i.ownedPrivilegesList.includes(e.privilege.privilege_id))}}function pqe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t._uU(2),t.qZA(),t.TgZ(3,"div",16),t.YNc(4,fqe,2,1,"div",4),t.qZA()()),2&n){var e=t.oxw(2).$implicit;t.xp6(2),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}function hqe(n,r){if(1&n&&t.YNc(0,pqe,5,2,"div",21),2&n){var e=t.oxw().$implicit,i=t.oxw();t.Q6J("ngIf",i.ownedPrivilegesName.includes(e.key))}}function mqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,uqe,6,2,"div",12),t.YNc(2,hqe,1,1,"ng-template",null,13,t.W1O),t.qZA()),2&n){var e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.editMode)("ngIfElse",e)}}var ole=".header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:20px;padding-left:10px}.privileges[_ngcontent-%COMP%]{padding-left:10px;display:flex;flex-direction:column;justify-content:center}.title[_ngcontent-%COMP%]{justify-content:center}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin:10px}.box[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{margin-right:10px}.box[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:row}.privilege[_ngcontent-%COMP%]{width:32vw;display:flex;flex-direction:row;margin-bottom:10px;justify-content:center;border:solid white 1px}.key[_ngcontent-%COMP%]{color:gray;display:flex;width:15%;margin-left:10px}.values[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row}.values[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:20%}.add[_ngcontent-%COMP%]{color:green}.delete[_ngcontent-%COMP%]{color:red;text-decoration:line-through}",qP=function(){function n(){(0,B.Z)(this,n),this.disable=!0,this.privileges=[],this.update=new t.vpe,this.ownedPrivilegesName=[],this.ownedPrivilegesList=[],this.changer=new ile(this.ownedPrivilegesList),this.editModeState=!1}return(0,U.Z)(n,[{key:"ownedPrivilege",set:function(e){e&&(this.ownedPrivilegesName=e.map(function(i){return i.name.split(".")[0]}),this.ownedPrivilegesList=e.map(function(i){return i.privilege_id}))}},{key:"editMode",get:function(){return this.editModeState},set:function(e){e&&(this.changer=new ile(this.ownedPrivilegesList)),this.editModeState=e}},{key:"ngOnInit",value:function(){}},{key:"onPrivilegeChange",value:function(e,i){var o=i.privilege_id;e?this.changer.add(o):this.changer.delete(o)}},{key:"close",value:function(){this.update.emit(this.changer.get()),this.editMode=!1}}]),n}();qP.\u0275fac=function(r){return new(r||qP)},qP.\u0275cmp=t.Xpm({type:qP,selectors:[["app-privilege"]],inputs:{disable:"disable",privileges:"privileges",ownedPrivilege:"ownedPrivilege"},outputs:{update:"update"},decls:7,vars:4,consts:[[1,"privileges"],[1,"header"],[1,"title"],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","",4,"ngIf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-button",""],[3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf","ngIfElse"],["normalMode",""],[1,"privilege"],[1,"key"],[1,"values"],["class","box",4,"ngFor","ngForOf"],[1,"box"],[3,"checked","change"],[3,"ngClass"],["class","privilege",4,"ngIf"],[3,"ngClass",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3,"Privileges"),t.qZA(),t.YNc(4,aqe,4,3,"div",3),t.qZA(),t.YNc(5,mqe,4,2,"div",4),t.ALo(6,"groupPrivileges"),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",!e.disable),t.xp6(1),t.Q6J("ngForOf",t.lcZ(6,2,e.privileges)))},dependencies:[se.mk,se.sg,se.O5,dn,Dn,ti,KP],styles:[ole,ole]});var _qe=function(r){return["/controller",r,"management","roles"]},JP=function(){function n(r,e,i,o,a){var s=this;(0,B.Z)(this,n),this.roleService=r,this.toastService=e,this.route=i,this.privilegeService=o,this.fb=a,this.$role=new Wi.X({role_id:"",description:"",updated_at:"",is_builtin:!1,privileges:[],name:"",created_at:""}),this.$ownedPrivilegesId=this.$role.pipe((0,$n.U)(function(l){return l.privileges})),this.$role.subscribe(function(l){s.editRoleForm=a.group({rolename:[l.name],description:[l.description]})})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.roleId=i.role.role_id,e.privileges=e.privilegeService.get(e.controller),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})})}},{key:"onUpdate",value:function(){var e=this,i=this.$role.value;i.name=this.editRoleForm.get("rolename").value,i.description=this.editRoleForm.get("description").value,this.roleService.update(this.controller,i).subscribe(function(){e.toastService.success("role: ".concat(i.name," was updated")),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})},function(o){e.toastService.error("".concat(o.message,"\n ").concat(o.error.message))})}},{key:"onPrivilegesUpdate",value:function(e){var s,i=this,o=[],a=(0,An.Z)(e.add);try{for(a.s();!(s=a.n()).done;){var l=s.value;o.push(this.roleService.setPrivileges(this.controller,this.roleId,l))}}catch(g){a.e(g)}finally{a.f()}var d,u=(0,An.Z)(e.delete);try{for(u.s();!(d=u.n()).done;){var h=d.value;o.push(this.roleService.removePrivileges(this.controller,this.roleId,h))}}catch(g){u.e(g)}finally{u.f()}oo.y.forkJoin(o).subscribe(function(){i.roleService.getById(i.controller,i.roleId).subscribe(function(g){return i.$role.next(g)})})}}]),n}();JP.\u0275fac=function(r){return new(r||JP)(t.Y36(ff),t.Y36(Zn),t.Y36(fr),t.Y36(NT),t.Y36(J.qu))},JP.\u0275cmp=t.Xpm({type:JP,selectors:[["app-role-detail"]],decls:45,vars:34,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to role management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to role management"],[1,"col"],[1,"main"],[1,"details"],[3,"formGroup"],["matInput","","type","text","formControlName","rolename"],["matInput","","type","text","formControlName","description"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"vertical"],[3,"disable","ownedPrivilege","privileges","update"]],template:function(r,e){var i,o,a,s,l,u,d;(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.ALo(8,"async"),t.qZA()(),t.TgZ(9,"div",6)(10,"div",7)(11,"form",8)(12,"div")(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Role name:"),t.qZA(),t._UZ(16,"input",9),t.qZA()(),t.TgZ(17,"div")(18,"mat-form-field")(19,"mat-label"),t._uU(20,"Description:"),t.qZA(),t._UZ(21,"input",10),t.qZA()()(),t.TgZ(22,"div"),t._uU(23),t.ALo(24,"async"),t.qZA(),t.TgZ(25,"div"),t._uU(26),t.ALo(27,"async"),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.ALo(30,"async"),t.qZA(),t.TgZ(31,"div")(32,"mat-checkbox",11),t.ALo(33,"async"),t._uU(34,"Is built-in"),t.qZA()(),t.TgZ(35,"div",12)(36,"button",13),t.NdJ("click",function(){return e.onUpdate()}),t.ALo(37,"async"),t.ALo(38,"async"),t._uU(39," Update Role "),t.qZA()()(),t._UZ(40,"mat-divider",14),t.TgZ(41,"app-privilege",15),t.NdJ("update",function(g){return e.onPrivilegesUpdate(g)}),t.ALo(42,"async"),t.ALo(43,"async"),t.ALo(44,"async"),t.qZA()()()()),2&r)&&(t.xp6(3),t.Q6J("routerLink",t.VKq(32,_qe,e.controller.id)),t.xp6(4),t.hij("Role ",null==(i=t.lcZ(8,12,e.$role))?null:i.name,""),t.xp6(4),t.Q6J("formGroup",e.editRoleForm),t.xp6(12),t.hij("Creation date: ",null==(o=t.lcZ(24,14,e.$role))?null:o.created_at,""),t.xp6(3),t.hij("Last update Date: ",null==(a=t.lcZ(27,16,e.$role))?null:a.updated_at,""),t.xp6(3),t.hij("UUID: ",null==(s=t.lcZ(30,18,e.$role))?null:s.role_id,""),t.xp6(3),t.Q6J("checked",null==(l=t.lcZ(33,20,e.$role))?null:l.is_builtin),t.xp6(4),t.Q6J("disabled",!t.lcZ(37,22,e.editRoleForm.valueChanges)&&e.editRoleForm.valid||(null==(u=t.lcZ(38,24,e.$role))?null:u.is_builtin)),t.xp6(4),t.Q6J("vertical",!0),t.xp6(1),t.Q6J("disable",null==(d=t.lcZ(42,26,e.$role))?null:d.is_builtin)("ownedPrivilege",t.lcZ(43,28,e.$ownedPrivilegesId))("privileges",t.lcZ(44,30,e.privileges)))},dependencies:[Gs,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,kn.hX,dn,U0,Dn,Kn,dr,ti,hm.d,mi,qP,se.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}"]});var ale,BT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.roleService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("role_id");o.controllerService.get(+s).then(function(u){o.roleService.getById(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();BT.\u0275fac=function(r){return new(r||BT)(t.LFG(or),t.LFG(ff))},BT.\u0275prov=t.Yz7({token:BT,factory:BT.\u0275fac,providedIn:"root"}),function(n){n.project="project",n.node="node",n.link="link",n.user="user",n.group="group",n.pool="pool",n.image="image",n.template="template",n.root="root"}(ale||(ale={}));var gqe=function(){function n(){(0,B.Z)(this,n),this.expansionModel=new Si.Ov(!0)}return(0,U.Z)(n,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,cn.Z)(this.getDescendants(e))),(i=this.expansionModel).select.apply(i,(0,cn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"collapseDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,cn.Z)(this.getDescendants(e))),(i=this.expansionModel).deselect.apply(i,(0,cn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),n}(),vqe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this)).getChildren=i,a.options=o,a.options&&(a.trackBy=a.options.trackBy),a}return(0,U.Z)(e,[{key:"expandAll",value:function(){var a,o=this;this.expansionModel.clear();var s=this.dataNodes.reduce(function(l,u){return[].concat((0,cn.Z)(l),(0,cn.Z)(o.getDescendants(u)),[u])},[]);(a=this.expansionModel).select.apply(a,(0,cn.Z)(s.map(function(l){return o._trackByValue(l)})))}},{key:"getDescendants",value:function(o){var a=[];return this._getDescendants(a,o),a.splice(1)}},{key:"_getDescendants",value:function(o,a){var s=this;o.push(a);var l=this.getChildren(a);Array.isArray(l)?l.forEach(function(u){return s._getDescendants(o,u)}):(0,Ny.b)(l)&&l.pipe((0,Ri.q)(1),(0,$r.h)(Boolean)).subscribe(function(u){var h,d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;s._getDescendants(o,g)}}catch(y){d.e(y)}finally{d.f()}})}}]),e}(gqe),UF=new t.OlP("CDK_TREE_NODE_OUTLET_NODE"),Xp=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this._node=e});Xp.\u0275fac=function(r){return new(r||Xp)(t.Y36(t.s_b),t.Y36(UF,8))},Xp.\u0275dir=t.lG2({type:Xp,selectors:[["","cdkTreeNodeOutlet",""]]});var yqe=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.$implicit=r}),Km=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Km.\u0275fac=function(r){return new(r||Km)(t.Y36(t.Rgc))},Km.\u0275dir=t.lG2({type:Km,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});var Ju=function(){function n(r,e){(0,B.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new On.xQ,this._levels=new Map,this.viewChange=new Wi.X({start:0,end:Number.MAX_VALUE})}return(0,U.Z)(n,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(i){return!i.when});e.length,this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var i,e=this;(0,Si.Z9)(this._dataSource)?i=this._dataSource.connect(this):(0,Ny.b)(this._dataSource)?i=this._dataSource:Array.isArray(this._dataSource)&&(i=(0,qn.of)(this._dataSource)),i&&(this._dataSubscription=i.pipe((0,Pr.R)(this._onDestroy)).subscribe(function(o){return e.renderNodeChanges(o)}))}},{key:"renderNodeChanges",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,s=arguments.length>3?arguments[3]:void 0,l=o.diff(e);!l||(l.forEachOperation(function(u,d,h){if(null==u.previousIndex)i.insertNode(e[h],h,a,s);else if(null==h)a.remove(d),i._levels.delete(u.item);else{var g=a.get(d);a.move(g,h)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(a){return a.when&&a.when(i,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,i,o,a){var s=this._getNodeDef(e,i),l=new yqe(e);this.treeControl.getLevel?l.level=this.treeControl.getLevel(e):void 0!==a&&this._levels.has(a)?l.level=this._levels.get(a)+1:l.level=0,this._levels.set(e,l.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,l,i),du.mostRecentTreeNode&&(du.mostRecentTreeNode.data=e)}}]),n}();Ju.\u0275fac=function(r){return new(r||Ju)(t.Y36(t.ZZ4),t.Y36(t.sBO))},Ju.\u0275cmp=t.Xpm({type:Ju,selectors:[["cdk-tree"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Km,5),2&r)&&(t.iGM(o=t.CRH())&&(e._nodeDefs=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Xp,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Xp],encapsulation:2});var du=function(){function n(r,e){(0,B.Z)(this,n),this._elementRef=r,this._tree=e,this._destroyed=new On.xQ,this._dataChanges=new On.xQ,n.mostRecentTreeNode=this,this.role="treeitem"}return(0,U.Z)(n,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function bqe(n){for(var r=n.parentElement;r&&!Cqe(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?(0,En.su)(r.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngOnDestroy",value:function(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}}]),n}();function Cqe(n){var r=n.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}du.mostRecentTreeNode=null,du.\u0275fac=function(r){return new(r||du)(t.Y36(t.SBq),t.Y36(Ju))},du.\u0275dir=t.lG2({type:du,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("aria-expanded",e.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});var $p=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,U.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree.treeControl.getChildren;var a=this._tree.treeControl.getChildren(this.data);Array.isArray(a)?this.updateChildrenNodes(a):(0,Ny.b)(a)&&a.pipe((0,Pr.R)(this._destroyed)).subscribe(function(s){return o.updateChildrenNodes(s)}),this.nodeOutlet.changes.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return o.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(o){var a=this._getNodeOutlet();if(o&&(this._children=o),a&&this._children){var s=a.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,s,this._data)}else this._dataDiffer.diff([])}},{key:"_clear",value:function(){var o=this._getNodeOutlet();o&&(o.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var o=this,a=this.nodeOutlet;return a&&a.find(function(s){return!s._node||s._node===o})}}]),e}(du);$p.\u0275fac=function(r){return new(r||$p)(t.Y36(t.SBq),t.Y36(Ju),t.Y36(t.ZZ4))},$p.\u0275dir=t.lG2({type:$p,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Xp,5),2&r)&&(t.iGM(o=t.CRH())&&(e.nodeOutlet=o))},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[t._Bn([{provide:du,useExisting:$p},{provide:UF,useExisting:$p}]),t.qOj]});var wqe=/([A-Za-z%]+)$/,Kb=function(){function n(r,e,i,o){var a=this;(0,B.Z)(this,n),this._treeNode=r,this._tree=e,this._element=i,this._dir=o,this._destroyed=new On.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),r._dataChanges.subscribe(function(){return a._setPadding()})}return(0,U.Z)(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?"".concat(i*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this._paddingIndent();if(i!==this._currentPadding||e){var o=this._element.nativeElement,a=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",s="paddingLeft"===a?"paddingRight":"paddingLeft";o.style[a]=i||"",o.style[s]="",this._currentPadding=i}}},{key:"_setLevelInput",value:function(e){this._level=(0,En.su)(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var i=e,o="px";if("string"==typeof e){var a=e.split(wqe);i=a[0],o=a[1]||o}this.indentUnits=o,this._indent=(0,En.su)(i),this._setPadding()}}]),n}();Kb.\u0275fac=function(r){return new(r||Kb)(t.Y36(du),t.Y36(Ju),t.Y36(t.SBq),t.Y36(nl.Is,8))},Kb.\u0275dir=t.lG2({type:Kb,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});var Cv=function(){function n(r,e){(0,B.Z)(this,n),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,U.Z)(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=(0,En.Ig)(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),n}();Cv.\u0275fac=function(r){return new(r||Cv)(t.Y36(Ju),t.Y36(du))},Cv.\u0275dir=t.lG2({type:Cv,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});var qb=(0,U.Z)(function n(){(0,B.Z)(this,n)});qb.\u0275fac=function(r){return new(r||qb)},qb.\u0275mod=t.oAB({type:qb}),qb.\u0275inj=t.cJS({});var kqe=function(){function n(r){(0,B.Z)(this,n),this.endpoints=r}return(0,U.Z)(n,[{key:"buildTreeFromEndpoints",value:function(){var e=this,i=[],o=[];return this.endpoints.forEach(function(a){var s=e.extractParent(a);o.push(s)}),o.forEach(function(a){a.depth>0&&o.filter(function(l){return l.splitEndp.join("/")==a.splitEndp.slice(0,a.depth-1).join("/")})[0].children.push(a)}),i.push(o.find(function(a){return 0===a.depth})),i}},{key:"extractParent",value:function(e){var i=e.endpoint.split("/"),o=[];return(i=i.filter(function(s){return""!==s&&"access"!==s})).length>0&&(o=i.slice(0,i.length-1)),{children:[],depth:i.length,splitEndp:i,endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name,parent:o}}}]),n}();function Tqe(n,r){if(1&n&&(t.TgZ(0,"mat-option",5),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.hij(" ",i.displayFn(e)," ")}}var QP=function(){function n(){(0,B.Z)(this,n),this.autocompleteControl=new J.p4,this.onSelection=new t.vpe}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){var e=this;this.filteredData=this.autocompleteControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(i){return e.filterFn(i,e.data)}))}}]),n}();function Mqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function Sqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Eqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div"),t._UZ(2,"button",23),t._uU(3),t.TgZ(4,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(5,Mqe,3,0,"div",25),t.YNc(6,Sqe,3,0,"div",25),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(2),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint)}}function xqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function Dqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Aqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div")(2,"button",28)(3,"mat-icon",29),t._uU(4),t.qZA()(),t._uU(5),t.TgZ(6,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(7,xqe,3,0,"div",25),t.YNc(8,Dqe,3,0,"div",25),t.qZA()(),t.TgZ(9,"div"),t.GkF(10,30),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.uIk("aria-label","Toggle "+i.name),t.xp6(2),t.hij(" ",o.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),t.xp6(1),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.ekj("example-tree-invisible",!o.treeControl.isExpanded(i))}}function Oqe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.charAt(0).toUpperCase()+e.slice(1))}}function Pqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.userSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.users)("eltType","Users")("displayFn",i.displayFnUser)("filterFn",i._filterUser)}}function Iqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.groupSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.groups)("eltType","Groups")("displayFn",i.displayFn)("filterFn",i._filter)}}function Rqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"ALLOWED "),t.qZA()}}function Lqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"DENY "),t.qZA()}}QP.\u0275fac=function(r){return new(r||QP)},QP.\u0275cmp=t.Xpm({type:QP,selectors:[["app-autocomplete"]],inputs:{data:"data",eltType:"eltType",displayFn:"displayFn",filterFn:"filterFn"},outputs:{onSelection:"onSelection"},features:[t.TTD],decls:8,vars:7,consts:[[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(r,e){if(1&r&&(t.TgZ(0,"mat-form-field",0)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",1),t.TgZ(4,"mat-autocomplete",2,3),t.NdJ("optionSelected",function(a){return e.onSelection.emit(a.option.value)}),t.YNc(6,Tqe,2,2,"mat-option",4),t.ALo(7,"async"),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Oqu(e.eltType),t.xp6(1),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(7,5,e.filteredData))}},dependencies:[se.sg,J.Fj,J.JJ,J.oH,kn.KE,kn.hX,Kn,Gt.ey,Jp,Qp,se.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var XP=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogRef=r,this.aclService=e,this.userService=i,this.groupService=o,this.roleService=a,this.toasterService=s,this.data=l,this.allowed=!0,this.types=Object.values(RT),this.TREE_DATA=[],this.treeControl=new vqe(function(h){return h.children}),this.hasChild=function(h,g){return!!g.children&&g.children.length>0},this.endpoints=l.endpoints;var d=new kqe(this.endpoints).buildTreeFromEndpoints();this.treeDataSource=new Si.P3(d),console.log(d)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addAceForm=new J.nJ({type:new J.p4(RT.user),role_id:new J.p4,propagate:new J.p4(!0)}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i}),this.userService.list(this.controller).subscribe(function(i){e.users=i}),this.roleService.get(this.controller).subscribe(function(i){e.roles=i})}},{key:"form",get:function(){return this.addAceForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this,i={ace_type:this.form.type.value,allowed:this.allowed,group_id:this.form.type.value===RT.group?this.selectedGroup.user_group_id:null,path:this.selectedEndpoint.endpoint,propagate:this.form.propagate.value,role_id:this.selectedRole.role_id,user_id:this.form.type.value===RT.user?this.selectedUser.user_id:null};i.path&&i.role_id&&(i.user_id||i.group_id)&&(this.aclService.add(this.controller,i).subscribe(function(o){e.toasterService.success("ACE was added for path ".concat(i.path))},function(o){e.toasterService.error("Cannot create ACE: ".concat(o.error.message))}),this.dialogRef.close())}},{key:"changeAllowed",value:function(){this.allowed=!this.allowed}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"displayFnUser",value:function(e){return e&&e.full_name&&e.username?e.username.concat(" - ",e.full_name):""}},{key:"_filter",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"_filterUser",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.full_name.toLowerCase().includes(o)||a.username.toLowerCase().includes(o)})}}},{key:"_filterRole",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"userSelection",value:function(e){this.selectedUser=e}},{key:"groupSelection",value:function(e){this.selectedGroup=e}},{key:"roleSelection",value:function(e){this.selectedRole=e}},{key:"endpointSelection",value:function(e){var i={endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name};this.selectedEndpoint=i}}]),n}();function Zqe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.path," ")}}XP.\u0275fac=function(r){return new(r||XP)(t.Y36(cr),t.Y36(df),t.Y36(Bl),t.Y36(Ec),t.Y36(ff),t.Y36(Zn),t.Y36(ko))},XP.\u0275cmp=t.Xpm({type:XP,selectors:[["app-add-ace-dialog"]],decls:29,vars:16,consts:[["mat-dialog-title",""],[1,"input-field","d-flex",2,"height","380px",3,"formGroup"],[1,"d-inline-block",2,"width","75%","float","left","overflow-y","auto"],[3,"dataSource","treeControl"],["class","example-tree-node",4,"cdkTreeNodeDef"],["class","example-tree-node",4,"cdkTreeNodeDef","cdkTreeNodeDefWhen"],[2,"height","auto",3,"vertical"],[1,"form-div","d-inline-block","h-100"],[1,"typeSelect"],["placeholder","User/Group","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],[3,"data","eltType","displayFn","filterFn","onSelection",4,"ngIf"],[3,"data","eltType","displayFn","filterFn","onSelection"],[1,"d-flex","justify-content-between"],[1,"d-inline-block",2,"float","left"],["formControlName","propagate"],[1,"d-inline-block",2,"float","right"],["class","allow ","mat-button","",3,"click",4,"ngIf"],["class","deny","mat-button","",3,"click",4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"example-tree-node"],["mat-icon-button","","disabled",""],["mat-icon-button","",3,"click"],[4,"ngIf"],[1,"align-middle",2,"color","#696969"],[1,"align-middle"],["mat-icon-button","","cdkTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["cdkTreeNodeOutlet",""],[3,"value"],["mat-button","",1,"allow",3,"click"],["mat-button","",1,"deny",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new ACE"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"cdk-tree",3),t.YNc(5,Eqe,7,5,"cdk-nested-tree-node",4),t.YNc(6,Aqe,11,9,"cdk-nested-tree-node",5),t.qZA()(),t._UZ(7,"mat-divider",6),t.TgZ(8,"div",7)(9,"div")(10,"div",8)(11,"mat-select",9),t.YNc(12,Oqe,2,2,"mat-option",10),t.qZA()(),t.YNc(13,Pqe,1,4,"app-autocomplete",11),t.YNc(14,Iqe,1,4,"app-autocomplete",11),t.TgZ(15,"app-autocomplete",12),t.NdJ("onSelection",function(o){return e.roleSelection(o)}),t.qZA(),t.TgZ(16,"div",13)(17,"div",14)(18,"mat-checkbox",15),t._uU(19,"Propagate"),t.qZA()(),t._UZ(20,"mat-divider",6),t.TgZ(21,"div",16),t.YNc(22,Rqe,2,0,"button",17),t.YNc(23,Lqe,2,0,"button",18),t.qZA()()(),t.TgZ(24,"div",19)(25,"button",20),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",21),t.NdJ("click",function(){return e.onAddClick()}),t._uU(28," Add ACE "),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.addAceForm),t.xp6(2),t.Q6J("dataSource",e.treeDataSource)("treeControl",e.treeControl),t.xp6(2),t.Q6J("cdkTreeNodeDefWhen",e.hasChild),t.xp6(1),t.Q6J("vertical",!0),t.xp6(5),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf","user"===e.form.type.value),t.xp6(1),t.Q6J("ngIf","group"===e.form.type.value),t.xp6(1),t.Q6J("data",e.roles)("eltType","Roles")("displayFn",e.displayFn)("filterFn",e._filter),t.xp6(5),t.Q6J("vertical",!0),t.xp6(2),t.Q6J("ngIf",e.allowed),t.xp6(1),t.Q6J("ngIf",!e.allowed),t.xp6(4),t.Q6J("disabled",!e.addAceForm.valid))},dependencies:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.sg,J.u,dn,Dn,yr,dr,ti,hm.d,ri.gD,Gt.ey,$p,Km,Cv,Ju,Xp,QP],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.height-100[_ngcontent-%COMP%]{height:100%}.button-div[_ngcontent-%COMP%]{float:right;position:absolute;right:0;bottom:0}.allow[_ngcontent-%COMP%]{background-color:green}.deny[_ngcontent-%COMP%]{background-color:#8b0000}.typeSelect[_ngcontent-%COMP%]{height:25px;margin-left:5px;margin-right:5px}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.example-tree-node[_ngcontent-%COMP%]{display:block}.example-tree-node[_ngcontent-%COMP%] .example-tree-node[_ngcontent-%COMP%]{padding-left:40px}.form-div[_ngcontent-%COMP%]{position:relative;width:25%;float:right;margin-left:20px}.selected[_ngcontent-%COMP%]{color:green}"]});var FT=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();FT.\u0275fac=function(r){return new(r||FT)(t.Y36(cr),t.Y36(ko))},FT.\u0275cmp=t.Xpm({type:FT,selectors:[["app-delete-ace-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following ACEs ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,Zqe,2,1,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.aces))},dependencies:[se.sg,dn,yr,dr]});var $P=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i,o){var a=this;if(!e)return[];if(!i)return e;i=i.toLowerCase();var s=o.filter(function(l){return l.name.toLowerCase().includes(i)});return e.data.filter(function(l){var u=a.getEndpoint(l.user_id,o),d=a.getEndpoint(l.group_id,o),h=a.getEndpoint(l.path,o),g=a.getEndpoint(l.role_id,o);return s.some(function(y){return[u,d,h,g].includes(y.endpoint)})})}},{key:"getEndpoint",value:function(e,i){var o=i.filter(function(a){return a.endpoint.includes(e)});return o.length>0?o[0].endpoint.toLowerCase():""}}]),n}();$P.\u0275fac=function(r){return new(r||$P)},$P.\u0275pipe=t.Yjl({name:"aceFilter",type:$P,pure:!0});var Nqe=["acesPaginator"],Bqe=["acesSort"];function Fqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",31)(1,"mat-checkbox",32),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Uqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"mat-checkbox",34),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function jqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Path"),t.qZA())}function Hqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.path)," ")}}function Gqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"User/Group"),t.qZA())}function zqe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.xp6(1),t.Oqu(i.getNameByUuidFromEndpoint(e.user_id))}}function Wqe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Oqu(i.getNameByUuidFromEndpoint(e.group_id))}}function Vqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,zqe,2,1,"div",37),t.YNc(2,Wqe,1,1,"ng-template",null,38,t.W1O),t.qZA()),2&n){var e=r.$implicit,i=t.MAs(3);t.xp6(1),t.Q6J("ngIf","user"===e.ace_type)("ngIfElse",i)}}function Yqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Role"),t.qZA())}function Kqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.role_id)," ")}}function qqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Propagate"),t.qZA())}function Jqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function Qqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Allowed"),t.qZA())}function Xqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function $qe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Created"),t.qZA())}function eJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function tJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Last update"),t.qZA())}function nJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function rJe(n,r){1&n&&t._UZ(0,"th",39)}function iJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",36)(1,"button",40),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function oJe(n,r){1&n&&t._UZ(0,"tr",41)}function aJe(n,r){1&n&&t._UZ(0,"tr",42)}var sJe=function(){return{standalone:!0}},lJe=function(){return[5,10,20]};function uJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Access Control List (ACL)"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete selected ACEs "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addACE())}),t._uU(8," Add ACE "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"aceFilter"),t.ynx(16,13),t.YNc(17,Fqe,2,2,"th",14),t.YNc(18,Uqe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,jqe,2,0,"th",17),t.YNc(21,Hqe,2,1,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,Gqe,2,0,"th",17),t.YNc(24,Vqe,4,2,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,Yqe,2,0,"th",17),t.YNc(27,Kqe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,qqe,2,0,"th",17),t.YNc(30,Jqe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,Qqe,2,0,"th",17),t.YNc(33,Xqe,2,1,"td",18),t.BQk(),t.ynx(34,23),t.YNc(35,$qe,2,0,"th",17),t.YNc(36,eJe,2,1,"td",18),t.BQk(),t.ynx(37,24),t.YNc(38,tJe,2,0,"th",17),t.YNc(39,nJe,2,1,"td",18),t.BQk(),t.ynx(40,25),t.YNc(41,rJe,1,0,"th",26),t.YNc(42,iJe,4,0,"td",18),t.BQk(),t.YNc(43,oJe,1,0,"tr",27),t.YNc(44,aJe,1,0,"tr",28),t.qZA(),t._UZ(45,"mat-paginator",29,30),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(11,sJe)),t.xp6(2),t.Q6J("dataSource",t.Dn7(15,7,i.dataSource,i.searchText,i.endpoints)),t.xp6(30),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(12,lJe))}}function cJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var eI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.aclService=o,this.dialog=a,this.displayedColumns=["select","path","user/group","role","propagate","allowed","updated_at","delete"],this.selection=new Si.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1,this.searchText=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.aclService.getEndpoints(e.controller).subscribe(function(a){e.endpoints=a,e.refresh()})})}},{key:"ngAfterViewInit",value:function(){var e=this;this.acesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.acesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"path":case"user/group":case"role":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.aclService.list(this.controller).subscribe(function(i){e.isReady=!0,e.aces=i,e.dataSource.data=i,e.selection.clear()})}},{key:"addACE",value:function(){var e=this,i=this.dialog.open(XP,{width:"1200px",height:"500px",autoFocus:!1,disableClose:!0,data:{endpoints:this.endpoints}});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(FT,{width:"500px",data:{aces:[e]}}).afterClosed().subscribe(function(o){o&&i.aclService.delete(i.controller,e.ace_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete ace ".concat(e.ace_id))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.aces.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.aces.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(FT,{width:"500px",data:{aces:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.aclService.delete(e.controller,o.ace_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete ace ".concat(o.ace_id))})}),e.selection.clear())})}},{key:"getNameByUuidFromEndpoint",value:function(e){if(this.endpoints){var i=this.endpoints.filter(function(o){return o.endpoint.includes(e)});if(i.length>=1)return i[0].name}return""}}]),n}();eI.\u0275fac=function(r){return new(r||eI)(t.Y36(fr),t.Y36(or),t.Y36(Zn),t.Y36(df),t.Y36(Gr))},eI.\u0275cmp=t.Xpm({type:eI,selectors:[["app-acl-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(Nqe,5),t.Gf(Bqe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.acesPaginator=i),t.iGM(i=t.CRH())&&(e.acesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by path, user/group or role",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["acesSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","path"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user/group"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["acesPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["groupId",""],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,uJe,47,13,"div",0),t.YNc(1,cJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,$P],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ace-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var Jb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();Jb.\u0275fac=function(r){return new(r||Jb)},Jb.\u0275prov=t.Yz7({token:Jb,factory:Jb.\u0275fac});var dJe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Po.w)(function(){return e.getAll(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},qm=function(){function n(r,e){(0,B.Z)(this,n),this.httpController=r,this.projectService=e}return(0,U.Z)(n,[{key:"getAll",value:function(e){return this.httpController.get(e,"/pools")}},{key:"get",value:function(e,i){return oo.y.forkJoin([this.httpController.get(e,"/pools/".concat(i)),this.httpController.get(e,"/pools/".concat(i,"/resources"))]).pipe((0,$n.U)(function(o){return o[0].resources=o[1],o[0]}))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/pools/".concat(i))}},{key:"add",value:function(e,i){return this.httpController.post(e,"/pools",{name:i})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id),{name:i.name})}},{key:"addResource",value:function(e,i,o){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id,"/resources/").concat(o.project_id),{})}},{key:"deleteResource",value:function(e,i,o){return this.httpController.delete(e,"/pools/".concat(o.resource_pool_id,"/resources/").concat(i.resource_id))}},{key:"getFreeResources",value:function(e){var i=this;return this.projectService.list(e).pipe((0,Po.w)(function(o){return i.getAllNonFreeResources(e).pipe((0,$n.U)(function(a){return a.map(function(s){return s.resource_id})}),(0,$n.U)(function(a){return o.filter(function(s){return!a.includes(s.project_id)})}))}))}},{key:"getAllNonFreeResources",value:function(e){var i=this;return this.getAll(e).pipe((0,Po.w)(function(o){return oo.y.forkJoin(o.map(function(a){return i.httpController.get(e,"/pools/".concat(a.resource_pool_id,"/resources"))}))}),(0,$n.U)(function(o){var l,a=[],s=(0,An.Z)(o);try{for(s.s();!(l=s.n()).done;){var h,u=l.value,d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;a.push(g)}}catch(y){d.e(y)}finally{d.f()}}}catch(y){s.e(y)}finally{s.f()}return a}))}}]),n}();function fJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is required"),t.qZA())}function pJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is incorrect"),t.qZA())}function hJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool with this name exists"),t.qZA())}qm.\u0275fac=function(r){return new(r||qm)(t.LFG(ho.zw),t.LFG(Vs.Y))},qm.\u0275prov=t.Yz7({token:qm,factory:qm.\u0275fac,providedIn:"root"});var mJe=function(r){return{"is-invalid":r}},tI=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.poolNameValidator=o,this.resourcePoolsService=a,this.toasterService=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controller=this.data.controller,this.poolNameForm=this.formBuilder.group({poolName:new J.p4(null,[J.kI.required,this.poolNameValidator.get],[dJe(this.data.controller,this.resourcePoolsService)])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.poolNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.poolNameForm.invalid){var i=this.poolNameForm.controls.poolName.value;this.resourcePoolsService.add(this.controller,i).subscribe(function(o){e.dialogRef.close(!0)},function(o){e.toasterService.error("An error occur while trying to create new pool ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function _Je(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}tI.\u0275fac=function(r){return new(r||tI)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Jb),t.Y36(qm),t.Y36(Zn))},tI.\u0275cmp=t.Xpm({type:tI,selectors:[["app-add-resource-pool-dialog"]],features:[t._Bn([Jb])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","poolName","placeholder","Please enter a resource pool name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new resource pool"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,fJe,2,0,"mat-error",4),t.YNc(6,pJe,2,0,"mat-error",4),t.YNc(7,hJe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add resource pool "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.poolNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,mJe,null==e.form.poolName?null:e.form.poolName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.touched)&&(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.projectExist)))},dependencies:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var nI=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();nI.\u0275fac=function(r){return new(r||nI)(t.Y36(cr),t.Y36(ko))},nI.\u0275cmp=t.Xpm({type:nI,selectors:[["app-delete-resource-pool"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete pools named: "),t.qZA(),t.YNc(2,_Je,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.pools))},dependencies:[se.sg,dn,yr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var rI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();rI.\u0275fac=function(r){return new(r||rI)},rI.\u0275pipe=t.Yjl({name:"resourcePoolsFilter",type:rI,pure:!0});var gJe=["resourcePoolsPaginator"],vJe=["resourcePoolsSort"];function yJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",27)(1,"mat-checkbox",28),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function bJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",29)(1,"mat-checkbox",30),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function CJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Name"),t.qZA())}function wJe(n,r){if(1&n&&(t.TgZ(0,"td",32)(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/pools/",e.resource_pool_id,""),t.xp6(1),t.Oqu(e.name)}}function kJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Creation date"),t.qZA())}function TJe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function MJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Last update"),t.qZA())}function SJe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function EJe(n,r){1&n&&t._UZ(0,"th",34)}function xJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",32)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function DJe(n,r){1&n&&t._UZ(0,"tr",36)}function AJe(n,r){1&n&&t._UZ(0,"tr",37)}var OJe=function(){return{standalone:!0}},PJe=function(){return[5,10,20]};function IJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Resource pools"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected pools "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addResourcePool())}),t._uU(8," Add resource pool "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"resourcePoolsFilter"),t.ynx(16,13),t.YNc(17,yJe,2,2,"th",14),t.YNc(18,bJe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,CJe,2,0,"th",17),t.YNc(21,wJe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,kJe,2,0,"th",17),t.YNc(24,TJe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,MJe,2,0,"th",17),t.YNc(27,SJe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,EJe,1,0,"th",22),t.YNc(30,xJe,4,0,"td",18),t.BQk(),t.YNc(31,DJe,1,0,"tr",23),t.YNc(32,AJe,1,0,"tr",24),t.qZA(),t._UZ(33,"mat-paginator",25,26),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,OJe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(18),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,PJe))}}function RJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",38),t.qZA())}var iI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.resourcePoolsService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","delete"],this.selection=new Si.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.resourcePoolsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.resourcePoolsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.resourcePools.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.resourcePools.forEach(function(i){return e.selection.select(i)})}},{key:"addResourcePool",value:function(){var e=this;this.dialog.open(tI,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.getAll(this.controller).subscribe(function(i){e.isReady=!0,e.resourcePools=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(nI,{width:"500px",height:"250px",data:{pools:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.resourcePoolsService.delete(i.controller,s.resource_pool_id)});(0,j0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete resource pool")})}})}}]),n}();iI.\u0275fac=function(r){return new(r||iI)(t.Y36(fr),t.Y36(or),t.Y36(Zn),t.Y36(qm),t.Y36(Gr))},iI.\u0275cmp=t.Xpm({type:iI,selectors:[["app-resource-pools-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(gJe,5),t.Gf(vJe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.resourcePoolsPaginator=i),t.iGM(i=t.CRH())&&(e.resourcePoolsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search resource pool by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["resourcePoolsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["resourcePoolsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,IJe,35,12,"div",0),t.YNc(1,RJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,rI],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ressourcePool-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var oI=function(){function n(r,e){(0,B.Z)(this,n),this.data=r,this.dialogRef=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();function LJe(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function ZJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",22)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",18)(5,"mat-icon",19),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteResource(s))}),t._uU(6,"delete"),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(2),t.Oqu(i.name)}}oI.\u0275fac=function(r){return new(r||oI)(t.Y36(Cie),t.Y36(cr))},oI.\u0275cmp=t.Xpm({type:oI,selectors:[["app-delete-resource-confirmation-dialog"]],decls:7,vars:2,consts:[[1,"title"],[1,"button"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return e.dialogRef.close()}),t._uU(4,"Cancel"),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return e.dialogRef.close(e.data)}),t._uU(6,"Update"),t.qZA()()),2&r&&(t.xp6(1),t.AsE("delete resource ",e.data.resource_type,"/",e.data.name," ?"))},dependencies:[dn],styles:["[_nghost-%COMP%]{display:flex;margin:30px;flex-direction:column}.title[_ngcontent-%COMP%]{margin-bottom:50px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var NJe=function(r){return["/controller",r,"management","pools"]},aI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.toastService=r,this.route=e,this.resourcePoolsService=i,this.dialog=o,this.addResourceFormControl=new J.NI(""),this.projects=[],this.editPoolForm=new J.nJ({poolname:new J.p4})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.pool=i.pool,e.refresh()})}},{key:"onUpdate",value:function(){var e=this;this.resourcePoolsService.update(this.controller,this.pool).subscribe(function(i){e.toastService.success("pool ".concat(i.name,", updated"))})}},{key:"addResource",value:function(){var e=this,i=this.addResourceFormControl.value,o=this.projects.filter(function(a){return a.name.includes(i)});1!==o.length?0!==o.length?o.length>1&&this.toastService.error("".concat(o.length," match ").concat(i,", please be more accurate")):this.toastService.error("cannot found related project with string: ".concat(i)):this.resourcePoolsService.addResource(this.controller,this.pool,o[0]).subscribe(function(){e.toastService.success("project : ".concat(o[0].name,", added to pool: ").concat(e.pool.name)),e.refresh(),e.addResourceFormControl.setValue("")})}},{key:"deleteResource",value:function(e){var i=this;this.dialog.open(oI,{data:e}).afterClosed().subscribe(function(o){o&&i.resourcePoolsService.deleteResource(i.controller,o,i.pool).subscribe(function(){i.refresh(),i.toastService.success("resource ".concat(o.name," delete from pool ").concat(i.pool.name))})})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.get(this.controller,this.pool.resource_pool_id).subscribe(function(i){e.pool=i}),this.resourcePoolsService.getFreeResources(this.controller).subscribe(function(i){e.projects=i,e.addResourceFilteredOptions=e.addResourceFormControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(o){return e.projects.filter(function(a){return a.name.toLowerCase().includes(o.toLowerCase()||"")}).map(function(a){return a.name})}))})}}]),n}();aI.\u0275fac=function(r){return new(r||aI)(t.Y36(Zn),t.Y36(fr),t.Y36(qm),t.Y36(Gr))},aI.\u0275cmp=t.Xpm({type:aI,selectors:[["app-resource-pool-details"]],decls:38,vars:15,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","back to resource pools management","mattooltipclass","custom-tooltip",3,"routerLink"],["aria-label","back to resource pools management"],[1,"col"],[1,"main"],[1,"details"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"vertical"],[1,"resources"],[1,"addResource"],["type","text","placeholder","add project to resource pool","matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button",""],[3,"click"],["class","ownedResources",4,"ngFor","ngForOf"],[3,"value"],[1,"ownedResources"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"mat-form-field")(12,"mat-label"),t._uU(13,"Resource pool name:"),t.qZA(),t.TgZ(14,"input",8),t.NdJ("ngModelChange",function(a){return e.pool.name=a}),t.qZA()()(),t.TgZ(15,"div"),t._uU(16),t.qZA(),t.TgZ(17,"div"),t._uU(18),t.qZA(),t.TgZ(19,"div"),t._uU(20),t.qZA(),t.TgZ(21,"div",9)(22,"button",10),t.NdJ("click",function(){return e.onUpdate()}),t._uU(23," Update resource pool "),t.qZA()()(),t._UZ(24,"mat-divider",11),t.TgZ(25,"div",12)(26,"div",13)(27,"div"),t._UZ(28,"input",14),t.TgZ(29,"mat-autocomplete",15,16),t.YNc(31,LJe,2,2,"mat-option",17),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div")(34,"button",18)(35,"mat-icon",19),t.NdJ("click",function(){return e.addResource()}),t._uU(36,"add"),t.qZA()()()(),t.YNc(37,ZJe,7,1,"div",20),t.qZA()()()()),2&r){var i=t.MAs(30);t.xp6(3),t.Q6J("routerLink",t.VKq(13,NJe,e.controller.id)),t.xp6(4),t.hij("Resource pool ",e.pool.name,""),t.xp6(7),t.Q6J("ngModel",e.pool.name),t.xp6(2),t.hij("creation date: ",e.pool.created_at,""),t.xp6(2),t.hij("last update date: ",e.pool.updated_at,""),t.xp6(2),t.hij("uuid: ",e.pool.resource_pool_id,""),t.xp6(4),t.Q6J("vertical",!0),t.xp6(4),t.Q6J("formControl",e.addResourceFormControl)("matAutocomplete",i),t.xp6(3),t.Q6J("ngForOf",t.lcZ(32,11,e.addResourceFilteredOptions)),t.xp6(6),t.Q6J("ngForOf",e.pool.resources)}},dependencies:[se.sg,Gs,J.Fj,J.JJ,J.On,J.oH,kn.KE,kn.hX,dn,U0,Dn,Kn,dr,hm.d,Gt.ey,mi,Jp,Qp,se.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}.resources[_ngcontent-%COMP%]{display:flex;flex-direction:column}.ownedResources[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.addResource[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between}"]});var UT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.resourcePoolsService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("pool_id");o.controllerService.get(+s).then(function(u){o.resourcePoolsService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();UT.\u0275fac=function(r){return new(r||UT)(t.LFG(or),t.LFG(qm))},UT.\u0275prov=t.Yz7({token:UT,factory:UT.\u0275fac,providedIn:"root"});var jT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.group_id===l});a.next(h),a.complete()})})})}}]),n}();jT.\u0275fac=function(r){return new(r||jT)(t.LFG(or),t.LFG(df))},jT.\u0275prov=t.Yz7({token:jT,factory:jT.\u0275fac,providedIn:"root"});var HT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.user_id===l});a.next(h),a.complete()})})})}}]),n}();HT.\u0275fac=function(r){return new(r||HT)(t.LFG(or),t.LFG(df))},HT.\u0275prov=t.Yz7({token:HT,factory:HT.\u0275fac,providedIn:"root"});var BJe=[{path:"",component:bP,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:lP},{path:"bundled",component:DD},{path:"controller/:controller_id/login",component:GD},{path:"controller/:controller_id/loggeduser",component:xP},{path:"controller/:controller_id/image-manager",component:OP},{path:"controller/:controller_id/projects",component:wT,canActivate:[Ur],resolve:{controller:vd}},{path:"controller/:controller_id/help",component:FD},{path:"controller/:controller_id/settings",component:cP},{path:"controller/:controller_id/settings/console",component:uP},{path:"controller/:controller_id/management/users/:user_id",component:IP,canActivate:[Ur],resolve:{user:PT,groups:IT,aces:HT,controller:vd}},{path:"controller/:controller_id/management/pools/:pool_id",component:aI,canActivate:[Ur],resolve:{pool:UT,controller:vd}},{path:"installed-software",component:HD},{path:"controller/:controller_id/systemstatus",component:gP,canActivate:[Ur]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:RD,canActivate:[Ur]},{path:"controller/:controller_id/project/:project_id/snapshots",component:pP,canActivate:[Ur],resolve:{controller:vd}},{path:"controller/:controller_id/preferences",component:S2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin",component:WD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:a2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:i2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:o2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:u2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:s2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:l2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:r2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:YD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:qD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates",component:C2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:v2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:b2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:y2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates",component:A2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:x2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:D2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:E2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/templates",component:F2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:B2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:N2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:I2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:P2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:O2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/templates",component:Z2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:L2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:R2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates",component:g2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:_2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:m2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:h2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates",component:M2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:T2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:k2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:w2,canActivate:[Ur]},{path:"controller/:controller_id/management",component:RP,children:[{path:"users",component:EP},{path:"groups",component:BP},{path:"roles",component:HP},{path:"pools",component:iI},{path:"ACL",component:eI}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:YP,resolve:{members:LT,controller:vd,group:ZT,aces:jT}},{path:"controller/:controller_id/management/roles/:role_id",component:JP,resolve:{role:BT,controller:vd}}]},{path:"controller/:controller_id/project/:project_id",component:iP,canActivate:[Ur],canDeactivate:[Vb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:xT,canActivate:[Ur]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:xT,canActivate:[Ur]},{path:"**",component:zD}],GT=(0,U.Z)(function n(){(0,B.Z)(this,n)});GT.\u0275fac=function(r){return new(r||GT)},GT.\u0275mod=t.oAB({type:GT}),GT.\u0275inj=t.cJS({imports:[F0.forRoot(BJe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"}),F0]});var FJe=function(r,e){return{dark:r,light:e}},sI=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,B.Z)(this,n),this.overlayContainer=r,this.settingsService=o,this.electronService=a,this.themeService=s,this.router=l,this.progressService=u,this.darkThemeEnabled=!1,e.addSvgIcon("gns3",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),e.addSvgIcon("gns3black",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),l.events.subscribe(function(h){d.checkEvent(h)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(i){e.applyTheme(i)})}},{key:"applyTheme",value:function(e){this.darkThemeEnabled="dark-theme"===e,this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e}},{key:"checkEvent",value:function(e){e instanceof lB?this.progressService.activate():(e instanceof Jd||e instanceof _D||e instanceof bG)&&this.progressService.deactivate()}}]),n}();sI.\u0275fac=function(r){return new(r||sI)(t.Y36(Li.Xj),t.Y36(xp),t.Y36(Dr),t.Y36(Gm.g),t.Y36(ul),t.Y36(wc.f),t.Y36(ur),t.Y36(El))},sI.\u0275cmp=t.Xpm({type:sI,selectors:[["app-root"]],hostVars:2,hostBindings:function(r,e){2&r&&t.Tol(e.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._UZ(1,"router-outlet")(2,"app-adbutler"),t.qZA()),2&r&&t.Q6J("ngClass",t.WLB(1,FJe,e.darkThemeEnabled,!e.darkThemeEnabled))},dependencies:[se.mk,fm,Ck],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]});var UJe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),zT=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new UJe;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();zT.\u0275fac=function(r){return new(r||zT)},zT.\u0275prov=t.Yz7({token:zT,factory:zT.\u0275fac});var WT=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return Xz(e,{context:"declarationList"}).children.forEach(function(a){"font-size"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Dimension"===s.type&&(i.font_size=parseInt(s.value))}),"font-family"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_family=s.name)}),"font-weight"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_weight=s.name)})}),i}}]),n}();WT.\u0275fac=function(r){return new(r||WT)},WT.\u0275prov=t.Yz7({token:WT,factory:WT.\u0275fac});var jJe=[iv,Um,zp,Xg,Gp,Vp,$g,Hp,Qg,Eb,nv,yb,of,Mb,wb,Tb,kb,rv,Sb],VT=(0,U.Z)(function n(){(0,B.Z)(this,n)});VT.\u0275fac=function(r){return new(r||VT)},VT.\u0275mod=t.oAB({type:VT}),VT.\u0275inj=t.cJS({providers:[Sc,os,dv,Rb,Lb,Zb,Nb,Fp,Wp,Yu,Fm,jp,qg,Ks,Zl,pd,hd,Hm,_d,Bm,Wg,Kg,gb,Bb,qp,hv,Fb,Vm,pv,zT,Yg,Vg,vb,Up,Pm,Im,Rm,Lm,Jg,rf,Ip,WT,ev,tv].concat((0,cn.Z)(jJe)),imports:[se.ez,Ig,Og]});var Qb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(YB.o);Qb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Qb)))(e||Qb)}}(),Qb.\u0275prov=t.Yz7({token:Qb,factory:Qb.\u0275fac});var pW=function(n,r){return(pW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(n,r)};function lI(n,r){function e(){this.constructor=n}pW(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var Pn=function(){return Pn=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},Pn.apply(this,arguments)};function Jm(n){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&n[r],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function fu(n,r){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,i=e.call(n),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return a}function as(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(fu(arguments[r]));return n}var ba=m(7312),sle=Object.prototype.toString;function hW(n){switch(sle.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return wv(n,Error)}}function YT(n,r){return sle.call(n)==="[object "+r+"]"}function lle(n){return YT(n,"ErrorEvent")}function ule(n){return YT(n,"DOMError")}function KT(n){return YT(n,"String")}function mW(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function qT(n){return YT(n,"Object")}function HF(n){return"undefined"!=typeof Event&&wv(n,Event)}function _W(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function wv(n,r){try{return n instanceof r}catch(e){return!1}}function gW(n,r){try{for(var e=n,a=[],s=0,l=0,d=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=YJe(e,r))||s>1&&l+a.length*d+h.length>=80);)a.push(h),l+=h.length,e=e.parentNode;return a.reverse().join(" > ")}catch(g){return"<unknown>"}}function YJe(n,r){var o,a,s,l,u,e=n,i=[];if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());var d=r&&r.length?r.filter(function(g){return e.getAttribute(g)}).map(function(g){return[g,e.getAttribute(g)]}):null;if(d&&d.length)d.forEach(function(g){i.push("["+g[0]+'="'+g[1]+'"]')});else if(e.id&&i.push("#"+e.id),(o=e.className)&&KT(o))for(a=o.split(/\s+/),u=0;u<a.length;u++)i.push("."+a[u]);var h=["type","name","title","alt"];for(u=0;u<h.length;u++)s=h[u],(l=e.getAttribute(s))&&i.push("["+s+'="'+l+'"]');return i.join("")}function uI(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function cle(n,r){if(!Array.isArray(n))return"";for(var e=[],i=0;i<n.length;i++){var o=n[i];try{e.push(String(o))}catch(a){e.push("[value cannot be serialized]")}}return e.join(r)}function vW(n,r){return!!KT(n)&&(function zJe(n){return YT(n,"RegExp")}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function Fl(n,r,e){if(r in n){var i=n[r],o=e(i);if("function"==typeof o)try{dle(o,i)}catch(a){}n[r]=o}}function GF(n,r,e){Object.defineProperty(n,r,{value:e,writable:!0,configurable:!0})}function dle(n,r){var e=r.prototype||{};n.prototype=r.prototype=e,GF(n,"__sentry_original__",r)}function yW(n){return n.__sentry_original__}function fle(n){var r=n;if(hW(n))r=Pn({message:n.message,name:n.name,stack:n.stack},hle(n));else if(HF(n)){var e=n;r=Pn({type:e.type,target:ple(e.target),currentTarget:ple(e.currentTarget)},hle(e)),"undefined"!=typeof CustomEvent&&wv(n,CustomEvent)&&(r.detail=e.detail)}return r}function ple(n){try{return function GJe(n){return"undefined"!=typeof Element&&wv(n,Element)}(n)?gW(n):Object.prototype.toString.call(n)}catch(r){return"<unknown>"}}function hle(n){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}function JJe(n,r){void 0===r&&(r=40);var e=Object.keys(fle(n));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return uI(e[0],r);for(var i=e.length;i>0;i--){var o=e.slice(0,i).join(", ");if(!(o.length>r))return i===e.length?o:uI(o,r)}return""}function bW(n){var r,e;if(qT(n)){var i={};try{for(var o=Jm(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==n[s]&&(i[s]=bW(n[s]))}}catch(l){r={error:l}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}return Array.isArray(n)?n.map(bW):n}function JT(){var n=(0,ba.R)(),r=n.crypto||n.msCrypto;if(void 0!==r&&r.getRandomValues){var e=new Uint16Array(8);r.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var i=function(a){for(var s=a.toString(16);s.length<4;)s="0"+s;return s};return i(e[0])+i(e[1])+i(e[2])+i(e[3])+i(e[4])+i(e[5])+i(e[6])+i(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(o){var a=16*Math.random()|0;return("x"===o?a:3&a|8).toString(16)})}function CW(n){if(!n)return{};var r=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!r)return{};var e=r[6]||"",i=r[8]||"";return{host:r[4],path:r[5],protocol:r[2],relative:r[5]+e+i}}function mle(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function Xb(n){var r=n.message,e=n.event_id;if(r)return r;var i=mle(n);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function wW(n,r,e){var i=n.exception=n.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{};a.value||(a.value=r||""),a.type||(a.type=e||"Error")}function cI(n,r){var e=mle(n);if(e){var o=e.mechanism;if(e.mechanism=Pn(Pn(Pn({},{type:"generic",handled:!0}),o),r),r&&"data"in r){var a=Pn(Pn({},o&&o.data),r.data);e.mechanism.data=a}}}function _le(n){if(n&&n.__sentry_captured__)return!0;try{GF(n,"__sentry_captured__",!0)}catch(r){}return!1}var _i,QT=m(3169),XT="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,XJe=(0,ba.R)(),$Je="Sentry Logger ",zF=["debug","info","warn","error","log","assert"];function gle(n){var r=(0,ba.R)();if(!("console"in r))return n();var e=r.console,i={};zF.forEach(function(o){var a=e[o]&&e[o].__sentry_original__;o in r.console&&a&&(i[o]=e[o],e[o]=a)});try{return n()}finally{Object.keys(i).forEach(function(o){e[o]=i[o]})}}function vle(){var n=!1,r={enable:function(){n=!0},disable:function(){n=!1}};return XT?zF.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&gle(function(){var a;(a=XJe.console)[e].apply(a,as([$Je+"["+e+"]:"],i))})}}):zF.forEach(function(e){r[e]=function(){}}),r}_i=XT?(0,ba.Y)("logger",vle):vle();var eQe=m(3295),yle="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $b(n){return new kv(function(r){r(n)})}function dI(n){return new kv(function(r,e){e(n)})}var kv=function(){function n(r){var e=this;this._state=0,this._handlers=[],this._resolve=function(i){e._setResult(1,i)},this._reject=function(i){e._setResult(2,i)},this._setResult=function(i,o){if(0===e._state){if(_W(o))return void o.then(e._resolve,e._reject);e._state=i,e._value=o,e._executeHandlers()}},this._executeHandlers=function(){if(0!==e._state){var i=e._handlers.slice();e._handlers=[],i.forEach(function(o){o[0]||(1===e._state&&o[1](e._value),2===e._state&&o[2](e._value),o[0]=!0)})}};try{r(this._resolve,this._reject)}catch(i){this._reject(i)}}return n.prototype.then=function(r,e){var i=this;return new n(function(o,a){i._handlers.push([!1,function(s){if(r)try{o(r(s))}catch(l){a(l)}else o(s)},function(s){if(e)try{o(e(s))}catch(l){a(l)}else a(s)}]),i._executeHandlers()})},n.prototype.catch=function(r){return this.then(function(e){return e},r)},n.prototype.finally=function(r){var e=this;return new n(function(i,o){var a,s;return e.then(function(l){s=!1,a=l,r&&r()},function(l){s=!0,a=l,r&&r()}).then(function(){s?o(a):i(a)})})},n}(),WF=function(){function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return n.clone=function(r){var e=new n;return r&&(e._breadcrumbs=as(r._breadcrumbs),e._tags=Pn({},r._tags),e._extra=Pn({},r._extra),e._contexts=Pn({},r._contexts),e._user=r._user,e._level=r._level,e._span=r._span,e._session=r._session,e._transactionName=r._transactionName,e._fingerprint=r._fingerprint,e._eventProcessors=as(r._eventProcessors),e._requestSession=r._requestSession),e},n.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},n.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},n.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(r){return this._requestSession=r,this},n.prototype.setTags=function(r){return this._tags=Pn(Pn({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,e){var i;return this._tags=Pn(Pn({},this._tags),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=Pn(Pn({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,e){var i;return this._extra=Pn(Pn({},this._extra),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},n.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(r){return this.setTransactionName(r)},n.prototype.setContext=function(r,e){var i;return null===e?delete this._contexts[r]:this._contexts=Pn(Pn({},this._contexts),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var r=this.getSpan();return r&&r.transaction},n.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var e=r(this);return e instanceof n?e:this}return r instanceof n?(this._tags=Pn(Pn({},this._tags),r._tags),this._extra=Pn(Pn({},this._extra),r._extra),this._contexts=Pn(Pn({},this._contexts),r._contexts),r._user&&Object.keys(r._user).length&&(this._user=r._user),r._level&&(this._level=r._level),r._fingerprint&&(this._fingerprint=r._fingerprint),r._requestSession&&(this._requestSession=r._requestSession)):qT(r)&&(this._tags=Pn(Pn({},this._tags),r.tags),this._extra=Pn(Pn({},this._extra),r.extra),this._contexts=Pn(Pn({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession)),this},n.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},n.prototype.addBreadcrumb=function(r,e){var i="number"==typeof e?Math.min(e,100):100;if(i<=0)return this;var o=Pn({timestamp:(0,QT.yW)()},r);return this._breadcrumbs=as(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(r,e){if(this._extra&&Object.keys(this._extra).length&&(r.extra=Pn(Pn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Pn(Pn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Pn(Pn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Pn(Pn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Pn({trace:this._span.getTraceContext()},r.contexts);var i=this._span.transaction&&this._span.transaction.name;i&&(r.tags=Pn({transaction:i},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=as(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,r.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(as(Cle(),this._eventProcessors),r,e)},n.prototype.setSDKProcessingMetadata=function(r){return this._sdkProcessingMetadata=Pn(Pn({},this._sdkProcessingMetadata),r),this},n.prototype._notifyEventProcessors=function(r,e,i,o){var a=this;return void 0===o&&(o=0),new kv(function(s,l){var u=r[o];if(null===e||"function"!=typeof u)s(e);else{var d=u(Pn({},e),i);_W(d)?d.then(function(h){return a._notifyEventProcessors(r,h,i,o+1).then(s)}).then(null,l):a._notifyEventProcessors(r,d,i,o+1).then(s).then(null,l)}})},n.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(r)}),this._notifyingListeners=!1)},n.prototype._applyFingerprint=function(r){r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],this._fingerprint&&(r.fingerprint=r.fingerprint.concat(this._fingerprint)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint},n}();function Cle(){return(0,ba.Y)("globalEventProcessors",function(){return[]})}function kW(n){Cle().push(n)}var tQe=function(){function n(r){this.errors=0,this.sid=JT(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,QT.ph)();this.timestamp=e,this.started=e,r&&this.update(r)}return n.prototype.update=function(r){if(void 0===r&&(r={}),r.user&&(!this.ipAddress&&r.user.ip_address&&(this.ipAddress=r.user.ip_address),!this.did&&!r.did&&(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||(0,QT.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:JT()),void 0!==r.init&&(this.init=r.init),!this.did&&r.did&&(this.did=""+r.did),"number"==typeof r.started&&(this.started=r.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof r.duration)this.duration=r.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),!this.ipAddress&&r.ipAddress&&(this.ipAddress=r.ipAddress),!this.userAgent&&r.userAgent&&(this.userAgent=r.userAgent),"number"==typeof r.errors&&(this.errors=r.errors),r.status&&(this.status=r.status)},n.prototype.close=function(r){r?this.update({status:r}):"ok"===this.status?this.update({status:"exited"}):this.update()},n.prototype.toJSON=function(){return bW({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},n}(),MW=function(){function n(r,e,i){void 0===e&&(e=new WF),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=e,r&&this.bindClient(r)}return n.prototype.isOlderThan=function(r){return this._version<r},n.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},n.prototype.pushScope=function(){var r=WF.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},n.prototype.withScope=function(r){var e=this.pushScope();try{r(e)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(r,e){var i=this._lastEventId=e&&e.event_id?e.event_id:JT(),o=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(s){a=s}o={originalException:r,syntheticException:a}}return this._invokeClient("captureException",r,Pn(Pn({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,e,i){var o=this._lastEventId=i&&i.event_id?i.event_id:JT(),a=i;if(!i){var s=void 0;try{throw new Error(r)}catch(l){s=l}a={originalException:r,syntheticException:s}}return this._invokeClient("captureMessage",r,e,Pn(Pn({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,e){var i=e&&e.event_id?e.event_id:JT();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,Pn(Pn({},e),{event_id:i})),i},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(r,e){var i=this.getStackTop(),o=i.scope,a=i.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},l=s.beforeBreadcrumb,u=void 0===l?null:l,d=s.maxBreadcrumbs,h=void 0===d?100:d;if(!(h<=0)){var g=(0,QT.yW)(),y=Pn({timestamp:g},r),L=u?gle(function(){return u(y,e)}):y;null!==L&&o.addBreadcrumb(L,h)}}},n.prototype.setUser=function(r){var e=this.getScope();e&&e.setUser(r)},n.prototype.setTags=function(r){var e=this.getScope();e&&e.setTags(r)},n.prototype.setExtras=function(r){var e=this.getScope();e&&e.setExtras(r)},n.prototype.setTag=function(r,e){var i=this.getScope();i&&i.setTag(r,e)},n.prototype.setExtra=function(r,e){var i=this.getScope();i&&i.setExtra(r,e)},n.prototype.setContext=function(r,e){var i=this.getScope();i&&i.setContext(r,e)},n.prototype.configureScope=function(r){var e=this.getStackTop(),i=e.scope,o=e.client;i&&o&&r(i)},n.prototype.run=function(r){var e=wle(this);try{r(this)}finally{wle(e)}},n.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return yle&&_i.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},n.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},n.prototype.startTransaction=function(r,e){return this._callExtensionMethod("startTransaction",r,e)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},n.prototype.endSession=function(){var r=this.getStackTop(),e=r&&r.scope,i=e&&e.getSession();i&&i.close(),this._sendSessionUpdate(),e&&e.setSession()},n.prototype.startSession=function(r){var e=this.getStackTop(),i=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,l=a.environment,d=((0,ba.R)().navigator||{}).userAgent,h=new tQe(Pn(Pn(Pn({release:s,environment:l},i&&{user:i.getUser()}),d&&{userAgent:d}),r));if(i){var g=i.getSession&&i.getSession();g&&"ok"===g.status&&g.update({status:"exited"}),this.endSession(),i.setSession(h)}return h},n.prototype._sendSessionUpdate=function(){var r=this.getStackTop(),e=r.scope,i=r.client;if(e){var o=e.getSession&&e.getSession();o&&i&&i.captureSession&&i.captureSession(o)}},n.prototype._invokeClient=function(r){for(var e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=this.getStackTop(),s=a.scope,l=a.client;l&&l[r]&&(e=l)[r].apply(e,as(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=fI(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);yle&&_i.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function fI(){var n=(0,ba.R)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function wle(n){var r=fI(),e=Tv(r);return SW(r,n),e}function pu(){var n=fI();return(!kle(n)||Tv(n).isOlderThan(4))&&SW(n,new MW),(0,eQe.KV)()?function rQe(n){try{var r=fI().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return Tv(n);if(!kle(e)||Tv(e).isOlderThan(4)){var i=Tv(n).getStackTop();SW(e,new MW(i.client,WF.clone(i.scope)))}return Tv(e)}catch(o){return Tv(n)}}(n):Tv(n)}function kle(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function Tv(n){return(0,ba.Y)("hub",function(){return new MW},n)}function SW(n,r){return!!n&&((n.__SENTRY__=n.__SENTRY__||{}).hub=r,!0)}function Qu(n){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=pu();if(i&&i[n])return i[n].apply(i,as(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function Tle(n,r){return Qu("captureException",n,{captureContext:r,originalException:n,syntheticException:new Error("Sentry syntheticException")})}function iQe(n){Qu("withScope",n)}var ss="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,oQe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],aQe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e();if(o){var a=o.getIntegration(n);if(a){var s=o.getClient(),l=s?s.getOptions():{},u=function sQe(n,r){return void 0===n&&(n={}),void 0===r&&(r={}),{allowUrls:as(n.whitelistUrls||[],n.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:as(n.blacklistUrls||[],n.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:as(n.ignoreErrors||[],r.ignoreErrors||[],oQe),ignoreInternal:void 0===n.ignoreInternal||n.ignoreInternal}}(a._options,l);return function lQe(n,r){return r.ignoreInternal&&function pQe(n){try{return"SentryError"===n.exception.values[0].type}catch(r){}return!1}(n)?(ss&&_i.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Xb(n)),!0):function uQe(n,r){return!(!r||!r.length)&&function fQe(n){if(n.message)return[n.message];if(n.exception)try{var r=n.exception.values&&n.exception.values[0]||{},e=r.type,i=void 0===e?"":e,o=r.value,a=void 0===o?"":o;return[""+a,i+": "+a]}catch(s){return ss&&_i.error("Cannot extract message for event "+Xb(n)),[]}return[]}(n).some(function(e){return r.some(function(i){return vW(e,i)})})}(n,r.ignoreErrors)?(ss&&_i.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Xb(n)),!0):function cQe(n,r){if(!r||!r.length)return!1;var e=VF(n);return!!e&&r.some(function(i){return vW(e,i)})}(n,r.denyUrls)?(ss&&_i.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Xb(n)+".\nUrl: "+VF(n)),!0):!function dQe(n,r){if(!r||!r.length)return!0;var e=VF(n);return!e||r.some(function(i){return vW(e,i)})}(n,r.allowUrls)&&(ss&&_i.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Xb(n)+".\nUrl: "+VF(n)),!0)}(i,u)?null:i}}return i})},n.id="InboundFilters",n}();function Mle(n){void 0===n&&(n=[]);for(var r=n.length-1;r>=0;r--){var e=n[r];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}function VF(n){try{if(n.stacktrace)return Mle(n.stacktrace.frames);var r;try{r=n.exception.values[0].stacktrace.frames}catch(e){}return r?Mle(r):null}catch(e){return ss&&_i.error("Cannot extract url for event "+Xb(n)),null}}var Sle,hQe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Sle=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=yW(this)||this;return Sle.apply(i,r)}},n.id="FunctionToString",n}();function vQe(n){if(!n.length)return[];var r=n,e=r[0].function||"",i=r[r.length-1].function||"";return(-1!==e.indexOf("captureMessage")||-1!==e.indexOf("captureException"))&&(r=r.slice(1)),-1!==i.indexOf("sentryWrapped")&&(r=r.slice(0,-1)),r.slice(0,50).map(function(o){return Pn(Pn({},o),{filename:o.filename||r[0].filename,function:o.function||"?"})}).reverse()}var EW="<anonymous>";function Mv(n){try{return n&&"function"==typeof n&&n.name||EW}catch(r){return EW}}function YF(){if(!("fetch"in(0,ba.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function xW(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function bQe(){if(!YF())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var KF,ua=(0,ba.R)(),pI={},Ele={};function wQe(n){if(!Ele[n])switch(Ele[n]=!0,n){case"console":!function kQe(){"console"in ua&&zF.forEach(function(n){n in ua.console&&Fl(ua.console,n,function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];pf("console",{args:e,level:n}),r&&r.apply(ua.console,e)}})})}();break;case"dom":!function PQe(){if("document"in ua){var n=pf.bind(null,"dom"),r=xle(n,!0);ua.document.addEventListener("click",r,!1),ua.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(e){var i=ua[e]&&ua[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Fl(i,"addEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=d[a]=d[a]||{refCount:0};if(!h.handler){var g=xle(n);h.handler=g,o.call(this,a,g,l)}h.refCount+=1}catch(y){}return o.call(this,a,s,l)}}),Fl(i,"removeEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__||{},h=d[a];h&&(h.refCount-=1,h.refCount<=0&&(o.call(this,a,h.handler,l),h.handler=void 0,delete d[a]),0===Object.keys(d).length&&delete u.__sentry_instrumentation_handlers__)}catch(g){}return o.call(this,a,s,l)}}))})}}();break;case"xhr":!function EQe(){if("XMLHttpRequest"in ua){var n=XMLHttpRequest.prototype;Fl(n,"open",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this,a=e[1],s=o.__sentry_xhr__={method:KT(e[0])?e[0].toUpperCase():e[0],url:e[1]};KT(a)&&"POST"===s.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var l=function(){if(4===o.readyState){try{s.status_code=o.status}catch(d){}pf("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Fl(o,"onreadystatechange",function(u){return function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return l(),u.apply(o,d)}}):o.addEventListener("readystatechange",l),r.apply(o,e)}}),Fl(n,"send",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),pf("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),r.apply(this,e)}})}}();break;case"fetch":!function TQe(){!function yQe(){if(!YF())return!1;var n=(0,ba.R)();if(xW(n.fetch))return!0;var r=!1,e=n.document;if(e&&"function"==typeof e.createElement)try{var i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(r=xW(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){XT&&_i.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Fl(ua,"fetch",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i={args:r,fetchData:{method:MQe(r),url:SQe(r)},startTimestamp:Date.now()};return pf("fetch",Pn({},i)),n.apply(ua,r).then(function(o){return pf("fetch",Pn(Pn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw pf("fetch",Pn(Pn({},i),{endTimestamp:Date.now(),error:o})),o})}})}();break;case"history":!function xQe(){if(!function CQe(){var n=(0,ba.R)(),r=n.chrome,e=r&&r.app&&r.app.runtime,i="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!e&&i}())return;var n=ua.onpopstate;function r(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i.length>2?i[2]:void 0;if(a){var s=KF,l=String(a);KF=l,pf("history",{from:s,to:l})}return e.apply(this,i)}}ua.onpopstate=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=ua.location.href,a=KF;if(KF=o,pf("history",{from:a,to:o}),n)try{return n.apply(this,e)}catch(s){}},Fl(ua.history,"pushState",r),Fl(ua.history,"replaceState",r)}();break;case"error":!function IQe(){DW=ua.onerror,ua.onerror=function(n,r,e,i,o){return pf("error",{column:i,error:o,line:e,msg:n,url:r}),!!DW&&DW.apply(this,arguments)}}();break;case"unhandledrejection":!function RQe(){AW=ua.onunhandledrejection,ua.onunhandledrejection=function(n){return pf("unhandledrejection",n),!AW||AW.apply(this,arguments)}}();break;default:return void(XT&&_i.warn("unknown instrumentation type:",n))}}function Sv(n,r){pI[n]=pI[n]||[],pI[n].push(r),wQe(n)}function pf(n,r){var e,i;if(n&&pI[n])try{for(var o=Jm(pI[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){XT&&_i.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+Mv(s)+"\nError:",l)}}}catch(l){e={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}function MQe(n){return void 0===n&&(n=[]),"Request"in ua&&wv(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function SQe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in ua&&wv(n[0],Request)?n[0].url:String(n[0])}var qF,JF;function xle(n,r){return void 0===r&&(r=!1),function(e){if(e&&JF!==e&&!function OQe(n){if("keypress"!==n.type)return!1;try{var r=n.target;if(!r||!r.tagName)return!0;if("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)return!1}catch(e){}return!0}(e)){var i="keypress"===e.type?"input":e.type;(void 0===qF||function AQe(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(e){}return!1}(JF,e))&&(n({event:e,name:i,global:r}),JF=e),clearTimeout(qF),qF=ua.setTimeout(function(){qF=void 0},1e3)}}}var DW=null;var AW=null;var LQe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function ZQe(n,r){return n.__proto__=r,n}:function NQe(n,r){for(var e in r)Object.prototype.hasOwnProperty.call(n,e)||(n[e]=r[e]);return n});var Cs=function(n){function r(e){var i=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=i.prototype.constructor.name,LQe(o,i.prototype),o}return lI(r,n),r}(Error),BQe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hI(n,r){void 0===r&&(r=!1);var e=n.host,i=n.path,o=n.pass,a=n.port,s=n.projectId;return n.protocol+"://"+n.publicKey+(r&&o?":"+o:"")+"@"+e+(a?":"+a:"")+"/"+(i&&i+"/")+s}function Ale(n){return"user"in n&&!("publicKey"in n)&&(n.publicKey=n.user),{user:n.publicKey||"",protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function QF(n){var r="string"==typeof n?function UQe(n){var r=BQe.exec(n);if(!r)throw new Cs("Invalid Sentry Dsn: "+n);var e=fu(r.slice(1),6),i=e[0],o=e[1],a=e[2],s=void 0===a?"":a,l=e[3],u=e[4],d=void 0===u?"":u,g="",y=e[5],L=y.split("/");if(L.length>1&&(g=L.slice(0,-1).join("/"),y=L.pop()),y){var z=y.match(/^\d+/);z&&(y=z[0])}return Ale({host:l,pass:s,path:g,projectId:y,port:d,protocol:i,publicKey:o})}(n):Ale(n);return function jQe(n){if(XT){var r=n.port,e=n.projectId,i=n.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(a){if(!n[a])throw new Cs("Invalid Sentry Dsn: "+a+" missing")}),!e.match(/^\d+$/))throw new Cs("Invalid Sentry Dsn: Invalid projectId "+e);if(!function FQe(n){return"http"===n||"https"===n}(i))throw new Cs("Invalid Sentry Dsn: Invalid protocol "+i);if(r&&isNaN(parseInt(r,10)))throw new Cs("Invalid Sentry Dsn: Invalid port "+r);return!0}}(r),r}function eC(n,r,e){void 0===r&&(r=1/0),void 0===e&&(e=1/0);try{return Ple("",n,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function Ole(n,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=eC(n,r);return function WQe(n){return function zQe(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>e?Ole(n,r-1,e):i}function Ple(n,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function HQe(){var n="function"==typeof WeakSet,r=n?new WeakSet:[];return[function e(o){if(n)return!!r.has(o)||(r.add(o),!1);for(var a=0;a<r.length;a++)if(r[a]===o)return!0;return r.push(o),!1},function i(o){if(n)r.delete(o);else for(var a=0;a<r.length;a++)if(r[a]===o){r.splice(a,1);break}}]}());var a=fu(o,2),s=a[0],l=a[1],u=r;if(u&&"function"==typeof u.toJSON)try{return u.toJSON()}catch(q){}if(null===r||["number","boolean","string"].includes(typeof r)&&!function VJe(n){return"number"==typeof n&&n!=n}(r))return r;var d=function GQe(n,r){try{return"domain"===n&&r&&"object"==typeof r&&r._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&r===global?"[Global]":"undefined"!=typeof window&&r===window?"[Window]":"undefined"!=typeof document&&r===document?"[Document]":function WJe(n){return qT(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}(r)?"[SyntheticEvent]":"number"==typeof r&&r!=r?"[NaN]":void 0===r?"[undefined]":"function"==typeof r?"[Function: "+Mv(r)+"]":"symbol"==typeof r?"["+String(r)+"]":"bigint"==typeof r?"[BigInt: "+String(r)+"]":"[object "+Object.getPrototypeOf(r).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,r);if(!d.startsWith("[object "))return d;if(0===e)return d.replace("object ","");if(s(r))return"[Circular ~]";var h=Array.isArray(r)?[]:{},g=0,y=hW(r)||HF(r)?fle(r):r;for(var L in y)if(Object.prototype.hasOwnProperty.call(y,L)){if(g>=i){h[L]="[MaxProperties ~]";break}var z=y[L];h[L]=Ple(L,z,e-1,i,o),g+=1}return l(r),h}var Ile=[];function Rle(n){return n.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function KQe(n){var r={};return function VQe(n){var r=n.defaultIntegrations&&as(n.defaultIntegrations)||[],e=n.integrations,i=as(Rle(r));Array.isArray(e)?i=as(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),Rle(e)):"function"==typeof e&&(i=e(i),i=Array.isArray(i)?i:[i]);var o=i.map(function(s){return s.name}),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,as(i.splice(o.indexOf(a),1))),i}(n).forEach(function(e){r[e.name]=e,function YQe(n){-1===Ile.indexOf(n.name)&&(n.setupOnce(kW,pu),Ile.push(n.name),ss&&_i.log("Integration installed: "+n.name))}(e)}),GF(r,"initialized",!0),r}var Lle="Not capturing exception because it's already been captured.",qQe=function(){function n(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=QF(e.dsn))}return n.prototype.captureException=function(r,e,i){var o=this;if(!_le(r)){var a=e&&e.event_id;return this._process(this._getBackend().eventFromException(r,e).then(function(s){return o._captureEvent(s,e,i)}).then(function(s){a=s})),a}ss&&_i.log(Lle)},n.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=mW(r)?this._getBackend().eventFromMessage(String(r),e,i):this._getBackend().eventFromException(r,i);return this._process(l.then(function(u){return a._captureEvent(u,i,o)}).then(function(u){s=u})),s},n.prototype.captureEvent=function(r,e,i){if(!(e&&e.originalException&&_le(e.originalException))){var o=e&&e.event_id;return this._process(this._captureEvent(r,e,i).then(function(a){o=a})),o}ss&&_i.log(Lle)},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?ss&&_i.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):ss&&_i.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.getTransport=function(){return this._getBackend().getTransport()},n.prototype.flush=function(r){var e=this;return this._isClientDoneProcessing(r).then(function(i){return e.getTransport().close(r).then(function(o){return i&&o})})},n.prototype.close=function(r){var e=this;return this.flush(r).then(function(i){return e.getOptions().enabled=!1,i})},n.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=KQe(this._options))},n.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(e){return ss&&_i.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(r,e){var i,o,a=!1,s=!1,l=e.exception&&e.exception.values;if(l){s=!0;try{for(var u=Jm(l),d=u.next();!d.done;d=u.next()){var g=d.value.mechanism;if(g&&!1===g.handled){a=!0;break}}}catch(z){i={error:z}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}var y="ok"===r.status;(y&&0===r.errors||y&&a)&&(r.update(Pn(Pn({},a&&{status:"crashed"}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},n.prototype._sendSession=function(r){this._getBackend().sendSession(r)},n.prototype._isClientDoneProcessing=function(r){var e=this;return new kv(function(i){var o=0,s=setInterval(function(){0==e._numProcessing?(clearInterval(s),i(!0)):(o+=1,r&&o>=r&&(clearInterval(s),i(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},n.prototype._prepareEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.normalizeDepth,l=void 0===s?3:s,u=a.normalizeMaxBreadth,d=void 0===u?1e3:u,h=Pn(Pn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:JT()),timestamp:r.timestamp||(0,QT.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var g=e;i&&i.captureContext&&(g=WF.clone(g).update(i.captureContext));var y=$b(h);return g&&(y=g.applyToEvent(h,i)),y.then(function(L){return L&&(L.sdkProcessingMetadata=Pn(Pn({},L.sdkProcessingMetadata),{normalizeDepth:eC(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(L,l,d):L})},n.prototype._normalizeEvent=function(r,e,i){if(!r)return null;var o=Pn(Pn(Pn(Pn(Pn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(a){return Pn(Pn({},a),a.data&&{data:eC(a.data,e,i)})})}),r.user&&{user:eC(r.user,e,i)}),r.contexts&&{contexts:eC(r.contexts,e,i)}),r.extra&&{extra:eC(r.extra,e,i)});return r.contexts&&r.contexts.trace&&(o.contexts.trace=r.contexts.trace),o.sdkProcessingMetadata=Pn(Pn({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},n.prototype._applyClientOptions=function(r){var e=this.getOptions(),i=e.environment,o=e.release,a=e.dist,s=e.maxValueLength,l=void 0===s?250:s;"environment"in r||(r.environment="environment"in e?i:"production"),void 0===r.release&&void 0!==o&&(r.release=o),void 0===r.dist&&void 0!==a&&(r.dist=a),r.message&&(r.message=uI(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=uI(u.value,l));var d=r.request;d&&d.url&&(d.url=uI(d.url,l))},n.prototype._applyIntegrationsMetadata=function(r){var e=Object.keys(this._integrations);e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=as(r.sdk.integrations||[],e))},n.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},n.prototype._captureEvent=function(r,e,i){return this._processEvent(r,e,i).then(function(o){return o.event_id},function(o){ss&&_i.error(o)})},n.prototype._processEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();function d(g,y){u.recordLostEvent&&u.recordLostEvent(g,y)}if(!this._isEnabled())return dI(new Cs("SDK not enabled, will not capture event."));var h="transaction"===r.type;return!h&&"number"==typeof l&&Math.random()>l?(d("sample_rate","event"),dI(new Cs("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(r,i,e).then(function(g){if(null===g)throw d("event_processor",r.type||"event"),new Cs("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||h||!s?g:function JQe(n){var r="`beforeSend` method has to return `null` or a valid event.";if(_W(n))return n.then(function(e){if(!qT(e)&&null!==e)throw new Cs(r);return e},function(e){throw new Cs("beforeSend rejected with "+e)});if(!qT(n)&&null!==n)throw new Cs(r);return n}(s(g,e))}).then(function(g){if(null===g)throw d("before_send",r.type||"event"),new Cs("`beforeSend` returned `null`, will not send event.");var y=i&&i.getSession&&i.getSession();return!h&&y&&o._updateSessionFromEvent(y,g),o._sendEvent(g),g}).then(null,function(g){throw g instanceof Cs?g:(o.captureException(g,{data:{__sentry__:!0},originalException:g}),new Cs("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+g))})},n.prototype._process=function(r){var e=this;this._numProcessing+=1,r.then(function(i){return e._numProcessing-=1,i},function(i){return e._numProcessing-=1,i})},n}();!function(){function n(r,e,i){void 0===e&&(e={}),this.dsn=r,this._dsnObject=QF(r),this.metadata=e,this._tunnel=i}n.prototype.getDsn=function(){return this._dsnObject},n.prototype.forceEnvelope=function(){return!!this._tunnel},n.prototype.getBaseApiEndpoint=function(){return OW(this._dsnObject)},n.prototype.getStoreEndpoint=function(){return Fle(this._dsnObject)},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return PW(this._dsnObject)},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return mI(this._dsnObject,this._tunnel)}}();function XF(n,r,e){return{initDsn:n,metadata:r||{},dsn:QF(n),tunnel:e}}function OW(n){var r=n.protocol?n.protocol+":":"",e=n.port?":"+n.port:"";return r+"//"+n.host+e+(n.path?"/"+n.path:"")+"/api/"}function Nle(n,r){return""+OW(n)+n.projectId+"/"+r+"/"}function Ble(n){return function qJe(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:n.publicKey,sentry_version:"7"})}function Fle(n){return Nle(n,"store")}function PW(n){return Fle(n)+"?"+Ble(n)}function mI(n,r){return r||function QQe(n){return Nle(n,"envelope")}(n)+"?"+Ble(n)}function $F(n,r){return void 0===r&&(r=[]),[n,r]}function e5(n){var r=fu(n,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=fu(s,2),u=l[0],d=l[1],h=mW(d)?String(d):JSON.stringify(d);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function IW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function Ule(n,r){return r&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||r.name,n.sdk.version=n.sdk.version||r.version,n.sdk.integrations=as(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=as(n.sdk.packages||[],r.packages||[])),n}function jle(n,r){var e=IW(r),o="aggregates"in n?"sessions":"session";return[$F(Pn(Pn({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:hI(r.dsn)}),[[{type:o},n]]),o]}var eh,rXe=function(){function n(){}return n.prototype.sendEvent=function(r){return $b({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},n.prototype.close=function(r){return $b(!0)},n}(),iXe=function(){function n(r){this._options=r,this._options.dsn||ss&&_i.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,e){throw new Cs("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,e,i){throw new Cs("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var i=function tXe(n,r){var e=IW(r),i=n.type||"event",a=(n.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return Ule(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata,$F(Pn(Pn({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:hI(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},n]])}(r,XF(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(i).then(null,function(o){ss&&_i.error("Error while sending event:",o)})}else this._transport.sendEvent(r).then(null,function(o){ss&&_i.error("Error while sending event:",o)})},n.prototype.sendSession=function(r){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var o=fu(jle(r,XF(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(o).then(null,function(a){ss&&_i.error("Error while sending session:",a)})}else this._transport.sendSession(r).then(null,function(a){ss&&_i.error("Error while sending session:",a)});else ss&&_i.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new rXe},n}();!function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(eh||(eh={}));function _I(n,r,e,i){var o={filename:n,function:r,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==i&&(o.colno=i),o}var cXe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,dXe=/\((\S*)(?::(\d+))(?::(\d+))\)/,pXe=[30,function(r){var e=cXe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=dXe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=fu(Hle(e[1]||"?",e[2]),2),s=a[0];return _I(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],hXe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,mXe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gXe=[50,function(r){var e,i=hXe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=mXe.exec(i[3]);a&&(i[1]=i[1]||"eval",i[3]=a[1],i[4]=a[2],i[5]="")}var s=i[3],l=i[1]||"?";return l=(e=fu(Hle(l,s),2))[0],_I(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],vXe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bXe=[40,function(r){var e=vXe.exec(r);return e?_I(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],CXe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,kXe=[10,function(r){var e=CXe.exec(r);return e?_I(e[2],e[3]||"?",+e[1]):void 0}],TXe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,SXe=[20,function(r){var e=TXe.exec(r);return e?_I(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],Hle=function(r,e){var i=-1!==r.indexOf("safari-extension"),o=-1!==r.indexOf("safari-web-extension");return i||o?[-1!==r.indexOf("@")?r.split("@")[0]:"?",i?"safari-extension:"+e:"safari-web-extension:"+e]:[r,e]};function Gle(n){var r=LW(n),e={type:n&&n.name,value:AXe(n)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function RW(n){return{exception:{values:[Gle(n)]}}}function LW(n){var r=n.stacktrace||n.stack||"",e=function DXe(n){if(n){if("number"==typeof n.framesToPop)return n.framesToPop;if(xXe.test(n.message))return 1}return 0}(n);try{return function gQe(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var e=n.sort(function(i,o){return i[0]-o[0]}).map(function(i){return i[1]});return function(i,o){var a,s,l,u;void 0===o&&(o=0);var d=[];try{for(var h=Jm(i.split("\n").slice(o)),g=h.next();!g.done;g=h.next()){var y=g.value;try{for(var L=(l=void 0,Jm(e)),z=L.next();!z.done;z=L.next()){var re=(0,z.value)(y);if(re){d.push(re);break}}}catch(ae){l={error:ae}}finally{try{z&&!z.done&&(u=L.return)&&u.call(L)}finally{if(l)throw l.error}}}}catch(ae){a={error:ae}}finally{try{g&&!g.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return vQe(d)}}(kXe,SXe,pXe,bXe,gXe)(r,e)}catch(i){}return[]}var xXe=/Minified React error #\d+;/i;function AXe(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function ZW(n,r,e,i){var o;if(lle(n)&&n.error)return RW(n.error);if(ule(n)||function HJe(n){return YT(n,"DOMException")}(n)){var s=n;if("stack"in n)o=RW(n);else{var l=s.name||(ule(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;wW(o=NW(u,r,e),u)}return"code"in s&&(o.tags=Pn(Pn({},o.tags),{"DOMException.code":""+s.code})),o}return hW(n)?RW(n):qT(n)||HF(n)?(o=function EXe(n,r,e){var i={exception:{values:[{type:HF(n)?n.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+JJe(n)}]},extra:{__serialized__:Ole(n)}};if(r){var o=LW(r);o.length&&(i.stacktrace={frames:o})}return i}(n,r,i),cI(o,{synthetic:!0}),o):(wW(o=NW(n,r,e),""+n,void 0),cI(o,{synthetic:!0}),o)}function NW(n,r,e){var i={message:n};if(e&&r){var o=LW(r);o.length&&(i.stacktrace={frames:o})}return i}function zle(n){var r=[];function i(s){return r.splice(r.indexOf(s),1)[0]}return{$:r,add:function o(s){if(!function e(){return void 0===n||r.length<n}())return dI(new Cs("Not adding Promise due to buffer limit reached."));var l=s();return-1===r.indexOf(l)&&r.push(l),l.then(function(){return i(l)}).then(null,function(){return i(l).then(null,function(){})}),l},drain:function a(s){return new kv(function(l,u){var d=r.length;if(!d)return l(!0);var h=setTimeout(function(){s&&s>0&&l(!1)},s);r.forEach(function(g){$b(g).then(function(){--d||(clearTimeout(h),l(!0))},u)})})}}}function BW(n,r){return n[r]||n.all||0}function Wle(n,r,e){return void 0===e&&(e=Date.now()),BW(n,r)>e}function Vle(n,r,e){var i,o,a,s;void 0===e&&(e=Date.now());var l=Pn({},n),u=r["x-sentry-rate-limits"],d=r["retry-after"];if(u)try{for(var h=Jm(u.trim().split(",")),g=h.next();!g.done;g=h.next()){var L=g.value.split(":",2),z=parseInt(L[0],10),q=1e3*(isNaN(z)?60:z);if(L[1])try{for(var re=(a=void 0,Jm(L[1].split(";"))),ae=re.next();!ae.done;ae=re.next()){l[ae.value]=e+q}}catch(Ce){a={error:Ce}}finally{try{ae&&!ae.done&&(s=re.return)&&s.call(re)}finally{if(a)throw a.error}}else l.all=e+q}}catch(Ce){i={error:Ce}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}else d&&(l.all=e+function RXe(n,r){void 0===r&&(r=Date.now());var e=parseInt(""+n,10);if(!isNaN(e))return 1e3*e;var i=Date.parse(""+n);return isNaN(i)?6e4:i-r}(d,e));return l}function Yle(n){return n>=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown"}function Kle(n,r,e){void 0===e&&(e=zle(n.bufferSize||30));var i={};return{send:function a(s){var l=function $Qe(n){var r=fu(n,2),e=fu(r[1],1);return fu(e[0],1)[0].type}(s),u="event"===l?"error":l,d={category:u,body:e5(s)};return Wle(i,u)?dI({status:"rate_limit",reason:qle(i,u)}):e.add(function(){return r(d).then(function(y){var L=y.body,z=y.headers,q=y.reason,ae=Yle(y.statusCode);return z&&(i=Vle(i,z)),"success"===ae?$b({status:ae,reason:q}):dI({status:ae,reason:q||L||("rate_limit"===ae?qle(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function qle(n,r){return"Too many "+r+" requests, backing off until: "+new Date(BW(n,r)).toISOString()}var t5,yd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hf=(0,ba.R)();function FW(){if(t5)return t5;if(xW(hf.fetch))return t5=hf.fetch.bind(hf);var n=hf.document,r=hf.fetch;if(n&&"function"==typeof n.createElement)try{var e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);var i=e.contentWindow;i&&i.fetch&&(r=i.fetch),n.head.removeChild(e)}catch(o){yd&&_i.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return t5=r.bind(hf)}function NXe(n,r){return"[object Navigator]"===Object.prototype.toString.call(hf&&hf.navigator)&&"function"==typeof hf.navigator.sendBeacon?hf.navigator.sendBeacon.bind(hf.navigator)(n,r):YF()?function ZXe(n){n.then(null,function(r){console.error(r)})}(FW()(n,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function UW(n){return"event"===n?"error":n}var jW=(0,ba.R)(),Jle=function(){function n(r){var e=this;this.options=r,this._buffer=zle(30),this._rateLimits={},this._outcomes={},this._api=XF(r.dsn,r._metadata,r.tunnel),this.url=PW(this._api.dsn),this.options.sendClientReports&&jW.document&&jW.document.addEventListener("visibilitychange",function(){"hidden"===jW.document.visibilityState&&e._flushOutcomes()})}return n.prototype.sendEvent=function(r){return this._sendRequest(function nXe(n,r){var d,e=IW(r),i=n.type||"event",o="transaction"===i||!!r.tunnel,s=(n.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;Ule(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata;try{d=JSON.stringify(n)}catch(q){n.tags.JSONStringifyError=!0,n.extra.JSONStringifyError=q;try{d=JSON.stringify(eC(n))}catch(re){var h=re;d=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var g={body:d,type:i,url:o?mI(r.dsn,r.tunnel):PW(r.dsn)};if(o){var z=$F(Pn(Pn({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:hI(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},g.body]]);g.body=e5(z)}return g}(r,this._api),r)},n.prototype.sendSession=function(r){return this._sendRequest(function eXe(n,r){var e=fu(jle(n,r),2),i=e[0],o=e[1];return{body:e5(i),type:o,url:mI(r.dsn,r.tunnel)}}(r,this._api),r)},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype.recordLostEvent=function(r,e){var i;if(this.options.sendClientReports){var o=UW(e)+":"+r;yd&&_i.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},n.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void(yd&&_i.log("No outcomes to flush"));yd&&_i.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var e=mI(this._api.dsn,this._api.tunnel),o=function FXe(n,r,e){return $F(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,QT.yW)(),discarded_events:n}]])}(Object.keys(r).map(function(a){var s=fu(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&hI(this._api.dsn));try{NXe(e,e5(o))}catch(a){yd&&_i.error(a)}}},n.prototype._handleResponse=function(r){var e=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,l=Yle(i.status);this._rateLimits=Vle(this._rateLimits,o),this._isRateLimited(e)&&yd&&_i.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==l?s(i):a({status:l})},n.prototype._disabledUntil=function(r){var e=UW(r);return new Date(BW(this._rateLimits,e))},n.prototype._isRateLimited=function(r){var e=UW(r);return Wle(this._rateLimits,e)},n}(),UXe=function(n){function r(e,i){void 0===i&&(i=FW());var o=n.call(this,e)||this;return o._fetch=i,o}return lI(r,n),r.prototype._sendRequest=function(e,i){var o=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var a={body:e.body,method:"POST",referrerPolicy:bQe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(a,this.options.fetchParameters),void 0!==this.options.headers&&(a.headers=this.options.headers),this._buffer.add(function(){return new kv(function(s,l){o._fetch(e.url,a).then(function(u){var d={"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")};o._handleResponse({requestType:e.type,response:u,headers:d,resolve:s,reject:l})}).catch(l)})}).then(void 0,function(s){throw s instanceof Cs?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),s})},r}(Jle);var GXe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return lI(r,n),r.prototype._sendRequest=function(e,i){var o=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new kv(function(a,s){var l=new XMLHttpRequest;for(var u in l.onreadystatechange=function(){if(4===l.readyState){var d={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};o._handleResponse({requestType:e.type,response:l,headers:d,resolve:a,reject:s})}},l.open("POST",e.url),o.options.headers)Object.prototype.hasOwnProperty.call(o.options.headers,u)&&l.setRequestHeader(u,o.options.headers[u]);l.send(e.body)})}).then(void 0,function(a){throw a instanceof Cs?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),a})},r}(Jle),zXe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return lI(r,n),r.prototype.eventFromException=function(e,i){return function OXe(n,r,e){var o=ZW(n,r&&r.syntheticException||void 0,e);return cI(o),o.level=eh.Error,r&&r.event_id&&(o.event_id=r.event_id),$b(o)}(e,i,this._options.attachStacktrace)},r.prototype.eventFromMessage=function(e,i,o){return void 0===i&&(i=eh.Info),function PXe(n,r,e,i){void 0===r&&(r=eh.Info);var a=NW(n,e&&e.syntheticException||void 0,i);return a.level=r,e&&e.event_id&&(a.event_id=e.event_id),$b(a)}(e,i,o,this._options.attachStacktrace)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var e=Pn(Pn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=XF(e.dsn,e._metadata,e.tunnel),o=mI(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(YF()){var a=Pn({},e.fetchParameters);return this._newTransport=function BXe(n,r){return void 0===r&&(r=FW()),Kle({bufferSize:n.bufferSize},function e(i){var o=Pn({body:i.body,method:"POST",referrerPolicy:"origin"},n.requestOptions);return r(n.url,o).then(function(a){return a.text().then(function(s){return{body:s,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")},reason:a.statusText,statusCode:a.status}})})})}({requestOptions:a,url:o}),new UXe(e)}return this._newTransport=function HXe(n){return Kle({bufferSize:n.bufferSize},function r(e){return new kv(function(i,o){var a=new XMLHttpRequest;for(var s in a.onreadystatechange=function(){if(4===a.readyState){var l={body:a.response,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")},reason:a.statusText,statusCode:a.status};i(l)}},a.open("POST",n.url),n.headers)Object.prototype.hasOwnProperty.call(n.headers,s)&&a.setRequestHeader(s,n.headers[s]);a.send(e.body)})})}({url:o,headers:e.headers}),new GXe(e)},r}(iXe),n5=(0,ba.R)(),HW=0;function Qle(){return HW>0}function WXe(){HW+=1,setTimeout(function(){HW-=1})}function eM(n,r,e){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{var i=n.__sentry_wrapped__;if(i)return i;if(yW(n))return n}catch(l){return n}var o=function(){var u=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);var d=u.map(function(h){return eM(h,r)});return n.apply(this,d)}catch(h){throw WXe(),iQe(function(g){g.addEventProcessor(function(y){return r.mechanism&&(wW(y,void 0,void 0),cI(y,r.mechanism)),y.extra=Pn(Pn({},y.extra),{arguments:u}),y}),Tle(h)}),h}};try{for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}catch(l){}dle(o,n),GF(n,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return n.name}})}catch(l){}return o}function VXe(n){if(void 0===n&&(n={}),n5.document){if(!n.eventId)return void(yd&&_i.error("Missing eventId option in showReportDialog call"));if(!n.dsn)return void(yd&&_i.error("Missing dsn option in showReportDialog call"));var r=n5.document.createElement("script");r.async=!0,r.src=function XQe(n,r){var e=QF(n),i=OW(e)+"embed/error-page/",o="dsn="+hI(e);for(var a in r)if("dsn"!==a)if("user"===a){if(!r.user)continue;r.user.name&&(o+="&name="+encodeURIComponent(r.user.name)),r.user.email&&(o+="&email="+encodeURIComponent(r.user.email))}else o+="&"+encodeURIComponent(a)+"="+encodeURIComponent(r[a]);return i+"?"+o}(n.dsn,n),n.onLoad&&(r.onload=n.onLoad);var e=n5.document.head||n5.document.body;e&&e.appendChild(r)}}var YXe=["fatal","error","warning","log","info","debug","critical"];function qXe(n){return"warn"===n?eh.Warning:function KXe(n){return-1!==YXe.indexOf(n)}(n)?n:eh.Log}var Xle=function(){function n(r){this.name=n.id,this._options=Pn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||pu().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:Xb(r)},{event:r})},n.prototype.setupOnce=function(){this._options.console&&Sv("console",QXe),this._options.dom&&Sv("dom",function JXe(n){function r(e){var i,o="object"==typeof n?n.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?gW(e.event.target,o):gW(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&pu().addBreadcrumb({category:"ui."+e.name,message:i},{event:e.event,name:e.name,global:e.global})}return r}(this._options.dom)),this._options.xhr&&Sv("xhr",XXe),this._options.fetch&&Sv("fetch",$Xe),this._options.history&&Sv("history",e$e)},n.id="Breadcrumbs",n}();function QXe(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:qXe(n.level),message:cle(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(cle(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}pu().addBreadcrumb(r,{input:n.args,level:n.level})}function XXe(n){if(n.endTimestamp){if(n.xhr.__sentry_own_request__)return;var r=n.xhr.__sentry_xhr__||{},e=r.method,i=r.url,o=r.status_code,a=r.body;pu().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:n.xhr,input:a})}else;}function $Xe(n){!n.endTimestamp||n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?pu().addBreadcrumb({category:"fetch",data:n.fetchData,level:eh.Error,type:"http"},{data:n.error,input:n.args}):pu().addBreadcrumb({category:"fetch",data:Pn(Pn({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response}))}function e$e(n){var r=(0,ba.R)(),e=n.from,i=n.to,o=CW(r.location.href),a=CW(e),s=CW(i);a.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(e=a.relative),pu().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var t$e=function(n){function r(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},n.call(this,zXe,e)||this}return lI(r,n),r.prototype.showReportDialog=function(e){if(void 0===e&&(e={}),(0,ba.R)().document){if(!this._isEnabled())return void(yd&&_i.error("Trying to call showReportDialog with Sentry Client disabled"));VXe(Pn(Pn({},e),{dsn:e.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(e,i,o){return e.platform=e.platform||"javascript",n.prototype._prepareEvent.call(this,e,i,o)},r.prototype._sendEvent=function(e){var i=this.getIntegration(Xle);i&&i.addSentryBreadcrumb(e),n.prototype._sendEvent.call(this,e)},r}(qQe),n$e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],r$e=function(){function n(r){this.name=n.id,this._options=Pn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,ba.R)();this._options.setTimeout&&Fl(r,"setTimeout",$le),this._options.setInterval&&Fl(r,"setInterval",$le),this._options.requestAnimationFrame&&Fl(r,"requestAnimationFrame",i$e),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Fl(XMLHttpRequest.prototype,"send",o$e);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:n$e).forEach(a$e)},n.id="TryCatch",n}();function $le(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=eM(i,{mechanism:{data:{function:Mv(n)},handled:!0,type:"instrument"}}),n.apply(this,r)}}function i$e(n){return function(r){return n.apply(this,[eM(r,{mechanism:{data:{function:"requestAnimationFrame",handler:Mv(n)},handled:!0,type:"instrument"}})])}}function o$e(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach(function(a){a in i&&"function"==typeof i[a]&&Fl(i,a,function(s){var l={mechanism:{data:{function:a,handler:Mv(s)},handled:!0,type:"instrument"}},u=yW(s);return u&&(l.mechanism.data.handler=Mv(u)),eM(s,l)})}),n.apply(this,r)}}function a$e(n){var r=(0,ba.R)(),e=r[n]&&r[n].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(Fl(e,"addEventListener",function(i){return function(o,a,s){try{"function"==typeof a.handleEvent&&(a.handleEvent=eM(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:Mv(a),target:n},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,eM(a,{mechanism:{data:{function:"addEventListener",handler:Mv(a),target:n},handled:!0,type:"instrument"}}),s])}}),Fl(e,"removeEventListener",function(i){return function(o,a,s){var l=a;try{var u=l&&l.__sentry_wrapped__;u&&i.call(this,o,u,s)}catch(d){}return i.call(this,o,l,s)}}))}var GW=function(){function n(r){this.name=n.id,this._installFunc={onerror:s$e,onunhandledrejection:l$e},this._options=Pn({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50;var r=this._options;for(var e in r){var i=this._installFunc[e];i&&r[e]&&(d$e(e),i(),this._installFunc[e]=void 0)}},n.id="GlobalHandlers",n}();function s$e(){Sv("error",function(n){var r=fu(nue(),2),e=r[0],i=r[1];if(e.getIntegration(GW)){var o=n.msg,a=n.url,s=n.line,l=n.column,u=n.error;if(!(Qle()||u&&u.__sentry_own_request__)){var d=void 0===u&&KT(o)?function c$e(n,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=lle(n)?n.message:n,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),eue({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):eue(ZW(u||o,void 0,i,!1),a,s,l);d.level=eh.Error,tue(e,u,d,"onerror")}}})}function l$e(){Sv("unhandledrejection",function(n){var r=fu(nue(),2),e=r[0],i=r[1];if(e.getIntegration(GW)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(s){}if(Qle()||o&&o.__sentry_own_request__)return!0;var a=mW(o)?function u$e(n){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n)}]}}}(o):ZW(o,void 0,i,!0);a.level=eh.Error,tue(e,o,a,"onunhandledrejection")}})}function eue(n,r,e,i){var o=n.exception=n.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(e,10))?void 0:e,g=KT(r)&&r.length>0?r:function KJe(){var n=(0,ba.R)();try{return n.document.location.href}catch(r){return""}}();return 0===u.length&&u.push({colno:d,filename:g,function:"?",in_app:!0,lineno:h}),n}function d$e(n){yd&&_i.log("Global Handler attached: "+n)}function tue(n,r,e,i){cI(e,{handled:!1,type:i}),n.captureEvent(e,{originalException:r})}function nue(){var n=pu(),r=n.getClient();return[n,r&&r.getOptions().attachStacktrace]}var h$e=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._key=r.key||"cause",this._limit=r.limit||5}return n.prototype.setupOnce=function(){kW(function(r,e){var i=pu().getIntegration(n);return i?function m$e(n,r,e,i){if(!(e.exception&&e.exception.values&&i&&wv(i.originalException,Error)))return e;var o=rue(r,i.originalException,n);return e.exception.values=as(o,e.exception.values),e}(i._key,i._limit,r,e):r})},n.id="LinkedErrors",n}();function rue(n,r,e,i){if(void 0===i&&(i=[]),!wv(r[e],Error)||i.length+1>=n)return i;var o=Gle(r[e]);return rue(n,r[e],e,as([o],i))}var _$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e().getIntegration(n);if(o){try{if(function g$e(n,r){return!!r&&!(!function v$e(n,r){var e=n.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!oue(n,r)||!iue(n,r))}(n,r)&&!function y$e(n,r){var e=aue(r),i=aue(n);return!!(e&&i&&e.type===i.type&&e.value===i.value&&oue(n,r)&&iue(n,r))}(n,r))}(i,o._previousEvent))return yd&&_i.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return o._previousEvent=i}return o._previousEvent=i}return i})},n.id="Dedupe",n}();function iue(n,r){var e=sue(n),i=sue(r);if(!e&&!i)return!0;if(e&&!i||!e&&i||i.length!==e.length)return!1;for(var o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function oue(n,r){var e=n.fingerprint,i=r.fingerprint;if(!e&&!i)return!0;if(e&&!i||!e&&i)return!1;try{return e.join("")===i.join("")}catch(o){return!1}}function aue(n){return n.exception&&n.exception.values&&n.exception.values[0]}function sue(n){var r=n.exception;if(r)try{return r.values[0].stacktrace.frames}catch(e){return}else if(n.stacktrace)return n.stacktrace.frames}var tC=(0,ba.R)(),b$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){kW(function(r){if(pu().getIntegration(n)){if(!tC.navigator&&!tC.location&&!tC.document)return r;var e=r.request&&r.request.url||tC.location&&tC.location.href,i=(tC.document||{}).referrer,o=(tC.navigator||{}).userAgent,a=Pn(Pn(Pn({},r.request&&r.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),s=Pn(Pn({},e&&{url:e}),{headers:a});return Pn(Pn({},r),{request:s})}return r})},n.id="UserAgent",n}(),C$e=[new aQe,new hQe,new r$e,new Xle,new GW,new h$e,new _$e,new b$e];function lue(n){n.startSession({ignoreDuration:!0}),n.captureSession()}!function w$e(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=C$e),void 0===n.release){var r=(0,ba.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),void 0===n.sendClientReports&&(n.sendClientReports=!0),function mQe(n,r){!0===r.debug&&(ss?_i.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=pu(),i=e.getScope();i&&i.update(r.initialScope);var o=new n(r);e.bindClient(o)}(t$e,n),n.autoSessionTracking&&function k$e(){if(void 0===(0,ba.R)().document)return void(yd&&_i.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=pu();!e.captureSession||(lue(e),Sv("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||lue(pu())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var tM=function(){function n(r){(0,B.Z)(this,n),this.injector=r}return(0,U.Z)(n,[{key:"extractError",value:function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof fc.UA?e.error instanceof Error?e.error:e.error instanceof ErrorEvent?e.error.message:"string"==typeof e.error?"Server returned code ".concat(e.status,' with body "').concat(e.error,'"'):e.message:null}},{key:"handleError",value:function(e){var i=this.extractError(e)||"Handled unknown error";Tle(i);Ha.N.production||console.error(i)}}]),n}();tM.\u0275fac=function(r){return new(r||tM)(t.LFG(t.zs3))},tM.\u0275prov=t.Yz7({token:tM,factory:tM.\u0275fac});var nC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"handleError",value:function(o){if(o.error&&o.error.status&&!(400===o.error.status||403===o.error.status||404===o.error.status||409===o.error.status)&&(0,Ut.Z)((0,Wt.Z)(e.prototype),"handleError",this).call(this,o),o){var a=this.injector.get(Zn);o.error&&o.error.message?a.error(o.error.message):o.message?a.error(o.message):o.error&&a.error(o.error)}}}]),e}(tM);nC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nC)))(e||nC)}}(),nC.\u0275prov=t.Yz7({token:nC,factory:nC.\u0275fac});var gI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.projectDatabase.data.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();gI.\u0275fac=function(r){return new(r||gI)},gI.\u0275pipe=t.Yjl({name:"projectsfilter",type:gI,pure:!0});var uue=["*"],M$e=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],x$e=function(){function n(){(0,B.Z)(this,n),this.columnIndex=0,this.rowIndex=0}return(0,U.Z)(n,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,(0,cn.Z)(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}},{key:"update",value:function(e,i){var o=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=i.map(function(a){return o._trackTile(a)})}},{key:"_trackTile",value:function(e){var i=this._findMatchingGap(e.colspan);return this._markTilePosition(i,e),this.columnIndex=i+e.colspan,new D$e(this.rowIndex,i)}},{key:"_findMatchingGap",value:function(e){this.tracker.length;var i=-1,o=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i)):-1!=(i=this.tracker.indexOf(0,this.columnIndex))?(o=this._findGapEndIndex(i),this.columnIndex=i+1):(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i))}while(o-i<e||0==o);return Math.max(i,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var i=e+1;i<this.tracker.length;i++)if(0!=this.tracker[i])return i;return this.tracker.length}},{key:"_markTilePosition",value:function(e,i){for(var o=0;o<i.colspan;o++)this.tracker[e+o]=i.rowspan}}]),n}(),D$e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.row=r,this.col=e}),cue=new t.OlP("MAT_GRID_LIST"),vI=function(){function n(r,e){(0,B.Z)(this,n),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,U.Z)(n,[{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round((0,En.su)(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round((0,En.su)(e))}},{key:"_setStyle",value:function(e,i){this._element.nativeElement.style[e]=i}}]),n}();vI.\u0275fac=function(r){return new(r||vI)(t.Y36(t.SBq),t.Y36(cue,8))},vI.\u0275cmp=t.Xpm({type:vI,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(r,e){2&r&&t.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:uue,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var r5=function(){function n(r){(0,B.Z)(this,n),this._element=r}return(0,U.Z)(n,[{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}}]),n}();r5.\u0275fac=function(r){return new(r||r5)(t.Y36(t.SBq))},r5.\u0275cmp=t.Xpm({type:r5,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Gt.X2,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lines=o))},ngContentSelectors:["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(r,e){1&r&&(t.F$t(M$e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var i5=(0,U.Z)(function n(){(0,B.Z)(this,n)});i5.\u0275fac=function(r){return new(r||i5)},i5.\u0275dir=t.lG2({type:i5,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var o5=(0,U.Z)(function n(){(0,B.Z)(this,n)});o5.\u0275fac=function(r){return new(r||o5)},o5.\u0275dir=t.lG2({type:o5,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var a5=(0,U.Z)(function n(){(0,B.Z)(this,n)});a5.\u0275fac=function(r){return new(r||a5)},a5.\u0275dir=t.lG2({type:a5,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var A$e=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,zW=function(){function n(){(0,B.Z)(this,n),this._rows=0,this._rowspan=0}return(0,U.Z)(n,[{key:"init",value:function(e,i,o,a){this._gutterSize=due(e),this._rows=i.rowCount,this._rowspan=i.rowspan,this._cols=o,this._direction=a}},{key:"getBaseTileSize",value:function(e,i){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(i,"))")}},{key:"getTilePosition",value:function(e,i){return 0===i?"0":rC("(".concat(e," + ").concat(this._gutterSize,") * ").concat(i))}},{key:"getTileSize",value:function(e,i){return"(".concat(e," * ").concat(i,") + (").concat(i-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,i,o){var a=100/this._cols,s=(this._cols-1)/this._cols;this.setColStyles(e,o,a,s),this.setRowStyles(e,i,a,s)}},{key:"setColStyles",value:function(e,i,o,a){var s=this.getBaseTileSize(o,a),l="rtl"===this._direction?"right":"left";e._setStyle(l,this.getTilePosition(s,i)),e._setStyle("width",rC(this.getTileSize(s,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),n}(),O$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,U.Z)(e,[{key:"init",value:function(o,a,s,l){(0,Ut.Z)((0,Wt.Z)(e.prototype),"init",this).call(this,o,a,s,l),this.fixedRowHeight=due(this.fixedRowHeight),A$e.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(o,a){o._setStyle("top",this.getTilePosition(this.fixedRowHeight,a)),o._setStyle("height",rC(this.getTileSize(this.fixedRowHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",rC("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(o){o._setListStyle(["height",null]),o._tiles&&o._tiles.forEach(function(a){a._setStyle("top",null),a._setStyle("height",null)})}}]),e}(zW),P$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,U.Z)(e,[{key:"setRowStyles",value:function(o,a,s,l){var u=s/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(u,l),o._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,a)),o._setStyle("paddingTop",rC(this.getTileSize(this.baseTileHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",rC("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(o){o._setListStyle(["paddingBottom",null]),o._tiles.forEach(function(a){a._setStyle("marginTop",null),a._setStyle("paddingTop",null)})}},{key:"_parseRatio",value:function(o){var a=o.split(":");a.length,this.rowHeightRatio=parseFloat(a[0])/parseFloat(a[1])}}]),e}(zW),I$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"setRowStyles",value:function(o,a){var s=100/this._rowspan,l=(this._rows-1)/this._rows,u=this.getBaseTileSize(s,l);o._setStyle("top",this.getTilePosition(u,a)),o._setStyle("height",rC(this.getTileSize(u,o.rowspan)))}},{key:"reset",value:function(o){o._tiles&&o._tiles.forEach(function(a){a._setStyle("top",null),a._setStyle("height",null)})}}]),e}(zW);function rC(n){return"calc(".concat(n,")")}function due(n){return n.match(/([A-Za-z%]+)$/)?n:"".concat(n,"px")}var yI=function(){function n(r,e){(0,B.Z)(this,n),this._element=r,this._dir=e,this._gutter="1px"}return(0,U.Z)(n,[{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round((0,En.su)(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var i="".concat(null==e?"":e);i!==this._rowHeight&&(this._rowHeight=i,this._setTileStyler(this._rowHeight))}},{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){this.cols}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),"fit"===e?this._tileStyler=new I$e:e&&e.indexOf(":")>-1?this._tileStyler=new P$e(e):this._tileStyler=new O$e(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new x$e);var i=this._tileCoordinator,o=this._tiles.filter(function(s){return!s._gridList||s._gridList===e}),a=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,o),this._tileStyler.init(this.gutterSize,i,this.cols,a),o.forEach(function(s,l){var u=i.positions[l];e._tileStyler.setStyle(s,u.row,u.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}]),n}();yI.\u0275fac=function(r){return new(r||yI)(t.Y36(t.SBq),t.Y36(nl.Is,8))},yI.\u0275cmp=t.Xpm({type:yI,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,vI,5),2&r)&&(t.iGM(o=t.CRH())&&(e._tiles=o))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:cue,useExisting:yI}])],ngContentSelectors:uue,decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var nM=(0,U.Z)(function n(){(0,B.Z)(this,n)});nM.\u0275fac=function(r){return new(r||nM)},nM.\u0275mod=t.oAB({type:nM}),nM.\u0275inj=t.cJS({imports:[Gt.uc,Gt.BQ,Gt.uc,Gt.BQ]});var rM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,U.Z)(e,[{key:"ngOnInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}((0,Gt.sb)((0,Gt.Id)(du)));rM.\u0275fac=function(r){return new(r||rM)(t.Y36(t.SBq),t.Y36(Ju),t.$8M("tabindex"))},rM.\u0275dir=t.lG2({type:rM,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:du,useExisting:rM}]),t.qOj]});var iC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Km);iC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(iC)))(e||iC)}}(),iC.\u0275dir=t.lG2({type:iC,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:Km,useExisting:iC}]),t.qOj]});var Ev=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,U.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(o){this._tabIndex=null!=o?o:0}},{key:"ngOnInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngAfterContentInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}($p);Ev.\u0275fac=function(r){return new(r||Ev)(t.Y36(t.SBq),t.Y36(Ju),t.Y36(t.ZZ4),t.$8M("tabindex"))},Ev.\u0275dir=t.lG2({type:Ev,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:$p,useExisting:Ev},{provide:du,useExisting:Ev},{provide:UF,useExisting:Ev}]),t.qOj]});var oC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"level",get:function(){return this._level},set:function(o){this._setLevelInput(o)}},{key:"indent",get:function(){return this._indent},set:function(o){this._setIndentInput(o)}}]),e}(Kb);oC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(oC)))(e||oC)}}(),oC.\u0275dir=t.lG2({type:oC,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[t._Bn([{provide:Kb,useExisting:oC}]),t.qOj]});var xv=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this._node=e});xv.\u0275fac=function(r){return new(r||xv)(t.Y36(t.s_b),t.Y36(UF,8))},xv.\u0275dir=t.lG2({type:xv,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:Xp,useExisting:xv}])]});var aC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Ju);aC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(aC)))(e||aC)}}(),aC.\u0275cmp=t.Xpm({type:aC,selectors:[["mat-tree"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(xv,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:Ju,useExisting:aC}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[xv],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2});var sC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Cv);sC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(sC)))(e||sC)}}(),sC.\u0275dir=t.lG2({type:sC,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:Cv,useExisting:sC}]),t.qOj]});var iM=(0,U.Z)(function n(){(0,B.Z)(this,n)});iM.\u0275fac=function(r){return new(r||iM)},iM.\u0275mod=t.oAB({type:iM}),iM.\u0275inj=t.cJS({imports:[qb,Gt.BQ,Gt.BQ]});Si.o2,Si.o2;var Z$e=[dT,pm,Ig,ck,DT,Og,kn.lN,dk,bk,Sk,Lk,ak,W0,ob,mk,gk,hT,ri.LD,G0,Rk,kk,nM,Fi.Nh,iM,Db,ET],lC=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),Ha.N.production&&r.events.subscribe(function(i){e.getStatisticsSettings()&&i instanceof Jd&&(gtag("set","page",i.url),gtag("send","pageview"))})});lC.\u0275fac=function(r){return new(r||lC)(t.LFG(ur),t.LFG(Gm.g))},lC.\u0275prov=t.Yz7({token:lC,factory:lC.\u0275fac});var oM=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/settings")}},{key:"update",value:function(e,i){return this.httpController.post(e,"/settings",i)}},{key:"getSettingsForQemu",value:function(e){return this.httpController.get(e,"/settings/qemu")}},{key:"updateSettingsForQemu",value:function(e,i){return this.httpController.put(e,"/settings/qemu",{enable_hardware_acceleration:i.enable_hardware_acceleration,require_hardware_acceleration:i.require_hardware_acceleration})}}]),n}();oM.\u0275fac=function(r){return new(r||oM)(t.LFG(ho.zw))},oM.\u0275prov=t.Yz7({token:oM,factory:oM.\u0275fac});var aM=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.loginService=e}return(0,U.Z)(n,[{key:"intercept",value:function(e,i){var o=this;return i.handle(e).pipe((0,ed.K)(function(a){if(401!==a.status&&403!==a.status)return(0,O0._)(a);o.call()}))}},{key:"call",value:function(){var e;return wi(this,void 0,void 0,Rn().mark(function i(){var o,a,s,l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null,a=this.loginService.controller_id,d.next=4,this.controllerService.get(parseInt(a,10));case 4:return(s=d.sent).tokenExpired=!0,d.next=8,this.controllerService.update(s);case 8:if(d.prev=8,!o||!o.isRememberMe){d.next=20;break}return d.next=12,this.loginService.getLoggedUserRefToken(s,o);case 12:return l=d.sent,s.authToken=l.access_token,s.tokenExpired=!1,d.next=17,this.controllerService.update(s);case 17:return d.next=19,this.loginService.getLoggedUser(s);case 19:this.reloadCurrentRoute();case 20:d.next=25;break;case 22:throw d.prev=22,d.t0=d.catch(8),d.t0;case 25:case"end":return d.stop()}},i,this,[[8,22]])}))}},{key:"reloadCurrentRoute",value:function(){location.reload()}}]),n}();aM.\u0275fac=function(r){return new(r||aM)(t.LFG(or),t.LFG(_m))},aM.\u0275prov=t.Yz7({token:aM,factory:aM.\u0275fac});var N$e=["input"],B$e=function(r){return{enterDuration:r}},U$e=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),j$e=0,H$e={provide:J.JU,useExisting:(0,t.Gpc)(function(){return bI}),multi:!0},G$e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.checked=e}),z$e=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)((0,Gt.Id)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}())))),s5=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,i))._focusMonitor=o,h._changeDetectorRef=a,h.defaults=l,h._onChange=function(g){},h._onTouched=function(){},h._required=!1,h._checked=!1,h.name=null,h.labelPosition="after",h.ariaLabel=null,h.ariaLabelledby=null,h.change=new t.vpe,h.toggleChange=new t.vpe,h.tabIndex=parseInt(s)||0,h.color=h.defaultColor=l.color||"accent",h._noopAnimations="NoopAnimations"===u,h.id=h._uniqueId="".concat(d).concat(++j$e),h}return(0,U.Z)(e,[{key:"required",get:function(){return this._required},set:function(o){this._required=(0,En.Ig)(o)}},{key:"checked",get:function(){return this._checked},set:function(o){this._checked=(0,En.Ig)(o),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){"keyboard"===a||"program"===a?o._focused=!0:a||Promise.resolve().then(function(){o._focused=!1,o._onTouched(),o._changeDetectorRef.markForCheck()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this._changeDetectorRef.markForCheck()}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}]),e}(z$e);s5.\u0275fac=function(r){t.$Z()},s5.\u0275dir=t.lG2({type:s5,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[t.qOj]});var bI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){return(0,B.Z)(this,e),r.call(this,i,o,a,s,l,u,"mat-slide-toggle-")}return(0,U.Z)(e,[{key:"_createChangeEvent",value:function(o){return new G$e(this,o)}},{key:"_onChangeEvent",value:function(o){o.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(o){o.stopPropagation()}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),e}(s5);bI.\u0275fac=function(r){return new(r||bI)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(U$e),t.Y36(t.QbO,8))},bI.\u0275cmp=t.Xpm({type:bI,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(N$e,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),t.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([H$e]),t.qOj],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onChangeEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()()(),t.TgZ(9,"span",9,10),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(11,"span",11),t._uU(12,"\xa0"),t.qZA(),t.Hsn(13),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(10);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),t.uIk("name",e.name)("aria-checked",e.checked)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(4),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,B$e,e._noopAnimations?0:150))}},dependencies:[Gt.wG,jB.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0});var W$e={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return sM}),multi:!0},sM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(J.Zs);sM.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(sM)))(e||sM)}}(),sM.\u0275dir=t.lG2({type:sM,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[t._Bn([W$e]),t.qOj]});var uC=(0,U.Z)(function n(){(0,B.Z)(this,n)});uC.\u0275fac=function(r){return new(r||uC)},uC.\u0275mod=t.oAB({type:uC}),uC.\u0275inj=t.cJS({});var lM=(0,U.Z)(function n(){(0,B.Z)(this,n)});lM.\u0275fac=function(r){return new(r||lM)},lM.\u0275mod=t.oAB({type:lM}),lM.\u0275inj=t.cJS({imports:[uC,Gt.si,Gt.BQ,jB.Q8,uC,Gt.BQ]});var uM=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._googleAnalyticsService=r});uM.\u0275fac=function(r){return new(r||uM)(t.LFG(lC))},uM.\u0275mod=t.oAB({type:uM,bootstrap:[sI]}),uM.\u0275inj=t.cJS({providers:[Gm.g,{provide:t.qLn,useClass:nC},{provide:fc.TP,useClass:aM,multi:!0},gm,cG,Vs.Y,Op,or,Xd,Fr,pl,Wa,ho.zw,Ym,mv,Zn,El,fv,jm.F,za.G,Qb,_v,Ll,xb,ya,ho.CJ,Dp,Ku,Yp,oM,Gu,Am,Al,xm,su,sd,$0,X0,Q0,Mm,Em,Ng,Om,kc,Dm,Bg,id,Pp,ld,Lg,ZF.p,gv,sf,vv,Gb,Ub,uf,av,fl,Ab,Qd.X,sv,jb,wc.f,lC,cu,vd,Ur,Vb,ni,Pb,zb,_m,Bl],imports:[na,fc.JF,GT,J.u5,J.UX,V1,Qf,VT,Vw,Ww,pc,kn.lN,Ig,qY.ym,Q1,J_,Hne,Z$e,Gw.forRoot(),Li.U8,lM,ob,AT,J0,qb]}),t.B6R(wT,function(){return[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ti,qu,cf,mi]},function(){return[gI]}),Ha.N.production&&(0,t.G48)(),wa().bootstrapModule(uM).then(function(n){!function ra(n){return So(ca,new Yi(n)),n}(n.injector.get(t.z2F).components[0])}).catch(function(n){return console.log(n)})},7312:function(Ae,K,m){"use strict";m.d(K,{R:function(){return A},Y:function(){return j}});var G=m(3295),W={};function A(){return(0,G.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:W}function j(I,P,T){var E=T||A(),H=E.__SENTRY__=E.__SENTRY__||{};return H[I]||(H[I]=P())}},3295:function(Ae,K,m){"use strict";function W(){return!function G(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function A(I,P){return I.require(P)}m.d(K,{l$:function(){return A},KV:function(){return W}}),Ae=m.hmd(Ae)},3169:function(Ae,K,m){"use strict";m.d(K,{ph:function(){return H},yW:function(){return E}});var G=m(7312),W=m(3295);Ae=m.hmd(Ae);var A={nowSeconds:function(){return Date.now()/1e3}};var P=(0,W.KV)()?function I(){try{return(0,W.l$)(Ae,"perf_hooks").performance}catch(D){return}}():function j(){var Z=(0,G.R)().performance;if(Z&&Z.now)return{now:function(){return Z.now()},timeOrigin:Date.now()-Z.now()}}(),T=void 0===P?A:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},E=A.nowSeconds.bind(A),H=T.nowSeconds.bind(T);!function(){var Z=(0,G.R)().performance;if(Z&&Z.now){var D=36e5,b=Z.now(),S=Date.now(),k=Z.timeOrigin?Math.abs(Z.timeOrigin+b-S):D,M=k<D,N=Z.timing&&Z.timing.navigationStart,X="number"==typeof N?Math.abs(N+b-S):D;return M||X<D?k<=X?("timeOrigin",Z.timeOrigin):("navigationStart",N):("dateNow",S)}"none"}()},2072:function(Ae,K,m){"use strict";m.d(K,{E$:function(){return Ze},ym:function(){return pn}});var G=m(7685),W=m(5671),A=m(3144),j=m(9808),I=m(5e3),P=m(8929),T=m(6787),E=m(8896),H=m(7451),R=m(3753),v=m(2994),x=m(8117),w=m(1059),Z=m(4850),D=m(7545),b=m(7568),S=m(7625),k=m(1709),M=m(2986),N=m(519),F=m(9664),X="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function $(rt,Ot){var _t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Ct=Math.abs(rt-Ot);return Ct<_t}function V(rt,Ot,_t,Ct){var Ve={top:rt.top,bottom:rt.bottom,left:rt.left,right:rt.right};return Ot.top&&(Ve.top+=Ct),Ot.bottom&&(Ve.bottom+=Ct),Ot.left&&(Ve.left+=_t),Ot.right&&(Ve.right+=_t),Ve.height=Ve.bottom-Ve.top,Ve.width=Ve.right-Ve.left,Ve}function te(rt){var Ot=rt.clientY,_t=rt.rect;return Ot>=_t.top&&Ot<=_t.bottom}function be(rt){var Ot=rt.clientX,_t=rt.rect;return Ot>=_t.left&&Ot<=_t.right}function pe(rt){var Ot=rt.clientX,_t=rt.clientY,Ct=rt.elm,Ve=rt.allowedEdges,at=rt.cursorPrecision,ht=Ct.nativeElement.getBoundingClientRect(),Ut={};return Ve.left&&$(Ot,ht.left,at)&&te({clientY:_t,rect:ht})&&(Ut.left=!0),Ve.right&&$(Ot,ht.right,at)&&te({clientY:_t,rect:ht})&&(Ut.right=!0),Ve.top&&$(_t,ht.top,at)&&be({clientX:Ot,rect:ht})&&(Ut.top=!0),Ve.bottom&&$(_t,ht.bottom,at)&&be({clientX:Ot,rect:ht})&&(Ut.bottom=!0),Ut}var fe=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function ue(rt,Ot){return rt.left&&rt.top?Ot.topLeft:rt.right&&rt.top?Ot.topRight:rt.left&&rt.bottom?Ot.bottomLeft:rt.right&&rt.bottom?Ot.bottomRight:rt.left||rt.right?Ot.leftOrRight:rt.top||rt.bottom?Ot.topOrBottom:""}function de(rt){var Ot=rt.edges,_t=rt.initialRectangle,Ct=rt.newRectangle,Ve={};return Object.keys(Ot).forEach(function(at){Ve[at]=(Ct[at]||0)-(_t[at]||0)}),Ve}var ge="resize-active",Ze=function(){function rt(Ot,_t,Ct,Ve){(0,W.Z)(this,rt),this.platformId=Ot,this.renderer=_t,this.elm=Ct,this.zone=Ve,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=fe,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new I.vpe,this.resizing=new I.vpe,this.resizeEnd=new I.vpe,this.mouseup=new P.xQ,this.mousedown=new P.xQ,this.mousemove=new P.xQ,this.destroy$=new P.xQ,this.resizeEdges$=new P.xQ,this.pointerEventListeners=$t.getInstance(_t,Ve)}return(0,A.Z)(rt,[{key:"ngOnInit",value:function(){var ht,_t=this,Ct=(0,T.T)(this.pointerEventListeners.pointerDown,this.mousedown),Ve=(0,T.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,v.b)(function(B){var qe=B.event;if(ht)try{qe.preventDefault()}catch(Be){}}),(0,x.B)()),at=(0,T.T)(this.pointerEventListeners.pointerUp,this.mouseup),Ut=function(){ht&&ht.clonedNode&&(_t.elm.nativeElement.parentElement.removeChild(ht.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","inherit"))},Wt=function(){return Object.assign({},fe,_t.resizeCursors)};this.resizeEdges$.pipe((0,w.O)(this.resizeEdges),(0,Z.U)(function(){return _t.resizeEdges&&Object.keys(_t.resizeEdges).some(function(B){return!!_t.resizeEdges[B]})}),(0,D.w)(function(B){return B?Ve:E.E}),(0,b.e)(this.mouseMoveThrottleMS),(0,S.R)(this.destroy$)).subscribe(function(B){var se=pe({clientX:B.clientX,clientY:B.clientY,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision}),t=Wt();if(!ht){var Lt=ue(se,t);_t.renderer.setStyle(_t.elm.nativeElement,"cursor",Lt)}_t.setElementClass(_t.elm,"resize-left-hover",!0===se.left),_t.setElementClass(_t.elm,"resize-right-hover",!0===se.right),_t.setElementClass(_t.elm,"resize-top-hover",!0===se.top),_t.setElementClass(_t.elm,"resize-bottom-hover",!0===se.bottom)}),Ct.pipe((0,k.zg)(function(B){function qe(t){return{clientX:t.clientX-B.clientX,clientY:t.clientY-B.clientY}}var Be=function(){var Lt={x:1,y:1};return ht&&(_t.resizeSnapGrid.left&&ht.edges.left?Lt.x=+_t.resizeSnapGrid.left:_t.resizeSnapGrid.right&&ht.edges.right&&(Lt.x=+_t.resizeSnapGrid.right),_t.resizeSnapGrid.top&&ht.edges.top?Lt.y=+_t.resizeSnapGrid.top:_t.resizeSnapGrid.bottom&&ht.edges.bottom&&(Lt.y=+_t.resizeSnapGrid.bottom)),Lt};function se(t,Lt){return{x:Math.ceil(t.clientX/Lt.x),y:Math.ceil(t.clientY/Lt.y)}}return(0,T.T)(Ve.pipe((0,M.q)(1)).pipe((0,Z.U)(function(t){return[,t]})),Ve.pipe((0,N.G)())).pipe((0,Z.U)(function(t){var Lt=(0,G.Z)(t,2),zt=Lt[0],an=Lt[1];return[zt&&qe(zt),qe(an)]})).pipe((0,F.h)(function(t){var Lt=(0,G.Z)(t,2),zt=Lt[0],an=Lt[1];if(!zt)return!0;var Qt=Be(),vn=se(zt,Qt),Vt=se(an,Qt);return vn.x!==Vt.x||vn.y!==Vt.y})).pipe((0,Z.U)(function(t){var zt=(0,G.Z)(t,2)[1],an=Be();return{clientX:Math.round(zt.clientX/an.x)*an.x,clientY:Math.round(zt.clientY/an.y)*an.y}})).pipe((0,S.R)((0,T.T)(at,Ct)))})).pipe((0,F.h)(function(){return!!ht})).pipe((0,Z.U)(function(B){var qe=B.clientX,Be=B.clientY;return V(ht.startingRect,ht.edges,qe,Be)})).pipe((0,F.h)(function(B){return _t.allowNegativeResizes||!!(B.height&&B.width&&B.height>0&&B.width>0)})).pipe((0,F.h)(function(B){return!_t.validateResize||_t.validateResize({rectangle:B,edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:B})})}),(0,S.R)(this.destroy$)).subscribe(function(B){ht&&ht.clonedNode&&(_t.renderer.setStyle(ht.clonedNode,"height","".concat(B.height,"px")),_t.renderer.setStyle(ht.clonedNode,"width","".concat(B.width,"px")),_t.renderer.setStyle(ht.clonedNode,"top","".concat(B.top,"px")),_t.renderer.setStyle(ht.clonedNode,"left","".concat(B.left,"px"))),_t.resizing.observers.length>0&&_t.zone.run(function(){_t.resizing.emit({edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:B}),rectangle:B})}),ht.currentRect=B}),Ct.pipe((0,Z.U)(function(B){var qe=B.clientX,Be=B.clientY;return B.edges||pe({clientX:qe,clientY:Be,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision})})).pipe((0,F.h)(function(B){return Object.keys(B).length>0}),(0,S.R)(this.destroy$)).subscribe(function(B){ht&&Ut();var qe=function Q(rt,Ot){var _t=0,Ct=0,Ve=rt.nativeElement.style,ht=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(Wt){return Ve[Wt]}).find(function(Wt){return!!Wt});if(ht&&ht.includes("translate")&&(_t=ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Ct=ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Ot)return{height:rt.nativeElement.offsetHeight,width:rt.nativeElement.offsetWidth,top:rt.nativeElement.offsetTop-Ct,bottom:rt.nativeElement.offsetHeight+rt.nativeElement.offsetTop-Ct,left:rt.nativeElement.offsetLeft-_t,right:rt.nativeElement.offsetWidth+rt.nativeElement.offsetLeft-_t};var Ut=rt.nativeElement.getBoundingClientRect();return{height:Ut.height,width:Ut.width,top:Ut.top-Ct,bottom:Ut.bottom-Ct,left:Ut.left-_t,right:Ut.right-_t,scrollTop:rt.nativeElement.scrollTop,scrollLeft:rt.nativeElement.scrollLeft}}(_t.elm,_t.ghostElementPositioning);ht={edges:B,startingRect:qe,currentRect:qe};var Be=Wt(),se=ue(ht.edges,Be);_t.renderer.setStyle(document.body,"cursor",se),_t.setElementClass(_t.elm,ge,!0),_t.enableGhostResize&&(ht.clonedNode=_t.elm.nativeElement.cloneNode(!0),_t.elm.nativeElement.parentElement.appendChild(ht.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","hidden"),_t.renderer.setStyle(ht.clonedNode,"position",_t.ghostElementPositioning),_t.renderer.setStyle(ht.clonedNode,"left","".concat(ht.startingRect.left,"px")),_t.renderer.setStyle(ht.clonedNode,"top","".concat(ht.startingRect.top,"px")),_t.renderer.setStyle(ht.clonedNode,"height","".concat(ht.startingRect.height,"px")),_t.renderer.setStyle(ht.clonedNode,"width","".concat(ht.startingRect.width,"px")),_t.renderer.setStyle(ht.clonedNode,"cursor",ue(ht.edges,Be)),_t.renderer.addClass(ht.clonedNode,"resize-ghost-element"),ht.clonedNode.scrollTop=ht.startingRect.scrollTop,ht.clonedNode.scrollLeft=ht.startingRect.scrollLeft),_t.resizeStart.observers.length>0&&_t.zone.run(function(){_t.resizeStart.emit({edges:de({edges:B,initialRectangle:qe,newRectangle:qe}),rectangle:V(qe,{},0,0)})})}),at.pipe((0,S.R)(this.destroy$)).subscribe(function(){ht&&(_t.renderer.removeClass(_t.elm.nativeElement,ge),_t.renderer.setStyle(document.body,"cursor",""),_t.renderer.setStyle(_t.elm.nativeElement,"cursor",""),_t.resizeEnd.observers.length>0&&_t.zone.run(function(){_t.resizeEnd.emit({edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:ht.currentRect}),rectangle:ht.currentRect})}),Ut(),ht=null)})}},{key:"ngOnChanges",value:function(_t){_t.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,j.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(_t,Ct,Ve){Ve?this.renderer.addClass(_t.nativeElement,Ct):this.renderer.removeClass(_t.nativeElement,Ct)}}]),rt}();Ze.\u0275fac=function(Ot){return new(Ot||Ze)(I.Y36(I.Lbi),I.Y36(I.Qsj),I.Y36(I.SBq),I.Y36(I.R0b))},Ze.\u0275dir=I.lG2({type:Ze,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[I.TTD]}),Ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:I.tBr,args:[I.Lbi]}]},{type:I.Qsj},{type:I.SBq},{type:I.R0b}]},Ze.propDecorators={validateResize:[{type:I.IIB}],resizeEdges:[{type:I.IIB}],enableGhostResize:[{type:I.IIB}],resizeSnapGrid:[{type:I.IIB}],resizeCursors:[{type:I.IIB}],resizeCursorPrecision:[{type:I.IIB}],ghostElementPositioning:[{type:I.IIB}],allowNegativeResizes:[{type:I.IIB}],mouseMoveThrottleMS:[{type:I.IIB}],resizeStart:[{type:I.r_U}],resizing:[{type:I.r_U}],resizeEnd:[{type:I.r_U}]};var $t=function(){function rt(Ot,_t){(0,W.Z)(this,rt),this.pointerDown=new H.y(function(Ct){var Ve,at;return _t.runOutsideAngular(function(){Ve=Ot.listen("document","mousedown",function(ht){Ct.next({clientX:ht.clientX,clientY:ht.clientY,event:ht})}),X&&(at=Ot.listen("document","touchstart",function(ht){Ct.next({clientX:ht.touches[0].clientX,clientY:ht.touches[0].clientY,event:ht})}))}),function(){Ve(),X&&at()}}).pipe((0,x.B)()),this.pointerMove=new H.y(function(Ct){var Ve,at;return _t.runOutsideAngular(function(){Ve=Ot.listen("document","mousemove",function(ht){Ct.next({clientX:ht.clientX,clientY:ht.clientY,event:ht})}),X&&(at=Ot.listen("document","touchmove",function(ht){Ct.next({clientX:ht.targetTouches[0].clientX,clientY:ht.targetTouches[0].clientY,event:ht})}))}),function(){Ve(),X&&at()}}).pipe((0,x.B)()),this.pointerUp=new H.y(function(Ct){var Ve,at,ht;return _t.runOutsideAngular(function(){Ve=Ot.listen("document","mouseup",function(Ut){Ct.next({clientX:Ut.clientX,clientY:Ut.clientY,event:Ut})}),X&&(at=Ot.listen("document","touchend",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}),ht=Ot.listen("document","touchcancel",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}))}),function(){Ve(),X&&(at(),ht())}}).pipe((0,x.B)())}return(0,A.Z)(rt,null,[{key:"getInstance",value:function(_t,Ct){return rt.instance||(rt.instance=new rt(_t,Ct)),rt.instance}}]),rt}(),Ft=function(){function rt(Ot,_t,Ct,Ve){(0,W.Z)(this,rt),this.renderer=Ot,this.element=_t,this.zone=Ct,this.resizableDirective=Ve,this.resizeEdges={},this.eventListeners={},this.destroy$=new P.xQ}return(0,A.Z)(rt,[{key:"ngOnInit",value:function(){var _t=this;this.zone.runOutsideAngular(function(){_t.listenOnTheHost("mousedown").subscribe(function(Ct){_t.onMousedown(Ct,Ct.clientX,Ct.clientY)}),_t.listenOnTheHost("mouseup").subscribe(function(Ct){_t.onMouseup(Ct.clientX,Ct.clientY)}),X&&(_t.listenOnTheHost("touchstart").subscribe(function(Ct){_t.onMousedown(Ct,Ct.touches[0].clientX,Ct.touches[0].clientY)}),(0,T.T)(_t.listenOnTheHost("touchend"),_t.listenOnTheHost("touchcancel")).subscribe(function(Ct){_t.onMouseup(Ct.changedTouches[0].clientX,Ct.changedTouches[0].clientY)}))})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(_t,Ct,Ve){var at=this;_t.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",function(ht){at.onMousemove(ht,ht.targetTouches[0].clientX,ht.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",function(ht){at.onMousemove(ht,ht.clientX,ht.clientY)})),this.resizable.mousedown.next({clientX:Ct,clientY:Ve,edges:this.resizeEdges})}},{key:"onMouseup",value:function(_t,Ct){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:_t,clientY:Ct,edges:this.resizeEdges})}},{key:"resizable",get:function(){return this.resizableDirective||this.resizableContainer}},{key:"onMousemove",value:function(_t,Ct,Ve){this.resizable.mousemove.next({clientX:Ct,clientY:Ve,edges:this.resizeEdges,event:_t})}},{key:"unsubscribeEventListeners",value:function(){var _t=this;Object.keys(this.eventListeners).forEach(function(Ct){_t.eventListeners[Ct](),delete _t.eventListeners[Ct]})}},{key:"listenOnTheHost",value:function(_t){return(0,R.R)(this.element.nativeElement,_t).pipe((0,S.R)(this.destroy$))}}]),rt}();Ft.\u0275fac=function(Ot){return new(Ot||Ft)(I.Y36(I.Qsj),I.Y36(I.SBq),I.Y36(I.R0b),I.Y36(Ze,8))},Ft.\u0275dir=I.lG2({type:Ft,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Ft.ctorParameters=function(){return[{type:I.Qsj},{type:I.SBq},{type:I.R0b},{type:Ze,decorators:[{type:I.FiY}]}]},Ft.propDecorators={resizeEdges:[{type:I.IIB}],resizableContainer:[{type:I.IIB}]};var pn=(0,A.Z)(function rt(){(0,W.Z)(this,rt)});pn.\u0275fac=function(Ot){return new(Ot||pn)},pn.\u0275mod=I.oAB({type:pn}),pn.\u0275inj=I.cJS({})},7521:function(Ae,K,m){var G;!function(W,A,j){if(W){for(var H,I={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},P={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},T={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},E={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},R=1;R<20;++R)I[111+R]="f"+R;for(R=0;R<=9;++R)I[R+96]=R.toString();$.prototype.bind=function(V,Q,te){return V=V instanceof Array?V:[V],this._bindMultiple.call(this,V,Q,te),this},$.prototype.unbind=function(V,Q){return this.bind.call(this,V,function(){},Q)},$.prototype.trigger=function(V,Q){return this._directMap[V+":"+Q]&&this._directMap[V+":"+Q]({},V),this},$.prototype.reset=function(){var V=this;return V._callbacks={},V._directMap={},V},$.prototype.stopCallback=function(V,Q){if((" "+Q.className+" ").indexOf(" mousetrap ")>-1||X(Q,this.target))return!1;if("composedPath"in V&&"function"==typeof V.composedPath){var be=V.composedPath()[0];be!==V.target&&(Q=be)}return"INPUT"==Q.tagName||"SELECT"==Q.tagName||"TEXTAREA"==Q.tagName||Q.isContentEditable},$.prototype.handleKey=function(){var V=this;return V._handleKey.apply(V,arguments)},$.addKeycodes=function(V){for(var Q in V)V.hasOwnProperty(Q)&&(I[Q]=V[Q]);H=null},$.init=function(){var V=$(A);for(var Q in V)"_"!==Q.charAt(0)&&($[Q]=function(te){return function(){return V[te].apply(V,arguments)}}(Q))},$.init(),W.Mousetrap=$,Ae.exports&&(Ae.exports=$),void 0!==(G=function(){return $}.call(K,m,K,Ae))&&(Ae.exports=G)}function v(V,Q,te){V.addEventListener?V.addEventListener(Q,te,!1):V.attachEvent("on"+Q,te)}function x(V){if("keypress"==V.type){var Q=String.fromCharCode(V.which);return V.shiftKey||(Q=Q.toLowerCase()),Q}return I[V.which]?I[V.which]:P[V.which]?P[V.which]:String.fromCharCode(V.which).toLowerCase()}function w(V,Q){return V.sort().join(",")===Q.sort().join(",")}function S(V){return"shift"==V||"ctrl"==V||"alt"==V||"meta"==V}function M(V,Q,te){return te||(te=function k(){if(!H)for(var V in H={},I)V>95&&V<112||I.hasOwnProperty(V)&&(H[I[V]]=V);return H}()[V]?"keydown":"keypress"),"keypress"==te&&Q.length&&(te="keydown"),te}function F(V,Q){var te,be,pe,fe=[];for(te=function N(V){return"+"===V?["+"]:(V=V.replace(/\+{2}/g,"+plus")).split("+")}(V),pe=0;pe<te.length;++pe)be=te[pe],E[be]&&(be=E[be]),Q&&"keypress"!=Q&&T[be]&&(be=T[be],fe.push("shift")),S(be)&&fe.push(be);return{key:be,modifiers:fe,action:Q=M(be,fe,Q)}}function X(V,Q){return null!==V&&V!==A&&(V===Q||X(V.parentNode,Q))}function $(V){var Q=this;if(V=V||A,!(Q instanceof $))return new $(V);Q.target=V,Q._callbacks={},Q._directMap={};var be,te={},pe=!1,fe=!1,ue=!1;function de(Rt){Rt=Rt||{};var $t,Ze=!1;for($t in te)Rt[$t]?Ze=!0:te[$t]=0;Ze||(ue=!1)}function ge(Rt,Ze,$t,Ft,pn,rt){var Ot,_t,Ct=[],Ve=$t.type;if(!Q._callbacks[Rt])return[];for("keyup"==Ve&&S(Rt)&&(Ze=[Rt]),Ot=0;Ot<Q._callbacks[Rt].length;++Ot)if(_t=Q._callbacks[Rt][Ot],(Ft||!_t.seq||te[_t.seq]==_t.level)&&Ve==_t.action&&("keypress"==Ve&&!$t.metaKey&&!$t.ctrlKey||w(Ze,_t.modifiers))){var at=!Ft&&_t.combo==pn,ht=Ft&&_t.seq==Ft&&_t.level==rt;(at||ht)&&Q._callbacks[Rt].splice(Ot,1),Ct.push(_t)}return Ct}function He(Rt,Ze,$t,Ft){Q.stopCallback(Ze,Ze.target||Ze.srcElement,$t,Ft)||!1===Rt(Ze,$t)&&(function D(V){V.preventDefault?V.preventDefault():V.returnValue=!1}(Ze),function b(V){V.stopPropagation?V.stopPropagation():V.cancelBubble=!0}(Ze))}function ot(Rt){"number"!=typeof Rt.which&&(Rt.which=Rt.keyCode);var Ze=x(Rt);if(Ze){if("keyup"==Rt.type&&pe===Ze)return void(pe=!1);Q.handleKey(Ze,function Z(V){var Q=[];return V.shiftKey&&Q.push("shift"),V.altKey&&Q.push("alt"),V.ctrlKey&&Q.push("ctrl"),V.metaKey&&Q.push("meta"),Q}(Rt),Rt)}}function Tt(Rt,Ze,$t,Ft){function pn(Ve){return function(){ue=Ve,++te[Rt],function St(){clearTimeout(be),be=setTimeout(de,1e3)}()}}function rt(Ve){He($t,Ve,Rt),"keyup"!==Ft&&(pe=x(Ve)),setTimeout(de,10)}te[Rt]=0;for(var Ot=0;Ot<Ze.length;++Ot){var Ct=Ot+1===Ze.length?rt:pn(Ft||F(Ze[Ot+1]).action);Dt(Ze[Ot],Ct,Ft,Rt,Ot)}}function Dt(Rt,Ze,$t,Ft,pn){Q._directMap[Rt+":"+$t]=Ze;var Ot,rt=(Rt=Rt.replace(/\s+/g," ")).split(" ");rt.length>1?Tt(Rt,rt,Ze,$t):(Ot=F(Rt,$t),Q._callbacks[Ot.key]=Q._callbacks[Ot.key]||[],ge(Ot.key,Ot.modifiers,{type:Ot.action},Ft,Rt,pn),Q._callbacks[Ot.key][Ft?"unshift":"push"]({callback:Ze,modifiers:Ot.modifiers,action:Ot.action,seq:Ft,level:pn,combo:Rt}))}Q._handleKey=function(Rt,Ze,$t){var pn,Ft=ge(Rt,Ze,$t),rt={},Ot=0,_t=!1;for(pn=0;pn<Ft.length;++pn)Ft[pn].seq&&(Ot=Math.max(Ot,Ft[pn].level));for(pn=0;pn<Ft.length;++pn)if(Ft[pn].seq){if(Ft[pn].level!=Ot)continue;_t=!0,rt[Ft[pn].seq]=1,He(Ft[pn].callback,$t,Ft[pn].combo,Ft[pn].seq)}else _t||He(Ft[pn].callback,$t,Ft[pn].combo);var Ct="keypress"==$t.type&&fe;$t.type==ue&&!S(Rt)&&!Ct&&de(rt),fe=_t&&"keydown"==$t.type},Q._bindMultiple=function(Rt,Ze,$t){for(var Ft=0;Ft<Rt.length;++Ft)Dt(Rt[Ft],Ze,$t)},v(V,"keypress",ot),v(V,"keydown",ot),v(V,"keyup",ot)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},285:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.Observable=G.Observable,K.Subject=G.Subject;var W=m(5718);K.AnonymousSubject=W.AnonymousSubject;var A=m(5718);K.config=A.config,m(5010),m(9471),m(2687),m(2750),m(2977),m(2925),m(2231),m(1897),m(7026),m(6187),m(1562),m(9470),m(4641),m(3408),m(7975),m(6034),m(3518),m(1305),m(9566),m(6839),m(1672),m(1216),m(987),m(8366),m(5991),m(8173),m(1357),m(5615),m(3056),m(7551),m(2080),m(8273),m(5500),m(8413),m(39),m(2964),m(3569),m(2243),m(3768),m(1989),m(7613),m(4655),m(4997),m(7417),m(5934),m(7199),m(8047),m(1381),m(1817),m(9754),m(9574),m(8124),m(230),m(2995),m(2181),m(5803),m(3928),m(9193),m(9733),m(5755),m(8744),m(1872),m(9982),m(7980),m(3368),m(1448),m(598),m(5772),m(2172),m(5136),m(600),m(69),m(7939),m(8345),m(1128),m(7943),m(7896),m(8324),m(1736),m(9473),m(8418),m(8180),m(3373),m(5313),m(1860),m(4376),m(2941),m(9762),m(5507),m(522),m(6278),m(7459),m(6269),m(1080),m(3634),m(4051),m(5161),m(5247),m(6776),m(7337),m(8),m(1405),m(5431),m(1986),m(454),m(2738),m(8201),m(7024),m(1434),m(492),m(6166),m(1730),m(7499),m(1281),m(523),m(9049),m(9061),m(9922),m(2769),m(1636),m(6044),m(9773),m(1798),m(6916),m(6694),m(9975),m(6193),m(7558),m(368);var j=m(4822);K.Subscription=j.Subscription,K.ReplaySubject=j.ReplaySubject,K.BehaviorSubject=j.BehaviorSubject,K.Notification=j.Notification,K.EmptyError=j.EmptyError,K.ArgumentOutOfRangeError=j.ArgumentOutOfRangeError,K.ObjectUnsubscribedError=j.ObjectUnsubscribedError,K.UnsubscriptionError=j.UnsubscriptionError,K.pipe=j.pipe;var I=m(9594);K.TestScheduler=I.TestScheduler;var P=m(4822);K.Subscriber=P.Subscriber,K.AsyncSubject=P.AsyncSubject,K.ConnectableObservable=P.ConnectableObservable,K.TimeoutError=P.TimeoutError,K.VirtualTimeScheduler=P.VirtualTimeScheduler;var T=m(8679);K.AjaxResponse=T.AjaxResponse,K.AjaxError=T.AjaxError,K.AjaxTimeoutError=T.AjaxTimeoutError;var E=m(4822),H=m(5718),R=m(5718);K.TimeInterval=R.TimeInterval,K.Timestamp=R.Timestamp;var v=m(6650);K.operators=v;var x={asap:E.asapScheduler,queue:E.queueScheduler,animationFrame:E.animationFrameScheduler,async:E.asyncScheduler};K.Scheduler=x;var w={rxSubscriber:H.rxSubscriber,observable:H.observable,iterator:H.iterator};K.Symbol=w},5010:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindCallback=G.bindCallback},9471:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindNodeCallback=G.bindNodeCallback},2687:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.combineLatest=G.combineLatest},2750:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.concat=G.concat},2977:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.defer=G.defer},8173:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8679);G.Observable.ajax=W.ajax},1357:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2301);G.Observable.webSocket=W.webSocket},2925:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.empty=G.empty},2231:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.forkJoin=G.forkJoin},1897:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.from=G.from},7026:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEvent=G.fromEvent},6187:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEventPattern=G.fromEventPattern},1562:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromPromise=G.from},9470:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.generate=G.generate},4641:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.if=G.iif},3408:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.interval=G.interval},7975:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.merge=G.merge},3518:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);function W(){return G.NEVER}K.staticNever=W,G.Observable.never=W},1305:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.of=G.of},9566:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.onErrorResumeNext=G.onErrorResumeNext},6839:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.pairs=G.pairs},6034:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.race=G.race},1672:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.range=G.range},987:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.throw=G.throwError,G.Observable.throwError=G.throwError},8366:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.timer=G.timer},1216:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.using=G.using},5991:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.zip=G.zip},9982:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5641);G.Observable.prototype.audit=W.audit},7980:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4657);G.Observable.prototype.auditTime=W.auditTime},5615:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2792);G.Observable.prototype.buffer=W.buffer},3056:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1667);G.Observable.prototype.bufferCount=W.bufferCount},7551:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4283);G.Observable.prototype.bufferTime=W.bufferTime},2080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1028);G.Observable.prototype.bufferToggle=W.bufferToggle},8273:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(188);G.Observable.prototype.bufferWhen=W.bufferWhen},5500:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8747);G.Observable.prototype.catch=W._catch,G.Observable.prototype._catch=W._catch},8413:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(572);G.Observable.prototype.combineAll=W.combineAll},39:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(648);G.Observable.prototype.combineLatest=W.combineLatest},2964:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9075);G.Observable.prototype.concat=W.concat},3569:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6979);G.Observable.prototype.concatAll=W.concatAll},2243:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3268);G.Observable.prototype.concatMap=W.concatMap},3768:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3382);G.Observable.prototype.concatMapTo=W.concatMapTo},1989:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3337);G.Observable.prototype.count=W.count},4655:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1066);G.Observable.prototype.debounce=W.debounce},4997:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9959);G.Observable.prototype.debounceTime=W.debounceTime},7417:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2448);G.Observable.prototype.defaultIfEmpty=W.defaultIfEmpty},5934:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5514);G.Observable.prototype.delay=W.delay},7199:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7607);G.Observable.prototype.delayWhen=W.delayWhen},7613:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5395);G.Observable.prototype.dematerialize=W.dematerialize},8047:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9440);G.Observable.prototype.distinct=W.distinct},1381:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3943);G.Observable.prototype.distinctUntilChanged=W.distinctUntilChanged},1817:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9749);G.Observable.prototype.distinctUntilKeyChanged=W.distinctUntilKeyChanged},9754:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6764);G.Observable.prototype.do=W._do,G.Observable.prototype._do=W._do},2995:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3833);G.Observable.prototype.elementAt=W.elementAt},598:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8648);G.Observable.prototype.every=W.every},9574:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(14);G.Observable.prototype.exhaust=W.exhaust},8124:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4768);G.Observable.prototype.exhaustMap=W.exhaustMap},230:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(326);G.Observable.prototype.expand=W.expand},2181:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1973);G.Observable.prototype.filter=W.filter},5803:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5032);G.Observable.prototype.finally=W._finally,G.Observable.prototype._finally=W._finally},3928:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8302);G.Observable.prototype.find=W.find},9193:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5286);G.Observable.prototype.findIndex=W.findIndex},9733:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9311);G.Observable.prototype.first=W.first},5755:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6595);G.Observable.prototype.groupBy=W.groupBy},8744:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5783);G.Observable.prototype.ignoreElements=W.ignoreElements},1872:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6866);G.Observable.prototype.isEmpty=W.isEmpty},3368:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1409);G.Observable.prototype.last=W.last},1448:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5953);G.Observable.prototype.let=W.letProto,G.Observable.prototype.letBind=W.letProto},5772:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8137);G.Observable.prototype.map=W.map},2172:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1234);G.Observable.prototype.mapTo=W.mapTo},5136:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2876);G.Observable.prototype.materialize=W.materialize},600:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8821);G.Observable.prototype.max=W.max},69:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2136);G.Observable.prototype.merge=W.merge},7939:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9883);G.Observable.prototype.mergeAll=W.mergeAll},8345:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(621);G.Observable.prototype.mergeMap=W.mergeMap,G.Observable.prototype.flatMap=W.mergeMap},1128:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6881);G.Observable.prototype.flatMapTo=W.mergeMapTo,G.Observable.prototype.mergeMapTo=W.mergeMapTo},7943:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8589);G.Observable.prototype.mergeScan=W.mergeScan},7896:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1348);G.Observable.prototype.min=W.min},8324:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6134);G.Observable.prototype.multicast=W.multicast},1736:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(386);G.Observable.prototype.observeOn=W.observeOn},9473:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8394);G.Observable.prototype.onErrorResumeNext=W.onErrorResumeNext},8418:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(400);G.Observable.prototype.pairwise=W.pairwise},8180:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1396);G.Observable.prototype.partition=W.partition},3373:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9782);G.Observable.prototype.pluck=W.pluck},5313:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7437);G.Observable.prototype.publish=W.publish},1860:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5990);G.Observable.prototype.publishBehavior=W.publishBehavior},2941:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4254);G.Observable.prototype.publishLast=W.publishLast},4376:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(397);G.Observable.prototype.publishReplay=W.publishReplay},9762:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9023);G.Observable.prototype.race=W.race},5507:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(345);G.Observable.prototype.reduce=W.reduce},522:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2085);G.Observable.prototype.repeat=W.repeat},6278:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3679);G.Observable.prototype.repeatWhen=W.repeatWhen},7459:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7080);G.Observable.prototype.retry=W.retry},6269:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9302);G.Observable.prototype.retryWhen=W.retryWhen},1080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3266);G.Observable.prototype.sample=W.sample},3634:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(615);G.Observable.prototype.sampleTime=W.sampleTime},4051:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8305);G.Observable.prototype.scan=W.scan},5161:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1289);G.Observable.prototype.sequenceEqual=W.sequenceEqual},5247:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(896);G.Observable.prototype.share=W.share},6776:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4791);G.Observable.prototype.shareReplay=W.shareReplay},7337:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6462);G.Observable.prototype.single=W.single},8:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3458);G.Observable.prototype.skip=W.skip},1405:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(801);G.Observable.prototype.skipLast=W.skipLast},5431:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8249);G.Observable.prototype.skipUntil=W.skipUntil},1986:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9603);G.Observable.prototype.skipWhile=W.skipWhile},454:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(295);G.Observable.prototype.startWith=W.startWith},2738:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1112);G.Observable.prototype.subscribeOn=W.subscribeOn},8201:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(761);G.Observable.prototype.switch=W._switch,G.Observable.prototype._switch=W._switch},7024:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3573);G.Observable.prototype.switchMap=W.switchMap},1434:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2892);G.Observable.prototype.switchMapTo=W.switchMapTo},492:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7203);G.Observable.prototype.take=W.take},6166:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7579);G.Observable.prototype.takeLast=W.takeLast},1730:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1583);G.Observable.prototype.takeUntil=W.takeUntil},7499:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7694);G.Observable.prototype.takeWhile=W.takeWhile},1281:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9259);G.Observable.prototype.throttle=W.throttle},523:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4630);G.Observable.prototype.throttleTime=W.throttleTime},9049:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3578);G.Observable.prototype.timeInterval=W.timeInterval},9061:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7945);G.Observable.prototype.timeout=W.timeout},9922:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3060);G.Observable.prototype.timeoutWith=W.timeoutWith},2769:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1265);G.Observable.prototype.timestamp=W.timestamp},1636:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2561);G.Observable.prototype.toArray=W.toArray},6044:function(){},9773:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9766);G.Observable.prototype.window=W.window},1798:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8227);G.Observable.prototype.windowCount=W.windowCount},6916:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1868);G.Observable.prototype.windowTime=W.windowTime},6694:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(30);G.Observable.prototype.windowToggle=W.windowToggle},9975:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9687);G.Observable.prototype.windowWhen=W.windowWhen},6193:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5196);G.Observable.prototype.withLatestFrom=W.withLatestFrom},7558:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2357);G.Observable.prototype.zip=W.zipProto},368:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7381);G.Observable.prototype.zipAll=W.zipAll},5641:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.audit=function W(A){return G.audit(A)(this)}},4657:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.auditTime=function A(j,I){return void 0===I&&(I=G.asyncScheduler),W.auditTime(j,I)(this)}},2792:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.buffer=function W(A){return G.buffer(A)(this)}},1667:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferCount=function W(A,j){return void 0===j&&(j=null),G.bufferCount(A,j)(this)}},4283:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.bufferTime=function j(I){var P=arguments.length,T=G.asyncScheduler;W.isScheduler(arguments[arguments.length-1])&&(T=arguments[arguments.length-1],P--);var E=null;P>=2&&(E=arguments[1]);var H=Number.POSITIVE_INFINITY;return P>=3&&(H=arguments[2]),A.bufferTime(I,E,H,T)(this)}},1028:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferToggle=function W(A,j){return G.bufferToggle(A,j)(this)}},188:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferWhen=function W(A){return G.bufferWhen(A)(this)}},8747:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._catch=function W(A){return G.catchError(A)(this)}},572:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.combineAll=function W(A){return G.combineAll(A)(this)}},648:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718);K.combineLatest=function A(){for(var j=[],I=0;I<arguments.length;I++)j[I]=arguments[I];var P=null;return"function"==typeof j[j.length-1]&&(P=j.pop()),1===j.length&&W.isArray(j[0])&&(j=j[0].slice()),this.lift.call(G.of.apply(void 0,[this].concat(j)),new W.CombineLatestOperator(P))}},9075:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.concat=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return this.lift.call(G.concat.apply(void 0,[this].concat(A)))}},6979:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatAll=function W(){return G.concatAll()(this)}},3268:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMap=function W(A){return G.concatMap(A)(this)}},3382:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMapTo=function W(A){return G.concatMapTo(A)(this)}},3337:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.count=function W(A){return G.count(A)(this)}},1066:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.debounce=function W(A){return G.debounce(A)(this)}},9959:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.debounceTime=function A(j,I){return void 0===I&&(I=G.asyncScheduler),W.debounceTime(j,I)(this)}},2448:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.defaultIfEmpty=function W(A){return void 0===A&&(A=null),G.defaultIfEmpty(A)(this)}},5514:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.delay=function A(j,I){return void 0===I&&(I=G.asyncScheduler),W.delay(j,I)(this)}},7607:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.delayWhen=function W(A,j){return G.delayWhen(A,j)(this)}},5395:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.dematerialize=function W(){return G.dematerialize()(this)}},9440:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinct=function W(A,j){return G.distinct(A,j)(this)}},3943:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilChanged=function W(A,j){return G.distinctUntilChanged(A,j)(this)}},9749:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilKeyChanged=function W(A,j){return G.distinctUntilKeyChanged(A,j)(this)}},6764:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._do=function W(A,j,I){return G.tap(A,j,I)(this)}},3833:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.elementAt=function W(A,j){return G.elementAt.apply(void 0,arguments)(this)}},8648:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.every=function W(A,j){return G.every(A,j)(this)}},14:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaust=function W(){return G.exhaust()(this)}},4768:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaustMap=function W(A){return G.exhaustMap(A)(this)}},326:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.expand=function W(A,j,I){return void 0===j&&(j=Number.POSITIVE_INFINITY),void 0===I&&(I=void 0),j=(j||0)<1?Number.POSITIVE_INFINITY:j,G.expand(A,j,I)(this)}},1973:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.filter=function W(A,j){return G.filter(A,j)(this)}},5032:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._finally=function W(A){return G.finalize(A)(this)}},8302:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.find=function W(A,j){return G.find(A,j)(this)}},5286:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.findIndex=function W(A,j){return G.findIndex(A,j)(this)}},9311:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.first=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.first.apply(void 0,A)(this)}},6595:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.groupBy=function W(A,j,I,P){return G.groupBy(A,j,I,P)(this)}},5783:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.ignoreElements=function W(){return G.ignoreElements()(this)}},6866:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.isEmpty=function W(){return G.isEmpty()(this)}},1409:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.last=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.last.apply(void 0,A)(this)}},5953:function(Ae,K){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.letProto=function m(G){return G(this)}},8137:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.map=function W(A,j){return G.map(A,j)(this)}},1234:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mapTo=function W(A){return G.mapTo(A)(this)}},2876:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.materialize=function W(){return G.materialize()(this)}},8821:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.max=function W(A){return G.max(A)(this)}},2136:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.merge=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return this.lift.call(G.merge.apply(void 0,[this].concat(A)))}},9883:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeAll=function W(A){return void 0===A&&(A=Number.POSITIVE_INFINITY),G.mergeAll(A)(this)}},621:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMap=function W(A,j){return void 0===j&&(j=Number.POSITIVE_INFINITY),G.mergeMap(A,j)(this)}},6881:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMapTo=function W(A,j){return void 0===j&&(j=Number.POSITIVE_INFINITY),G.mergeMapTo(A,j)(this)}},8589:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeScan=function W(A,j,I){return void 0===I&&(I=Number.POSITIVE_INFINITY),G.mergeScan(A,j,I)(this)}},1348:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.min=function W(A){return G.min(A)(this)}},6134:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.multicast=function W(A,j){return G.multicast(A,j)(this)}},386:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.observeOn=function W(A,j){return void 0===j&&(j=0),G.observeOn(A,j)(this)}},8394:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.onErrorResumeNext=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.onErrorResumeNext.apply(void 0,A)(this)}},400:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pairwise=function W(){return G.pairwise()(this)}},1396:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.partition=function W(A,j){return G.partition(A,j)(this)}},9782:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pluck=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.pluck.apply(void 0,A)(this)}},7437:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publish=function W(A){return G.publish(A)(this)}},5990:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishBehavior=function W(A){return G.publishBehavior(A)(this)}},4254:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishLast=function W(){return G.publishLast()(this)}},397:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishReplay=function W(A,j,I,P){return G.publishReplay(A,j,I,P)(this)}},9023:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.race=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.race.apply(void 0,A)(this)}},345:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.reduce=function W(A,j){return arguments.length>=2?G.reduce(A,j)(this):G.reduce(A)(this)}},2085:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeat=function W(A){return void 0===A&&(A=-1),G.repeat(A)(this)}},3679:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeatWhen=function W(A){return G.repeatWhen(A)(this)}},7080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retry=function W(A){return void 0===A&&(A=-1),G.retry(A)(this)}},9302:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retryWhen=function W(A){return G.retryWhen(A)(this)}},3266:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sample=function W(A){return G.sample(A)(this)}},615:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.sampleTime=function A(j,I){return void 0===I&&(I=G.asyncScheduler),W.sampleTime(j,I)(this)}},8305:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.scan=function W(A,j){return arguments.length>=2?G.scan(A,j)(this):G.scan(A)(this)}},1289:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sequenceEqual=function W(A,j){return G.sequenceEqual(A,j)(this)}},896:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.share=function W(){return G.share()(this)}},4791:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.shareReplay=function W(A,j,I){return A&&"object"==typeof A?G.shareReplay(A)(this):G.shareReplay(A,j,I)(this)}},6462:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.single=function W(A){return G.single(A)(this)}},3458:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skip=function W(A){return G.skip(A)(this)}},801:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipLast=function W(A){return G.skipLast(A)(this)}},8249:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipUntil=function W(A){return G.skipUntil(A)(this)}},9603:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipWhile=function W(A){return G.skipWhile(A)(this)}},295:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.startWith=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.startWith.apply(void 0,A)(this)}},1112:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.subscribeOn=function W(A,j){return void 0===j&&(j=0),G.subscribeOn(A,j)(this)}},761:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._switch=function W(){return G.switchAll()(this)}},3573:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMap=function W(A){return G.switchMap(A)(this)}},2892:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMapTo=function W(A){return G.switchMapTo(A)(this)}},7203:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.take=function W(A){return G.take(A)(this)}},7579:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeLast=function W(A){return G.takeLast(A)(this)}},1583:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeUntil=function W(A){return G.takeUntil(A)(this)}},7694:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeWhile=function W(A){return G.takeWhile(A)(this)}},9259:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650),W=m(5718);K.throttle=function A(j,I){return void 0===I&&(I=W.defaultThrottleConfig),G.throttle(j,I)(this)}},4630:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.throttleTime=function j(I,P,T){return void 0===P&&(P=G.asyncScheduler),void 0===T&&(T=W.defaultThrottleConfig),A.throttleTime(I,P,T)(this)}},3578:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeInterval=function A(j){return void 0===j&&(j=G.asyncScheduler),W.timeInterval(j)(this)}},7945:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeout=function A(j,I){return void 0===I&&(I=G.asyncScheduler),W.timeout(j,I)(this)}},3060:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeoutWith=function A(j,I,P){return void 0===P&&(P=G.asyncScheduler),W.timeoutWith(j,I,P)(this)}},1265:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timestamp=function A(j){return void 0===j&&(j=G.asyncScheduler),W.timestamp(j)(this)}},2561:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.toArray=function W(){return G.toArray()(this)}},9766:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.window=function W(A){return G.window(A)(this)}},8227:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowCount=function W(A,j){return void 0===j&&(j=0),G.windowCount(A,j)(this)}},1868:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.windowTime=function j(I){var P=G.asyncScheduler,T=null,E=Number.POSITIVE_INFINITY;return W.isScheduler(arguments[3])&&(P=arguments[3]),W.isScheduler(arguments[2])?P=arguments[2]:W.isNumeric(arguments[2])&&(E=Number(arguments[2])),W.isScheduler(arguments[1])?P=arguments[1]:W.isNumeric(arguments[1])&&(T=Number(arguments[1])),A.windowTime(I,T,E,P)(this)}},30:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowToggle=function W(A,j){return G.windowToggle(A,j)(this)}},9687:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowWhen=function W(A){return G.windowWhen(A)(this)}},5196:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.withLatestFrom=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return G.withLatestFrom.apply(void 0,A)(this)}},2357:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.zipProto=function W(){for(var A=[],j=0;j<arguments.length;j++)A[j]=arguments[j];return this.lift.call(G.zip.apply(void 0,[this].concat(A)))}},7381:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.zipAll=function W(A){return G.zipAll(A)(this)}},5887:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),function G(W){for(var A in W)K.hasOwnProperty(A)||(K[A]=W[A])}(m(285))},8679:function(Ae,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return W.iM},AjaxResponse:function(){return W.vD},AjaxTimeoutError:function(){return W.cw},ajax:function(){return G.h}});var G=m(8059),W=m(8452)},4822:function(Ae,K,m){"use strict";m.r(K),m.d(K,{ArgumentOutOfRangeError:function(){return X.W},AsyncSubject:function(){return E.c},BehaviorSubject:function(){return P.X},ConnectableObservable:function(){return W.c},EMPTY:function(){return rt.E},EmptyError:function(){return $.K},GroupedObservable:function(){return A.T},NEVER:function(){return qe},Notification:function(){return S.P},NotificationKind:function(){return S.W},ObjectUnsubscribedError:function(){return V.N},Observable:function(){return G.y},ReplaySubject:function(){return T.t},Scheduler:function(){return Z.b},Subject:function(){return I.xQ},Subscriber:function(){return b.L},Subscription:function(){return D.w},TimeoutError:function(){return te.W},UnsubscriptionError:function(){return Q.B},VirtualAction:function(){return w.h},VirtualTimeScheduler:function(){return w.y},animationFrame:function(){return x.r},animationFrameScheduler:function(){return x.Z},asap:function(){return H.e},asapScheduler:function(){return H.E},async:function(){return R.P},asyncScheduler:function(){return R.z},bindCallback:function(){return ge},bindNodeCallback:function(){return Tt},combineLatest:function(){return $t.aj},concat:function(){return Ft.z},config:function(){return lt.v},defer:function(){return pn.P},empty:function(){return rt.c},forkJoin:function(){return Ot.D},from:function(){return _t.D},fromEvent:function(){return Ct.R},fromEventPattern:function(){return at},generate:function(){return ht},identity:function(){return N.y},iif:function(){return Wt},interval:function(){return U.F},isObservable:function(){return F.b},merge:function(){return B.T},never:function(){return Be},noop:function(){return M.Z},observable:function(){return j.L},of:function(){return se.of},onErrorResumeNext:function(){return t},pairs:function(){return Lt},partition:function(){return Vt},pipe:function(){return k.z},queue:function(){return v.c},queueScheduler:function(){return v.N},race:function(){return Jt.S3},range:function(){return Qe.w},scheduled:function(){return Le.x},throwError:function(){return Fe._},timer:function(){return ne.H},using:function(){return ye},zip:function(){return he.$R}});var G=m(7451),W=m(1762),A=m(4002),j=m(3821),I=m(8929),P=m(591),T=m(839),E=m(2185),H=m(9931),R=m(353),v=m(341),x=m(352),w=m(9027),Z=m(2221),D=m(4096),b=m(3489),S=m(9312),k=m(4843),M=m(7876),N=m(5379),F=m(4715),X=m(4231),$=m(4450),V=m(5279),Q=m(7964),te=m(854),be=m(4902),pe=m(4850),fe=m(9476),ue=m(6688),de=m(2866);function ge(ut,Nt,Ht){if(Nt){if(!(0,de.K)(Nt))return function(){return ge(ut,Ht).apply(void 0,arguments).pipe((0,pe.U)(function(sn){return(0,ue.k)(sn)?Nt.apply(void 0,(0,be.Z)(sn)):Nt(sn)}))};Ht=Nt}return function(){for(var sn=arguments.length,yn=new Array(sn),ln=0;ln<sn;ln++)yn[ln]=arguments[ln];var hn,Sn=this,mn={context:Sn,subject:hn,callbackFunc:ut,scheduler:Ht};return new G.y(function(At){if(Ht){var tt={args:yn,subscriber:At,params:mn};return Ht.schedule(He,0,tt)}if(!hn){hn=new E.c;try{ut.apply(Sn,[].concat(yn,[function(){for(var We=arguments.length,Ye=new Array(We),Re=0;Re<We;Re++)Ye[Re]=arguments[Re];hn.next(Ye.length<=1?Ye[0]:Ye),hn.complete()}]))}catch(Et){(0,fe._)(hn)?hn.error(Et):console.warn(Et)}}return hn.subscribe(At)})}}function He(ut){var Nt=this,sn=ut.args,yn=ut.subscriber,ln=ut.params,Sn=ln.callbackFunc,hn=ln.context,mn=ln.scheduler,At=ln.subject;if(!At){At=ln.subject=new E.c;try{Sn.apply(hn,[].concat((0,be.Z)(sn),[function(){for(var Et=arguments.length,We=new Array(Et),Ye=0;Ye<Et;Ye++)We[Ye]=arguments[Ye];var Re=We.length<=1?We[0]:We;Nt.add(mn.schedule(ot,0,{value:Re,subject:At}))}]))}catch(tt){At.error(tt)}}this.add(At.subscribe(yn))}function ot(ut){var Nt=ut.value,Ht=ut.subject;Ht.next(Nt),Ht.complete()}function Tt(ut,Nt,Ht){if(Nt){if(!(0,de.K)(Nt))return function(){return Tt(ut,Ht).apply(void 0,arguments).pipe((0,pe.U)(function(sn){return(0,ue.k)(sn)?Nt.apply(void 0,(0,be.Z)(sn)):Nt(sn)}))};Ht=Nt}return function(){for(var sn=arguments.length,yn=new Array(sn),ln=0;ln<sn;ln++)yn[ln]=arguments[ln];var Sn={subject:void 0,args:yn,callbackFunc:ut,scheduler:Ht,context:this};return new G.y(function(hn){var mn=Sn.context,At=Sn.subject;if(Ht)return Ht.schedule(Dt,0,{params:Sn,subscriber:hn,context:mn});if(!At){At=Sn.subject=new E.c;try{ut.apply(mn,[].concat(yn,[function(){for(var Et=arguments.length,We=new Array(Et),Ye=0;Ye<Et;Ye++)We[Ye]=arguments[Ye];var Re=We.shift();Re?At.error(Re):(At.next(We.length<=1?We[0]:We),At.complete())}]))}catch(tt){(0,fe._)(At)?At.error(tt):console.warn(tt)}}return At.subscribe(hn)})}}function Dt(ut){var Nt=this,Ht=ut.params,sn=ut.subscriber,yn=ut.context,ln=Ht.callbackFunc,Sn=Ht.args,hn=Ht.scheduler,mn=Ht.subject;if(!mn){mn=Ht.subject=new E.c;try{ln.apply(yn,[].concat((0,be.Z)(Sn),[function(){for(var tt=arguments.length,Et=new Array(tt),We=0;We<tt;We++)Et[We]=arguments[We];var Ye=Et.shift();if(Ye)Nt.add(hn.schedule(Ze,0,{err:Ye,subject:mn}));else{var Re=Et.length<=1?Et[0]:Et;Nt.add(hn.schedule(Rt,0,{value:Re,subject:mn}))}}]))}catch(xt){this.add(hn.schedule(Ze,0,{err:xt,subject:mn}))}}this.add(mn.subscribe(sn))}function Rt(ut){var Nt=ut.value,Ht=ut.subject;Ht.next(Nt),Ht.complete()}function Ze(ut){var Nt=ut.err;ut.subject.error(Nt)}var $t=m(6053),Ft=m(1961),pn=m(8514),rt=m(8896),Ot=m(567),_t=m(3527),Ct=m(3753),Ve=m(7043);function at(ut,Nt,Ht){return Ht?at(ut,Nt).pipe((0,pe.U)(function(sn){return(0,ue.k)(sn)?Ht.apply(void 0,(0,be.Z)(sn)):Ht(sn)})):new G.y(function(sn){var ln,yn=function(){for(var hn=arguments.length,mn=new Array(hn),At=0;At<hn;At++)mn[At]=arguments[At];return sn.next(1===mn.length?mn[0]:mn)};try{ln=ut(yn)}catch(Sn){return void sn.error(Sn)}if((0,Ve.m)(Nt))return function(){return Nt(yn,ln)}})}function ht(ut,Nt,Ht,sn,yn){var ln,Sn;if(1==arguments.length){var hn=ut;Sn=hn.initialState,Nt=hn.condition,Ht=hn.iterate,ln=hn.resultSelector||N.y,yn=hn.scheduler}else void 0===sn||(0,de.K)(sn)?(Sn=ut,ln=N.y,yn=sn):(Sn=ut,ln=sn);return new G.y(function(mn){var At=Sn;if(yn)return yn.schedule(Ut,0,{subscriber:mn,iterate:Ht,condition:Nt,resultSelector:ln,state:At});for(;;){if(Nt){var xt=void 0;try{xt=Nt(At)}catch(Et){return void mn.error(Et)}if(!xt){mn.complete();break}}var tt=void 0;try{tt=ln(At)}catch(Et){return void mn.error(Et)}if(mn.next(tt),mn.closed)break;try{At=Ht(At)}catch(Et){return void mn.error(Et)}}})}function Ut(ut){var Nt=ut.subscriber,Ht=ut.condition;if(!Nt.closed){if(ut.needIterate)try{ut.state=ut.iterate(ut.state)}catch(ln){return void Nt.error(ln)}else ut.needIterate=!0;if(Ht){var sn;try{sn=Ht(ut.state)}catch(ln){return void Nt.error(ln)}if(!sn)return void Nt.complete();if(Nt.closed)return}var yn;try{yn=ut.resultSelector(ut.state)}catch(ln){return void Nt.error(ln)}if(!Nt.closed&&(Nt.next(yn),!Nt.closed))return this.schedule(ut)}}function Wt(ut){var Nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt.E,Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt.E;return(0,pn.P)(function(){return ut()?Nt:Ht})}var U=m(1715),B=m(6787),qe=new G.y(M.Z);function Be(){return qe}var se=m(1086);function t(){for(var ut=arguments.length,Nt=new Array(ut),Ht=0;Ht<ut;Ht++)Nt[Ht]=arguments[Ht];if(0===Nt.length)return rt.E;var sn=Nt[0],yn=Nt.slice(1);return 1===Nt.length&&(0,ue.k)(sn)?t.apply(void 0,(0,be.Z)(sn)):new G.y(function(ln){var Sn=function(){return ln.add(t.apply(void 0,(0,be.Z)(yn)).subscribe(ln))};return(0,_t.D)(sn).subscribe({next:function(mn){ln.next(mn)},error:Sn,complete:Sn})})}function Lt(ut,Nt){return Nt?new G.y(function(Ht){var sn=Object.keys(ut),yn=new D.w;return yn.add(Nt.schedule(zt,0,{keys:sn,index:0,subscriber:Ht,subscription:yn,obj:ut})),yn}):new G.y(function(Ht){for(var sn=Object.keys(ut),yn=0;yn<sn.length&&!Ht.closed;yn++){var ln=sn[yn];ut.hasOwnProperty(ln)&&Ht.next([ln,ut[ln]])}Ht.complete()})}function zt(ut){var Nt=ut.keys,Ht=ut.index,sn=ut.subscriber,yn=ut.subscription,ln=ut.obj;if(!sn.closed)if(Ht<Nt.length){var Sn=Nt[Ht];sn.next([Sn,ln[Sn]]),yn.add(this.schedule({keys:Nt,index:Ht+1,subscriber:sn,subscription:yn,obj:ln}))}else sn.complete()}var an=m(5884),Qt=m(3071),vn=m(9664);function Vt(ut,Nt,Ht){return[(0,vn.h)(Nt,Ht)(new G.y((0,Qt.s)(ut))),(0,vn.h)((0,an.f)(Nt,Ht))(new G.y((0,Qt.s)(ut)))]}var Jt=m(1946),Qe=m(3103),Fe=m(1737),ne=m(8723);function ye(ut,Nt){return new G.y(function(Ht){var sn,yn;try{sn=ut()}catch(hn){return void Ht.error(hn)}try{yn=Nt(sn)}catch(hn){return void Ht.error(hn)}var Sn=(yn?(0,_t.D)(yn):rt.E).subscribe(Ht);return function(){Sn.unsubscribe(),sn&&sn.unsubscribe()}})}var he=m(1746),Le=m(6266),lt=m(2830)},5718:function(Ae,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return S.iM},AjaxObservable:function(){return S.i6},AjaxResponse:function(){return S.vD},AjaxSubscriber:function(){return S.de},AjaxTimeoutError:function(){return S.cw},AnonymousSubject:function(){return I.ug},ArgumentOutOfRangeError:function(){return fe.W},CombineLatestOperator:function(){return M.Ms},EmptyError:function(){return ue.K},GroupedObservable:function(){return V.T},Immediate:function(){return de.H},InnerSubscriber:function(){return W.d},ObjectUnsubscribedError:function(){return ge.N},OuterSubscriber:function(){return A.L},Scheduler:function(){return j.b},SubjectSubscription:function(){return P.W},SubscribeOnObservable:function(){return F.e},Subscriber:function(){return T.L},TimeInterval:function(){return $.R},TimeoutError:function(){return He.W},Timestamp:function(){return X.E},UnsubscriptionError:function(){return ot.B},WebSocketSubject:function(){return k.p},ajax:function(){return D.h},ajaxDelete:function(){return S._c},ajaxGet:function(){return S.Ck},ajaxGetJSON:function(){return S.uX},ajaxPatch:function(){return S.YB},ajaxPost:function(){return S.tB},ajaxPut:function(){return S.Vk},applyMixins:function(){return St.e},config:function(){return G.v},defaultThrottleConfig:function(){return Q.d},dispatch:function(){return N.W},errorObject:function(){return Tt},fromIterable:function(){return Z},fromPromise:function(){return v},hostReportError:function(){return Dt.z},identity:function(){return Rt.y},isArray:function(){return Ze.k},isArrayLike:function(){return $t.z},isDate:function(){return Ft.J},isFunction:function(){return pn.m},isIterable:function(){return rt.T},isNumeric:function(){return Ot.k},isObject:function(){return _t.K},isObservable:function(){return Ct.c},isPromise:function(){return Ve.t},isScheduler:function(){return at.K},iterator:function(){return be.hZ},noop:function(){return ht.Z},not:function(){return Ut.f},observable:function(){return pe.L},pipe:function(){return Wt.z},root:function(){return U.J},rxSubscriber:function(){return te.b},subscribeTo:function(){return B.s},subscribeToArray:function(){return qe.V},subscribeToIterable:function(){return x.u},subscribeToObservable:function(){return Be.h},subscribeToPromise:function(){return H.A},subscribeToResult:function(){return se.D},toSubscriber:function(){return t.Y},tryCatch:function(){return an},webSocket:function(){return b.j}});var G=m(2830),W=m(1869),A=m(826),j=m(2221),I=m(8929),P=m(5283),T=m(3489),E=m(7451),H=m(3445),R=m(8687);function v(Qt,vn){return vn?(0,R.c)(Qt,vn):new E.y((0,H.A)(Qt))}var x=m(3720),w=m(6389);function Z(Qt,vn){if(!Qt)throw new Error("Iterable cannot be null");return vn?(0,w.Q)(Qt,vn):new E.y((0,x.u)(Qt))}var Lt,D=m(8059),b=m(7623),S=m(8452),k=m(2741),M=m(6053),N=m(3103),F=m(3837),X=m(7781),$=m(3485),V=m(4002),Q=m(2444),te=m(7668),be=m(5430),pe=m(3821),fe=m(4231),ue=m(4450),de=m(1450),ge=m(5279),He=m(854),ot=m(7964),St=m(5128),Tt={e:{}},Dt=m(2782),Rt=m(5379),Ze=m(6688),$t=m(8515),Ft=m(2697),pn=m(7043),rt=m(2198),Ot=m(4241),_t=m(7830),Ct=m(8845),Ve=m(8955),at=m(2866),ht=m(7876),Ut=m(5884),Wt=m(4843),U=m(797),B=m(3071),qe=m(3650),Be=m(1810),se=m(9054),t=m(5221);function zt(){Tt.e=void 0;try{return Lt.apply(this,arguments)}catch(Qt){return Tt.e=Qt,Tt}finally{Lt=void 0}}function an(Qt){return Lt=Qt,zt}},2185:function(Ae,K,m){"use strict";m.d(K,{c:function(){return H}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(8929),E=m(4096),H=function(R){(0,I.Z)(x,R);var v=(0,P.Z)(x);function x(){var w;return(0,G.Z)(this,x),(w=v.apply(this,arguments)).value=null,w.hasNext=!1,w.hasCompleted=!1,w}return(0,W.Z)(x,[{key:"_subscribe",value:function(Z){return this.hasError?(Z.error(this.thrownError),E.w.EMPTY):this.hasCompleted&&this.hasNext?(Z.next(this.value),Z.complete(),E.w.EMPTY):(0,A.Z)((0,j.Z)(x.prototype),"_subscribe",this).call(this,Z)}},{key:"next",value:function(Z){this.hasCompleted||(this.value=Z,this.hasNext=!0)}},{key:"error",value:function(Z){this.hasCompleted||(0,A.Z)((0,j.Z)(x.prototype),"error",this).call(this,Z)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,A.Z)((0,j.Z)(x.prototype),"next",this).call(this,this.value),(0,A.Z)((0,j.Z)(x.prototype),"complete",this).call(this)}}]),x}(T.xQ)},591:function(Ae,K,m){"use strict";m.d(K,{X:function(){return H}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(8929),E=m(5279),H=function(R){(0,I.Z)(x,R);var v=(0,P.Z)(x);function x(w){var Z;return(0,G.Z)(this,x),(Z=v.call(this))._value=w,Z}return(0,W.Z)(x,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(Z){var D=(0,A.Z)((0,j.Z)(x.prototype),"_subscribe",this).call(this,Z);return D&&!D.closed&&Z.next(this._value),D}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E.N;return this._value}},{key:"next",value:function(Z){(0,A.Z)((0,j.Z)(x.prototype),"next",this).call(this,this._value=Z)}}]),x}(T.xQ)},1869:function(Ae,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),P=function(T){(0,A.Z)(H,T);var E=(0,j.Z)(H);function H(R,v,x){var w;return(0,G.Z)(this,H),(w=E.call(this)).parent=R,w.outerValue=v,w.outerIndex=x,w.index=0,w}return(0,W.Z)(H,[{key:"_next",value:function(v){this.parent.notifyNext(this.outerValue,v,this.outerIndex,this.index++,this)}},{key:"_error",value:function(v){this.parent.notifyError(v,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),H}(m(3489).L)},9312:function(Ae,K,m){"use strict";m.d(K,{P:function(){return T},W:function(){return P}});var P,E,G=m(5671),W=m(3144),A=m(8896),j=m(1086),I=m(1737);(E=P||(P={})).NEXT="N",E.ERROR="E",E.COMPLETE="C";var T=function(){function E(H,R,v){(0,G.Z)(this,E),this.kind=H,this.value=R,this.error=v,this.hasValue="N"===H}return(0,W.Z)(E,[{key:"observe",value:function(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}},{key:"do",value:function(R,v,x){switch(this.kind){case"N":return R&&R(this.value);case"E":return v&&v(this.error);case"C":return x&&x()}}},{key:"accept",value:function(R,v,x){return R&&"function"==typeof R.next?this.observe(R):this.do(R,v,x)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,j.of)(this.value);case"E":return(0,I._)(this.error);case"C":return(0,A.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(R){return void 0!==R?new E("N",R):E.undefinedValueNotification}},{key:"createError",value:function(R){return new E("E",void 0,R)}},{key:"createComplete",value:function(){return E.completeNotification}}]),E}();T.completeNotification=new T("C"),T.undefinedValueNotification=new T("N",void 0)},7451:function(Ae,K,m){"use strict";m.d(K,{y:function(){return E}});var G=m(5671),W=m(3144),A=m(9476),j=m(5221),I=m(3821),P=m(4843),T=m(2830),E=function(){function R(v){(0,G.Z)(this,R),this._isScalar=!1,v&&(this._subscribe=v)}return(0,W.Z)(R,[{key:"lift",value:function(x){var w=new R;return w.source=this,w.operator=x,w}},{key:"subscribe",value:function(x,w,Z){var D=this.operator,b=(0,j.Y)(x,w,Z);if(D?b.add(D.call(b,this.source)):b.add(this.source||T.v.useDeprecatedSynchronousErrorHandling&&!b.syncErrorThrowable?this._subscribe(b):this._trySubscribe(b)),T.v.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable&&(b.syncErrorThrowable=!1,b.syncErrorThrown))throw b.syncErrorValue;return b}},{key:"_trySubscribe",value:function(x){try{return this._subscribe(x)}catch(w){T.v.useDeprecatedSynchronousErrorHandling&&(x.syncErrorThrown=!0,x.syncErrorValue=w),(0,A._)(x)?x.error(w):console.warn(w)}}},{key:"forEach",value:function(x,w){var Z=this;return new(w=H(w))(function(D,b){var S;S=Z.subscribe(function(k){try{x(k)}catch(M){b(M),S&&S.unsubscribe()}},b,D)})}},{key:"_subscribe",value:function(x){var w=this.source;return w&&w.subscribe(x)}},{key:I.L,value:function(){return this}},{key:"pipe",value:function(){for(var x=arguments.length,w=new Array(x),Z=0;Z<x;Z++)w[Z]=arguments[Z];return 0===w.length?this:(0,P.U)(w)(this)}},{key:"toPromise",value:function(x){var w=this;return new(x=H(x))(function(Z,D){var b;w.subscribe(function(S){return b=S},function(S){return D(S)},function(){return Z(b)})})}}]),R}();function H(R){if(R||(R=T.v.Promise||Promise),!R)throw new Error("no Promise impl found");return R}E.create=function(R){return new E(R)}},3292:function(Ae,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(2830),W=m(2782),A={closed:!0,next:function(I){},error:function(I){if(G.v.useDeprecatedSynchronousErrorHandling)throw I;(0,W.z)(I)},complete:function(){}}},826:function(Ae,K,m){"use strict";m.d(K,{L:function(){return P}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),P=function(T){(0,A.Z)(H,T);var E=(0,j.Z)(H);function H(){return(0,G.Z)(this,H),E.apply(this,arguments)}return(0,W.Z)(H,[{key:"notifyNext",value:function(v,x,w,Z,D){this.destination.next(x)}},{key:"notifyError",value:function(v,x){this.destination.error(v)}},{key:"notifyComplete",value:function(v){this.destination.complete()}}]),H}(m(3489).L)},839:function(Ae,K,m){"use strict";m.d(K,{t:function(){return w}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(8929),E=m(341),H=m(4096),R=m(7770),v=m(5279),x=m(5283),w=function(D){(0,I.Z)(S,D);var b=(0,P.Z)(S);function S(){var k,M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,F=arguments.length>2?arguments[2]:void 0;return(0,G.Z)(this,S),(k=b.call(this)).scheduler=F,k._events=[],k._infiniteTimeWindow=!1,k._bufferSize=M<1?1:M,k._windowTime=N<1?1:N,N===Number.POSITIVE_INFINITY?(k._infiniteTimeWindow=!0,k.next=k.nextInfiniteTimeWindow):k.next=k.nextTimeWindow,k}return(0,W.Z)(S,[{key:"nextInfiniteTimeWindow",value:function(M){if(!this.isStopped){var N=this._events;N.push(M),N.length>this._bufferSize&&N.shift()}(0,A.Z)((0,j.Z)(S.prototype),"next",this).call(this,M)}},{key:"nextTimeWindow",value:function(M){this.isStopped||(this._events.push(new Z(this._getNow(),M)),this._trimBufferThenGetEvents()),(0,A.Z)((0,j.Z)(S.prototype),"next",this).call(this,M)}},{key:"_subscribe",value:function(M){var V,N=this._infiniteTimeWindow,F=N?this._events:this._trimBufferThenGetEvents(),X=this.scheduler,$=F.length;if(this.closed)throw new v.N;if(this.isStopped||this.hasError?V=H.w.EMPTY:(this.observers.push(M),V=new x.W(this,M)),X&&M.add(M=new R.ht(M,X)),N)for(var Q=0;Q<$&&!M.closed;Q++)M.next(F[Q]);else for(var te=0;te<$&&!M.closed;te++)M.next(F[te].value);return this.hasError?M.error(this.thrownError):this.isStopped&&M.complete(),V}},{key:"_getNow",value:function(){return(this.scheduler||E.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var M=this._getNow(),N=this._bufferSize,F=this._windowTime,X=this._events,$=X.length,V=0;V<$&&!(M-X[V].time<F);)V++;return $>N&&(V=Math.max(V,$-N)),V>0&&X.splice(0,V),X}}]),S}(T.xQ),Z=(0,W.Z)(function D(b,S){(0,G.Z)(this,D),this.time=b,this.value=S})},2221:function(Ae,K,m){"use strict";m.d(K,{b:function(){return A}});var G=m(5671),W=m(3144),A=function(){function j(I){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.now;(0,G.Z)(this,j),this.SchedulerAction=I,this.now=P}return(0,W.Z)(j,[{key:"schedule",value:function(P){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,E=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,P).schedule(E,T)}}]),j}();A.now=function(){return Date.now()}},8929:function(Ae,K,m){"use strict";m.d(K,{Yc:function(){return w},ug:function(){return D},xQ:function(){return Z}});var G=m(3237),W=m(1120),A=m(3144),j=m(5671),I=m(136),P=m(9388),T=m(7451),E=m(3489),H=m(4096),R=m(5279),v=m(5283),x=m(7668),w=function(b){(0,I.Z)(k,b);var S=(0,P.Z)(k);function k(M){var N;return(0,j.Z)(this,k),(N=S.call(this,M)).destination=M,N}return(0,A.Z)(k)}(E.L),Z=function(b){(0,I.Z)(k,b);var S=(0,P.Z)(k);function k(){var M;return(0,j.Z)(this,k),(M=S.call(this)).observers=[],M.closed=!1,M.isStopped=!1,M.hasError=!1,M.thrownError=null,M}return(0,A.Z)(k,[{key:x.b,value:function(){return new w(this)}},{key:"lift",value:function(N){var F=new D(this,this);return F.operator=N,F}},{key:"next",value:function(N){if(this.closed)throw new R.N;if(!this.isStopped)for(var F=this.observers,X=F.length,$=F.slice(),V=0;V<X;V++)$[V].next(N)}},{key:"error",value:function(N){if(this.closed)throw new R.N;this.hasError=!0,this.thrownError=N,this.isStopped=!0;for(var F=this.observers,X=F.length,$=F.slice(),V=0;V<X;V++)$[V].error(N);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new R.N;this.isStopped=!0;for(var N=this.observers,F=N.length,X=N.slice(),$=0;$<F;$++)X[$].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(N){if(this.closed)throw new R.N;return(0,G.Z)((0,W.Z)(k.prototype),"_trySubscribe",this).call(this,N)}},{key:"_subscribe",value:function(N){if(this.closed)throw new R.N;return this.hasError?(N.error(this.thrownError),H.w.EMPTY):this.isStopped?(N.complete(),H.w.EMPTY):(this.observers.push(N),new v.W(this,N))}},{key:"asObservable",value:function(){var N=new T.y;return N.source=this,N}}]),k}(T.y);Z.create=function(b,S){return new D(b,S)};var D=function(b){(0,I.Z)(k,b);var S=(0,P.Z)(k);function k(M,N){var F;return(0,j.Z)(this,k),(F=S.call(this)).destination=M,F.source=N,F}return(0,A.Z)(k,[{key:"next",value:function(N){var F=this.destination;F&&F.next&&F.next(N)}},{key:"error",value:function(N){var F=this.destination;F&&F.error&&this.destination.error(N)}},{key:"complete",value:function(){var N=this.destination;N&&N.complete&&this.destination.complete()}},{key:"_subscribe",value:function(N){return this.source?this.source.subscribe(N):H.w.EMPTY}}]),k}(Z)},5283:function(Ae,K,m){"use strict";m.d(K,{W:function(){return P}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),P=function(T){(0,A.Z)(H,T);var E=(0,j.Z)(H);function H(R,v){var x;return(0,G.Z)(this,H),(x=E.call(this)).subject=R,x.subscriber=v,x.closed=!1,x}return(0,W.Z)(H,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var v=this.subject,x=v.observers;if(this.subject=null,x&&0!==x.length&&!v.isStopped&&!v.closed){var w=x.indexOf(this.subscriber);-1!==w&&x.splice(w,1)}}}}]),H}(m(4096).w)},3489:function(Ae,K,m){"use strict";m.d(K,{L:function(){return Z}});var G=m(5671),W=m(3144),A=m(7326),j=m(3237),I=m(1120),P=m(136),T=m(9388),E=m(7043),H=m(3292),R=m(4096),v=m(7668),x=m(2830),w=m(2782),Z=function(b){(0,P.Z)(k,b);var S=(0,T.Z)(k);function k(M,N,F){var X;switch((0,G.Z)(this,k),(X=S.call(this)).syncErrorValue=null,X.syncErrorThrown=!1,X.syncErrorThrowable=!1,X.isStopped=!1,arguments.length){case 0:X.destination=H.c;break;case 1:if(!M){X.destination=H.c;break}if("object"==typeof M){M instanceof k?(X.syncErrorThrowable=M.syncErrorThrowable,X.destination=M,M.add((0,A.Z)(X))):(X.syncErrorThrowable=!0,X.destination=new D((0,A.Z)(X),M));break}default:X.syncErrorThrowable=!0,X.destination=new D((0,A.Z)(X),M,N,F)}return X}return(0,W.Z)(k,[{key:v.b,value:function(){return this}},{key:"next",value:function(N){this.isStopped||this._next(N)}},{key:"error",value:function(N){this.isStopped||(this.isStopped=!0,this._error(N))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,j.Z)((0,I.Z)(k.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(N){this.destination.next(N)}},{key:"_error",value:function(N){this.destination.error(N),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var N=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=N,this}}],[{key:"create",value:function(N,F,X){var $=new k(N,F,X);return $.syncErrorThrowable=!1,$}}]),k}(R.w),D=function(b){(0,P.Z)(k,b);var S=(0,T.Z)(k);function k(M,N,F,X){var $;(0,G.Z)(this,k),($=S.call(this))._parentSubscriber=M;var V,Q=(0,A.Z)($);return(0,E.m)(N)?V=N:N&&(V=N.next,F=N.error,X=N.complete,N!==H.c&&(Q=Object.create(N),(0,E.m)(Q.unsubscribe)&&$.add(Q.unsubscribe.bind(Q)),Q.unsubscribe=$.unsubscribe.bind((0,A.Z)($)))),$._context=Q,$._next=V,$._error=F,$._complete=X,$}return(0,W.Z)(k,[{key:"next",value:function(N){if(!this.isStopped&&this._next){var F=this._parentSubscriber;x.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?this.__tryOrSetError(F,this._next,N)&&this.unsubscribe():this.__tryOrUnsub(this._next,N)}}},{key:"error",value:function(N){if(!this.isStopped){var F=this._parentSubscriber,X=x.v.useDeprecatedSynchronousErrorHandling;if(this._error)X&&F.syncErrorThrowable?(this.__tryOrSetError(F,this._error,N),this.unsubscribe()):(this.__tryOrUnsub(this._error,N),this.unsubscribe());else if(F.syncErrorThrowable)X?(F.syncErrorValue=N,F.syncErrorThrown=!0):(0,w.z)(N),this.unsubscribe();else{if(this.unsubscribe(),X)throw N;(0,w.z)(N)}}}},{key:"complete",value:function(){var N=this;if(!this.isStopped){var F=this._parentSubscriber;if(this._complete){var X=function(){return N._complete.call(N._context)};x.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,X),this.unsubscribe()):(this.__tryOrUnsub(X),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(N,F){try{N.call(this._context,F)}catch(X){if(this.unsubscribe(),x.v.useDeprecatedSynchronousErrorHandling)throw X;(0,w.z)(X)}}},{key:"__tryOrSetError",value:function(N,F,X){if(!x.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{F.call(this._context,X)}catch($){return x.v.useDeprecatedSynchronousErrorHandling?(N.syncErrorValue=$,N.syncErrorThrown=!0,!0):((0,w.z)($),!0)}return!1}},{key:"_unsubscribe",value:function(){var N=this._parentSubscriber;this._context=null,this._parentSubscriber=null,N.unsubscribe()}}]),k}(Z)},4096:function(Ae,K,m){"use strict";m.d(K,{w:function(){return T}});var H,G=m(5671),W=m(3144),A=m(6688),j=m(7830),I=m(7043),P=m(7964),T=function(){function H(R){(0,G.Z)(this,H),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}return(0,W.Z)(H,[{key:"unsubscribe",value:function(){var v;if(!this.closed){var x=this._parentOrParents,w=this._ctorUnsubscribe,Z=this._unsubscribe,D=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,x instanceof H)x.remove(this);else if(null!==x)for(var b=0;b<x.length;++b){x[b].remove(this)}if((0,I.m)(Z)){w&&(this._unsubscribe=void 0);try{Z.call(this)}catch(F){v=F instanceof P.B?E(F.errors):[F]}}if((0,A.k)(D))for(var k=-1,M=D.length;++k<M;){var N=D[k];if((0,j.K)(N))try{N.unsubscribe()}catch(F){v=v||[],F instanceof P.B?v=v.concat(E(F.errors)):v.push(F)}}if(v)throw new P.B(v)}}},{key:"add",value:function(v){var x=v;if(!v)return H.EMPTY;switch(typeof v){case"function":x=new H(v);case"object":if(x===this||x.closed||"function"!=typeof x.unsubscribe)return x;if(this.closed)return x.unsubscribe(),x;if(!(x instanceof H)){var w=x;(x=new H)._subscriptions=[w]}break;default:throw new Error("unrecognized teardown "+v+" added to Subscription.")}var D=x._parentOrParents;if(null===D)x._parentOrParents=this;else if(D instanceof H){if(D===this)return x;x._parentOrParents=[D,this]}else{if(-1!==D.indexOf(this))return x;D.push(this)}var b=this._subscriptions;return null===b?this._subscriptions=[x]:b.push(x),x}},{key:"remove",value:function(v){var x=this._subscriptions;if(x){var w=x.indexOf(v);-1!==w&&x.splice(w,1)}}}]),H}();function E(H){return H.reduce(function(R,v){return R.concat(v instanceof P.B?v.errors:v)},[])}T.EMPTY=((H=new T).closed=!0,H)},2830:function(Ae,K,m){"use strict";m.d(K,{v:function(){return W}});var G=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(A){if(A){var j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=A},get useDeprecatedSynchronousErrorHandling(){return G}}},1177:function(Ae,K,m){"use strict";m.d(K,{Ds:function(){return R},IY:function(){return E},ft:function(){return x}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),I=m(3489),P=m(7451),T=m(3071),E=function(w){(0,A.Z)(D,w);var Z=(0,j.Z)(D);function D(b){var S;return(0,G.Z)(this,D),(S=Z.call(this)).parent=b,S}return(0,W.Z)(D,[{key:"_next",value:function(S){this.parent.notifyNext(S)}},{key:"_error",value:function(S){this.parent.notifyError(S),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),D}(I.L),R=function(w){(0,A.Z)(D,w);var Z=(0,j.Z)(D);function D(){return(0,G.Z)(this,D),Z.apply(this,arguments)}return(0,W.Z)(D,[{key:"notifyNext",value:function(S){this.destination.next(S)}},{key:"notifyError",value:function(S){this.destination.error(S)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),D}(I.L);function x(w,Z){if(!Z.closed){if(w instanceof P.y)return w.subscribe(Z);var D;try{D=(0,T.s)(w)(Z)}catch(b){Z.error(b)}return D}}},1762:function(Ae,K,m){"use strict";m.d(K,{N:function(){return w},c:function(){return x}});var S,G=m(3237),W=m(1120),A=m(5671),j=m(3144),I=m(136),P=m(9388),T=m(8929),E=m(7451),H=m(3489),R=m(4096),v=m(4327),x=function(S){(0,I.Z)(M,S);var k=(0,P.Z)(M);function M(N,F){var X;return(0,A.Z)(this,M),(X=k.call(this)).source=N,X.subjectFactory=F,X._refCount=0,X._isComplete=!1,X}return(0,j.Z)(M,[{key:"_subscribe",value:function(F){return this.getSubject().subscribe(F)}},{key:"getSubject",value:function(){var F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var F=this._connection;return F||(this._isComplete=!1,(F=this._connection=new R.w).add(this.source.subscribe(new Z(this.getSubject(),this))),F.closed&&(this._connection=null,F=R.w.EMPTY)),F}},{key:"refCount",value:function(){return(0,v.x)()(this)}}]),M}(E.y),w={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(S=x.prototype)._subscribe},_isComplete:{value:S._isComplete,writable:!0},getSubject:{value:S.getSubject},connect:{value:S.connect},refCount:{value:S.refCount}},Z=function(S){(0,I.Z)(M,S);var k=(0,P.Z)(M);function M(N,F){var X;return(0,A.Z)(this,M),(X=k.call(this,N)).connectable=F,X}return(0,j.Z)(M,[{key:"_error",value:function(F){this._unsubscribe(),(0,G.Z)((0,W.Z)(M.prototype),"_error",this).call(this,F)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,G.Z)((0,W.Z)(M.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var F=this.connectable;if(F){this.connectable=null;var X=F._connection;F._refCount=0,F._subject=null,F._connection=null,X&&X.unsubscribe()}}}]),M}(T.Yc);H.L},3837:function(Ae,K,m){"use strict";m.d(K,{e:function(){return E}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),I=m(7451),P=m(9931),T=m(4241),E=function(H){(0,A.Z)(v,H);var R=(0,j.Z)(v);function v(x){var w,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return(0,G.Z)(this,v),(w=R.call(this)).source=x,w.delayTime=Z,w.scheduler=D,(!(0,T.k)(Z)||Z<0)&&(w.delayTime=0),(!D||"function"!=typeof D.schedule)&&(w.scheduler=P.e),w}return(0,W.Z)(v,[{key:"_subscribe",value:function(w){var Z=this.delayTime,D=this.source;return this.scheduler.schedule(v.dispatch,Z,{source:D,subscriber:w})}}],[{key:"create",value:function(w){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return new v(w,Z,D)}},{key:"dispatch",value:function(w){var Z=w.source,D=w.subscriber;return this.add(Z.subscribe(D))}}]),v}(I.y)},6053:function(Ae,K,m){"use strict";m.d(K,{Ms:function(){return x},aj:function(){return v}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(2866),P=m(6688),T=m(826),E=m(9054),H=m(3009),R={};function v(){for(var Z=arguments.length,D=new Array(Z),b=0;b<Z;b++)D[b]=arguments[b];var S=void 0,k=void 0;return(0,I.K)(D[D.length-1])&&(k=D.pop()),"function"==typeof D[D.length-1]&&(S=D.pop()),1===D.length&&(0,P.k)(D[0])&&(D=D[0]),(0,H.n)(D,k).lift(new x(S))}var x=function(){function Z(D){(0,A.Z)(this,Z),this.resultSelector=D}return(0,j.Z)(Z,[{key:"call",value:function(b,S){return S.subscribe(new w(b,this.resultSelector))}}]),Z}(),w=function(Z){(0,G.Z)(b,Z);var D=(0,W.Z)(b);function b(S,k){var M;return(0,A.Z)(this,b),(M=D.call(this,S)).resultSelector=k,M.active=0,M.values=[],M.observables=[],M}return(0,j.Z)(b,[{key:"_next",value:function(k){this.values.push(R),this.observables.push(k)}},{key:"_complete",value:function(){var k=this.observables,M=k.length;if(0===M)this.destination.complete();else{this.active=M,this.toRespond=M;for(var N=0;N<M;N++){var F=k[N];this.add((0,E.D)(this,F,void 0,N))}}}},{key:"notifyComplete",value:function(k){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(k,M,N){var F=this.values,X=F[N],$=this.toRespond?X===R?--this.toRespond:this.toRespond:0;F[N]=M,0===$&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.slice()))}},{key:"_tryResultSelector",value:function(k){var M;try{M=this.resultSelector.apply(this,k)}catch(N){return void this.destination.error(N)}this.destination.next(M)}}]),b}(T.L)},1961:function(Ae,K,m){"use strict";m.d(K,{z:function(){return A}});var G=m(1086),W=m(534);function A(){return(0,W.u)()(G.of.apply(void 0,arguments))}},8514:function(Ae,K,m){"use strict";m.d(K,{P:function(){return j}});var G=m(7451),W=m(3527),A=m(8896);function j(I){return new G.y(function(P){var T;try{T=I()}catch(H){return void P.error(H)}return(T?(0,W.D)(T):(0,A.c)()).subscribe(P)})}},8452:function(Ae,K,m){"use strict";m.d(K,{Ck:function(){return w},Vk:function(){return b},YB:function(){return S},_c:function(){return D},cw:function(){return pe},de:function(){return F},i6:function(){return N},iM:function(){return V},tB:function(){return Z},uX:function(){return M},vD:function(){return X}});var G=m(3237),W=m(1120),A=m(5671),j=m(3144),I=m(136),P=m(9388),T=m(797),E=m(7451),H=m(3489);function w(fe){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new N({method:"GET",url:fe,headers:ue})}function Z(fe,ue,de){return new N({method:"POST",url:fe,body:ue,headers:de})}function D(fe,ue){return new N({method:"DELETE",url:fe,headers:ue})}function b(fe,ue,de){return new N({method:"PUT",url:fe,body:ue,headers:de})}function S(fe,ue,de){return new N({method:"PATCH",url:fe,body:ue,headers:de})}var k=(0,m(4850).U)(function(fe,ue){return fe.response});function M(fe,ue){return k(new N({method:"GET",url:fe,responseType:"json",headers:ue}))}var fe,N=function(fe){(0,I.Z)(de,fe);var ue=(0,P.Z)(de);function de(ge){var He;(0,A.Z)(this,de),He=ue.call(this);var ot={async:!0,createXHR:function(){return this.crossDomain?function v(){if(T.J.XMLHttpRequest)return new T.J.XMLHttpRequest;if(T.J.XDomainRequest)return new T.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function x(){if(T.J.XMLHttpRequest)return new T.J.XMLHttpRequest;var fe;try{for(var ue=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],de=0;de<3;de++)try{if(fe=ue[de],new T.J.ActiveXObject(fe))break}catch(ge){}return new T.J.ActiveXObject(fe)}catch(ge){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof ge)ot.url=ge;else for(var St in ge)ge.hasOwnProperty(St)&&(ot[St]=ge[St]);return He.request=ot,He}return(0,j.Z)(de,[{key:"_subscribe",value:function(He){return new F(He,this.request)}}]),de}(E.y);N.create=((fe=function(de){return new N(de)}).get=w,fe.post=Z,fe.delete=D,fe.put=b,fe.patch=S,fe.getJSON=M,fe);var F=function(fe){(0,I.Z)(de,fe);var ue=(0,P.Z)(de);function de(ge,He){var ot;(0,A.Z)(this,de),(ot=ue.call(this,ge)).request=He,ot.done=!1;var St=He.headers=He.headers||{};return!He.crossDomain&&!ot.getHeader(St,"X-Requested-With")&&(St["X-Requested-With"]="XMLHttpRequest"),!ot.getHeader(St,"Content-Type")&&!(T.J.FormData&&He.body instanceof T.J.FormData)&&void 0!==He.body&&(St["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),He.body=ot.serializeBody(He.body,ot.getHeader(He.headers,"Content-Type")),ot.send(),ot}return(0,j.Z)(de,[{key:"next",value:function(He){this.done=!0;var Dt,ot=this.xhr,St=this.request,Tt=this.destination;try{Dt=new X(He,ot,St)}catch(Rt){return Tt.error(Rt)}Tt.next(Dt)}},{key:"send",value:function(){var He=this.request,ot=this.request,St=ot.user,Tt=ot.method,Dt=ot.url,Rt=ot.async,Ze=ot.password,$t=ot.headers,Ft=ot.body;try{var pn=this.xhr=He.createXHR();this.setupEvents(pn,He),St?pn.open(Tt,Dt,Rt,St,Ze):pn.open(Tt,Dt,Rt),Rt&&(pn.timeout=He.timeout,pn.responseType=He.responseType),"withCredentials"in pn&&(pn.withCredentials=!!He.withCredentials),this.setHeaders(pn,$t),Ft?pn.send(Ft):pn.send()}catch(rt){this.error(rt)}}},{key:"serializeBody",value:function(He,ot){if(!He||"string"==typeof He)return He;if(T.J.FormData&&He instanceof T.J.FormData)return He;if(ot){var St=ot.indexOf(";");-1!==St&&(ot=ot.substring(0,St))}switch(ot){case"application/x-www-form-urlencoded":return Object.keys(He).map(function(Tt){return"".concat(encodeURIComponent(Tt),"=").concat(encodeURIComponent(He[Tt]))}).join("&");case"application/json":return JSON.stringify(He);default:return He}}},{key:"setHeaders",value:function(He,ot){for(var St in ot)ot.hasOwnProperty(St)&&He.setRequestHeader(St,ot[St])}},{key:"getHeader",value:function(He,ot){for(var St in He)if(St.toLowerCase()===ot.toLowerCase())return He[St]}},{key:"setupEvents",value:function(He,ot){var St=ot.progressSubscriber;function Tt(Ft){var _t,pn=Tt.subscriber,rt=Tt.progressSubscriber,Ot=Tt.request;rt&&rt.error(Ft);try{_t=new pe(this,Ot)}catch(Ct){_t=Ct}pn.error(_t)}if(He.ontimeout=Tt,Tt.request=ot,Tt.subscriber=this,Tt.progressSubscriber=St,He.upload&&"withCredentials"in He){var Dt,Rt;if(St)Dt=function(pn){Dt.progressSubscriber.next(pn)},T.J.XDomainRequest?He.onprogress=Dt:He.upload.onprogress=Dt,Dt.progressSubscriber=St;Rt=function(pn){var Ve,rt=Rt,Ot=rt.progressSubscriber,_t=rt.subscriber,Ct=rt.request;Ot&&Ot.error(pn);try{Ve=new V("ajax error",this,Ct)}catch(at){Ve=at}_t.error(Ve)},He.onerror=Rt,Rt.request=ot,Rt.subscriber=this,Rt.progressSubscriber=St}function Ze(Ft){}function $t(Ft){var pn=$t.subscriber,rt=$t.progressSubscriber,Ot=$t.request;if(4===this.readyState){var _t=1223===this.status?204:this.status,Ct="text"===this.responseType?this.response||this.responseText:this.response;if(0===_t&&(_t=Ct?200:0),_t<400)rt&&rt.complete(),pn.next(Ft),pn.complete();else{var Ve;rt&&rt.error(Ft);try{Ve=new V("ajax error "+_t,this,Ot)}catch(at){Ve=at}pn.error(Ve)}}}He.onreadystatechange=Ze,Ze.subscriber=this,Ze.progressSubscriber=St,Ze.request=ot,He.onload=$t,$t.subscriber=this,$t.progressSubscriber=St,$t.request=ot}},{key:"unsubscribe",value:function(){var He=this.done,ot=this.xhr;!He&&ot&&4!==ot.readyState&&"function"==typeof ot.abort&&ot.abort(),(0,G.Z)((0,W.Z)(de.prototype),"unsubscribe",this).call(this)}}]),de}(H.L),X=(0,j.Z)(function fe(ue,de,ge){(0,A.Z)(this,fe),this.originalEvent=ue,this.xhr=de,this.request=ge,this.status=de.status,this.responseType=de.responseType||ge.responseType,this.response=te(this.responseType,de)}),$=function(){function fe(ue,de,ge){return Error.call(this),this.message=ue,this.name="AjaxError",this.xhr=de,this.request=ge,this.status=de.status,this.responseType=de.responseType||ge.responseType,this.response=te(this.responseType,de),this}return fe.prototype=Object.create(Error.prototype),fe}(),V=$;function te(fe,ue){switch(fe){case"json":return function Q(fe){return"response"in fe?fe.responseType?fe.response:JSON.parse(fe.response||fe.responseText||"null"):JSON.parse(fe.responseText||"null")}(ue);case"xml":return ue.responseXML;default:return"response"in ue?ue.response:ue.responseText}}var pe=function be(fe,ue){return V.call(this,"ajax timeout",fe,ue),this.name="AjaxTimeoutError",this}},2741:function(Ae,K,m){"use strict";m.d(K,{p:function(){return Z}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(8929),E=m(3489),H=m(7451),R=m(4096),v=m(839),x={url:"",deserializer:function(b){return JSON.parse(b.data)},serializer:function(b){return JSON.stringify(b)}},Z=function(D){(0,I.Z)(S,D);var b=(0,P.Z)(S);function S(k,M){var N;if((0,G.Z)(this,S),N=b.call(this),k instanceof H.y)N.destination=M,N.source=k;else{var F=N._config=Object.assign({},x);if(N._output=new T.xQ,"string"==typeof k)F.url=k;else for(var X in k)k.hasOwnProperty(X)&&(F[X]=k[X]);if(!F.WebSocketCtor&&WebSocket)F.WebSocketCtor=WebSocket;else if(!F.WebSocketCtor)throw new Error("no WebSocket constructor can be found");N.destination=new v.t}return N}return(0,W.Z)(S,[{key:"lift",value:function(M){var N=new S(this._config,this.destination);return N.operator=M,N.source=this,N}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new v.t),this._output=new T.xQ}},{key:"multiplex",value:function(M,N,F){var X=this;return new H.y(function($){try{X.next(M())}catch(Q){$.error(Q)}var V=X.subscribe(function(Q){try{F(Q)&&$.next(Q)}catch(te){$.error(te)}},function(Q){return $.error(Q)},function(){return $.complete()});return function(){try{X.next(N())}catch(Q){$.error(Q)}V.unsubscribe()}})}},{key:"_connectSocket",value:function(){var M=this,N=this._config,F=N.WebSocketCtor,X=N.protocol,$=N.url,V=N.binaryType,Q=this._output,te=null;try{te=X?new F($,X):new F($),this._socket=te,V&&(this._socket.binaryType=V)}catch(pe){return void Q.error(pe)}var be=new R.w(function(){M._socket=null,te&&1===te.readyState&&te.close()});te.onopen=function(pe){if(!M._socket)return te.close(),void M._resetState();var ue=M._config.openObserver;ue&&ue.next(pe);var de=M.destination;M.destination=E.L.create(function(ge){if(1===te.readyState)try{var He=M._config.serializer;te.send(He(ge))}catch(ot){M.destination.error(ot)}},function(ge){var He=M._config.closingObserver;He&&He.next(void 0),ge&&ge.code?te.close(ge.code,ge.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),M._resetState()},function(){var ge=M._config.closingObserver;ge&&ge.next(void 0),te.close(),M._resetState()}),de&&de instanceof v.t&&be.add(de.subscribe(M.destination))},te.onerror=function(pe){M._resetState(),Q.error(pe)},te.onclose=function(pe){M._resetState();var fe=M._config.closeObserver;fe&&fe.next(pe),pe.wasClean?Q.complete():Q.error(pe)},te.onmessage=function(pe){try{var fe=M._config.deserializer;Q.next(fe(pe))}catch(ue){Q.error(ue)}}}},{key:"_subscribe",value:function(M){var N=this,F=this.source;return F?F.subscribe(M):(this._socket||this._connectSocket(),this._output.subscribe(M),M.add(function(){var X=N._socket;0===N._output.observers.length&&(X&&1===X.readyState&&X.close(),N._resetState())}),M)}},{key:"unsubscribe",value:function(){var M=this._socket;M&&1===M.readyState&&M.close(),this._resetState(),(0,A.Z)((0,j.Z)(S.prototype),"unsubscribe",this).call(this)}}]),S}(T.ug)},8059:function(Ae,K,m){"use strict";m.d(K,{h:function(){return W}});var W=m(8452).i6.create},7623:function(Ae,K,m){"use strict";m.d(K,{j:function(){return W}});var G=m(2741);function W(A){return new G.p(A)}},8896:function(Ae,K,m){"use strict";m.d(K,{E:function(){return W},c:function(){return A}});var G=m(7451),W=new G.y(function(I){return I.complete()});function A(I){return I?function j(I){return new G.y(function(P){return I.schedule(function(){return P.complete()})})}(I):W}},567:function(Ae,K,m){"use strict";m.d(K,{D:function(){return T}});var G=m(4902),W=m(7451),A=m(6688),j=m(4850),I=m(7830),P=m(3527);function T(){for(var H=arguments.length,R=new Array(H),v=0;v<H;v++)R[v]=arguments[v];if(1===R.length){var x=R[0];if((0,A.k)(x))return E(x,null);if((0,I.K)(x)&&Object.getPrototypeOf(x)===Object.prototype){var w=Object.keys(x);return E(w.map(function(D){return x[D]}),w)}}if("function"==typeof R[R.length-1]){var Z=R.pop();return E(R=1===R.length&&(0,A.k)(R[0])?R[0]:R,null).pipe((0,j.U)(function(D){return Z.apply(void 0,(0,G.Z)(D))}))}return E(R,null)}function E(H,R){return new W.y(function(v){var x=H.length;if(0!==x)for(var w=new Array(x),Z=0,D=0,b=function(M){var N=(0,P.D)(H[M]),F=!1;v.add(N.subscribe({next:function($){F||(F=!0,D++),w[M]=$},error:function($){return v.error($)},complete:function(){(++Z===x||!F)&&(D===x&&v.next(R?R.reduce(function($,V,Q){return $[V]=w[Q],$},{}):w),v.complete())}}))},S=0;S<x;S++)b(S);else v.complete()})}},3527:function(Ae,K,m){"use strict";m.d(K,{D:function(){return j}});var G=m(7451),W=m(3071),A=m(6266);function j(I,P){return P?(0,A.x)(I,P):I instanceof G.y?I:new G.y((0,W.s)(I))}},3009:function(Ae,K,m){"use strict";m.d(K,{n:function(){return j}});var G=m(7451),W=m(3650),A=m(6454);function j(I,P){return P?(0,A.r)(I,P):new G.y((0,W.V)(I))}},3753:function(Ae,K,m){"use strict";m.d(K,{R:function(){return T}});var G=m(4902),W=m(7451),A=m(6688),j=m(7043),I=m(4850);Object.prototype.toString;function T(x,w,Z,D){return(0,j.m)(Z)&&(D=Z,Z=void 0),D?T(x,w,Z).pipe((0,I.U)(function(b){return(0,A.k)(b)?D.apply(void 0,(0,G.Z)(b)):D(b)})):new W.y(function(b){E(x,w,function S(k){arguments.length>1?b.next(Array.prototype.slice.call(arguments)):b.next(k)},b,Z)})}function E(x,w,Z,D,b){var S;if(function v(x){return x&&"function"==typeof x.addEventListener&&"function"==typeof x.removeEventListener}(x)){var k=x;x.addEventListener(w,Z,b),S=function(){return k.removeEventListener(w,Z,b)}}else if(function R(x){return x&&"function"==typeof x.on&&"function"==typeof x.off}(x)){var M=x;x.on(w,Z),S=function(){return M.off(w,Z)}}else if(function H(x){return x&&"function"==typeof x.addListener&&"function"==typeof x.removeListener}(x)){var N=x;x.addListener(w,Z),S=function(){return N.removeListener(w,Z)}}else{if(!x||!x.length)throw new TypeError("Invalid event target");for(var F=0,X=x.length;F<X;F++)E(x[F],w,Z,D,b)}D.add(S)}},1715:function(Ae,K,m){"use strict";m.d(K,{F:function(){return j}});var G=m(7451),W=m(353),A=m(4241);function j(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.P;return(!(0,A.k)(P)||P<0)&&(P=0),(!T||"function"!=typeof T.schedule)&&(T=W.P),new G.y(function(E){return E.add(T.schedule(I,P,{subscriber:E,counter:0,period:P})),E})}function I(P){var T=P.subscriber,E=P.counter,H=P.period;T.next(E),this.schedule({subscriber:T,counter:E+1,period:H},H)}},6787:function(Ae,K,m){"use strict";m.d(K,{T:function(){return I}});var G=m(7451),W=m(2866),A=m(9146),j=m(3009);function I(){for(var P=Number.POSITIVE_INFINITY,T=null,E=arguments.length,H=new Array(E),R=0;R<E;R++)H[R]=arguments[R];var v=H[H.length-1];return(0,W.K)(v)?(T=H.pop(),H.length>1&&"number"==typeof H[H.length-1]&&(P=H.pop())):"number"==typeof v&&(P=H.pop()),null===T&&1===H.length&&H[0]instanceof G.y?H[0]:(0,A.J)(P)((0,j.n)(H,T))}},1086:function(Ae,K,m){"use strict";m.d(K,{of:function(){return j}});var G=m(2866),W=m(3009),A=m(6454);function j(){for(var I=arguments.length,P=new Array(I),T=0;T<I;T++)P[T]=arguments[T];var E=P[P.length-1];return(0,G.K)(E)?(P.pop(),(0,A.r)(P,E)):(0,W.n)(P)}},1946:function(Ae,K,m){"use strict";m.d(K,{S3:function(){return H}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(6688),P=m(3009),T=m(826),E=m(9054);function H(){for(var x=arguments.length,w=new Array(x),Z=0;Z<x;Z++)w[Z]=arguments[Z];if(1===w.length){if(!(0,I.k)(w[0]))return w[0];w=w[0]}return(0,P.n)(w,void 0).lift(new R)}var R=function(){function x(){(0,A.Z)(this,x)}return(0,j.Z)(x,[{key:"call",value:function(Z,D){return D.subscribe(new v(Z))}}]),x}(),v=function(x){(0,G.Z)(Z,x);var w=(0,W.Z)(Z);function Z(D){var b;return(0,A.Z)(this,Z),(b=w.call(this,D)).hasFirst=!1,b.observables=[],b.subscriptions=[],b}return(0,j.Z)(Z,[{key:"_next",value:function(b){this.observables.push(b)}},{key:"_complete",value:function(){var b=this.observables,S=b.length;if(0===S)this.destination.complete();else{for(var k=0;k<S&&!this.hasFirst;k++){var M=b[k],N=(0,E.D)(this,M,void 0,k);this.subscriptions&&this.subscriptions.push(N),this.add(N)}this.observables=null}}},{key:"notifyNext",value:function(b,S,k){if(!this.hasFirst){this.hasFirst=!0;for(var M=0;M<this.subscriptions.length;M++)if(M!==k){var N=this.subscriptions[M];N.unsubscribe(),this.remove(N)}this.subscriptions=null}this.destination.next(S)}}]),Z}(T.L)},3103:function(Ae,K,m){"use strict";m.d(K,{W:function(){return A},w:function(){return W}});var G=m(7451);function W(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,I=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0;return new G.y(function(T){void 0===I&&(I=j,j=0);var E=0,H=j;if(P)return P.schedule(A,0,{index:E,count:I,start:j,subscriber:T});for(;;){if(E++>=I){T.complete();break}if(T.next(H++),T.closed)break}})}function A(j){var I=j.start,P=j.index,T=j.count,E=j.subscriber;P>=T?E.complete():(E.next(I),!E.closed&&(j.index=P+1,j.start=I+1,this.schedule(j)))}},1737:function(Ae,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(7451);function W(j,I){return I?new G.y(function(P){return I.schedule(A,0,{error:j,subscriber:P})}):new G.y(function(P){return P.error(j)})}function A(j){var I=j.error;j.subscriber.error(I)}},8723:function(Ae,K,m){"use strict";m.d(K,{H:function(){return I}});var G=m(7451),W=m(353),A=m(4241),j=m(2866);function I(){var T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,E=arguments.length>1?arguments[1]:void 0,H=arguments.length>2?arguments[2]:void 0,R=-1;return(0,A.k)(E)?R=Number(E)<1?1:Number(E):(0,j.K)(E)&&(H=E),(0,j.K)(H)||(H=W.P),new G.y(function(v){var x=(0,A.k)(T)?T:+T-H.now();return H.schedule(P,x,{index:0,period:R,subscriber:v})})}function P(T){var E=T.index,H=T.period,R=T.subscriber;if(R.next(E),!R.closed){if(-1===H)return R.complete();T.index=E+1,this.schedule(T,H)}}},1746:function(Ae,K,m){"use strict";m.d(K,{$R:function(){return R},mx:function(){return v}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3009),P=m(6688),T=m(3489),E=m(5430),H=m(1177);function R(){for(var b=arguments.length,S=new Array(b),k=0;k<b;k++)S[k]=arguments[k];var M=S[S.length-1];return"function"==typeof M&&S.pop(),(0,I.n)(S,void 0).lift(new v(M))}var v=function(){function b(S){(0,A.Z)(this,b),this.resultSelector=S}return(0,j.Z)(b,[{key:"call",value:function(k,M){return M.subscribe(new x(k,this.resultSelector))}}]),b}(),x=function(b){(0,G.Z)(k,b);var S=(0,W.Z)(k);function k(M,N){var F;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,A.Z)(this,k),(F=S.call(this,M)).resultSelector=N,F.iterators=[],F.active=0,F.resultSelector="function"==typeof N?N:void 0,F}return(0,j.Z)(k,[{key:"_next",value:function(N){var F=this.iterators;(0,P.k)(N)?F.push(new Z(N)):"function"==typeof N[E.hZ]?F.push(new w(N[E.hZ]())):F.push(new D(this.destination,this,N))}},{key:"_complete",value:function(){var N=this.iterators,F=N.length;if(this.unsubscribe(),0!==F){this.active=F;for(var X=0;X<F;X++){var $=N[X];if($.stillUnsubscribed)this.destination.add($.subscribe());else this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var N=this.iterators,F=N.length,X=this.destination,$=0;$<F;$++){var V=N[$];if("function"==typeof V.hasValue&&!V.hasValue())return}for(var Q=!1,te=[],be=0;be<F;be++){var pe=N[be],fe=pe.next();if(pe.hasCompleted()&&(Q=!0),fe.done)return void X.complete();te.push(fe.value)}this.resultSelector?this._tryresultSelector(te):X.next(te),Q&&X.complete()}},{key:"_tryresultSelector",value:function(N){var F;try{F=this.resultSelector.apply(this,N)}catch(X){return void this.destination.error(X)}this.destination.next(F)}}]),k}(T.L),w=function(){function b(S){(0,A.Z)(this,b),this.iterator=S,this.nextResult=S.next()}return(0,j.Z)(b,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var k=this.nextResult;return this.nextResult=this.iterator.next(),k}},{key:"hasCompleted",value:function(){var k=this.nextResult;return Boolean(k&&k.done)}}]),b}(),Z=function(){function b(S){(0,A.Z)(this,b),this.array=S,this.index=0,this.length=0,this.length=S.length}return(0,j.Z)(b,[{key:E.hZ,value:function(){return this}},{key:"next",value:function(k){var M=this.index++,N=this.array;return M<this.length?{value:N[M],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),b}(),D=function(b){(0,G.Z)(k,b);var S=(0,W.Z)(k);function k(M,N,F){var X;return(0,A.Z)(this,k),(X=S.call(this,M)).parent=N,X.observable=F,X.stillUnsubscribed=!0,X.buffer=[],X.isComplete=!1,X}return(0,j.Z)(k,[{key:E.hZ,value:function(){return this}},{key:"next",value:function(){var N=this.buffer;return 0===N.length&&this.isComplete?{value:null,done:!0}:{value:N.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(N){this.buffer.push(N),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,H.ft)(this.observable,new H.IY(this))}}]),k}(H.Ds)},384:function(Ae,K,m){"use strict";m.d(K,{U:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(1177);function P(H){return function(v){return v.lift(new T(H))}}var T=function(){function H(R){(0,A.Z)(this,H),this.durationSelector=R}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.durationSelector))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).durationSelector=w,Z.hasValue=!1,Z}return(0,j.Z)(v,[{key:"_next",value:function(w){if(this.value=w,this.hasValue=!0,!this.throttled){var Z;try{Z=(0,this.durationSelector)(w)}catch(S){return this.destination.error(S)}var b=(0,I.ft)(Z,new I.IY(this));!b||b.closed?this.clearThrottle():this.add(this.throttled=b)}}},{key:"clearThrottle",value:function(){var w=this.value,Z=this.hasValue,D=this.throttled;D&&(this.remove(D),this.throttled=void 0,D.unsubscribe()),Z&&(this.value=void 0,this.hasValue=!1,this.destination.next(w))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),v}(I.Ds)},7568:function(Ae,K,m){"use strict";m.d(K,{e:function(){return j}});var G=m(353),W=m(384),A=m(8723);function j(I){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.P;return(0,W.U)(function(){return(0,A.H)(I,P)})}},7221:function(Ae,K,m){"use strict";m.d(K,{K:function(){return E}});var G=m(3237),W=m(1120),A=m(136),j=m(9388),I=m(5671),P=m(3144),T=m(1177);function E(v){return function(w){var Z=new H(v),D=w.lift(Z);return Z.caught=D}}var H=function(){function v(x){(0,I.Z)(this,v),this.selector=x}return(0,P.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new R(w,this.selector,this.caught))}}]),v}(),R=function(v){(0,A.Z)(w,v);var x=(0,j.Z)(w);function w(Z,D,b){var S;return(0,I.Z)(this,w),(S=x.call(this,Z)).selector=D,S.caught=b,S}return(0,P.Z)(w,[{key:"error",value:function(D){if(!this.isStopped){var b;try{b=this.selector(D,this.caught)}catch(M){return void(0,G.Z)((0,W.Z)(w.prototype),"error",this).call(this,M)}this._unsubscribeAndRecycle();var S=new T.IY(this);this.add(S);var k=(0,T.ft)(b,S);k!==S&&this.add(k)}}}]),w}(T.Ds)},534:function(Ae,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(9146);function W(){return(0,G.J)(1)}},1406:function(Ae,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(1709);function W(A,j){return(0,G.zg)(A,j,1)}},3906:function(Ae,K,m){"use strict";m.d(K,{Q:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H){return function(R){return R.lift(new T(H,R))}}var T=function(){function H(R,v){(0,A.Z)(this,H),this.predicate=R,this.source=v}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.predicate,this.source))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).predicate=w,D.source=Z,D.count=0,D.index=0,D}return(0,j.Z)(v,[{key:"_next",value:function(w){this.predicate?this._tryPredicate(w):this.count++}},{key:"_tryPredicate",value:function(w){var Z;try{Z=this.predicate(w,this.index++,this.source)}catch(D){return void this.destination.error(D)}Z&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),v}(I.L)},13:function(Ae,K,m){"use strict";m.d(K,{b:function(){return T}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489),P=m(353);function T(v){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P;return function(w){return w.lift(new E(v,x))}}var E=function(){function v(x,w){(0,A.Z)(this,v),this.dueTime=x,this.scheduler=w}return(0,j.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new H(w,this.dueTime,this.scheduler))}}]),v}(),H=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D,b){var S;return(0,A.Z)(this,w),(S=x.call(this,Z)).dueTime=D,S.scheduler=b,S.debouncedSubscription=null,S.lastValue=null,S.hasValue=!1,S}return(0,j.Z)(w,[{key:"_next",value:function(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(R,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var D=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}},{key:"clearDebounce",value:function(){var D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}]),w}(I.L);function R(v){v.debouncedNext()}},7314:function(Ae,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(R){return R.lift(new T(H))}}var T=function(){function H(R){(0,A.Z)(this,H),this.defaultValue=R}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.defaultValue))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).defaultValue=w,Z.isEmpty=!0,Z}return(0,j.Z)(v,[{key:"_next",value:function(w){this.isEmpty=!1,this.destination.next(w)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),v}(I.L)},943:function(Ae,K,m){"use strict";m.d(K,{g:function(){return H}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(353),P=m(2697),T=m(3489),E=m(9312);function H(w){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.P,D=(0,P.J)(w),b=D?+w-Z.now():Math.abs(w);return function(S){return S.lift(new R(b,Z))}}var R=function(){function w(Z,D){(0,A.Z)(this,w),this.delay=Z,this.scheduler=D}return(0,j.Z)(w,[{key:"call",value:function(D,b){return b.subscribe(new v(D,this.delay,this.scheduler))}}]),w}(),v=function(w){(0,G.Z)(D,w);var Z=(0,W.Z)(D);function D(b,S,k){var M;return(0,A.Z)(this,D),(M=Z.call(this,b)).delay=S,M.scheduler=k,M.queue=[],M.active=!1,M.errored=!1,M}return(0,j.Z)(D,[{key:"_schedule",value:function(S){this.active=!0,this.destination.add(S.schedule(D.dispatch,this.delay,{source:this,destination:this.destination,scheduler:S}))}},{key:"scheduleNotification",value:function(S){if(!0!==this.errored){var k=this.scheduler,M=new x(k.now()+this.delay,S);this.queue.push(M),!1===this.active&&this._schedule(k)}}},{key:"_next",value:function(S){this.scheduleNotification(E.P.createNext(S))}},{key:"_error",value:function(S){this.errored=!0,this.queue=[],this.destination.error(S),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(E.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(S){for(var k=S.source,M=k.queue,N=S.scheduler,F=S.destination;M.length>0&&M[0].time-N.now()<=0;)M.shift().notification.observe(F);if(M.length>0){var X=Math.max(0,M[0].time-N.now());this.schedule(S,X)}else this.unsubscribe(),k.active=!1}}]),D}(T.L),x=(0,j.Z)(function w(Z,D){(0,A.Z)(this,w),this.time=Z,this.notification=D})},5778:function(Ae,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H,R){return function(v){return v.lift(new T(H,R))}}var T=function(){function H(R,v){(0,A.Z)(this,H),this.compare=R,this.keySelector=v}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.compare,this.keySelector))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).keySelector=Z,D.hasKey=!1,"function"==typeof w&&(D.compare=w),D}return(0,j.Z)(v,[{key:"compare",value:function(w,Z){return w===Z}},{key:"_next",value:function(w){var Z;try{var D=this.keySelector;Z=D?D(w):w}catch(k){return this.destination.error(k)}var b=!1;if(this.hasKey)try{b=(0,this.compare)(this.key,Z)}catch(k){return this.destination.error(k)}else this.hasKey=!0;b||(this.key=Z,this.destination.next(w))}}]),v}(I.L)},9664:function(Ae,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H,R){return function(x){return x.lift(new T(H,R))}}var T=function(){function H(R,v){(0,A.Z)(this,H),this.predicate=R,this.thisArg=v}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.predicate,this.thisArg))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).predicate=w,D.thisArg=Z,D.count=0,D}return(0,j.Z)(v,[{key:"_next",value:function(w){var Z;try{Z=this.predicate.call(this.thisArg,w,this.count++)}catch(D){return void this.destination.error(D)}Z&&this.destination.next(w)}}]),v}(I.L)},537:function(Ae,K,m){"use strict";m.d(K,{x:function(){return T}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489),P=m(4096);function T(R){return function(v){return v.lift(new E(R))}}var E=function(){function R(v){(0,A.Z)(this,R),this.callback=v}return(0,j.Z)(R,[{key:"call",value:function(x,w){return w.subscribe(new H(x,this.callback))}}]),R}(),H=function(R){(0,G.Z)(x,R);var v=(0,W.Z)(x);function x(w,Z){var D;return(0,A.Z)(this,x),(D=v.call(this,w)).add(new P.w(Z)),D}return(0,j.Z)(x)}(I.L)},7224:function(Ae,K,m){"use strict";m.d(K,{P:function(){return T}});var G=m(4450),W=m(9664),A=m(2986),j=m(7314),I=m(4907),P=m(5379);function T(E,H){var R=arguments.length>=2;return function(v){return v.pipe(E?(0,W.h)(function(x,w){return E(x,w,v)}):P.y,(0,A.q)(1),R?(0,j.d)(H):(0,I.T)(function(){return new G.K}))}}},4002:function(Ae,K,m){"use strict";m.d(K,{T:function(){return D},v:function(){return v}});var G=m(3237),W=m(1120),A=m(136),j=m(9388),I=m(5671),P=m(3144),T=m(3489),E=m(4096),H=m(7451),R=m(8929);function v(S,k,M,N){return function(F){return F.lift(new x(S,k,M,N))}}var x=function(){function S(k,M,N,F){(0,I.Z)(this,S),this.keySelector=k,this.elementSelector=M,this.durationSelector=N,this.subjectSelector=F}return(0,P.Z)(S,[{key:"call",value:function(M,N){return N.subscribe(new w(M,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),S}(),w=function(S){(0,A.Z)(M,S);var k=(0,j.Z)(M);function M(N,F,X,$,V){var Q;return(0,I.Z)(this,M),(Q=k.call(this,N)).keySelector=F,Q.elementSelector=X,Q.durationSelector=$,Q.subjectSelector=V,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,P.Z)(M,[{key:"_next",value:function(F){var X;try{X=this.keySelector(F)}catch($){return void this.error($)}this._group(F,X)}},{key:"_group",value:function(F,X){var $=this.groups;$||($=this.groups=new Map);var Q,V=$.get(X);if(this.elementSelector)try{Q=this.elementSelector(F)}catch(pe){this.error(pe)}else Q=F;if(!V){V=this.subjectSelector?this.subjectSelector():new R.xQ,$.set(X,V);var te=new D(X,V,this);if(this.destination.next(te),this.durationSelector){var be;try{be=this.durationSelector(new D(X,V))}catch(pe){return void this.error(pe)}this.add(be.subscribe(new Z(X,V,this)))}}V.closed||V.next(Q)}},{key:"_error",value:function(F){var X=this.groups;X&&(X.forEach(function($,V){$.error(F)}),X.clear()),this.destination.error(F)}},{key:"_complete",value:function(){var F=this.groups;F&&(F.forEach(function(X,$){X.complete()}),F.clear()),this.destination.complete()}},{key:"removeGroup",value:function(F){this.groups.delete(F)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,G.Z)((0,W.Z)(M.prototype),"unsubscribe",this).call(this))}}]),M}(T.L),Z=function(S){(0,A.Z)(M,S);var k=(0,j.Z)(M);function M(N,F,X){var $;return(0,I.Z)(this,M),($=k.call(this,F)).key=N,$.group=F,$.parent=X,$}return(0,P.Z)(M,[{key:"_next",value:function(F){this.complete()}},{key:"_unsubscribe",value:function(){var F=this.parent,X=this.key;this.key=this.parent=null,F&&F.removeGroup(X)}}]),M}(T.L),D=function(S){(0,A.Z)(M,S);var k=(0,j.Z)(M);function M(N,F,X){var $;return(0,I.Z)(this,M),($=k.call(this)).key=N,$.groupSubject=F,$.refCountSubscription=X,$}return(0,P.Z)(M,[{key:"_subscribe",value:function(F){var X=new E.w,$=this.refCountSubscription,V=this.groupSubject;return $&&!$.closed&&X.add(new b($)),X.add(V.subscribe(F)),X}}]),M}(H.y),b=function(S){(0,A.Z)(M,S);var k=(0,j.Z)(M);function M(N){var F;return(0,I.Z)(this,M),(F=k.call(this)).parent=N,N.count++,F}return(0,P.Z)(M,[{key:"unsubscribe",value:function(){var F=this.parent;!F.closed&&!this.closed&&((0,G.Z)((0,W.Z)(M.prototype),"unsubscribe",this).call(this),F.count-=1,0===F.count&&F.attemptedToUnsubscribe&&F.unsubscribe())}}]),M}(E.w)},8127:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return T}});var G=m(4450),W=m(9664),A=m(2821),j=m(4907),I=m(7314),P=m(5379);function T(E,H){var R=arguments.length>=2;return function(v){return v.pipe(E?(0,W.h)(function(x,w){return E(x,w,v)}):P.y,(0,A.h)(1),R?(0,I.d)(H):(0,j.T)(function(){return new G.K}))}}},4850:function(Ae,K,m){"use strict";m.d(K,{U:function(){return T}});var G=m(7326),W=m(136),A=m(9388),j=m(5671),I=m(3144),P=m(3489);function T(R,v){return function(w){if("function"!=typeof R)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return w.lift(new E(R,v))}}var E=function(){function R(v,x){(0,j.Z)(this,R),this.project=v,this.thisArg=x}return(0,I.Z)(R,[{key:"call",value:function(x,w){return w.subscribe(new H(x,this.project,this.thisArg))}}]),R}(),H=function(R){(0,W.Z)(x,R);var v=(0,A.Z)(x);function x(w,Z,D){var b;return(0,j.Z)(this,x),(b=v.call(this,w)).project=Z,b.count=0,b.thisArg=D||(0,G.Z)(b),b}return(0,I.Z)(x,[{key:"_next",value:function(Z){var D;try{D=this.project.call(this.thisArg,Z,this.count++)}catch(b){return void this.destination.error(b)}this.destination.next(D)}}]),x}(P.L)},7604:function(Ae,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H){return function(R){return R.lift(new T(H))}}var T=function(){function H(R){(0,A.Z)(this,H),this.value=R}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.value))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).value=w,Z}return(0,j.Z)(v,[{key:"_next",value:function(w){this.destination.next(this.value)}}]),v}(I.L)},9146:function(Ae,K,m){"use strict";m.d(K,{J:function(){return A}});var G=m(1709),W=m(5379);function A(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,G.zg)(W.y,j)}},1709:function(Ae,K,m){"use strict";m.d(K,{VS:function(){return v},zg:function(){return E}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(4850),P=m(3527),T=m(1177);function E(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof w?function(D){return D.pipe(E(function(b,S){return(0,P.D)(x(b,S)).pipe((0,I.U)(function(k,M){return w(b,k,S,M)}))},Z))}:("number"==typeof w&&(Z=w),function(D){return D.lift(new H(x,Z))})}var H=function(){function x(w){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,A.Z)(this,x),this.project=w,this.concurrent=Z}return(0,j.Z)(x,[{key:"call",value:function(Z,D){return D.subscribe(new R(Z,this.project,this.concurrent))}}]),x}(),R=function(x){(0,G.Z)(Z,x);var w=(0,W.Z)(Z);function Z(D,b){var S,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,Z),(S=w.call(this,D)).project=b,S.concurrent=k,S.hasCompleted=!1,S.buffer=[],S.active=0,S.index=0,S}return(0,j.Z)(Z,[{key:"_next",value:function(b){this.active<this.concurrent?this._tryNext(b):this.buffer.push(b)}},{key:"_tryNext",value:function(b){var S,k=this.index++;try{S=this.project(b,k)}catch(M){return void this.destination.error(M)}this.active++,this._innerSub(S)}},{key:"_innerSub",value:function(b){var S=new T.IY(this),k=this.destination;k.add(S);var M=(0,T.ft)(b,S);M!==S&&k.add(M)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(b){this.destination.next(b)}},{key:"notifyComplete",value:function(){var b=this.buffer;this.active--,b.length>0?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),Z}(T.Ds),v=E},2536:function(Ae,K,m){"use strict";m.d(K,{O:function(){return j}});var G=m(5671),W=m(3144),A=m(1762);function j(P,T){return function(H){var R;if(R="function"==typeof P?P:function(){return P},"function"==typeof T)return H.lift(new I(R,T));var v=Object.create(H,A.N);return v.source=H,v.subjectFactory=R,v}}var I=function(){function P(T,E){(0,G.Z)(this,P),this.subjectFactory=T,this.selector=E}return(0,W.Z)(P,[{key:"call",value:function(E,H){var R=this.selector,v=this.subjectFactory(),x=R(v).subscribe(E);return x.add(H.subscribe(v)),x}}]),P}()},7770:function(Ae,K,m){"use strict";m.d(K,{QV:function(){return T},ht:function(){return H}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489),P=m(9312);function T(v){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Z){return Z.lift(new E(v,x))}}var E=function(){function v(x){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,A.Z)(this,v),this.scheduler=x,this.delay=w}return(0,j.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new H(w,this.scheduler,this.delay))}}]),v}(),H=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,A.Z)(this,w),(b=x.call(this,Z)).scheduler=D,b.delay=S,b}return(0,j.Z)(w,[{key:"scheduleMessage",value:function(D){this.destination.add(this.scheduler.schedule(w.dispatch,this.delay,new R(D,this.destination)))}},{key:"_next",value:function(D){this.scheduleMessage(P.P.createNext(D))}},{key:"_error",value:function(D){this.scheduleMessage(P.P.createError(D)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(P.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(D){var b=D.notification,S=D.destination;b.observe(S),this.unsubscribe()}}]),w}(I.L),R=(0,j.Z)(function v(x,w){(0,A.Z)(this,v),this.notification=x,this.destination=w})},519:function(Ae,K,m){"use strict";m.d(K,{G:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(){return function(H){return H.lift(new T)}}var T=function(){function H(){(0,A.Z)(this,H)}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x){var w;return(0,A.Z)(this,v),(w=R.call(this,x)).hasPrev=!1,w}return(0,j.Z)(v,[{key:"_next",value:function(w){var Z;this.hasPrev?Z=[this.prev,w]:this.hasPrev=!0,this.prev=w,Z&&this.destination.next(Z)}}]),v}(I.L)},4327:function(Ae,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(){return function(R){return R.lift(new T(R))}}var T=function(){function H(R){(0,A.Z)(this,H),this.connectable=R}return(0,j.Z)(H,[{key:"call",value:function(v,x){var w=this.connectable;w._refCount++;var Z=new E(v,w),D=x.subscribe(Z);return Z.closed||(Z.connection=w.connect()),D}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).connectable=w,Z}return(0,j.Z)(v,[{key:"_unsubscribe",value:function(){var w=this.connectable;if(w){this.connectable=null;var Z=w._refCount;if(Z<=0)this.connection=null;else if(w._refCount=Z-1,Z>1)this.connection=null;else{var D=this.connection,b=w._connection;this.connection=null,b&&(!D||b===D)&&b.unsubscribe()}}else this.connection=null}}]),v}(I.L)},2014:function(Ae,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H,R){var v=!1;return arguments.length>=2&&(v=!0),function(w){return w.lift(new T(H,R,v))}}var T=function(){function H(R,v){var x=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,A.Z)(this,H),this.accumulator=R,this.seed=v,this.hasSeed=x}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.accumulator,this.seed,this.hasSeed))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w,Z,D){var b;return(0,A.Z)(this,v),(b=R.call(this,x)).accumulator=w,b._seed=Z,b.hasSeed=D,b.index=0,b}return(0,j.Z)(v,[{key:"seed",get:function(){return this._seed},set:function(w){this.hasSeed=!0,this._seed=w}},{key:"_next",value:function(w){if(this.hasSeed)return this._tryNext(w);this.seed=w,this.destination.next(w)}},{key:"_tryNext",value:function(w){var D,Z=this.index++;try{D=this.accumulator(this.seed,w,Z)}catch(b){this.destination.error(b)}this.seed=D,this.destination.next(D)}}]),v}(I.L)},8117:function(Ae,K,m){"use strict";m.d(K,{B:function(){return I}});var G=m(2536),W=m(4327),A=m(8929);function j(){return new A.xQ}function I(){return function(P){return(0,W.x)()((0,G.O)(j)(P))}}},5154:function(Ae,K,m){"use strict";m.d(K,{d:function(){return W}});var G=m(839);function W(j,I,P){var T;return T=j&&"object"==typeof j?j:{bufferSize:j,windowTime:I,refCount:!1,scheduler:P},function(E){return E.lift(function A(j){var v,w,I=j.bufferSize,P=void 0===I?Number.POSITIVE_INFINITY:I,T=j.windowTime,E=void 0===T?Number.POSITIVE_INFINITY:T,H=j.refCount,R=j.scheduler,x=0,Z=!1,D=!1;return function(S){var k;x++,!v||Z?(Z=!1,v=new G.t(P,E,R),k=v.subscribe(this),w=S.subscribe({next:function(N){v.next(N)},error:function(N){Z=!0,v.error(N)},complete:function(){D=!0,w=void 0,v.complete()}}),D&&(w=void 0)):k=v.subscribe(this),this.add(function(){x--,k.unsubscribe(),k=void 0,w&&!D&&H&&0===x&&(w.unsubscribe(),w=void 0,v=void 0)})}}(T))}}},1307:function(Ae,K,m){"use strict";m.d(K,{T:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H){return function(R){return R.lift(new T(H))}}var T=function(){function H(R){(0,A.Z)(this,H),this.total=R}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.total))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).total=w,Z.count=0,Z}return(0,j.Z)(v,[{key:"_next",value:function(w){++this.count>this.total&&this.destination.next(w)}}]),v}(I.L)},1059:function(Ae,K,m){"use strict";m.d(K,{O:function(){return A}});var G=m(1961),W=m(2866);function A(){for(var j=arguments.length,I=new Array(j),P=0;P<j;P++)I[P]=arguments[P];var T=I[I.length-1];return(0,W.K)(T)?(I.pop(),function(E){return(0,G.z)(I,E,T)}):function(E){return(0,G.z)(I,E)}}},7545:function(Ae,K,m){"use strict";m.d(K,{w:function(){return R}});var G=m(3237),W=m(1120),A=m(136),j=m(9388),I=m(5671),P=m(3144),T=m(4850),E=m(3527),H=m(1177);function R(w,Z){return"function"==typeof Z?function(D){return D.pipe(R(function(b,S){return(0,E.D)(w(b,S)).pipe((0,T.U)(function(k,M){return Z(b,k,S,M)}))}))}:function(D){return D.lift(new v(w))}}var v=function(){function w(Z){(0,I.Z)(this,w),this.project=Z}return(0,P.Z)(w,[{key:"call",value:function(D,b){return b.subscribe(new x(D,this.project))}}]),w}(),x=function(w){(0,A.Z)(D,w);var Z=(0,j.Z)(D);function D(b,S){var k;return(0,I.Z)(this,D),(k=Z.call(this,b)).project=S,k.index=0,k}return(0,P.Z)(D,[{key:"_next",value:function(S){var k,M=this.index++;try{k=this.project(S,M)}catch(N){return void this.destination.error(N)}this._innerSub(k)}},{key:"_innerSub",value:function(S){var k=this.innerSubscription;k&&k.unsubscribe();var M=new H.IY(this),N=this.destination;N.add(M),this.innerSubscription=(0,H.ft)(S,M),this.innerSubscription!==M&&N.add(this.innerSubscription)}},{key:"_complete",value:function(){var S=this.innerSubscription;(!S||S.closed)&&(0,G.Z)((0,W.Z)(D.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&(0,G.Z)((0,W.Z)(D.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(S){this.destination.next(S)}}]),D}(H.Ds)},2986:function(Ae,K,m){"use strict";m.d(K,{q:function(){return E}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489),P=m(4231),T=m(8896);function E(v){return function(x){return 0===v?(0,T.c)():x.lift(new H(v))}}var H=function(){function v(x){if((0,A.Z)(this,v),this.total=x,this.total<0)throw new P.W}return(0,j.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new R(w,this.total))}}]),v}(),R=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b;return(0,A.Z)(this,w),(b=x.call(this,Z)).total=D,b.count=0,b}return(0,j.Z)(w,[{key:"_next",value:function(D){var b=this.total,S=++this.count;S<=b&&(this.destination.next(D),S===b&&(this.destination.complete(),this.unsubscribe()))}}]),w}(I.L)},2821:function(Ae,K,m){"use strict";m.d(K,{h:function(){return E}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489),P=m(4231),T=m(8896);function E(v){return function(w){return 0===v?(0,T.c)():w.lift(new H(v))}}var H=function(){function v(x){if((0,A.Z)(this,v),this.total=x,this.total<0)throw new P.W}return(0,j.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new R(w,this.total))}}]),v}(),R=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b;return(0,A.Z)(this,w),(b=x.call(this,Z)).total=D,b.ring=new Array,b.count=0,b}return(0,j.Z)(w,[{key:"_next",value:function(D){var b=this.ring,S=this.total,k=this.count++;b.length<S?b.push(D):b[k%S]=D}},{key:"_complete",value:function(){var D=this.destination,b=this.count;if(b>0)for(var S=this.count>=this.total?this.total:this.count,k=this.ring,M=0;M<S;M++){var N=b++%S;D.next(k[N])}D.complete()}}]),w}(I.L)},7625:function(Ae,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(1177);function P(H){return function(R){return R.lift(new T(H))}}var T=function(){function H(R){(0,A.Z)(this,H),this.notifier=R}return(0,j.Z)(H,[{key:"call",value:function(v,x){var w=new E(v),Z=(0,I.ft)(this.notifier,new I.IY(w));return Z&&!w.seenValue?(w.add(Z),x.subscribe(w)):w}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x){var w;return(0,A.Z)(this,v),(w=R.call(this,x)).seenValue=!1,w}return(0,j.Z)(v,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),v}(I.Ds)},4290:function(Ae,K,m){"use strict";m.d(K,{o:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(3489);function P(H){var R=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(v){return v.lift(new T(H,R))}}var T=function(){function H(R,v){(0,A.Z)(this,H),this.predicate=R,this.inclusive=v}return(0,j.Z)(H,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.predicate,this.inclusive))}}]),H}(),E=function(H){(0,G.Z)(v,H);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).predicate=w,D.inclusive=Z,D.index=0,D}return(0,j.Z)(v,[{key:"_next",value:function(w){var D,Z=this.destination;try{D=this.predicate(w,this.index++)}catch(b){return void Z.error(b)}this.nextOrComplete(w,D)}},{key:"nextOrComplete",value:function(w,Z){var D=this.destination;Boolean(Z)?D.next(w):(this.inclusive&&D.next(w),D.complete())}}]),v}(I.L)},2994:function(Ae,K,m){"use strict";m.d(K,{b:function(){return H}});var G=m(7326),W=m(136),A=m(9388),j=m(5671),I=m(3144),P=m(3489),T=m(7876),E=m(7043);function H(x,w,Z){return function(b){return b.lift(new R(x,w,Z))}}var R=function(){function x(w,Z,D){(0,j.Z)(this,x),this.nextOrObserver=w,this.error=Z,this.complete=D}return(0,I.Z)(x,[{key:"call",value:function(Z,D){return D.subscribe(new v(Z,this.nextOrObserver,this.error,this.complete))}}]),x}(),v=function(x){(0,W.Z)(Z,x);var w=(0,A.Z)(Z);function Z(D,b,S,k){var M;return(0,j.Z)(this,Z),(M=w.call(this,D))._tapNext=T.Z,M._tapError=T.Z,M._tapComplete=T.Z,M._tapError=S||T.Z,M._tapComplete=k||T.Z,(0,E.m)(b)?(M._context=(0,G.Z)(M),M._tapNext=b):b&&(M._context=b,M._tapNext=b.next||T.Z,M._tapError=b.error||T.Z,M._tapComplete=b.complete||T.Z),M}return(0,I.Z)(Z,[{key:"_next",value:function(b){try{this._tapNext.call(this._context,b)}catch(S){return void this.destination.error(S)}this.destination.next(b)}},{key:"_error",value:function(b){try{this._tapError.call(this._context,b)}catch(S){return void this.destination.error(S)}this.destination.error(b)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(b){return void this.destination.error(b)}return this.destination.complete()}}]),Z}(P.L)},2444:function(Ae,K,m){"use strict";m.d(K,{P:function(){return T},d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(1177),P={leading:!0,trailing:!1};function T(R){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return function(x){return x.lift(new E(R,!!v.leading,!!v.trailing))}}var E=function(){function R(v,x,w){(0,A.Z)(this,R),this.durationSelector=v,this.leading=x,this.trailing=w}return(0,j.Z)(R,[{key:"call",value:function(x,w){return w.subscribe(new H(x,this.durationSelector,this.leading,this.trailing))}}]),R}(),H=function(R){(0,G.Z)(x,R);var v=(0,W.Z)(x);function x(w,Z,D,b){var S;return(0,A.Z)(this,x),(S=v.call(this,w)).destination=w,S.durationSelector=Z,S._leading=D,S._trailing=b,S._hasValue=!1,S}return(0,j.Z)(x,[{key:"_next",value:function(Z){this._hasValue=!0,this._sendValue=Z,this._throttled||(this._leading?this.send():this.throttle(Z))}},{key:"send",value:function(){var Z=this._hasValue,D=this._sendValue;Z&&(this.destination.next(D),this.throttle(D)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(Z){var D=this.tryDurationSelector(Z);D&&this.add(this._throttled=(0,I.ft)(D,new I.IY(this)))}},{key:"tryDurationSelector",value:function(Z){try{return this.durationSelector(Z)}catch(D){return this.destination.error(D),null}}},{key:"throttlingDone",value:function(){var Z=this._throttled,D=this._trailing;Z&&Z.unsubscribe(),this._throttled=void 0,D&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),x}(I.Ds)},4907:function(Ae,K,m){"use strict";m.d(K,{T:function(){return T}});var G=m(136),W=m(9388),A=m(5671),j=m(3144),I=m(4450),P=m(3489);function T(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;return function(x){return x.lift(new E(v))}}var E=function(){function v(x){(0,A.Z)(this,v),this.errorFactory=x}return(0,j.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new H(w,this.errorFactory))}}]),v}(),H=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b;return(0,A.Z)(this,w),(b=x.call(this,Z)).errorFactory=D,b.hasValue=!1,b}return(0,j.Z)(w,[{key:"_next",value:function(D){this.hasValue=!0,this.destination.next(D)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var D;try{D=this.errorFactory()}catch(b){D=b}this.destination.error(D)}}]),w}(P.L);function R(){return new I.K}},3485:function(Ae,K,m){"use strict";m.d(K,{J:function(){return T},R:function(){return E}});var G=m(3144),W=m(5671),A=m(353),j=m(2014),I=m(8514),P=m(4850);function T(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return function(R){return(0,I.P)(function(){return R.pipe((0,j.R)(function(v,x){var w=v.current;return{value:x,current:H.now(),last:w}},{current:H.now(),value:void 0,last:void 0}),(0,P.U)(function(v){var x=v.current,w=v.last,Z=v.value;return new E(Z,x-w)}))})}}var E=(0,G.Z)(function H(R,v){(0,W.Z)(this,H),this.value=R,this.interval=v})},7781:function(Ae,K,m){"use strict";m.d(K,{A:function(){return I},E:function(){return P}});var G=m(3144),W=m(5671),A=m(353),j=m(4850);function I(){var T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return(0,j.U)(function(E){return new P(E,T.now())})}var P=(0,G.Z)(function T(E,H){(0,W.Z)(this,T),this.value=E,this.timestamp=H})},6454:function(Ae,K,m){"use strict";m.d(K,{r:function(){return A}});var G=m(7451),W=m(4096);function A(j,I){return new G.y(function(P){var T=new W.w,E=0;return T.add(I.schedule(function(){E!==j.length?(P.next(j[E++]),P.closed||T.add(this.schedule())):P.complete()})),T})}},6389:function(Ae,K,m){"use strict";m.d(K,{Q:function(){return j}});var G=m(7451),W=m(4096),A=m(5430);function j(I,P){if(!I)throw new Error("Iterable cannot be null");return new G.y(function(T){var H,E=new W.w;return E.add(function(){H&&"function"==typeof H.return&&H.return()}),E.add(P.schedule(function(){H=I[A.hZ](),E.add(P.schedule(function(){if(!T.closed){var R,v;try{var x=H.next();R=x.value,v=x.done}catch(w){return void T.error(w)}v?T.complete():(T.next(R),this.schedule())}}))})),E})}},8687:function(Ae,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(7451),W=m(4096);function A(j,I){return new G.y(function(P){var T=new W.w;return T.add(I.schedule(function(){return j.then(function(E){T.add(I.schedule(function(){P.next(E),T.add(I.schedule(function(){return P.complete()}))}))},function(E){T.add(I.schedule(function(){return P.error(E)}))})})),T})}},6266:function(Ae,K,m){"use strict";m.d(K,{x:function(){return x}});var G=m(7451),W=m(4096),A=m(3821);var I=m(8687),P=m(6454),T=m(6389),E=m(8845),H=m(8955),R=m(8515),v=m(2198);function x(w,Z){if(null!=w){if((0,E.c)(w))return function j(w,Z){return new G.y(function(D){var b=new W.w;return b.add(Z.schedule(function(){var S=w[A.L]();b.add(S.subscribe({next:function(M){b.add(Z.schedule(function(){return D.next(M)}))},error:function(M){b.add(Z.schedule(function(){return D.error(M)}))},complete:function(){b.add(Z.schedule(function(){return D.complete()}))}}))})),b})}(w,Z);if((0,H.t)(w))return(0,I.c)(w,Z);if((0,R.z)(w))return(0,P.r)(w,Z);if((0,v.T)(w)||"string"==typeof w)return(0,T.Q)(w,Z)}throw new TypeError((null!==w&&typeof w||w)+" is not observable")}},6686:function(Ae,K,m){"use strict";m.d(K,{o:function(){return T}});var G=m(5671),W=m(3144),A=m(136),j=m(9388),P=function(E){(0,A.Z)(R,E);var H=(0,j.Z)(R);function R(v,x){return(0,G.Z)(this,R),H.call(this)}return(0,W.Z)(R,[{key:"schedule",value:function(x){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),R}(m(4096).w),T=function(E){(0,A.Z)(R,E);var H=(0,j.Z)(R);function R(v,x){var w;return(0,G.Z)(this,R),(w=H.call(this,v,x)).scheduler=v,w.work=x,w.pending=!1,w}return(0,W.Z)(R,[{key:"schedule",value:function(x){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=x;var Z=this.id,D=this.scheduler;return null!=Z&&(this.id=this.recycleAsyncId(D,Z,w)),this.pending=!0,this.delay=w,this.id=this.id||this.requestAsyncId(D,this.id,w),this}},{key:"requestAsyncId",value:function(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(x.flush.bind(x,this),Z)}},{key:"recycleAsyncId",value:function(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==Z&&this.delay===Z&&!1===this.pending)return w;clearInterval(w)}},{key:"execute",value:function(x,w){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var Z=this._execute(x,w);if(Z)return Z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(x,w){var Z=!1,D=void 0;try{this.work(x)}catch(b){Z=!0,D=!!b&&b||new Error(b)}if(Z)return this.unsubscribe(),D}},{key:"_unsubscribe",value:function(){var x=this.id,w=this.scheduler,Z=w.actions,D=Z.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&Z.splice(D,1),null!=x&&(this.id=this.recycleAsyncId(w,x,null)),this.delay=null}}]),R}(P)},198:function(Ae,K,m){"use strict";m.d(K,{v:function(){return H}});var G=m(5671),W=m(3144),A=m(7326),j=m(3237),I=m(1120),P=m(136),T=m(9388),E=m(2221),H=function(R){(0,P.Z)(x,R);var v=(0,T.Z)(x);function x(w){var Z,D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.b.now;return(0,G.Z)(this,x),(Z=v.call(this,w,function(){return x.delegate&&x.delegate!==(0,A.Z)(Z)?x.delegate.now():D()})).actions=[],Z.active=!1,Z.scheduled=void 0,Z}return(0,W.Z)(x,[{key:"schedule",value:function(Z){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,b=arguments.length>2?arguments[2]:void 0;return x.delegate&&x.delegate!==this?x.delegate.schedule(Z,D,b):(0,j.Z)((0,I.Z)(x.prototype),"schedule",this).call(this,Z,D,b)}},{key:"flush",value:function(Z){var D=this.actions;if(this.active)D.push(Z);else{var b;this.active=!0;do{if(b=Z.execute(Z.state,Z.delay))break}while(Z=D.shift());if(this.active=!1,b){for(;Z=D.shift();)Z.unsubscribe();throw b}}}}]),x}(E.b)},9027:function(Ae,K,m){"use strict";m.d(K,{h:function(){return R},y:function(){return H}});var G=m(3237),W=m(1120),A=m(5671),j=m(3144),I=m(136),P=m(9388),T=m(6686),H=function(v){(0,I.Z)(w,v);var x=(0,P.Z)(w);function w(){var Z,D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,w),(Z=x.call(this,D,function(){return Z.frame})).maxFrames=b,Z.frame=0,Z.index=-1,Z}return(0,j.Z)(w,[{key:"flush",value:function(){for(var S,k,D=this.actions,b=this.maxFrames;(k=D[0])&&k.delay<=b&&(D.shift(),this.frame=k.delay,!(S=k.execute(k.state,k.delay))););if(S){for(;k=D.shift();)k.unsubscribe();throw S}}}]),w}(m(198).v);H.frameTimeFactor=10;var R=function(v){(0,I.Z)(w,v);var x=(0,P.Z)(w);function w(Z,D){var b,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.index+=1;return(0,A.Z)(this,w),(b=x.call(this,Z,D)).scheduler=Z,b.work=D,b.index=S,b.active=!0,b.index=Z.index=S,b}return(0,j.Z)(w,[{key:"schedule",value:function(D){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,G.Z)((0,W.Z)(w.prototype),"schedule",this).call(this,D,b);this.active=!1;var S=new w(this.scheduler,this.work);return this.add(S),S.schedule(D,b)}},{key:"requestAsyncId",value:function(D,b){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=D.frame+S;var k=D.actions;return k.push(this),k.sort(w.sortActions),!0}},{key:"recycleAsyncId",value:function(D,b){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(D,b){if(!0===this.active)return(0,G.Z)((0,W.Z)(w.prototype),"_execute",this).call(this,D,b)}}],[{key:"sortActions",value:function(D,b){return D.delay===b.delay?D.index===b.index?0:D.index>b.index?1:-1:D.delay>b.delay?1:-1}}]),w}(T.o)},352:function(Ae,K,m){"use strict";m.d(K,{r:function(){return x},Z:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),E=function(w){(0,I.Z)(D,w);var Z=(0,P.Z)(D);function D(b,S){var k;return(0,G.Z)(this,D),(k=Z.call(this,b,S)).scheduler=b,k.work=S,k}return(0,W.Z)(D,[{key:"requestAsyncId",value:function(S,k){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==M&&M>0?(0,A.Z)((0,j.Z)(D.prototype),"requestAsyncId",this).call(this,S,k,M):(S.actions.push(this),S.scheduled||(S.scheduled=requestAnimationFrame(function(){return S.flush(null)})))}},{key:"recycleAsyncId",value:function(S,k){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==M&&M>0||null===M&&this.delay>0)return(0,A.Z)((0,j.Z)(D.prototype),"recycleAsyncId",this).call(this,S,k,M);0===S.actions.length&&(cancelAnimationFrame(k),S.scheduled=void 0)}}]),D}(m(6686).o),R=function(w){(0,I.Z)(D,w);var Z=(0,P.Z)(D);function D(){return(0,G.Z)(this,D),Z.apply(this,arguments)}return(0,W.Z)(D,[{key:"flush",value:function(S){this.active=!0,this.scheduled=void 0;var M,k=this.actions,N=-1,F=k.length;S=S||k.shift();do{if(M=S.execute(S.state,S.delay))break}while(++N<F&&(S=k.shift()));if(this.active=!1,M){for(;++N<F&&(S=k.shift());)S.unsubscribe();throw M}}}]),D}(m(198).v),v=new R(E),x=v},9931:function(Ae,K,m){"use strict";m.d(K,{e:function(){return w},E:function(){return x}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(1450),H=function(Z){(0,I.Z)(b,Z);var D=(0,P.Z)(b);function b(S,k){var M;return(0,G.Z)(this,b),(M=D.call(this,S,k)).scheduler=S,M.work=k,M}return(0,W.Z)(b,[{key:"requestAsyncId",value:function(k,M){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==N&&N>0?(0,A.Z)((0,j.Z)(b.prototype),"requestAsyncId",this).call(this,k,M,N):(k.actions.push(this),k.scheduled||(k.scheduled=T.H.setImmediate(k.flush.bind(k,null))))}},{key:"recycleAsyncId",value:function(k,M){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==N&&N>0||null===N&&this.delay>0)return(0,A.Z)((0,j.Z)(b.prototype),"recycleAsyncId",this).call(this,k,M,N);0===k.actions.length&&(T.H.clearImmediate(M),k.scheduled=void 0)}}]),b}(m(6686).o),v=function(Z){(0,I.Z)(b,Z);var D=(0,P.Z)(b);function b(){return(0,G.Z)(this,b),D.apply(this,arguments)}return(0,W.Z)(b,[{key:"flush",value:function(k){this.active=!0,this.scheduled=void 0;var N,M=this.actions,F=-1,X=M.length;k=k||M.shift();do{if(N=k.execute(k.state,k.delay))break}while(++F<X&&(k=M.shift()));if(this.active=!1,N){for(;++F<X&&(k=M.shift());)k.unsubscribe();throw N}}}]),b}(m(198).v),x=new v(H),w=x},353:function(Ae,K,m){"use strict";m.d(K,{P:function(){return j},z:function(){return A}});var G=m(6686),A=new(m(198).v)(G.o),j=A},341:function(Ae,K,m){"use strict";m.d(K,{c:function(){return x},N:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),E=function(w){(0,I.Z)(D,w);var Z=(0,P.Z)(D);function D(b,S){var k;return(0,G.Z)(this,D),(k=Z.call(this,b,S)).scheduler=b,k.work=S,k}return(0,W.Z)(D,[{key:"schedule",value:function(S){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k>0?(0,A.Z)((0,j.Z)(D.prototype),"schedule",this).call(this,S,k):(this.delay=k,this.state=S,this.scheduler.flush(this),this)}},{key:"execute",value:function(S,k){return k>0||this.closed?(0,A.Z)((0,j.Z)(D.prototype),"execute",this).call(this,S,k):this._execute(S,k)}},{key:"requestAsyncId",value:function(S,k){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==M&&M>0||null===M&&this.delay>0?(0,A.Z)((0,j.Z)(D.prototype),"requestAsyncId",this).call(this,S,k,M):S.flush(this)}}]),D}(m(6686).o),R=function(w){(0,I.Z)(D,w);var Z=(0,P.Z)(D);function D(){return(0,G.Z)(this,D),Z.apply(this,arguments)}return(0,W.Z)(D)}(m(198).v),v=new R(E),x=v},5430:function(Ae,K,m){"use strict";m.d(K,{hZ:function(){return W}});var W=function G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:function(Ae,K,m){"use strict";m.d(K,{L:function(){return G}});var G="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(Ae,K,m){"use strict";m.d(K,{b:function(){return G}});var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(Ae,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}()},4450:function(Ae,K,m){"use strict";m.d(K,{K:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}()},1450:function(Ae,K,m){"use strict";m.d(K,{H:function(){return I}});var G=1,W=Promise.resolve(),A={};function j(T){return T in A&&(delete A[T],!0)}var I={setImmediate:function(E){var H=G++;return A[H]=!0,W.then(function(){return j(H)&&E()}),H},clearImmediate:function(E){j(E)}}},5279:function(Ae,K,m){"use strict";m.d(K,{N:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}()},854:function(Ae,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return A.prototype=Object.create(Error.prototype),A}()},7964:function(Ae,K,m){"use strict";m.d(K,{B:function(){return W}});var W=function(){function A(j){return Error.call(this),this.message=j?"".concat(j.length," errors occurred during unsubscription:\n").concat(j.map(function(I,P){return"".concat(P+1,") ").concat(I.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=j,this}return A.prototype=Object.create(Error.prototype),A}()},5128:function(Ae,K,m){"use strict";function G(W,A){for(var j=0,I=A.length;j<I;j++)for(var P=A[j],T=Object.getOwnPropertyNames(P.prototype),E=0,H=T.length;E<H;E++){var R=T[E];W.prototype[R]=P.prototype[R]}}m.d(K,{e:function(){return G}})},9476:function(Ae,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(3489);function W(A){for(;A;){var j=A,I=j.closed,P=j.destination,T=j.isStopped;if(I||T)return!1;A=P&&P instanceof G.L?P:null}return!0}},2782:function(Ae,K,m){"use strict";function G(W){setTimeout(function(){throw W},0)}m.d(K,{z:function(){return G}})},5379:function(Ae,K,m){"use strict";function G(W){return W}m.d(K,{y:function(){return G}})},6688:function(Ae,K,m){"use strict";m.d(K,{k:function(){return G}});var G=Array.isArray||function(W){return W&&"number"==typeof W.length}},8515:function(Ae,K,m){"use strict";m.d(K,{z:function(){return G}});var G=function(A){return A&&"number"==typeof A.length&&"function"!=typeof A}},2697:function(Ae,K,m){"use strict";function G(W){return W instanceof Date&&!isNaN(+W)}m.d(K,{J:function(){return G}})},7043:function(Ae,K,m){"use strict";function G(W){return"function"==typeof W}m.d(K,{m:function(){return G}})},8845:function(Ae,K,m){"use strict";m.d(K,{c:function(){return W}});var G=m(3821);function W(A){return A&&"function"==typeof A[G.L]}},2198:function(Ae,K,m){"use strict";m.d(K,{T:function(){return W}});var G=m(5430);function W(A){return A&&"function"==typeof A[G.hZ]}},4241:function(Ae,K,m){"use strict";m.d(K,{k:function(){return W}});var G=m(6688);function W(A){return!(0,G.k)(A)&&A-parseFloat(A)+1>=0}},7830:function(Ae,K,m){"use strict";function G(W){return null!==W&&"object"==typeof W}m.d(K,{K:function(){return G}})},4715:function(Ae,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(7451);function W(A){return!!A&&(A instanceof G.y||"function"==typeof A.lift&&"function"==typeof A.subscribe)}},8955:function(Ae,K,m){"use strict";function G(W){return!!W&&"function"!=typeof W.subscribe&&"function"==typeof W.then}m.d(K,{t:function(){return G}})},2866:function(Ae,K,m){"use strict";function G(W){return W&&"function"==typeof W.schedule}m.d(K,{K:function(){return G}})},7876:function(Ae,K,m){"use strict";function G(){}m.d(K,{Z:function(){return G}})},5884:function(Ae,K,m){"use strict";function G(W,A){function j(){return!j.pred.apply(j.thisArg,arguments)}return j.pred=W,j.thisArg=A,j}m.d(K,{f:function(){return G}})},4843:function(Ae,K,m){"use strict";m.d(K,{U:function(){return A},z:function(){return W}});var G=m(5379);function W(){for(var j=arguments.length,I=new Array(j),P=0;P<j;P++)I[P]=arguments[P];return A(I)}function A(j){return 0===j.length?G.y:1===j.length?j[0]:function(P){return j.reduce(function(T,E){return E(T)},P)}}},797:function(Ae,K,m){"use strict";m.d(K,{J:function(){return j}});var G="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A="undefined"!=typeof global&&global,j=G||A||W;!function(){if(!j)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(Ae,K,m){"use strict";m.d(K,{s:function(){return R}});var G=m(3650),W=m(3445),A=m(3720),j=m(1810),I=m(8515),P=m(8955),T=m(7830),E=m(5430),H=m(3821),R=function(x){if(x&&"function"==typeof x[H.L])return(0,j.h)(x);if((0,I.z)(x))return(0,G.V)(x);if((0,P.t)(x))return(0,W.A)(x);if(x&&"function"==typeof x[E.hZ])return(0,A.u)(x);var w=(0,T.K)(x)?"an invalid object":"'".concat(x,"'"),Z="You provided ".concat(w," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(Z)}},3650:function(Ae,K,m){"use strict";m.d(K,{V:function(){return G}});var G=function(A){return function(j){for(var I=0,P=A.length;I<P&&!j.closed;I++)j.next(A[I]);j.complete()}}},3720:function(Ae,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(5430),W=function(j){return function(I){for(var P=j[G.hZ]();;){var T=void 0;try{T=P.next()}catch(E){return I.error(E),I}if(T.done){I.complete();break}if(I.next(T.value),I.closed)break}return"function"==typeof P.return&&I.add(function(){P.return&&P.return()}),I}}},1810:function(Ae,K,m){"use strict";m.d(K,{h:function(){return W}});var G=m(3821),W=function(j){return function(I){var P=j[G.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(I)}}},3445:function(Ae,K,m){"use strict";m.d(K,{A:function(){return W}});var G=m(2782),W=function(j){return function(I){return j.then(function(P){I.closed||(I.next(P),I.complete())},function(P){return I.error(P)}).then(null,G.z),I}}},9054:function(Ae,K,m){"use strict";m.d(K,{D:function(){return j}});var G=m(1869),W=m(3071),A=m(7451);function j(I,P,T,E){var H=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new G.d(I,T,E);if(!H.closed)return P instanceof A.y?P.subscribe(H):(0,W.s)(P)(H)}},5221:function(Ae,K,m){"use strict";m.d(K,{Y:function(){return j}});var G=m(3489),W=m(7668),A=m(3292);function j(I,P,T){if(I){if(I instanceof G.L)return I;if(I[W.b])return I[W.b]()}return I||P||T?new G.L(I,P,T):new G.L(A.c)}},6650:function(Ae,K,m){"use strict";m.r(K),m.d(K,{audit:function(){return G.U},auditTime:function(){return W.e},buffer:function(){return H},bufferCount:function(){return D},bufferTime:function(){return F},bufferToggle:function(){return de},bufferWhen:function(){return ot},catchError:function(){return Dt.K},combineAll:function(){return Ze},combineLatest:function(){return Ot},concat:function(){return Ct},concatAll:function(){return Ve.u},concatMap:function(){return at.b},concatMapTo:function(){return ht},count:function(){return Ut.Q},debounce:function(){return Wt},debounceTime:function(){return qe.b},defaultIfEmpty:function(){return Be.d},delay:function(){return se.g},delayWhen:function(){return Lt},dematerialize:function(){return Vt},distinct:function(){return Fe},distinctUntilChanged:function(){return he.x},distinctUntilKeyChanged:function(){return Le},elementAt:function(){return sn},endWith:function(){return ln},every:function(){return Sn},exhaust:function(){return At},exhaustMap:function(){return We},expand:function(){return Je},filter:function(){return ut.h},finalize:function(){return Un.x},find:function(){return Kt},findIndex:function(){return gt},first:function(){return wt.P},flatMap:function(){return ki.VS},groupBy:function(){return nn.v},ignoreElements:function(){return jn},isEmpty:function(){return ir},last:function(){return zi.Z},map:function(){return Et.U},mapTo:function(){return Va.h},materialize:function(){return wa},max:function(){return vr},merge:function(){return ni},mergeAll:function(){return ws.J},mergeMap:function(){return ki.zg},mergeMapTo:function(){return Ko},mergeScan:function(){return ii},min:function(){return xr},multicast:function(){return Yi.O},observeOn:function(){return Eo.QV},onErrorResumeNext:function(){return ca},pairwise:function(){return Ya.G},partition:function(){return Ui},pluck:function(){return qs},publish:function(){return $u},publishBehavior:function(){return Ai},publishLast:function(){return Ki},publishReplay:function(){return en},race:function(){return no},reduce:function(){return Gn},refCount:function(){return Pi.x},repeat:function(){return Jo},repeatWhen:function(){return Rn},retry:function(){return Yn},retryWhen:function(){return Ji},sample:function(){return ai},sampleTime:function(){return hr},scan:function(){return Di.R},sequenceEqual:function(){return go},share:function(){return Ka.B},shareReplay:function(){return qa.d},single:function(){return Xo},skip:function(){return xc.T},skipLast:function(){return Br},skipUntil:function(){return mf},skipWhile:function(){return po},startWith:function(){return Dc.O},subscribeOn:function(){return yu},switchAll:function(){return bd},switchMap:function(){return pa.w},switchMapTo:function(){return Ts},take:function(){return Ht.q},takeLast:function(){return na.h},takeUntil:function(){return Xm.R},takeWhile:function(){return Ja.o},tap:function(){return nh.b},throttle:function(){return Ms.P},throttleTime:function(){return Cr},throwIfEmpty:function(){return Nt.T},timeInterval:function(){return ih.J},timeout:function(){return ke},timeoutWith:function(){return bu},timestamp:function(){return le.A},toArray:function(){return Oe},window:function(){return pt},windowCount:function(){return Qn},windowTime:function(){return Xs},windowToggle:function(){return e_},windowWhen:function(){return Ac},withLatestFrom:function(){return xs},zip:function(){return vl},zipAll:function(){return Ma}});var G=m(384),W=m(7568),A=m(7326),j=m(136),I=m(9388),P=m(5671),T=m(3144),E=m(1177);function H(Pe){return function(_e){return _e.lift(new R(Pe))}}var R=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.closingNotifier=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new v(_e,this.closingNotifier))}}]),Pe}(),v=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).buffer=[],ze.add((0,E.ft)(Te,new E.IY((0,A.Z)(ze)))),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.buffer.push(Te)}},{key:"notifyNext",value:function(){var Te=this.buffer;this.buffer=[],this.destination.next(Te)}}]),_e}(E.Ds),x=m(3237),w=m(1120),Z=m(3489);function D(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(xe){return xe.lift(new b(Pe,Ge))}}var b=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.bufferSize=Ge,this.startBufferEvery=_e,this.subscriberClass=_e&&Ge!==_e?k:S}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new this.subscriberClass(_e,this.bufferSize,this.startBufferEvery))}}]),Pe}(),S=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).bufferSize=Te,ze.buffer=[],ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.buffer;ze.push(Te),ze.length==this.bufferSize&&(this.destination.next(ze),this.buffer=[])}},{key:"_complete",value:function(){var Te=this.buffer;Te.length>0&&this.destination.next(Te),(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(Z.L),k=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).bufferSize=Te,mt.startBufferEvery=ze,mt.buffers=[],mt.count=0,mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.bufferSize,mt=this.startBufferEvery,Mt=this.buffers,wn=this.count;this.count++,wn%mt==0&&Mt.push([]);for(var Rr=Mt.length;Rr--;){var si=Mt[Rr];si.push(Te),si.length===ze&&(Mt.splice(Rr,1),this.destination.next(si))}}},{key:"_complete",value:function(){for(var Te=this.buffers,ze=this.destination;Te.length>0;){var mt=Te.shift();mt.length>0&&ze.next(mt)}(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(Z.L),M=m(353),N=m(2866);function F(Pe){var Ge=arguments.length,_e=M.P;(0,N.K)(arguments[arguments.length-1])&&(_e=arguments[arguments.length-1],Ge--);var xe=null;Ge>=2&&(xe=arguments[1]);var Te=Number.POSITIVE_INFINITY;return Ge>=3&&(Te=arguments[2]),function(mt){return mt.lift(new X(Pe,xe,Te,_e))}}var X=function(){function Pe(Ge,_e,xe,Te){(0,P.Z)(this,Pe),this.bufferTimeSpan=Ge,this.bufferCreationInterval=_e,this.maxBufferSize=xe,this.scheduler=Te}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new V(_e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Pe}(),$=(0,T.Z)(function Pe(){(0,P.Z)(this,Pe),this.buffer=[]}),V=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;(0,P.Z)(this,_e),(wn=Ge.call(this,xe)).bufferTimeSpan=Te,wn.bufferCreationInterval=ze,wn.maxBufferSize=mt,wn.scheduler=Mt,wn.contexts=[];var Rr=wn.openContext();if(wn.timespanOnly=null==ze||ze<0,wn.timespanOnly){var si={subscriber:(0,A.Z)(wn),context:Rr,bufferTimeSpan:Te};wn.add(Rr.closeAction=Mt.schedule(Q,Te,si))}else{var li={subscriber:(0,A.Z)(wn),context:Rr},$s={bufferTimeSpan:Te,bufferCreationInterval:ze,subscriber:(0,A.Z)(wn),scheduler:Mt};wn.add(Rr.closeAction=Mt.schedule(be,Te,li)),wn.add(Mt.schedule(te,ze,$s))}return wn}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var Mt,ze=this.contexts,mt=ze.length,wn=0;wn<mt;wn++){var Rr=ze[wn],si=Rr.buffer;si.push(Te),si.length==this.maxBufferSize&&(Mt=Rr)}Mt&&this.onBufferFull(Mt)}},{key:"_error",value:function(Te){this.contexts.length=0,(0,x.Z)((0,w.Z)(_e.prototype),"_error",this).call(this,Te)}},{key:"_complete",value:function(){for(var Te=this.contexts,ze=this.destination;Te.length>0;){var mt=Te.shift();ze.next(mt.buffer)}(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(Te){this.closeContext(Te);var ze=Te.closeAction;if(ze.unsubscribe(),this.remove(ze),!this.closed&&this.timespanOnly){Te=this.openContext();var mt=this.bufferTimeSpan,Mt={subscriber:this,context:Te,bufferTimeSpan:mt};this.add(Te.closeAction=this.scheduler.schedule(Q,mt,Mt))}}},{key:"openContext",value:function(){var Te=new $;return this.contexts.push(Te),Te}},{key:"closeContext",value:function(Te){this.destination.next(Te.buffer);var ze=this.contexts;(ze?ze.indexOf(Te):-1)>=0&&ze.splice(ze.indexOf(Te),1)}}]),_e}(Z.L);function Q(Pe){var Ge=Pe.subscriber,_e=Pe.context;_e&&Ge.closeContext(_e),Ge.closed||(Pe.context=Ge.openContext(),Pe.context.closeAction=this.schedule(Pe,Pe.bufferTimeSpan))}function te(Pe){var Ge=Pe.bufferCreationInterval,_e=Pe.bufferTimeSpan,xe=Pe.subscriber,Te=Pe.scheduler,ze=xe.openContext();xe.closed||(xe.add(ze.closeAction=Te.schedule(be,_e,{subscriber:xe,context:ze})),this.schedule(Pe,Ge))}function be(Pe){var Ge=Pe.subscriber,_e=Pe.context;Ge.closeContext(_e)}var pe=m(4096),fe=m(9054),ue=m(826);function de(Pe,Ge){return function(xe){return xe.lift(new ge(Pe,Ge))}}var ge=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.openings=Ge,this.closingSelector=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new He(_e,this.openings,this.closingSelector))}}]),Pe}(),He=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).closingSelector=ze,mt.contexts=[],mt.add((0,fe.D)((0,A.Z)(mt),Te)),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var ze=this.contexts,mt=ze.length,Mt=0;Mt<mt;Mt++)ze[Mt].buffer.push(Te)}},{key:"_error",value:function(Te){for(var ze=this.contexts;ze.length>0;){var mt=ze.shift();mt.subscription.unsubscribe(),mt.buffer=null,mt.subscription=null}this.contexts=null,(0,x.Z)((0,w.Z)(_e.prototype),"_error",this).call(this,Te)}},{key:"_complete",value:function(){for(var Te=this.contexts;Te.length>0;){var ze=Te.shift();this.destination.next(ze.buffer),ze.subscription.unsubscribe(),ze.buffer=null,ze.subscription=null}this.contexts=null,(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(Te,ze){Te?this.closeBuffer(Te):this.openBuffer(ze)}},{key:"notifyComplete",value:function(Te){this.closeBuffer(Te.context)}},{key:"openBuffer",value:function(Te){try{var mt=this.closingSelector.call(this,Te);mt&&this.trySubscribe(mt)}catch(Mt){this._error(Mt)}}},{key:"closeBuffer",value:function(Te){var ze=this.contexts;if(ze&&Te){var mt=Te.buffer,Mt=Te.subscription;this.destination.next(mt),ze.splice(ze.indexOf(Te),1),this.remove(Mt),Mt.unsubscribe()}}},{key:"trySubscribe",value:function(Te){var ze=this.contexts,Mt=new pe.w,wn={buffer:[],subscription:Mt};ze.push(wn);var Rr=(0,fe.D)(this,Te,wn);!Rr||Rr.closed?this.closeBuffer(wn):(Rr.context=wn,this.add(Rr),Mt.add(Rr))}}]),_e}(ue.L);function ot(Pe){return function(Ge){return Ge.lift(new St(Pe))}}var St=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.closingSelector=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Tt(_e,this.closingSelector))}}]),Pe}(),Tt=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).closingSelector=Te,ze.subscribing=!1,ze.openBuffer(),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.buffer.push(Te)}},{key:"_complete",value:function(){var Te=this.buffer;Te&&this.destination.next(Te),(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var Te=this.closingSubscription;Te&&(this.remove(Te),Te.unsubscribe());var mt,ze=this.buffer;this.buffer&&this.destination.next(ze),this.buffer=[];try{mt=(0,this.closingSelector)()}catch(wn){return this.error(wn)}Te=new pe.w,this.closingSubscription=Te,this.add(Te),this.subscribing=!0,Te.add((0,E.ft)(mt,new E.IY(this))),this.subscribing=!1}}]),_e}(E.Ds),Dt=m(7221),Rt=m(6053);function Ze(Pe){return function(Ge){return Ge.lift(new Rt.Ms(Pe))}}var $t=m(4902),Ft=m(6688),pn=m(3527);function Ot(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];var xe=null;return"function"==typeof Ge[Ge.length-1]&&(xe=Ge.pop()),1===Ge.length&&(0,Ft.k)(Ge[0])&&(Ge=Ge[0].slice()),function(Te){return Te.lift.call((0,pn.D)([Te].concat((0,$t.Z)(Ge))),new Rt.Ms(xe))}}var _t=m(1961);function Ct(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return function(xe){return xe.lift.call(_t.z.apply(void 0,[xe].concat(Ge)))}}var Ve=m(534),at=m(1406);function ht(Pe,Ge){return(0,at.b)(function(){return Pe},Ge)}var Ut=m(3906);function Wt(Pe){return function(Ge){return Ge.lift(new U(Pe))}}var U=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.durationSelector=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new B(_e,this.durationSelector))}}]),Pe}(),B=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).durationSelector=Te,ze.hasValue=!1,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){try{var ze=this.durationSelector.call(this,Te);ze&&this._tryNext(Te,ze)}catch(mt){this.destination.error(mt)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(Te,ze){var mt=this.durationSubscription;this.value=Te,this.hasValue=!0,mt&&(mt.unsubscribe(),this.remove(mt)),(mt=(0,E.ft)(ze,new E.IY(this)))&&!mt.closed&&this.add(this.durationSubscription=mt)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var Te=this.value,ze=this.durationSubscription;ze&&(this.durationSubscription=void 0,ze.unsubscribe(),this.remove(ze)),this.value=void 0,this.hasValue=!1,(0,x.Z)((0,w.Z)(_e.prototype),"_next",this).call(this,Te)}}}]),_e}(E.Ds),qe=m(13),Be=m(7314),se=m(943),t=m(7451);function Lt(Pe,Ge){return Ge?function(_e){return new Qt(_e,Ge).lift(new zt(Pe))}:function(_e){return _e.lift(new zt(Pe))}}var zt=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.delayDurationSelector=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new an(_e,this.delayDurationSelector))}}]),Pe}(),an=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).delayDurationSelector=Te,ze.completed=!1,ze.delayNotifierSubscriptions=[],ze.index=0,ze}return(0,T.Z)(_e,[{key:"notifyNext",value:function(Te,ze,mt,Mt,wn){this.destination.next(Te),this.removeSubscription(wn),this.tryComplete()}},{key:"notifyError",value:function(Te,ze){this._error(Te)}},{key:"notifyComplete",value:function(Te){var ze=this.removeSubscription(Te);ze&&this.destination.next(ze),this.tryComplete()}},{key:"_next",value:function(Te){var ze=this.index++;try{var mt=this.delayDurationSelector(Te,ze);mt&&this.tryDelay(mt,Te)}catch(Mt){this.destination.error(Mt)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(Te){Te.unsubscribe();var ze=this.delayNotifierSubscriptions.indexOf(Te);return-1!==ze&&this.delayNotifierSubscriptions.splice(ze,1),Te.outerValue}},{key:"tryDelay",value:function(Te,ze){var mt=(0,fe.D)(this,Te,ze);mt&&!mt.closed&&(this.destination.add(mt),this.delayNotifierSubscriptions.push(mt))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),_e}(ue.L),Qt=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this)).source=xe,ze.subscriptionDelay=Te,ze}return(0,T.Z)(_e,[{key:"_subscribe",value:function(Te){this.subscriptionDelay.subscribe(new vn(Te,this.source))}}]),_e}(t.y),vn=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this)).parent=xe,ze.source=Te,ze.sourceSubscribed=!1,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.subscribeToSource()}},{key:"_error",value:function(Te){this.unsubscribe(),this.parent.error(Te)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),_e}(Z.L);function Vt(){return function(Ge){return Ge.lift(new Jt)}}var Jt=function(){function Pe(){(0,P.Z)(this,Pe)}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qe(_e))}}]),Pe}(),Qe=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ge.call(this,xe)}return(0,T.Z)(_e,[{key:"_next",value:function(Te){Te.observe(this.destination)}}]),_e}(Z.L);function Fe(Pe,Ge){return function(_e){return _e.lift(new ne(Pe,Ge))}}var ne=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.keySelector=Ge,this.flushes=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new ye(_e,this.keySelector,this.flushes))}}]),Pe}(),ye=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).keySelector=Te,mt.values=new Set,ze&&mt.add((0,E.ft)(ze,new E.IY((0,A.Z)(mt)))),mt}return(0,T.Z)(_e,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(Te){this._error(Te)}},{key:"_next",value:function(Te){this.keySelector?this._useKeySelector(Te):this._finalizeNext(Te,Te)}},{key:"_useKeySelector",value:function(Te){var ze,mt=this.destination;try{ze=this.keySelector(Te)}catch(Mt){return void mt.error(Mt)}this._finalizeNext(ze,Te)}},{key:"_finalizeNext",value:function(Te,ze){var mt=this.values;mt.has(Te)||(mt.add(Te),this.destination.next(ze))}}]),_e}(E.Ds),he=m(5778);function Le(Pe,Ge){return(0,he.x)(function(_e,xe){return Ge?Ge(_e[Pe],xe[Pe]):_e[Pe]===xe[Pe]})}var lt=m(4231),ut=m(9664),Nt=m(4907),Ht=m(2986);function sn(Pe,Ge){if(Pe<0)throw new lt.W;var _e=arguments.length>=2;return function(xe){return xe.pipe((0,ut.h)(function(Te,ze){return ze===Pe}),(0,Ht.q)(1),_e?(0,Be.d)(Ge):(0,Nt.T)(function(){return new lt.W}))}}var yn=m(1086);function ln(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return function(xe){return(0,_t.z)(xe,yn.of.apply(void 0,Ge))}}function Sn(Pe,Ge){return function(_e){return _e.lift(new hn(Pe,Ge,_e))}}var hn=function(){function Pe(Ge,_e,xe){(0,P.Z)(this,Pe),this.predicate=Ge,this.thisArg=_e,this.source=xe}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new mn(_e,this.predicate,this.thisArg,this.source))}}]),Pe}(),mn=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,P.Z)(this,_e),(Mt=Ge.call(this,xe)).predicate=Te,Mt.thisArg=ze,Mt.source=mt,Mt.index=0,Mt.thisArg=ze||(0,A.Z)(Mt),Mt}return(0,T.Z)(_e,[{key:"notifyComplete",value:function(Te){this.destination.next(Te),this.destination.complete()}},{key:"_next",value:function(Te){var ze=!1;try{ze=this.predicate.call(this.thisArg,Te,this.index++,this.source)}catch(mt){return void this.destination.error(mt)}ze||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(Z.L);function At(){return function(Pe){return Pe.lift(new xt)}}var xt=function(){function Pe(){(0,P.Z)(this,Pe)}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new tt(_e))}}]),Pe}(),tt=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe){var Te;return(0,P.Z)(this,_e),(Te=Ge.call(this,xe)).hasCompleted=!1,Te.hasSubscription=!1,Te}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.hasSubscription||(this.hasSubscription=!0,this.add((0,E.ft)(Te,new E.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(E.Ds),Et=m(4850);function We(Pe,Ge){return Ge?function(_e){return _e.pipe(We(function(xe,Te){return(0,pn.D)(Pe(xe,Te)).pipe((0,Et.U)(function(ze,mt){return Ge(xe,ze,Te,mt)}))}))}:function(_e){return _e.lift(new Ye(Pe))}}var Ye=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.project=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Re(_e,this.project))}}]),Pe}(),Re=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).project=Te,ze.hasSubscription=!1,ze.hasCompleted=!1,ze.index=0,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.hasSubscription||this.tryNext(Te)}},{key:"tryNext",value:function(Te){var ze,mt=this.index++;try{ze=this.project(Te,mt)}catch(Mt){return void this.destination.error(Mt)}this.hasSubscription=!0,this._innerSub(ze)}},{key:"_innerSub",value:function(Te){var ze=new E.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,E.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Te){this.destination.next(Te)}},{key:"notifyError",value:function(Te){this.destination.error(Te)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(E.Ds);function Je(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,_e=arguments.length>2?arguments[2]:void 0;return Ge=(Ge||0)<1?Number.POSITIVE_INFINITY:Ge,function(xe){return xe.lift(new vt(Pe,Ge,_e))}}var vt=function(){function Pe(Ge,_e,xe){(0,P.Z)(this,Pe),this.project=Ge,this.concurrent=_e,this.scheduler=xe}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new fn(_e,this.project,this.concurrent,this.scheduler))}}]),Pe}(),fn=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,P.Z)(this,_e),(Mt=Ge.call(this,xe)).project=Te,Mt.concurrent=ze,Mt.scheduler=mt,Mt.index=0,Mt.active=0,Mt.hasCompleted=!1,ze<Number.POSITIVE_INFINITY&&(Mt.buffer=[]),Mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.destination;if(ze.closed)this._complete();else{var mt=this.index++;if(this.active<this.concurrent){ze.next(Te);try{var wn=(0,this.project)(Te,mt);if(this.scheduler){var Rr={subscriber:this,result:wn,value:Te,index:mt};this.destination.add(this.scheduler.schedule(_e.dispatch,0,Rr))}else this.subscribeToProjection(wn,Te,mt)}catch(li){ze.error(li)}}else this.buffer.push(Te)}}},{key:"subscribeToProjection",value:function(Te,ze,mt){this.active++,this.destination.add((0,E.ft)(Te,new E.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Te){this._next(Te)}},{key:"notifyComplete",value:function(){var Te=this.buffer;this.active--,Te&&Te.length>0&&this._next(Te.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(Te){var ze=Te.subscriber,mt=Te.result,Mt=Te.value,wn=Te.index;ze.subscribeToProjection(mt,Mt,wn)}}]),_e}(E.Ds),Un=m(537);function Kt(Pe,Ge){if("function"!=typeof Pe)throw new TypeError("predicate is not a function");return function(_e){return _e.lift(new yt(Pe,_e,!1,Ge))}}var yt=function(){function Pe(Ge,_e,xe,Te){(0,P.Z)(this,Pe),this.predicate=Ge,this.source=_e,this.yieldIndex=xe,this.thisArg=Te}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new et(_e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Pe}(),et=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,P.Z)(this,_e),(wn=Ge.call(this,xe)).predicate=Te,wn.source=ze,wn.yieldIndex=mt,wn.thisArg=Mt,wn.index=0,wn}return(0,T.Z)(_e,[{key:"notifyComplete",value:function(Te){var ze=this.destination;ze.next(Te),ze.complete(),this.unsubscribe()}},{key:"_next",value:function(Te){var ze=this.predicate,mt=this.thisArg,Mt=this.index++;try{ze.call(mt||this,Te,Mt,this.source)&&this.notifyComplete(this.yieldIndex?Mt:Te)}catch(Rr){this.destination.error(Rr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),_e}(Z.L);function gt(Pe,Ge){return function(_e){return _e.lift(new yt(Pe,_e,!0,Ge))}}var wt=m(7224),nn=m(4002);function jn(){return function(Ge){return Ge.lift(new Wn)}}var Wn=function(){function Pe(){(0,P.Z)(this,Pe)}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Vn(_e))}}]),Pe}(),Vn=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(){return(0,P.Z)(this,_e),Ge.apply(this,arguments)}return(0,T.Z)(_e,[{key:"_next",value:function(Te){}}]),_e}(Z.L);function ir(){return function(Pe){return Pe.lift(new Ir)}}var Ir=function(){function Pe(){(0,P.Z)(this,Pe)}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new yi(_e))}}]),Pe}(),yi=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ge.call(this,xe)}return(0,T.Z)(_e,[{key:"notifyComplete",value:function(Te){var ze=this.destination;ze.next(Te),ze.complete()}},{key:"_next",value:function(Te){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(Z.L),zi=m(8127),Va=m(7604),Ca=m(9312);function wa(){return function(Ge){return Ge.lift(new ls)}}var ls=function(){function Pe(){(0,P.Z)(this,Pe)}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new ta(_e))}}]),Pe}(),ta=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ge.call(this,xe)}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.destination.next(Ca.P.createNext(Te))}},{key:"_error",value:function(Te){var ze=this.destination;ze.next(Ca.P.createError(Te)),ze.complete()}},{key:"_complete",value:function(){var Te=this.destination;Te.next(Ca.P.createComplete()),Te.complete()}}]),_e}(Z.L),Di=m(2014),na=m(2821),_o=m(4843);function Gn(Pe,Ge){return arguments.length>=2?function(xe){return(0,_o.z)((0,Di.R)(Pe,Ge),(0,na.h)(1),(0,Be.d)(Ge))(xe)}:function(xe){return(0,_o.z)((0,Di.R)(function(Te,ze,mt){return Pe(Te,ze,mt+1)}),(0,na.h)(1))(xe)}}function vr(Pe){return Gn("function"==typeof Pe?function(_e,xe){return Pe(_e,xe)>0?_e:xe}:function(_e,xe){return _e>xe?_e:xe})}var fi=m(6787);function ni(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return function(xe){return xe.lift.call(fi.T.apply(void 0,[xe].concat(Ge)))}}var ws=m(9146),ki=m(1709);function Ko(Pe,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ge?(0,ki.zg)(function(){return Pe},Ge,_e):("number"==typeof Ge&&(_e=Ge),(0,ki.zg)(function(){return Pe},_e))}function ii(Pe,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(xe){return xe.lift(new So(Pe,Ge,_e))}}var So=function(){function Pe(Ge,_e,xe){(0,P.Z)(this,Pe),this.accumulator=Ge,this.seed=_e,this.concurrent=xe}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new so(_e,this.accumulator,this.seed,this.concurrent))}}]),Pe}(),so=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,P.Z)(this,_e),(Mt=Ge.call(this,xe)).accumulator=Te,Mt.acc=ze,Mt.concurrent=mt,Mt.hasValue=!1,Mt.hasCompleted=!1,Mt.buffer=[],Mt.active=0,Mt.index=0,Mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){if(this.active<this.concurrent){var Mt,ze=this.index++,mt=this.destination;try{Mt=(0,this.accumulator)(this.acc,Te,ze)}catch(Rr){return mt.error(Rr)}this.active++,this._innerSub(Mt)}else this.buffer.push(Te)}},{key:"_innerSub",value:function(Te){var ze=new E.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,E.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(Te){var ze=this.destination;this.acc=Te,this.hasValue=!0,ze.next(Te)}},{key:"notifyComplete",value:function(){var Te=this.buffer;this.active--,Te.length>0?this._next(Te.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),_e}(E.Ds);function xr(Pe){return Gn("function"==typeof Pe?function(_e,xe){return Pe(_e,xe)<0?_e:xe}:function(_e,xe){return _e<xe?_e:xe})}var Yi=m(2536),Eo=m(7770);function ca(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return 1===Ge.length&&(0,Ft.k)(Ge[0])&&(Ge=Ge[0]),function(xe){return xe.lift(new lo(Ge))}}var lo=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.nextSources=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new da(_e,this.nextSources))}}]),Pe}(),da=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).destination=xe,ze.nextSources=Te,ze}return(0,T.Z)(_e,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(Te){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var Te=this.nextSources.shift();if(Te){var ze=new E.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,E.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}else this.destination.complete()}}]),_e}(E.Ds),Ya=m(519),uo=m(5884);function Ui(Pe,Ge){return function(_e){return[(0,ut.h)(Pe,Ge)(_e),(0,ut.h)((0,uo.f)(Pe,Ge))(_e)]}}function qs(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];var xe=Ge.length;if(0===xe)throw new Error("list of properties cannot be empty.");return function(Te){return(0,Et.U)(oi(Ge,xe))(Te)}}function oi(Pe,Ge){return function(Te){for(var ze=Te,mt=0;mt<Ge;mt++){var Mt=null!=ze?ze[Pe[mt]]:void 0;if(void 0===Mt)return;ze=Mt}return ze}}var qo=m(8929);function $u(Pe){return Pe?(0,Yi.O)(function(){return new qo.xQ},Pe):(0,Yi.O)(new qo.xQ)}var to=m(591);function Ai(Pe){return function(Ge){return(0,Yi.O)(new to.X(Pe))(Ge)}}var hu=m(2185);function Ki(){return function(Pe){return(0,Yi.O)(new hu.c)(Pe)}}var tn=m(839);function en(Pe,Ge,_e,xe){_e&&"function"!=typeof _e&&(xe=_e);var Te="function"==typeof _e?_e:void 0,ze=new tn.t(Pe,Ge,xe);return function(mt){return(0,Yi.O)(function(){return ze},Te)(mt)}}var Dr=m(1946);function no(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return function(Te){return 1===Ge.length&&(0,Ft.k)(Ge[0])&&(Ge=Ge[0]),Te.lift.call(Dr.S3.apply(void 0,[Te].concat((0,$t.Z)(Ge))))}}var qi=m(8896);function Jo(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ge){return 0===Pe?(0,qi.c)():Pe<0?Ge.lift(new Ti(-1,Ge)):Ge.lift(new Ti(Pe-1,Ge))}}var Ti=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.count=Ge,this.source=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new ro(_e,this.count,this.source))}}]),Pe}(),ro=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).count=Te,mt.source=ze,mt}return(0,T.Z)(_e,[{key:"complete",value:function(){if(!this.isStopped){var Te=this.source,ze=this.count;if(0===ze)return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this);ze>-1&&(this.count=ze-1),Te.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(Z.L);function Rn(Pe){return function(Ge){return Ge.lift(new mu(Pe))}}var mu=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.notifier=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Jr(_e,this.notifier,xe))}}]),Pe}(),Jr=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).notifier=Te,mt.source=ze,mt.sourceIsBeingSubscribedTo=!0,mt}return(0,T.Z)(_e,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var Te=this.notifications,ze=this.retriesSubscription;Te&&(Te.unsubscribe(),this.notifications=void 0),ze&&(ze.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var Te=this._unsubscribe;return this._unsubscribe=null,(0,x.Z)((0,w.Z)(_e.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Te,this}},{key:"subscribeToRetries",value:function(){var Te;this.notifications=new qo.xQ;try{Te=(0,this.notifier)(this.notifications)}catch(mt){return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this)}this.retries=Te,this.retriesSubscription=(0,E.ft)(Te,new E.IY(this))}}]),_e}(E.Ds);function Yn(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ge){return Ge.lift(new An(Pe,Ge))}}var An=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.count=Ge,this.source=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new cn(_e,this.count,this.source))}}]),Pe}(),cn=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).count=Te,mt.source=ze,mt}return(0,T.Z)(_e,[{key:"error",value:function(Te){if(!this.isStopped){var ze=this.source,mt=this.count;if(0===mt)return(0,x.Z)((0,w.Z)(_e.prototype),"error",this).call(this,Te);mt>-1&&(this.count=mt-1),ze.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(Z.L);function Ji(Pe){return function(Ge){return Ge.lift(new Oi(Pe,Ge))}}var Oi=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.notifier=Ge,this.source=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qi(_e,this.notifier,this.source))}}]),Pe}(),Qi=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).notifier=Te,mt.source=ze,mt}return(0,T.Z)(_e,[{key:"error",value:function(Te){if(!this.isStopped){var ze=this.errors,mt=this.retries,Mt=this.retriesSubscription;if(mt)this.errors=void 0,this.retriesSubscription=void 0;else{ze=new qo.xQ;try{mt=(0,this.notifier)(ze)}catch(Rr){return(0,x.Z)((0,w.Z)(_e.prototype),"error",this).call(this,Rr)}Mt=(0,E.ft)(mt,new E.IY(this))}this._unsubscribeAndRecycle(),this.errors=ze,this.retries=mt,this.retriesSubscription=Mt,ze.next(Te)}}},{key:"_unsubscribe",value:function(){var Te=this.errors,ze=this.retriesSubscription;Te&&(Te.unsubscribe(),this.errors=void 0),ze&&(ze.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var Te=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=Te,this.source.subscribe(this)}}]),_e}(E.Ds),Pi=m(4327);function ai(Pe){return function(Ge){return Ge.lift(new Mi(Pe))}}var Mi=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.notifier=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){var Te=new ji(_e),ze=xe.subscribe(Te);return ze.add((0,E.ft)(this.notifier,new E.IY(Te))),ze}}]),Pe}(),ji=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(){var xe;return(0,P.Z)(this,_e),(xe=Ge.apply(this,arguments)).hasValue=!1,xe}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.value=Te,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),_e}(E.Ds);function hr(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.P;return function(_e){return _e.lift(new co(Pe,Ge))}}var co=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.period=Ge,this.scheduler=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new fa(_e,this.period,this.scheduler))}}]),Pe}(),fa=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).period=Te,mt.scheduler=ze,mt.hasValue=!1,mt.add(ze.schedule(ka,Te,{subscriber:(0,A.Z)(mt),period:Te})),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.lastValue=Te,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),_e}(Z.L);function ka(Pe){var Ge=Pe.subscriber,_e=Pe.period;Ge.notifyNext(),this.schedule(Pe,_e)}function go(Pe,Ge){return function(_e){return _e.lift(new fo(Pe,Ge))}}var fo=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.compareTo=Ge,this.comparator=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new ia(_e,this.compareTo,this.comparator))}}]),Pe}(),ia=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).compareTo=Te,mt.comparator=ze,mt._a=[],mt._b=[],mt._oneComplete=!1,mt.destination.add(Te.subscribe(new hl(xe,(0,A.Z)(mt)))),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(Te),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var Te=this._a,ze=this._b,mt=this.comparator;Te.length>0&&ze.length>0;){var Mt=Te.shift(),wn=ze.shift(),Rr=!1;try{Rr=mt?mt(Mt,wn):Mt===wn}catch(si){this.destination.error(si)}Rr||this.emit(!1)}}},{key:"emit",value:function(Te){var ze=this.destination;ze.next(Te),ze.complete()}},{key:"nextB",value:function(Te){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(Te),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),_e}(Z.L),hl=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).parent=Te,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.parent.nextB(Te)}},{key:"_error",value:function(Te){this.parent.error(Te),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),_e}(Z.L),Ka=m(8117),qa=m(5154),Qo=m(4450);function Xo(Pe){return function(Ge){return Ge.lift(new _u(Pe,Ge))}}var _u=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.predicate=Ge,this.source=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new ec(_e,this.predicate,this.source))}}]),Pe}(),ec=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).predicate=Te,mt.source=ze,mt.seenValue=!1,mt.index=0,mt}return(0,T.Z)(_e,[{key:"applySingleValue",value:function(Te){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=Te)}},{key:"_next",value:function(Te){var ze=this.index++;this.predicate?this.tryNext(Te,ze):this.applySingleValue(Te)}},{key:"tryNext",value:function(Te,ze){try{this.predicate(Te,ze,this.source)&&this.applySingleValue(Te)}catch(mt){this.destination.error(mt)}}},{key:"_complete",value:function(){var Te=this.destination;this.index>0?(Te.next(this.seenValue?this.singleValue:void 0),Te.complete()):Te.error(new Qo.K)}}]),_e}(Z.L),xc=m(1307);function Br(Pe){return function(Ge){return Ge.lift(new gu(Pe))}}var gu=function(){function Pe(Ge){if((0,P.Z)(this,Pe),this._skipCount=Ge,this._skipCount<0)throw new lt.W}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return 0===this._skipCount?xe.subscribe(new Z.L(_e)):xe.subscribe(new ml(_e,this._skipCount))}}]),Pe}(),ml=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe))._skipCount=Te,ze._count=0,ze._ring=new Array(Te),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this._skipCount,mt=this._count++;if(mt<ze)this._ring[mt]=Te;else{var Mt=mt%ze,wn=this._ring,Rr=wn[Mt];wn[Mt]=Te,this.destination.next(Rr)}}}]),_e}(Z.L);function mf(Pe){return function(Ge){return Ge.lift(new _l(Pe))}}var _l=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.notifier=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new vu(_e,this.notifier))}}]),Pe}(),vu=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).hasValue=!1;var mt=new E.IY((0,A.Z)(ze));ze.add(mt),ze.innerSubscription=mt;var Mt=(0,E.ft)(Te,mt);return Mt!==mt&&(ze.add(Mt),ze.innerSubscription=Mt),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.hasValue&&(0,x.Z)((0,w.Z)(_e.prototype),"_next",this).call(this,Te)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),_e}(E.Ds);function po(Pe){return function(Ge){return Ge.lift(new ks(Pe))}}var ks=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.predicate=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Ul(_e,this.predicate))}}]),Pe}(),Ul=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).predicate=Te,ze.skipping=!0,ze.index=0,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.destination;this.skipping&&this.tryCallPredicate(Te),this.skipping||ze.next(Te)}},{key:"tryCallPredicate",value:function(Te){try{var ze=this.predicate(Te,this.index++);this.skipping=Boolean(ze)}catch(mt){this.destination.error(mt)}}}]),_e}(Z.L),Dc=m(1059),xo=m(3837);function yu(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new Js(Pe,Ge))}}var Js=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.scheduler=Ge,this.delay=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return new xo.e(xe,this.delay,this.scheduler).subscribe(_e)}}]),Pe}(),pa=m(7545),Ho=m(5379);function bd(){return(0,pa.w)(Ho.y)}function Ts(Pe,Ge){return Ge?(0,pa.w)(function(){return Pe},Ge):(0,pa.w)(function(){return Pe})}var Xm=m(7625),Ja=m(4290),nh=m(2994),Ms=m(2444);function Cr(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.P,_e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ms.d;return function(xe){return xe.lift(new us(Pe,Ge,_e.leading,_e.trailing))}}var us=function(){function Pe(Ge,_e,xe,Te){(0,P.Z)(this,Pe),this.duration=Ge,this.scheduler=_e,this.leading=xe,this.trailing=Te}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new rh(_e,this.duration,this.scheduler,this.leading,this.trailing))}}]),Pe}(),rh=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,P.Z)(this,_e),(wn=Ge.call(this,xe)).duration=Te,wn.scheduler=ze,wn.leading=mt,wn.trailing=Mt,wn._hasTrailingValue=!1,wn._trailingValue=null,wn}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.throttled?this.trailing&&(this._trailingValue=Te,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ov,this.duration,{subscriber:this})),this.leading?this.destination.next(Te):this.trailing&&(this._trailingValue=Te,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var Te=this.throttled;Te&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Te.unsubscribe(),this.remove(Te),this.throttled=null)}}]),_e}(Z.L);function Ov(Pe){Pe.subscriber.clearThrottle()}var ih=m(3485),_f=m(854),Ss=m(2697);function bu(Pe,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.P;return function(xe){var Te=(0,Ss.J)(Pe),ze=Te?+Pe-_e.now():Math.abs(Pe);return xe.lift(new jl(ze,Te,Ge,_e))}}var jl=function(){function Pe(Ge,_e,xe,Te){(0,P.Z)(this,Pe),this.waitFor=Ge,this.absoluteTimeout=_e,this.withObservable=xe,this.scheduler=Te}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new xn(_e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Pe}(),xn=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,P.Z)(this,_e),(wn=Ge.call(this,xe)).absoluteTimeout=Te,wn.waitFor=ze,wn.withObservable=mt,wn.scheduler=Mt,wn.scheduleTimeout(),wn}return(0,T.Z)(_e,[{key:"scheduleTimeout",value:function(){var Te=this.action;Te?this.action=Te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(_e.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(Te){this.absoluteTimeout||this.scheduleTimeout(),(0,x.Z)((0,w.Z)(_e.prototype),"_next",this).call(this,Te)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(Te){var ze=Te.withObservable;Te._unsubscribeAndRecycle(),Te.add((0,E.ft)(ze,new E.IY(Te)))}}]),_e}(E.Ds),we=m(1737);function ke(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.P;return bu(Pe,(0,we._)(new _f.W),Ge)}var le=m(7781);function Me(Pe,Ge,_e){return 0===_e?[Ge]:(Pe.push(Ge),Pe)}function Oe(){return Gn(Me,[])}function pt(Pe){return function(_e){return _e.lift(new Yt(Pe))}}var Yt=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.windowBoundaries=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){var Te=new In(_e),ze=xe.subscribe(Te);return ze.closed||Te.add((0,E.ft)(this.windowBoundaries,new E.IY(Te))),ze}}]),Pe}(),In=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe){var Te;return(0,P.Z)(this,_e),(Te=Ge.call(this,xe)).window=new qo.xQ,xe.next(Te.window),Te}return(0,T.Z)(_e,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(Te){this._error(Te)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(Te){this.window.next(Te)}},{key:"_error",value:function(Te){this.window.error(Te),this.destination.error(Te)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var Te=this.window;Te&&Te.complete();var ze=this.destination,mt=this.window=new qo.xQ;ze.next(mt)}}]),_e}(E.Ds);function Qn(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new Qs(Pe,Ge))}}var Qs=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.windowSize=Ge,this.startWindowEvery=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new tc(_e,this.windowSize,this.startWindowEvery))}}]),Pe}(),tc=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).destination=xe,mt.windowSize=Te,mt.startWindowEvery=ze,mt.windows=[new qo.xQ],mt.count=0,xe.next(mt.windows[0]),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var ze=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,mt=this.destination,Mt=this.windowSize,wn=this.windows,Rr=wn.length,si=0;si<Rr&&!this.closed;si++)wn[si].next(Te);var li=this.count-Mt+1;if(li>=0&&li%ze==0&&!this.closed&&wn.shift().complete(),++this.count%ze==0&&!this.closed){var $s=new qo.xQ;wn.push($s),mt.next($s)}}},{key:"_error",value:function(Te){var ze=this.windows;if(ze)for(;ze.length>0&&!this.closed;)ze.shift().error(Te);this.destination.error(Te)}},{key:"_complete",value:function(){var Te=this.windows;if(Te)for(;Te.length>0&&!this.closed;)Te.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),_e}(Z.L),Go=m(4241);function Xs(Pe){var Ge=M.P,_e=null,xe=Number.POSITIVE_INFINITY;return(0,N.K)(arguments[3])&&(Ge=arguments[3]),(0,N.K)(arguments[2])?Ge=arguments[2]:(0,Go.k)(arguments[2])&&(xe=Number(arguments[2])),(0,N.K)(arguments[1])?Ge=arguments[1]:(0,Go.k)(arguments[1])&&(_e=Number(arguments[1])),function(ze){return ze.lift(new $o(Pe,_e,xe,Ge))}}var $o=function(){function Pe(Ge,_e,xe,Te){(0,P.Z)(this,Pe),this.windowTimeSpan=Ge,this.windowCreationInterval=_e,this.maxWindowSize=xe,this.scheduler=Te}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new nc(_e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Pe}(),Qa=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(){var xe;return(0,P.Z)(this,_e),(xe=Ge.apply(this,arguments))._numberOfNextedValues=0,xe}return(0,T.Z)(_e,[{key:"next",value:function(Te){this._numberOfNextedValues++,(0,x.Z)((0,w.Z)(_e.prototype),"next",this).call(this,Te)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),_e}(qo.xQ),nc=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;(0,P.Z)(this,_e),(wn=Ge.call(this,xe)).destination=xe,wn.windowTimeSpan=Te,wn.windowCreationInterval=ze,wn.maxWindowSize=mt,wn.scheduler=Mt,wn.windows=[];var Rr=wn.openWindow();if(null!==ze&&ze>=0){var si={subscriber:(0,A.Z)(wn),window:Rr,context:null},li={windowTimeSpan:Te,windowCreationInterval:ze,subscriber:(0,A.Z)(wn),scheduler:Mt};wn.add(Mt.schedule($m,Te,si)),wn.add(Mt.schedule(cs,ze,li))}else{var $s={subscriber:(0,A.Z)(wn),window:Rr,windowTimeSpan:Te};wn.add(Mt.schedule(Ta,Te,$s))}return wn}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var ze=this.windows,mt=ze.length,Mt=0;Mt<mt;Mt++){var wn=ze[Mt];wn.closed||(wn.next(Te),wn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(wn))}}},{key:"_error",value:function(Te){for(var ze=this.windows;ze.length>0;)ze.shift().error(Te);this.destination.error(Te)}},{key:"_complete",value:function(){for(var Te=this.windows;Te.length>0;){var ze=Te.shift();ze.closed||ze.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var Te=new Qa;return this.windows.push(Te),this.destination.next(Te),Te}},{key:"closeWindow",value:function(Te){Te.complete();var ze=this.windows;ze.splice(ze.indexOf(Te),1)}}]),_e}(Z.L);function Ta(Pe){var Ge=Pe.subscriber,_e=Pe.windowTimeSpan,xe=Pe.window;xe&&Ge.closeWindow(xe),Pe.window=Ge.openWindow(),this.schedule(Pe,_e)}function cs(Pe){var Ge=Pe.windowTimeSpan,_e=Pe.subscriber,xe=Pe.scheduler,Te=Pe.windowCreationInterval,ze=_e.openWindow(),Mt={action:this,subscription:null},wn={subscriber:_e,window:ze,context:Mt};Mt.subscription=xe.schedule($m,Ge,wn),this.add(Mt.subscription),this.schedule(Pe,Te)}function $m(Pe){var Ge=Pe.subscriber,_e=Pe.window,xe=Pe.context;xe&&xe.action&&xe.subscription&&xe.action.remove(xe.subscription),Ge.closeWindow(_e)}function e_(Pe,Ge){return function(_e){return _e.lift(new oh(Pe,Ge))}}var oh=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.openings=Ge,this.closingSelector=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new t_(_e,this.openings,this.closingSelector))}}]),Pe}(),t_=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).openings=Te,mt.closingSelector=ze,mt.contexts=[],mt.add(mt.openSubscription=(0,fe.D)((0,A.Z)(mt),Te,Te)),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.contexts;if(ze)for(var mt=ze.length,Mt=0;Mt<mt;Mt++)ze[Mt].window.next(Te)}},{key:"_error",value:function(Te){var ze=this.contexts;if(this.contexts=null,ze)for(var mt=ze.length,Mt=-1;++Mt<mt;){var wn=ze[Mt];wn.window.error(Te),wn.subscription.unsubscribe()}(0,x.Z)((0,w.Z)(_e.prototype),"_error",this).call(this,Te)}},{key:"_complete",value:function(){var Te=this.contexts;if(this.contexts=null,Te)for(var ze=Te.length,mt=-1;++mt<ze;){var Mt=Te[mt];Mt.window.complete(),Mt.subscription.unsubscribe()}(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var Te=this.contexts;if(this.contexts=null,Te)for(var ze=Te.length,mt=-1;++mt<ze;){var Mt=Te[mt];Mt.window.unsubscribe(),Mt.subscription.unsubscribe()}}},{key:"notifyNext",value:function(Te,ze,mt,Mt,wn){if(Te===this.openings){var Rr;try{Rr=(0,this.closingSelector)(ze)}catch(vf){return this.error(vf)}var li=new qo.xQ,$s=new pe.w,gf={window:li,subscription:$s};this.contexts.push(gf);var Ar=(0,fe.D)(this,Rr,gf);Ar.closed?this.closeWindow(this.contexts.length-1):(Ar.context=gf,$s.add(Ar)),this.destination.next(li)}else this.closeWindow(this.contexts.indexOf(Te))}},{key:"notifyError",value:function(Te){this.error(Te)}},{key:"notifyComplete",value:function(Te){Te!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(Te.context))}},{key:"closeWindow",value:function(Te){if(-1!==Te){var ze=this.contexts,mt=ze[Te],Mt=mt.window,wn=mt.subscription;ze.splice(Te,1),Mt.complete(),wn.unsubscribe()}}}]),_e}(ue.L);function Ac(Pe){return function(_e){return _e.lift(new rc(Pe))}}var rc=function(){function Pe(Ge){(0,P.Z)(this,Pe),this.closingSelector=Ge}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Es(_e,this.closingSelector))}}]),Pe}(),Es=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).destination=xe,ze.closingSelector=Te,ze.openWindow(),ze}return(0,T.Z)(_e,[{key:"notifyNext",value:function(Te,ze,mt,Mt,wn){this.openWindow(wn)}},{key:"notifyError",value:function(Te){this._error(Te)}},{key:"notifyComplete",value:function(Te){this.openWindow(Te)}},{key:"_next",value:function(Te){this.window.next(Te)}},{key:"_error",value:function(Te){this.window.error(Te),this.destination.error(Te),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var Te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Te&&(this.remove(Te),Te.unsubscribe());var ze=this.window;ze&&ze.complete();var Mt,mt=this.window=new qo.xQ;this.destination.next(mt);try{var wn=this.closingSelector;Mt=wn()}catch(Rr){return this.destination.error(Rr),void this.window.error(Rr)}this.add(this.closingNotification=(0,fe.D)(this,Mt))}}]),_e}(ue.L);function xs(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return function(xe){var Te;"function"==typeof Ge[Ge.length-1]&&(Te=Ge.pop());var ze=Ge;return xe.lift(new gl(ze,Te))}}var gl=function(){function Pe(Ge,_e){(0,P.Z)(this,Pe),this.observables=Ge,this.project=_e}return(0,T.Z)(Pe,[{key:"call",value:function(_e,xe){return xe.subscribe(new Cd(_e,this.observables,this.project))}}]),Pe}(),Cd=function(Pe){(0,j.Z)(_e,Pe);var Ge=(0,I.Z)(_e);function _e(xe,Te,ze){var mt;(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).observables=Te,mt.project=ze,mt.toRespond=[];var Mt=Te.length;mt.values=new Array(Mt);for(var wn=0;wn<Mt;wn++)mt.toRespond.push(wn);for(var Rr=0;Rr<Mt;Rr++){var si=Te[Rr];mt.add((0,fe.D)((0,A.Z)(mt),si,void 0,Rr))}return mt}return(0,T.Z)(_e,[{key:"notifyNext",value:function(Te,ze,mt){this.values[mt]=ze;var Mt=this.toRespond;if(Mt.length>0){var wn=Mt.indexOf(mt);-1!==wn&&Mt.splice(wn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(Te){if(0===this.toRespond.length){var ze=[Te].concat((0,$t.Z)(this.values));this.project?this._tryProject(ze):this.destination.next(ze)}}},{key:"_tryProject",value:function(Te){var ze;try{ze=this.project.apply(this,Te)}catch(mt){return void this.destination.error(mt)}this.destination.next(ze)}}]),_e}(ue.L),wd=m(1746);function vl(){for(var Pe=arguments.length,Ge=new Array(Pe),_e=0;_e<Pe;_e++)Ge[_e]=arguments[_e];return function(Te){return Te.lift.call(wd.$R.apply(void 0,[Te].concat(Ge)))}}function Ma(Pe){return function(Ge){return Ge.lift(new wd.mx(Pe))}}},9594:function(Ae,K,m){"use strict";m.r(K),m.d(K,{TestScheduler:function(){return M}});var G=m(5671),W=m(3144),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(7451),E=m(9312),H=m(4096),R=(0,W.Z)(function N(F){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,G.Z)(this,N),this.subscribedFrame=F,this.unsubscribedFrame=X}),v=function(){function N(){(0,G.Z)(this,N),this.subscriptions=[]}return(0,W.Z)(N,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new R(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(X){var $=this.subscriptions,V=$[X];$[X]=new R(V.subscribedFrame,this.scheduler.now())}}]),N}(),x=m(5128),w=function(N){(0,I.Z)(X,N);var F=(0,P.Z)(X);function X($,V){var Q;return(0,G.Z)(this,X),(Q=F.call(this,function(te){var be=this,pe=be.logSubscribedFrame(),fe=new H.w;return fe.add(new H.w(function(){be.logUnsubscribedFrame(pe)})),be.scheduleMessages(te),fe})).messages=$,Q.subscriptions=[],Q.scheduler=V,Q}return(0,W.Z)(X,[{key:"scheduleMessages",value:function(V){for(var Q=this.messages.length,te=0;te<Q;te++){var be=this.messages[te];V.add(this.scheduler.schedule(function(pe){var fe=pe.message,ue=pe.subscriber;fe.notification.observe(ue)},be.frame,{message:be,subscriber:V}))}}}]),X}(T.y);(0,x.e)(w,[v]);var D=function(N){(0,I.Z)(X,N);var F=(0,P.Z)(X);function X($,V){var Q;return(0,G.Z)(this,X),(Q=F.call(this)).messages=$,Q.subscriptions=[],Q.scheduler=V,Q}return(0,W.Z)(X,[{key:"_subscribe",value:function(V){var Q=this,te=Q.logSubscribedFrame(),be=new H.w;return be.add(new H.w(function(){Q.logUnsubscribedFrame(te)})),be.add((0,A.Z)((0,j.Z)(X.prototype),"_subscribe",this).call(this,V)),be}},{key:"setup",value:function(){for(var V=this,Q=V.messages.length,te=0;te<Q;te++)!function(){var be=V.messages[te];V.scheduler.schedule(function(){be.notification.observe(V)},be.frame)}()}}]),X}(m(8929).xQ);(0,x.e)(D,[v]);var b=m(9027),S=m(198),M=function(N){(0,I.Z)(X,N);var F=(0,P.Z)(X);function X($){var V;return(0,G.Z)(this,X),(V=F.call(this,b.h,750)).assertDeepEqual=$,V.hotObservables=[],V.coldObservables=[],V.flushTests=[],V.runMode=!1,V}return(0,W.Z)(X,[{key:"createTime",value:function(V){var Q=V.indexOf("|");if(-1===Q)throw new Error('marble diagram for time should have a completion marker "|"');return Q*X.frameTimeFactor}},{key:"createColdObservable",value:function(V,Q,te){if(-1!==V.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==V.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var be=X.parseMarbles(V,Q,te,void 0,this.runMode),pe=new w(be,this);return this.coldObservables.push(pe),pe}},{key:"createHotObservable",value:function(V,Q,te){if(-1!==V.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var be=X.parseMarbles(V,Q,te,void 0,this.runMode),pe=new D(be,this);return this.hotObservables.push(pe),pe}},{key:"materializeInnerObservable",value:function(V,Q){var te=this,be=[];return V.subscribe(function(pe){be.push({frame:te.frame-Q,notification:E.P.createNext(pe)})},function(pe){be.push({frame:te.frame-Q,notification:E.P.createError(pe)})},function(){be.push({frame:te.frame-Q,notification:E.P.createComplete()})}),be}},{key:"expectObservable",value:function(V){var ge,Q=this,te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,be=[],pe={actual:be,ready:!1},fe=X.parseMarblesAsSubscriptions(te,this.runMode),ue=fe.subscribedFrame===Number.POSITIVE_INFINITY?0:fe.subscribedFrame,de=fe.unsubscribedFrame;this.schedule(function(){ge=V.subscribe(function(ot){var St=ot;ot instanceof T.y&&(St=Q.materializeInnerObservable(St,Q.frame)),be.push({frame:Q.frame,notification:E.P.createNext(St)})},function(ot){be.push({frame:Q.frame,notification:E.P.createError(ot)})},function(){be.push({frame:Q.frame,notification:E.P.createComplete()})})},ue),de!==Number.POSITIVE_INFINITY&&this.schedule(function(){return ge.unsubscribe()},de),this.flushTests.push(pe);var He=this.runMode;return{toBe:function(St,Tt,Dt){pe.ready=!0,pe.expected=X.parseMarbles(St,Tt,Dt,!0,He)}}}},{key:"expectSubscriptions",value:function(V){var Q={actual:V,ready:!1};this.flushTests.push(Q);var te=this.runMode;return{toBe:function(pe){var fe="string"==typeof pe?[pe]:pe;Q.ready=!0,Q.expected=fe.map(function(ue){return X.parseMarblesAsSubscriptions(ue,te)})}}}},{key:"flush",value:function(){for(var V=this,Q=this.hotObservables;Q.length>0;)Q.shift().setup();(0,A.Z)((0,j.Z)(X.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(te){return!te.ready||(V.assertDeepEqual(te.actual,te.expected),!1)})}},{key:"run",value:function(V){var Q=X.frameTimeFactor,te=this.maxFrames;X.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,S.v.delegate=this;var be={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var pe=V(be);return this.flush(),pe}finally{X.frameTimeFactor=Q,this.maxFrames=te,this.runMode=!1,S.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(V){var Q=this,te=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof V)return new R(Number.POSITIVE_INFINITY);for(var be=V.length,pe=-1,fe=Number.POSITIVE_INFINITY,ue=Number.POSITIVE_INFINITY,de=0,ge=function(St){var Tt=de,Dt=function(_t){Tt+=_t*Q.frameTimeFactor},Rt=V[St];switch(Rt){case" ":te||Dt(1);break;case"-":Dt(1);break;case"(":pe=de,Dt(1);break;case")":pe=-1,Dt(1);break;case"^":if(fe!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");fe=pe>-1?pe:de,Dt(1);break;case"!":if(ue!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");ue=pe>-1?pe:de;break;default:if(te&&Rt.match(/^[0-9]$/)&&(0===St||" "===V[St-1])){var $t=V.slice(St).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if($t){St+=$t[0].length-1;var rt,Ft=parseFloat($t[1]);switch($t[2]){case"ms":rt=Ft;break;case"s":rt=1e3*Ft;break;case"m":rt=1e3*Ft*60}Dt(rt/Q.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+Rt+"'.")}de=Tt,He=St},He=0;He<be;He++)ge(He);return ue<0?new R(fe):new R(fe,ue)}},{key:"parseMarbles",value:function(V,Q,te){var be=this,pe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],fe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==V.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var ue=V.length,de=[],ge=fe?V.replace(/^[ ]+/,"").indexOf("^"):V.indexOf("^"),He=-1===ge?0:ge*-this.frameTimeFactor,ot="object"!=typeof Q?function(Rt){return Rt}:function(Rt){return pe&&Q[Rt]instanceof w?Q[Rt].messages:Q[Rt]},St=-1,Tt=function(Ze){var pn,$t=He,Ft=function(Ut){$t+=Ut*be.frameTimeFactor},rt=V[Ze];switch(rt){case" ":fe||Ft(1);break;case"-":case"^":Ft(1);break;case"(":St=He,Ft(1);break;case")":St=-1,Ft(1);break;case"|":pn=E.P.createComplete(),Ft(1);break;case"#":pn=E.P.createError(te||"error"),Ft(1);break;default:if(fe&&rt.match(/^[0-9]$/)&&(0===Ze||" "===V[Ze-1])){var _t=V.slice(Ze).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){Ze+=_t[0].length-1;var at,Ct=parseFloat(_t[1]);switch(_t[2]){case"ms":at=Ct;break;case"s":at=1e3*Ct;break;case"m":at=1e3*Ct*60}Ft(at/be.frameTimeFactor);break}}pn=E.P.createNext(ot(rt)),Ft(1)}pn&&de.push({frame:St>-1?St:He,notification:pn}),He=$t,Dt=Ze},Dt=0;Dt<ue;Dt++)Tt(Dt);return de}}]),X}(b.y)},2301:function(Ae,K,m){"use strict";m.r(K),m.d(K,{WebSocketSubject:function(){return W.p},webSocket:function(){return G.j}});var G=m(7623),W=m(2741)},5561:function(Ae,K,m){"use strict";m(5772)},2033:function(Ae,K){"use strict";var m,G;!function(){var W=K||{};m=[],void 0!==(G=function(){return W}.apply(K,m))&&(Ae.exports=G),W.default=W;var A="http://www.w3.org/2000/xmlns/",I="http://www.w3.org/2000/svg",T=/url\(["']?(.+?)["']?\)/,E={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},H=function(fe){return fe instanceof HTMLElement||fe instanceof SVGElement},R=function(fe){if(!H(fe))throw new Error("an HTMLElement or SVGElement is required; got "+fe)},v=function(fe){return new Promise(function(ue,de){H(fe)?ue(fe):de(new Error("an HTMLElement or SVGElement is required; got "+fe))})},w=function(fe){var ue=Object.keys(E).filter(function(de){return fe.indexOf("."+de)>0}).map(function(de){return E[de]});return ue?ue[0]:(console.error("Unknown font format for "+fe+". Fonts may not be working correctly."),"application/octet-stream")},D=function(fe,ue,de){var ge=fe.viewBox&&fe.viewBox.baseVal&&fe.viewBox.baseVal[de]||null!==ue.getAttribute(de)&&!ue.getAttribute(de).match(/%$/)&&parseInt(ue.getAttribute(de))||fe.getBoundingClientRect()[de]||parseInt(ue.style[de])||parseInt(window.getComputedStyle(fe).getPropertyValue(de));return null==ge||isNaN(parseFloat(ge))?0:ge},k=function(fe){for(var ue=window.atob(fe.split(",")[1]),de=fe.split(",")[0].split(":")[1].split(";")[0],ge=new ArrayBuffer(ue.length),He=new Uint8Array(ge),ot=0;ot<ue.length;ot++)He[ot]=ue.charCodeAt(ot);return new Blob([ge],{type:de})},F=function(fe){return Promise.all(Array.from(fe.querySelectorAll("image")).map(function(ue){var de=ue.getAttributeNS("http://www.w3.org/1999/xlink","href")||ue.getAttribute("href");return de?(function(fe){return fe&&0===fe.lastIndexOf("http",0)&&-1===fe.lastIndexOf(window.location.host)}(de)&&(de+=(-1===de.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(ge,He){var ot=document.createElement("canvas"),St=new Image;St.crossOrigin="anonymous",St.src=de,St.onerror=function(){return He(new Error("Could not load "+de))},St.onload=function(){ot.width=St.width,ot.height=St.height,ot.getContext("2d").drawImage(St,0,0),ue.setAttributeNS("http://www.w3.org/1999/xlink","href",ot.toDataURL("image/png")),ge(!0)}})):Promise.resolve(null)}))},X={},$=function(fe){return Promise.all(fe.map(function(ue){return new Promise(function(de,ge){if(X[ue.url])return de(X[ue.url]);var He=new XMLHttpRequest;He.addEventListener("load",function(){var ot=function(fe){for(var ue="",de=new Uint8Array(fe),ge=0;ge<de.byteLength;ge++)ue+=String.fromCharCode(de[ge]);return window.btoa(ue)}(He.response),St=ue.text.replace(T,'url("data:'+ue.format+";base64,"+ot+'")')+"\n";X[ue.url]=St,de(St)}),He.addEventListener("error",function(ot){console.warn("Failed to load font from: "+ue.url,ot),X[ue.url]=null,de(null)}),He.addEventListener("abort",function(ot){console.warn("Aborted loading font from: "+ue.url,ot),de(null)}),He.open("GET",ue.url),He.responseType="arraybuffer",He.send()})})).then(function(ue){return ue.filter(function(de){return de}).join("")})},V=null,te=function(fe,ue){var de=ue||{},ge=de.selectorRemap,He=de.modifyStyle,ot=de.modifyCss,St=de.fonts,Tt=de.excludeUnusedCss,Dt=ot||function(Ft,pn){return(ge?ge(Ft):Ft)+"{"+(He?He(pn):pn)+"}\n"},Rt=[],Ze=void 0===St,$t=St||[];return(V||(V=Array.from(document.styleSheets).map(function(fe){try{return{rules:fe.cssRules,href:fe.href}}catch(ue){return console.warn("Stylesheet could not be loaded: "+fe.href,ue),{}}}))).forEach(function(Ft){var pn=Ft.rules,rt=Ft.href;!pn||Array.from(pn).forEach(function(Ot){if(void 0!==Ot.style)if(function(fe,ue){if(ue)try{return fe.querySelector(ue)||fe.parentNode&&fe.parentNode.querySelector(ue)}catch(de){console.warn('Invalid CSS selector "'+ue+'"',de)}}(fe,Ot.selectorText))Rt.push(Dt(Ot.selectorText,Ot.style.cssText));else if(Ze&&Ot.cssText.match(/^@font-face/)){var _t=function(fe,ue){var de=fe.cssText.match(T),ge=de&&de[1]||"";if(ge&&!ge.match(/^data:/)&&"about:blank"!==ge){var He=ge.startsWith("../")?ue+"/../"+ge:ge.startsWith("./")?ue+"/."+ge:ge;return{text:fe.cssText,format:w(He),url:He}}}(Ot,rt);_t&&$t.push(_t)}else Tt||Rt.push(Ot.cssText)})}),$($t).then(function(Ft){return Rt.join("\n")+Ft})},be=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};W.prepareSvg=function(pe,fe,ue){R(pe);var de=fe||{},ge=de.left,He=void 0===ge?0:ge,ot=de.top,St=void 0===ot?0:ot,Tt=de.width,Dt=de.height,Rt=de.scale,Ze=void 0===Rt?1:Rt,$t=de.responsive,Ft=void 0!==$t&&$t,pn=de.excludeCss,rt=void 0!==pn&&pn;return F(pe).then(function(){var Ot=pe.cloneNode(!0);Ot.style.backgroundColor=(fe||{}).backgroundColor||pe.style.backgroundColor;var _t=function(fe,ue,de,ge){if("svg"===fe.tagName)return{width:de||D(fe,ue,"width"),height:ge||D(fe,ue,"height")};if(fe.getBBox){var He=fe.getBBox(),ot=He.x,St=He.y;return{width:ot+He.width,height:St+He.height}}}(pe,Ot,Tt,Dt),Ct=_t.width,Ve=_t.height;if("svg"!==pe.tagName){if(!pe.getBBox)return void console.error("Attempted to render non-SVG element",pe);null!=Ot.getAttribute("transform")&&Ot.setAttribute("transform",Ot.getAttribute("transform").replace(/translate\(.*?\)/,""));var at=document.createElementNS("http://www.w3.org/2000/svg","svg");at.appendChild(Ot),Ot=at}if(Ot.setAttribute("version","1.1"),Ot.setAttribute("viewBox",[He,St,Ct,Ve].join(" ")),Ot.getAttribute("xmlns")||Ot.setAttributeNS(A,"xmlns",I),Ot.getAttribute("xmlns:xlink")||Ot.setAttributeNS(A,"xmlns:xlink","http://www.w3.org/1999/xlink"),Ft?(Ot.removeAttribute("width"),Ot.removeAttribute("height"),Ot.setAttribute("preserveAspectRatio","xMinYMin meet")):(Ot.setAttribute("width",Ct*Ze),Ot.setAttribute("height",Ve*Ze)),Array.from(Ot.querySelectorAll("foreignObject > *")).forEach(function(Wt){Wt.setAttributeNS(A,"xmlns","svg"===Wt.tagName?I:"http://www.w3.org/1999/xhtml")}),!rt)return te(pe,fe).then(function(Wt){var U=document.createElement("style");U.setAttribute("type","text/css"),U.innerHTML="<![CDATA[\n"+Wt+"\n]]>";var B=document.createElement("defs");B.appendChild(U),Ot.insertBefore(B,Ot.firstChild);var qe=document.createElement("div");qe.appendChild(Ot);var Be=qe.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof ue)return{src:Be,width:Ct,height:Ve};ue(Be,Ct,Ve)});var ht=document.createElement("div");ht.appendChild(Ot);var Ut=ht.innerHTML;if("function"!=typeof ue)return{src:Ut,width:Ct,height:Ve};ue(Ut,Ct,Ve)})},W.svgAsDataUri=function(pe,fe,ue){return R(pe),W.prepareSvg(pe,fe).then(function(de){var ge=de.src,He=de.width,ot=de.height,St="data:image/svg+xml;base64,"+window.btoa(function(fe){return decodeURIComponent(encodeURIComponent(fe).replace(/%([0-9A-F]{2})/g,function(ue,de){var ge=String.fromCharCode("0x"+de);return"%"===ge?"%25":ge}))}('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp " ">]>'+ge));return"function"==typeof ue&&ue(St,He,ot),St})},W.svgAsPngUri=function(pe,fe,ue){R(pe);var de=fe||{},ge=de.encoderType,He=void 0===ge?"image/png":ge,ot=de.encoderOptions,St=void 0===ot?.8:ot,Tt=de.canvg,Dt=function(Ze){var $t=Ze.src,Ft=Ze.width,pn=Ze.height,rt=document.createElement("canvas"),Ot=rt.getContext("2d"),_t=window.devicePixelRatio||1;rt.width=Ft*_t,rt.height=pn*_t,rt.style.width=rt.width+"px",rt.style.height=rt.height+"px",Ot.setTransform(_t,0,0,_t,0,0),Tt?Tt(rt,$t):Ot.drawImage($t,0,0);var Ct=void 0;try{Ct=rt.toDataURL(He,St)}catch(Ve){if("undefined"!=typeof SecurityError&&Ve instanceof SecurityError||"SecurityError"===Ve.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw Ve}return"function"==typeof ue&&ue(Ct,rt.width,rt.height),Promise.resolve(Ct)};return Tt?W.prepareSvg(pe,fe).then(Dt):W.svgAsDataUri(pe,fe).then(function(Rt){return new Promise(function(Ze,$t){var Ft=new Image;Ft.onload=function(){return Ze(Dt({src:Ft,width:Ft.width,height:Ft.height}))},Ft.onerror=function(){$t("There was an error loading the data URI as an image on the following SVG\n"+window.atob(Rt.slice(26))+"Open the following link to see browser's diagnosis\n"+Rt)},Ft.src=Rt})})},W.download=function(pe,fe,ue){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(k(fe),pe);else{var de=document.createElement("a");if("download"in de){de.download=pe,de.style.display="none",document.body.appendChild(de);try{var ge=k(fe),He=URL.createObjectURL(ge);de.href=He,de.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(He)})}}catch(ot){console.error(ot),console.warn("Error while getting object URL. Falling back to string URL."),de.href=fe}de.click(),document.body.removeChild(de)}else ue&&ue.popup&&(ue.popup.document.title=pe,ue.popup.location.replace(fe))}},W.saveSvg=function(pe,fe,ue){var de=be();return v(pe).then(function(ge){return W.svgAsDataUri(ge,ue||{})}).then(function(ge){return W.download(fe,ge,de)})},W.saveSvgAsPng=function(pe,fe,ue){var de=be();return v(pe).then(function(ge){return W.svgAsPngUri(ge,ue||{})}).then(function(ge){return W.download(fe,ge,de)})}}()},6842:function(Ae,K,m){var G=m(2472),W=Object.prototype.hasOwnProperty,A="undefined"!=typeof Map;function j(){this._array=[],this._set=A?new Map:Object.create(null)}j.fromArray=function(P,T){for(var E=new j,H=0,R=P.length;H<R;H++)E.add(P[H],T);return E},j.prototype.size=function(){return A?this._set.size:Object.getOwnPropertyNames(this._set).length},j.prototype.add=function(P,T){var E=A?P:G.toSetString(P),H=A?this.has(P):W.call(this._set,E),R=this._array.length;(!H||T)&&this._array.push(P),H||(A?this._set.set(P,R):this._set[E]=R)},j.prototype.has=function(P){if(A)return this._set.has(P);var T=G.toSetString(P);return W.call(this._set,T)},j.prototype.indexOf=function(P){if(A){var T=this._set.get(P);if(T>=0)return T}else{var E=G.toSetString(P);if(W.call(this._set,E))return this._set[E]}throw new Error('"'+P+'" is not in the set.')},j.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw new Error("No element indexed by "+P)},j.prototype.toArray=function(){return this._array.slice()},K.I=j},3357:function(Ae,K,m){var G=m(5773);K.encode=function(H){var v,R="",x=function P(E){return E<0?1+(-E<<1):0+(E<<1)}(H);do{v=31&x,(x>>>=5)>0&&(v|=32),R+=G.encode(v)}while(x>0);return R},K.decode=function(H,R,v){var D,b,x=H.length,w=0,Z=0;do{if(R>=x)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(b=G.decode(H.charCodeAt(R++))))throw new Error("Invalid base64 digit: "+H.charAt(R-1));D=!!(32&b),w+=(b&=31)<<Z,Z+=5}while(D);v.value=function T(E){var R=E>>1;return 1==(1&E)?-R:R}(w),v.rest=R}},5773:function(Ae,K){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");K.encode=function(G){if(0<=G&&G<m.length)return m[G];throw new TypeError("Must be between 0 and 63: "+G)},K.decode=function(G){return 65<=G&&G<=90?G-65:97<=G&&G<=122?G-97+26:48<=G&&G<=57?G-48+52:43==G?62:47==G?63:-1}},1490:function(Ae,K,m){var G=m(2472);function A(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}A.prototype.unsortedForEach=function(I,P){this._array.forEach(I,P)},A.prototype.add=function(I){!function W(j,I){var P=j.generatedLine,T=I.generatedLine,E=j.generatedColumn,H=I.generatedColumn;return T>P||T==P&&H>=E||G.compareByGeneratedPositionsInflated(j,I)<=0}(this._last,I)?(this._sorted=!1,this._array.push(I)):(this._last=I,this._array.push(I))},A.prototype.toArray=function(){return this._sorted||(this._array.sort(G.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},K.H=A},3058:function(Ae,K,m){var G=m(3357),W=m(2472),A=m(6842).I,j=m(1490).H;function I(P){P||(P={}),this._file=W.getArg(P,"file",null),this._sourceRoot=W.getArg(P,"sourceRoot",null),this._skipValidation=W.getArg(P,"skipValidation",!1),this._sources=new A,this._names=new A,this._mappings=new j,this._sourcesContents=null}I.prototype._version=3,I.fromSourceMap=function(T){var E=T.sourceRoot,H=new I({file:T.file,sourceRoot:E});return T.eachMapping(function(R){var v={generated:{line:R.generatedLine,column:R.generatedColumn}};null!=R.source&&(v.source=R.source,null!=E&&(v.source=W.relative(E,v.source)),v.original={line:R.originalLine,column:R.originalColumn},null!=R.name&&(v.name=R.name)),H.addMapping(v)}),T.sources.forEach(function(R){var v=R;null!==E&&(v=W.relative(E,R)),H._sources.has(v)||H._sources.add(v);var x=T.sourceContentFor(R);null!=x&&H.setSourceContent(R,x)}),H},I.prototype.addMapping=function(T){var E=W.getArg(T,"generated"),H=W.getArg(T,"original",null),R=W.getArg(T,"source",null),v=W.getArg(T,"name",null);this._skipValidation||this._validateMapping(E,H,R,v),null!=R&&(R=String(R),this._sources.has(R)||this._sources.add(R)),null!=v&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:E.line,generatedColumn:E.column,originalLine:null!=H&&H.line,originalColumn:null!=H&&H.column,source:R,name:v})},I.prototype.setSourceContent=function(T,E){var H=T;null!=this._sourceRoot&&(H=W.relative(this._sourceRoot,H)),null!=E?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(H)]=E):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(H)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},I.prototype.applySourceMap=function(T,E,H){var R=E;if(null==E){if(null==T.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');R=T.file}var v=this._sourceRoot;null!=v&&(R=W.relative(v,R));var x=new A,w=new A;this._mappings.unsortedForEach(function(Z){if(Z.source===R&&null!=Z.originalLine){var D=T.originalPositionFor({line:Z.originalLine,column:Z.originalColumn});null!=D.source&&(Z.source=D.source,null!=H&&(Z.source=W.join(H,Z.source)),null!=v&&(Z.source=W.relative(v,Z.source)),Z.originalLine=D.line,Z.originalColumn=D.column,null!=D.name&&(Z.name=D.name))}var b=Z.source;null!=b&&!x.has(b)&&x.add(b);var S=Z.name;null!=S&&!w.has(S)&&w.add(S)},this),this._sources=x,this._names=w,T.sources.forEach(function(Z){var D=T.sourceContentFor(Z);null!=D&&(null!=H&&(Z=W.join(H,Z)),null!=v&&(Z=W.relative(v,Z)),this.setSourceContent(Z,D))},this)},I.prototype._validateMapping=function(T,E,H,R){if(E&&"number"!=typeof E.line&&"number"!=typeof E.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(T&&"line"in T&&"column"in T&&T.line>0&&T.column>=0)||E||H||R){if(T&&"line"in T&&"column"in T&&E&&"line"in E&&"column"in E&&T.line>0&&T.column>=0&&E.line>0&&E.column>=0&&H)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:T,source:H,original:E,name:R}))}},I.prototype._serializeMappings=function(){for(var Z,D,b,S,T=0,E=1,H=0,R=0,v=0,x=0,w="",k=this._mappings.toArray(),M=0,N=k.length;M<N;M++){if(Z="",(D=k[M]).generatedLine!==E)for(T=0;D.generatedLine!==E;)Z+=";",E++;else if(M>0){if(!W.compareByGeneratedPositionsInflated(D,k[M-1]))continue;Z+=","}Z+=G.encode(D.generatedColumn-T),T=D.generatedColumn,null!=D.source&&(S=this._sources.indexOf(D.source),Z+=G.encode(S-x),x=S,Z+=G.encode(D.originalLine-1-R),R=D.originalLine-1,Z+=G.encode(D.originalColumn-H),H=D.originalColumn,null!=D.name&&(b=this._names.indexOf(D.name),Z+=G.encode(b-v),v=b)),w+=Z}return w},I.prototype._generateSourcesContent=function(T,E){return T.map(function(H){if(!this._sourcesContents)return null;null!=E&&(H=W.relative(E,H));var R=W.toSetString(H);return Object.prototype.hasOwnProperty.call(this._sourcesContents,R)?this._sourcesContents[R]:null},this)},I.prototype.toJSON=function(){var T={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(T.file=this._file),null!=this._sourceRoot&&(T.sourceRoot=this._sourceRoot),this._sourcesContents&&(T.sourcesContent=this._generateSourcesContent(T.sources,T.sourceRoot)),T},I.prototype.toString=function(){return JSON.stringify(this.toJSON())},K.h=I},2472:function(Ae,K){K.getArg=function m($,V,Q){if(V in $)return $[V];if(3===arguments.length)return Q;throw new Error('"'+V+'" is a required argument.')};var G=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,W=/^data:.+\,.+$/;function A($){var V=$.match(G);return V?{scheme:V[1],auth:V[2],host:V[3],port:V[4],path:V[5]}:null}function j($){var V="";return $.scheme&&(V+=$.scheme+":"),V+="//",$.auth&&(V+=$.auth+"@"),$.host&&(V+=$.host),$.port&&(V+=":"+$.port),$.path&&(V+=$.path),V}K.urlParse=A,K.urlGenerate=j;var T=function P($){var V=[];return function(Q){for(var te=0;te<V.length;te++)if(V[te].input===Q){var be=V[0];return V[0]=V[te],V[te]=be,V[0].result}var pe=$(Q);return V.unshift({input:Q,result:pe}),V.length>32&&V.pop(),pe}}(function(V){var Q=V,te=A(V);if(te){if(!te.path)return V;Q=te.path}for(var be=K.isAbsolute(Q),pe=[],fe=0,ue=0;;){if(fe=ue,-1===(ue=Q.indexOf("/",fe))){pe.push(Q.slice(fe));break}for(pe.push(Q.slice(fe,ue));ue<Q.length&&"/"===Q[ue];)ue++}var de,ge=0;for(ue=pe.length-1;ue>=0;ue--)"."===(de=pe[ue])?pe.splice(ue,1):".."===de?ge++:ge>0&&(""===de?(pe.splice(ue+1,ge),ge=0):(pe.splice(ue,2),ge--));return""===(Q=pe.join("/"))&&(Q=be?"/":"."),te?(te.path=Q,j(te)):Q});function E($,V){""===$&&($="."),""===V&&(V=".");var Q=A(V),te=A($);if(te&&($=te.path||"/"),Q&&!Q.scheme)return te&&(Q.scheme=te.scheme),j(Q);if(Q||V.match(W))return V;if(te&&!te.host&&!te.path)return te.host=V,j(te);var be="/"===V.charAt(0)?V:T($.replace(/\/+$/,"")+"/"+V);return te?(te.path=be,j(te)):be}K.normalize=T,K.join=E,K.isAbsolute=function($){return"/"===$.charAt(0)||G.test($)},K.relative=function H($,V){""===$&&($="."),$=$.replace(/\/$/,"");for(var Q=0;0!==V.indexOf($+"/");){var te=$.lastIndexOf("/");if(te<0||($=$.slice(0,te)).match(/^([^\/]+:\/)?\/*$/))return V;++Q}return Array(Q+1).join("../")+V.substr($.length+1)};var R=!("__proto__"in Object.create(null));function v($){return $}function Z($){if(!$)return!1;var V=$.length;if(V<9||95!==$.charCodeAt(V-1)||95!==$.charCodeAt(V-2)||111!==$.charCodeAt(V-3)||116!==$.charCodeAt(V-4)||111!==$.charCodeAt(V-5)||114!==$.charCodeAt(V-6)||112!==$.charCodeAt(V-7)||95!==$.charCodeAt(V-8)||95!==$.charCodeAt(V-9))return!1;for(var Q=V-10;Q>=0;Q--)if(36!==$.charCodeAt(Q))return!1;return!0}function M($,V){return $===V?0:null===$?1:null===V?-1:$>V?1:-1}K.toSetString=R?v:function x($){return Z($)?"$"+$:$},K.fromSetString=R?v:function w($){return Z($)?$.slice(1):$},K.compareByOriginalPositions=function D($,V,Q){var te=M($.source,V.source);return 0!==te||0!==(te=$.originalLine-V.originalLine)||(0!==(te=$.originalColumn-V.originalColumn)||Q)||0!==(te=$.generatedColumn-V.generatedColumn)||0!==(te=$.generatedLine-V.generatedLine)?te:M($.name,V.name)},K.compareByOriginalPositionsNoSource=function b($,V,Q){var te;return 0!==(te=$.originalLine-V.originalLine)||(0!==(te=$.originalColumn-V.originalColumn)||Q)||0!==(te=$.generatedColumn-V.generatedColumn)||0!==(te=$.generatedLine-V.generatedLine)?te:M($.name,V.name)},K.compareByGeneratedPositionsDeflated=function S($,V,Q){var te=$.generatedLine-V.generatedLine;return 0!==te||(0!==(te=$.generatedColumn-V.generatedColumn)||Q)||0!==(te=M($.source,V.source))||0!==(te=$.originalLine-V.originalLine)||0!==(te=$.originalColumn-V.originalColumn)?te:M($.name,V.name)},K.compareByGeneratedPositionsDeflatedNoLine=function k($,V,Q){var te=$.generatedColumn-V.generatedColumn;return 0!==te||Q||0!==(te=M($.source,V.source))||0!==(te=$.originalLine-V.originalLine)||0!==(te=$.originalColumn-V.originalColumn)?te:M($.name,V.name)},K.compareByGeneratedPositionsInflated=function N($,V){var Q=$.generatedLine-V.generatedLine;return 0!==Q||0!==(Q=$.generatedColumn-V.generatedColumn)||0!==(Q=M($.source,V.source))||0!==(Q=$.originalLine-V.originalLine)||0!==(Q=$.originalColumn-V.originalColumn)?Q:M($.name,V.name)},K.parseSourceMapInput=function F($){return JSON.parse($.replace(/^\)]}'[^\n]*\n/,""))},K.computeSourceURL=function X($,V,Q){if(V=V||"",$&&("/"!==$[$.length-1]&&"/"!==V[0]&&($+="/"),V=$+V),Q){var te=A(Q);if(!te)throw new Error("sourceMapURL could not be parsed");if(te.path){var be=te.path.lastIndexOf("/");be>=0&&(te.path=te.path.substring(0,be+1))}V=E(j(te),V)}return T(V)}},1452:function(Ae){Ae.exports=function(K){"use strict";var G=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function A(b,S){var k=b[0],M=b[1],N=b[2],F=b[3];M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[0]-680876936|0)<<7|k>>>25)+M|0)&M|~k&N)+S[1]-389564586|0)<<12|F>>>20)+k|0)&k|~F&M)+S[2]+606105819|0)<<17|N>>>15)+F|0)&F|~N&k)+S[3]-1044525330|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[4]-176418897|0)<<7|k>>>25)+M|0)&M|~k&N)+S[5]+1200080426|0)<<12|F>>>20)+k|0)&k|~F&M)+S[6]-1473231341|0)<<17|N>>>15)+F|0)&F|~N&k)+S[7]-45705983|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[8]+1770035416|0)<<7|k>>>25)+M|0)&M|~k&N)+S[9]-1958414417|0)<<12|F>>>20)+k|0)&k|~F&M)+S[10]-42063|0)<<17|N>>>15)+F|0)&F|~N&k)+S[11]-1990404162|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[12]+1804603682|0)<<7|k>>>25)+M|0)&M|~k&N)+S[13]-40341101|0)<<12|F>>>20)+k|0)&k|~F&M)+S[14]-1502002290|0)<<17|N>>>15)+F|0)&F|~N&k)+S[15]+1236535329|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[1]-165796510|0)<<5|k>>>27)+M|0)&N|M&~N)+S[6]-1069501632|0)<<9|F>>>23)+k|0)&M|k&~M)+S[11]+643717713|0)<<14|N>>>18)+F|0)&k|F&~k)+S[0]-373897302|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[5]-701558691|0)<<5|k>>>27)+M|0)&N|M&~N)+S[10]+38016083|0)<<9|F>>>23)+k|0)&M|k&~M)+S[15]-660478335|0)<<14|N>>>18)+F|0)&k|F&~k)+S[4]-405537848|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[9]+568446438|0)<<5|k>>>27)+M|0)&N|M&~N)+S[14]-1019803690|0)<<9|F>>>23)+k|0)&M|k&~M)+S[3]-187363961|0)<<14|N>>>18)+F|0)&k|F&~k)+S[8]+1163531501|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[13]-1444681467|0)<<5|k>>>27)+M|0)&N|M&~N)+S[2]-51403784|0)<<9|F>>>23)+k|0)&M|k&~M)+S[7]+1735328473|0)<<14|N>>>18)+F|0)&k|F&~k)+S[12]-1926607734|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[5]-378558|0)<<4|k>>>28)+M|0)^M^N)+S[8]-2022574463|0)<<11|F>>>21)+k|0)^k^M)+S[11]+1839030562|0)<<16|N>>>16)+F|0)^F^k)+S[14]-35309556|0)<<23|M>>>9)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[1]-1530992060|0)<<4|k>>>28)+M|0)^M^N)+S[4]+1272893353|0)<<11|F>>>21)+k|0)^k^M)+S[7]-155497632|0)<<16|N>>>16)+F|0)^F^k)+S[10]-1094730640|0)<<23|M>>>9)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[13]+681279174|0)<<4|k>>>28)+M|0)^M^N)+S[0]-358537222|0)<<11|F>>>21)+k|0)^k^M)+S[3]-722521979|0)<<16|N>>>16)+F|0)^F^k)+S[6]+76029189|0)<<23|M>>>9)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[9]-640364487|0)<<4|k>>>28)+M|0)^M^N)+S[12]-421815835|0)<<11|F>>>21)+k|0)^k^M)+S[15]+530742520|0)<<16|N>>>16)+F|0)^F^k)+S[2]-995338651|0)<<23|M>>>9)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[0]-198630844|0)<<6|k>>>26)+M|0)|~N))+S[7]+1126891415|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[14]-1416354905|0)<<15|N>>>17)+F|0)|~k))+S[5]-57434055|0)<<21|M>>>11)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[12]+1700485571|0)<<6|k>>>26)+M|0)|~N))+S[3]-1894986606|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[10]-1051523|0)<<15|N>>>17)+F|0)|~k))+S[1]-2054922799|0)<<21|M>>>11)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[8]+1873313359|0)<<6|k>>>26)+M|0)|~N))+S[15]-30611744|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[6]-1560198380|0)<<15|N>>>17)+F|0)|~k))+S[13]+1309151649|0)<<21|M>>>11)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[4]-145523070|0)<<6|k>>>26)+M|0)|~N))+S[11]-1120210379|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[2]+718787259|0)<<15|N>>>17)+F|0)|~k))+S[9]-343485551|0)<<21|M>>>11)+N|0,b[0]=k+b[0]|0,b[1]=M+b[1]|0,b[2]=N+b[2]|0,b[3]=F+b[3]|0}function j(b){var k,S=[];for(k=0;k<64;k+=4)S[k>>2]=b.charCodeAt(k)+(b.charCodeAt(k+1)<<8)+(b.charCodeAt(k+2)<<16)+(b.charCodeAt(k+3)<<24);return S}function I(b){var k,S=[];for(k=0;k<64;k+=4)S[k>>2]=b[k]+(b[k+1]<<8)+(b[k+2]<<16)+(b[k+3]<<24);return S}function P(b){var M,N,F,X,$,V,S=b.length,k=[1732584193,-271733879,-1732584194,271733878];for(M=64;M<=S;M+=64)A(k,j(b.substring(M-64,M)));for(N=(b=b.substring(M-64)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M=0;M<N;M+=1)F[M>>2]|=b.charCodeAt(M)<<(M%4<<3);if(F[M>>2]|=128<<(M%4<<3),M>55)for(A(k,F),M=0;M<16;M+=1)F[M]=0;return X=(X=8*S).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),V=parseInt(X[1],16)||0,F[14]=$,F[15]=V,A(k,F),k}function T(b){var M,N,F,X,$,V,S=b.length,k=[1732584193,-271733879,-1732584194,271733878];for(M=64;M<=S;M+=64)A(k,I(b.subarray(M-64,M)));for(N=(b=M-64<S?b.subarray(M-64):new Uint8Array(0)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M=0;M<N;M+=1)F[M>>2]|=b[M]<<(M%4<<3);if(F[M>>2]|=128<<(M%4<<3),M>55)for(A(k,F),M=0;M<16;M+=1)F[M]=0;return X=(X=8*S).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),V=parseInt(X[1],16)||0,F[14]=$,F[15]=V,A(k,F),k}function E(b){var k,S="";for(k=0;k<4;k+=1)S+=G[b>>8*k+4&15]+G[b>>8*k&15];return S}function H(b){var S;for(S=0;S<b.length;S+=1)b[S]=E(b[S]);return b.join("")}function R(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function v(b,S){var F,k=b.length,M=new ArrayBuffer(k),N=new Uint8Array(M);for(F=0;F<k;F+=1)N[F]=b.charCodeAt(F);return S?N:M}function x(b){return String.fromCharCode.apply(null,new Uint8Array(b))}function w(b,S,k){var M=new Uint8Array(b.byteLength+S.byteLength);return M.set(new Uint8Array(b)),M.set(new Uint8Array(S),b.byteLength),k?M:M.buffer}function Z(b){var M,S=[],k=b.length;for(M=0;M<k-1;M+=2)S.push(parseInt(b.substr(M,2),16));return String.fromCharCode.apply(String,S)}function D(){this.reset()}return H(P("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function b(S,k){return(S=0|S||0)<0?Math.max(S+k,0):Math.min(S,k)}ArrayBuffer.prototype.slice=function(S,k){var X,$,V,Q,M=this.byteLength,N=b(S,M),F=M;return k!==K&&(F=b(k,M)),N>F?new ArrayBuffer(0):(X=F-N,$=new ArrayBuffer(X),V=new Uint8Array($),Q=new Uint8Array(this,N,X),V.set(Q),$)}}(),D.prototype.append=function(b){return this.appendBinary(R(b)),this},D.prototype.appendBinary=function(b){this._buff+=b,this._length+=b.length;var k,S=this._buff.length;for(k=64;k<=S;k+=64)A(this._hash,j(this._buff.substring(k-64,k)));return this._buff=this._buff.substring(k-64),this},D.prototype.end=function(b){var M,F,S=this._buff,k=S.length,N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(M=0;M<k;M+=1)N[M>>2]|=S.charCodeAt(M)<<(M%4<<3);return this._finish(N,k),F=H(this._hash),b&&(F=Z(F)),this.reset(),F},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},D.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(b,S){var M,N,F,k=S;if(b[k>>2]|=128<<(k%4<<3),k>55)for(A(this._hash,b),k=0;k<16;k+=1)b[k]=0;M=(M=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(M[2],16),F=parseInt(M[1],16)||0,b[14]=N,b[15]=F,A(this._hash,b)},D.hash=function(b,S){return D.hashBinary(R(b),S)},D.hashBinary=function(b,S){var M=H(P(b));return S?Z(M):M},D.ArrayBuffer=function(){this.reset()},D.ArrayBuffer.prototype.append=function(b){var M,S=w(this._buff.buffer,b,!0),k=S.length;for(this._length+=b.byteLength,M=64;M<=k;M+=64)A(this._hash,I(S.subarray(M-64,M)));return this._buff=M-64<k?new Uint8Array(S.buffer.slice(M-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(b){var N,F,S=this._buff,k=S.length,M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(N=0;N<k;N+=1)M[N>>2]|=S[N]<<(N%4<<3);return this._finish(M,k),F=H(this._hash),b&&(F=Z(F)),this.reset(),F},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var b=D.prototype.getState.call(this);return b.buff=x(b.buff),b},D.ArrayBuffer.prototype.setState=function(b){return b.buff=v(b.buff,!0),D.prototype.setState.call(this,b)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(b,S){var M=H(T(new Uint8Array(b)));return S?Z(M):M},D}()},986:function(Ae){window,Ae.exports=function(K){var m={};function G(W){if(m[W])return m[W].exports;var A=m[W]={i:W,l:!1,exports:{}};return K[W].call(A.exports,A,A.exports,G),A.l=!0,A.exports}return G.m=K,G.c=m,G.d=function(W,A,j){G.o(W,A)||Object.defineProperty(W,A,{enumerable:!0,get:j})},G.r=function(W){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},G.t=function(W,A){if(1&A&&(W=G(W)),8&A||4&A&&"object"==typeof W&&W&&W.__esModule)return W;var j=Object.create(null);if(G.r(j),Object.defineProperty(j,"default",{enumerable:!0,value:W}),2&A&&"string"!=typeof W)for(var I in W)G.d(j,I,function(P){return W[P]}.bind(null,I));return j},G.n=function(W){var A=W&&W.__esModule?function(){return W.default}:function(){return W};return G.d(A,"a",A),A},G.o=function(W,A){return Object.prototype.hasOwnProperty.call(W,A)},G.p="",G(G.s=0)}([function(K,m,G){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AttachAddon=void 0;var W=function(){function j(I,P){this._disposables=[],this._socket=I,this._socket.binaryType="arraybuffer",this._bidirectional=!P||!1!==P.bidirectional}return j.prototype.activate=function(I){var P=this;this._disposables.push(A(this._socket,"message",function(T){var E=T.data;I.write("string"==typeof E?E:new Uint8Array(E))})),this._bidirectional&&(this._disposables.push(I.onData(function(T){return P._sendData(T)})),this._disposables.push(I.onBinary(function(T){return P._sendBinary(T)}))),this._disposables.push(A(this._socket,"close",function(){return P.dispose()})),this._disposables.push(A(this._socket,"error",function(){return P.dispose()}))},j.prototype.dispose=function(){this._disposables.forEach(function(I){return I.dispose()})},j.prototype._sendData=function(I){1===this._socket.readyState&&this._socket.send(I)},j.prototype._sendBinary=function(I){if(1===this._socket.readyState){for(var P=new Uint8Array(I.length),T=0;T<I.length;++T)P[T]=255&I.charCodeAt(T);this._socket.send(P)}},j}();function A(j,I,P){return j.addEventListener(I,P),{dispose:function(){P&&j.removeEventListener(I,P)}}}m.AttachAddon=W}])},9162:function(Ae){self,Ae.exports=function(){"use strict";var K={775:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.FitAddon=void 0;var j=function(){function I(){}return I.prototype.activate=function(P){this._terminal=P},I.prototype.dispose=function(){},I.prototype.fit=function(){var P=this.proposeDimensions();if(P&&this._terminal){var T=this._terminal._core;this._terminal.rows===P.rows&&this._terminal.cols===P.cols||(T._renderService.clear(),this._terminal.resize(P.cols,P.rows))}},I.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var P=this._terminal._core;if(0!==P._renderService.dimensions.actualCellWidth&&0!==P._renderService.dimensions.actualCellHeight){var T=window.getComputedStyle(this._terminal.element.parentElement),E=parseInt(T.getPropertyValue("height")),H=Math.max(0,parseInt(T.getPropertyValue("width"))),R=window.getComputedStyle(this._terminal.element),v=E-(parseInt(R.getPropertyValue("padding-top"))+parseInt(R.getPropertyValue("padding-bottom"))),x=H-(parseInt(R.getPropertyValue("padding-right"))+parseInt(R.getPropertyValue("padding-left")))-P.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(x/P._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(v/P._renderService.dimensions.actualCellHeight))}}}},I}();A.FitAddon=j}},m={};return function G(W){if(m[W])return m[W].exports;var A=m[W]={exports:{}};return K[W](A,A.exports,G),A.exports}(775)}()},4793:function(Ae){self,Ae.exports=function(){"use strict";var K={4567:function(W,A,j){var I,P=this&&this.__extends||(I=function(b,S){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}I(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)});Object.defineProperty(A,"__esModule",{value:!0}),A.AccessibilityManager=void 0;var T=j(9042),E=j(6114),H=j(9924),R=j(3656),v=j(844),x=j(5596),w=j(9631),Z=function(D){function b(S,k){var M=D.call(this)||this;M._terminal=S,M._renderService=k,M._liveRegionLineCount=0,M._charsToConsume=[],M._charsToAnnounce="",M._accessibilityTreeRoot=document.createElement("div"),M._accessibilityTreeRoot.classList.add("xterm-accessibility"),M._accessibilityTreeRoot.tabIndex=0,M._rowContainer=document.createElement("div"),M._rowContainer.setAttribute("role","list"),M._rowContainer.classList.add("xterm-accessibility-tree"),M._rowElements=[];for(var N=0;N<M._terminal.rows;N++)M._rowElements[N]=M._createAccessibilityTreeNode(),M._rowContainer.appendChild(M._rowElements[N]);if(M._topBoundaryFocusListener=function(F){return M._onBoundaryFocus(F,0)},M._bottomBoundaryFocusListener=function(F){return M._onBoundaryFocus(F,1)},M._rowElements[0].addEventListener("focus",M._topBoundaryFocusListener),M._rowElements[M._rowElements.length-1].addEventListener("focus",M._bottomBoundaryFocusListener),M._refreshRowsDimensions(),M._accessibilityTreeRoot.appendChild(M._rowContainer),M._renderRowsDebouncer=new H.TimeBasedDebouncer(M._renderRows.bind(M)),M._refreshRows(),M._liveRegion=document.createElement("div"),M._liveRegion.classList.add("live-region"),M._liveRegion.setAttribute("aria-live","assertive"),M._accessibilityTreeRoot.appendChild(M._liveRegion),!M._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return M._terminal.element.insertAdjacentElement("afterbegin",M._accessibilityTreeRoot),M.register(M._renderRowsDebouncer),M.register(M._terminal.onResize(function(F){return M._onResize(F.rows)})),M.register(M._terminal.onRender(function(F){return M._refreshRows(F.start,F.end)})),M.register(M._terminal.onScroll(function(){return M._refreshRows()})),M.register(M._terminal.onA11yChar(function(F){return M._onChar(F)})),M.register(M._terminal.onLineFeed(function(){return M._onChar("\n")})),M.register(M._terminal.onA11yTab(function(F){return M._onTab(F)})),M.register(M._terminal.onKey(function(F){return M._onKey(F.key)})),M.register(M._terminal.onBlur(function(){return M._clearLiveRegion()})),M.register(M._renderService.onDimensionsChange(function(){return M._refreshRowsDimensions()})),M._screenDprMonitor=new x.ScreenDprMonitor,M.register(M._screenDprMonitor),M._screenDprMonitor.setListener(function(){return M._refreshRowsDimensions()}),M.register((0,R.addDisposableDomListener)(window,"resize",function(){return M._refreshRowsDimensions()})),M}return P(b,D),b.prototype.dispose=function(){D.prototype.dispose.call(this),(0,w.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},b.prototype._onBoundaryFocus=function(S,k){var M=S.target,N=this._rowElements[0===k?1:this._rowElements.length-2];if(M.getAttribute("aria-posinset")!==(0===k?"1":""+this._terminal.buffer.lines.length)&&S.relatedTarget===N){var F,X;if(0===k?(F=M,X=this._rowElements.pop(),this._rowContainer.removeChild(X)):(F=this._rowElements.shift(),X=M,this._rowContainer.removeChild(F)),F.removeEventListener("focus",this._topBoundaryFocusListener),X.removeEventListener("focus",this._bottomBoundaryFocusListener),0===k){var $=this._createAccessibilityTreeNode();this._rowElements.unshift($),this._rowContainer.insertAdjacentElement("afterbegin",$)}else $=this._createAccessibilityTreeNode(),this._rowElements.push($),this._rowContainer.appendChild($);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===k?-1:1),this._rowElements[0===k?1:this._rowElements.length-2].focus(),S.preventDefault(),S.stopImmediatePropagation()}},b.prototype._onResize=function(S){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var k=this._rowContainer.children.length;k<this._terminal.rows;k++)this._rowElements[k]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[k]);for(;this._rowElements.length>S;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},b.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},b.prototype._onTab=function(S){for(var k=0;k<S;k++)this._onChar(" ")},b.prototype._onChar=function(S){var k=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=T.tooMuchOutput)),E.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){k._accessibilityTreeRoot.appendChild(k._liveRegion)},0))},b.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,E.isMac&&(0,w.removeElementFromParent)(this._liveRegion)},b.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},b.prototype._refreshRows=function(S,k){this._renderRowsDebouncer.refresh(S,k,this._terminal.rows)},b.prototype._renderRows=function(S,k){for(var M=this._terminal.buffer,N=M.lines.length.toString(),F=S;F<=k;F++){var X=M.translateBufferLineToString(M.ydisp+F,!0),$=(M.ydisp+F+1).toString(),V=this._rowElements[F];V&&(0===X.length?V.innerText="\xa0":V.textContent=X,V.setAttribute("aria-posinset",$),V.setAttribute("aria-setsize",N))}this._announceCharacters()},b.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S<this._terminal.rows;S++)this._refreshRowDimensions(this._rowElements[S])}},b.prototype._refreshRowDimensions=function(S){S.style.height=this._renderService.dimensions.actualCellHeight+"px"},b.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},b}(v.Disposable);A.AccessibilityManager=Z},3614:function(W,A){function j(E){return E.replace(/\r?\n/g,"\r")}function I(E,H){return H?"\x1b[200~"+E+"\x1b[201~":E}function P(E,H,R){E=I(E=j(E),R.decPrivateModes.bracketedPasteMode),R.triggerDataEvent(E,!0),H.value=""}function T(E,H,R){var v=R.getBoundingClientRect(),x=E.clientX-v.left-10,w=E.clientY-v.top-10;H.style.width="20px",H.style.height="20px",H.style.left=x+"px",H.style.top=w+"px",H.style.zIndex="1000",H.focus()}Object.defineProperty(A,"__esModule",{value:!0}),A.rightClickHandler=A.moveTextAreaUnderMouseCursor=A.paste=A.handlePasteEvent=A.copyHandler=A.bracketTextForPaste=A.prepareTextForTerminal=void 0,A.prepareTextForTerminal=j,A.bracketTextForPaste=I,A.copyHandler=function(E,H){E.clipboardData&&E.clipboardData.setData("text/plain",H.selectionText),E.preventDefault()},A.handlePasteEvent=function(E,H,R){E.stopPropagation(),E.clipboardData&&P(E.clipboardData.getData("text/plain"),H,R)},A.paste=P,A.moveTextAreaUnderMouseCursor=T,A.rightClickHandler=function(E,H,R,v,x){T(E,H,R),x&&v.rightClickSelect(E),H.value=v.selectionText,H.select()}},7239:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ColorContrastCache=void 0;var j=function(){function I(){this._color={},this._rgba={}}return I.prototype.clear=function(){this._color={},this._rgba={}},I.prototype.setCss=function(P,T,E){this._rgba[P]||(this._rgba[P]={}),this._rgba[P][T]=E},I.prototype.getCss=function(P,T){return this._rgba[P]?this._rgba[P][T]:void 0},I.prototype.setColor=function(P,T,E){this._color[P]||(this._color[P]={}),this._color[P][T]=E},I.prototype.getColor=function(P,T){return this._color[P]?this._color[P][T]:void 0},I}();A.ColorContrastCache=j},5680:function(W,A,j){var I=this&&this.__read||function(Z,D){var b="function"==typeof Symbol&&Z[Symbol.iterator];if(!b)return Z;var S,k,M=b.call(Z),N=[];try{for(;(void 0===D||D-- >0)&&!(S=M.next()).done;)N.push(S.value)}catch(F){k={error:F}}finally{try{S&&!S.done&&(b=M.return)&&b.call(M)}finally{if(k)throw k.error}}return N};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorManager=A.DEFAULT_ANSI_COLORS=void 0;var P=j(8055),T=j(7239),E=P.css.toColor("#ffffff"),H=P.css.toColor("#000000"),R=P.css.toColor("#ffffff"),v=P.css.toColor("#000000"),x={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};A.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var Z=[P.css.toColor("#2e3436"),P.css.toColor("#cc0000"),P.css.toColor("#4e9a06"),P.css.toColor("#c4a000"),P.css.toColor("#3465a4"),P.css.toColor("#75507b"),P.css.toColor("#06989a"),P.css.toColor("#d3d7cf"),P.css.toColor("#555753"),P.css.toColor("#ef2929"),P.css.toColor("#8ae234"),P.css.toColor("#fce94f"),P.css.toColor("#729fcf"),P.css.toColor("#ad7fa8"),P.css.toColor("#34e2e2"),P.css.toColor("#eeeeec")],D=[0,95,135,175,215,255],b=0;b<216;b++){var S=D[b/36%6|0],k=D[b/6%6|0],M=D[b%6];Z.push({css:P.channels.toCss(S,k,M),rgba:P.channels.toRgba(S,k,M)})}for(b=0;b<24;b++){var N=8+10*b;Z.push({css:P.channels.toCss(N,N,N),rgba:P.channels.toRgba(N,N,N)})}return Z}());var w=function(){function Z(D,b){this.allowTransparency=b;var S=D.createElement("canvas");S.width=1,S.height=1;var k=S.getContext("2d");if(!k)throw new Error("Could not get rendering context");this._ctx=k,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new T.ColorContrastCache,this.colors={foreground:E,background:H,cursor:R,cursorAccent:v,selectionTransparent:x,selectionOpaque:P.color.blend(H,x),selectionForeground:void 0,ansi:A.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return Z.prototype.onOptionsChange=function(D){"minimumContrastRatio"===D&&this._contrastCache.clear()},Z.prototype.setTheme=function(D){void 0===D&&(D={}),this.colors.foreground=this._parseColor(D.foreground,E),this.colors.background=this._parseColor(D.background,H),this.colors.cursor=this._parseColor(D.cursor,R,!0),this.colors.cursorAccent=this._parseColor(D.cursorAccent,v,!0),this.colors.selectionTransparent=this._parseColor(D.selection,x,!0),this.colors.selectionOpaque=P.color.blend(this.colors.background,this.colors.selectionTransparent);var b={css:"",rgba:0};this.colors.selectionForeground=D.selectionForeground?this._parseColor(D.selectionForeground,b):void 0,this.colors.selectionForeground===b&&(this.colors.selectionForeground=void 0),P.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=P.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(D.black,A.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(D.red,A.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(D.green,A.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(D.yellow,A.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(D.blue,A.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(D.magenta,A.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(D.cyan,A.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(D.white,A.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(D.brightBlack,A.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(D.brightRed,A.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(D.brightGreen,A.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(D.brightYellow,A.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(D.brightBlue,A.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(D.brightMagenta,A.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(D.brightCyan,A.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(D.brightWhite,A.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},Z.prototype.restoreColor=function(D){if(void 0!==D)switch(D){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[D]=this._restoreColors.ansi[D]}else for(var b=0;b<this._restoreColors.ansi.length;++b)this.colors.ansi[b]=this._restoreColors.ansi[b]},Z.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},Z.prototype._parseColor=function(D,b,S){if(void 0===S&&(S=this.allowTransparency),void 0===D)return b;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=D,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+D+" is invalid using fallback "+b.css),b;this._ctx.fillRect(0,0,1,1);var k=this._ctx.getImageData(0,0,1,1).data;if(255!==k[3]){if(!S)return console.warn("Color: "+D+" is using transparency, but allowTransparency is false. Using fallback "+b.css+"."),b;var M=I(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(Q){return Number(Q)}),4),N=M[0],F=M[1],X=M[2],$=M[3],V=Math.round(255*$);return{rgba:P.channels.toRgba(N,F,X,V),css:D}}return{css:this._ctx.fillStyle,rgba:P.channels.toRgba(k[0],k[1],k[2],k[3])}},Z}();A.ColorManager=w},9631:function(W,A){var j=this&&this.__values||function(I){var P="function"==typeof Symbol&&Symbol.iterator,T=P&&I[P],E=0;if(T)return T.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&E>=I.length&&(I=void 0),{value:I&&I[E++],done:!I}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.removeElementFromParent=void 0,A.removeElementFromParent=function(){for(var I,P,T,E=[],H=0;H<arguments.length;H++)E[H]=arguments[H];try{for(var R=j(E),v=R.next();!v.done;v=R.next()){var x=v.value;null===(T=null==x?void 0:x.parentElement)||void 0===T||T.removeChild(x)}}catch(w){I={error:w}}finally{try{v&&!v.done&&(P=R.return)&&P.call(R)}finally{if(I)throw I.error}}}},3656:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.addDisposableDomListener=void 0,A.addDisposableDomListener=function(j,I,P,T){j.addEventListener(I,P,T);var E=!1;return{dispose:function(){E||(E=!0,j.removeEventListener(I,P,T))}}}},3551:function(W,A,j){var I=this&&this.__decorate||function(v,x,w,Z){var D,b=arguments.length,S=b<3?x:null===Z?Z=Object.getOwnPropertyDescriptor(x,w):Z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(v,x,w,Z);else for(var k=v.length-1;k>=0;k--)(D=v[k])&&(S=(b<3?D(S):b>3?D(x,w,S):D(x,w))||S);return b>3&&S&&Object.defineProperty(x,w,S),S},P=this&&this.__param||function(v,x){return function(w,Z){x(w,Z,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZone=A.Linkifier=void 0;var T=j(8460),E=j(2585),H=function(){function v(x,w,Z){this._bufferService=x,this._logService=w,this._unicodeService=Z,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new T.EventEmitter,this._onHideLinkUnderline=new T.EventEmitter,this._onLinkTooltip=new T.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(v.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),v.prototype.attachToDom=function(x,w){this._element=x,this._mouseZoneManager=w},v.prototype.linkifyRows=function(x,w){var Z=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=x,this._rowsToLinkify.end=w):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,x),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,w)),this._mouseZoneManager.clearAll(x,w),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return Z._linkifyRows()},v._timeBeforeLatency))},v.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var x=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var w=x.ydisp+this._rowsToLinkify.start;if(!(w>=x.lines.length)){for(var Z=x.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,D=Math.ceil(2e3/this._bufferService.cols),b=this._bufferService.buffer.iterator(!1,w,Z,D,D);b.hasNext();)for(var S=b.next(),k=0;k<this._linkMatchers.length;k++)this._doLinkifyRow(S.range.first,S.content,this._linkMatchers[k]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},v.prototype.registerLinkMatcher=function(x,w,Z){if(void 0===Z&&(Z={}),!w)throw new Error("handler must be defined");var D={id:this._nextLinkMatcherId++,regex:x,handler:w,matchIndex:Z.matchIndex,validationCallback:Z.validationCallback,hoverTooltipCallback:Z.tooltipCallback,hoverLeaveCallback:Z.leaveCallback,willLinkActivate:Z.willLinkActivate,priority:Z.priority||0};return this._addLinkMatcherToList(D),D.id},v.prototype._addLinkMatcherToList=function(x){if(0!==this._linkMatchers.length){for(var w=this._linkMatchers.length-1;w>=0;w--)if(x.priority<=this._linkMatchers[w].priority)return void this._linkMatchers.splice(w+1,0,x);this._linkMatchers.splice(0,0,x)}else this._linkMatchers.push(x)},v.prototype.deregisterLinkMatcher=function(x){for(var w=0;w<this._linkMatchers.length;w++)if(this._linkMatchers[w].id===x)return this._linkMatchers.splice(w,1),!0;return!1},v.prototype._doLinkifyRow=function(x,w,Z){for(var D,b=this,S=new RegExp(Z.regex.source,(Z.regex.flags||"")+"g"),k=-1,M=function(){var X=D["number"!=typeof Z.matchIndex?0:Z.matchIndex];if(!X)return N._logService.debug("match found without corresponding matchIndex",D,Z),"break";if(k=w.indexOf(X,k+1),S.lastIndex=k+X.length,k<0)return"break";var $=N._bufferService.buffer.stringIndexToBufferIndex(x,k);if($[0]<0)return"break";var V=N._bufferService.buffer.lines.get($[0]);if(!V)return"break";var Q=V.getFg($[1]),te=Q?Q>>9&511:void 0;Z.validationCallback?Z.validationCallback(X,function(be){b._rowsTimeoutId||be&&b._addLink($[1],$[0]-b._bufferService.buffer.ydisp,X,Z,te)}):N._addLink($[1],$[0]-N._bufferService.buffer.ydisp,X,Z,te)},N=this;null!==(D=S.exec(w))&&"break"!==M(););},v.prototype._addLink=function(x,w,Z,D,b){var S=this;if(this._mouseZoneManager&&this._element){var k=this._unicodeService.getStringCellWidth(Z),M=x%this._bufferService.cols,N=w+Math.floor(x/this._bufferService.cols),F=(M+k)%this._bufferService.cols,X=N+Math.floor((M+k)/this._bufferService.cols);0===F&&(F=this._bufferService.cols,X--),this._mouseZoneManager.add(new R(M+1,N+1,F+1,X+1,function($){if(D.handler)return D.handler($,Z);var V=window.open();V?(V.opener=null,V.location.href=Z):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(M,N,F,X,b)),S._element.classList.add("xterm-cursor-pointer")},function($){S._onLinkTooltip.fire(S._createLinkHoverEvent(M,N,F,X,b)),D.hoverTooltipCallback&&D.hoverTooltipCallback($,Z,{start:{x:M,y:N},end:{x:F,y:X}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(M,N,F,X,b)),S._element.classList.remove("xterm-cursor-pointer"),D.hoverLeaveCallback&&D.hoverLeaveCallback()},function($){return!D.willLinkActivate||D.willLinkActivate($,Z)}))}},v.prototype._createLinkHoverEvent=function(x,w,Z,D,b){return{x1:x,y1:w,x2:Z,y2:D,cols:this._bufferService.cols,fg:b}},v._timeBeforeLatency=200,v=I([P(0,E.IBufferService),P(1,E.ILogService),P(2,E.IUnicodeService)],v)}();A.Linkifier=H;var R=function(x,w,Z,D,b,S,k,M,N){this.x1=x,this.y1=w,this.x2=Z,this.y2=D,this.clickCallback=b,this.hoverCallback=S,this.tooltipCallback=k,this.leaveCallback=M,this.willLinkActivate=N};A.MouseZone=R},6465:function(W,A,j){var I,P=this&&this.__extends||(I=function(S,k){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(M[F]=N[F])})(S,k)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=b}I(b,S),b.prototype=null===S?Object.create(S):(k.prototype=S.prototype,new k)}),T=this&&this.__decorate||function(b,S,k,M){var N,F=arguments.length,X=F<3?S:null===M?M=Object.getOwnPropertyDescriptor(S,k):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(b,S,k,M);else for(var $=b.length-1;$>=0;$--)(N=b[$])&&(X=(F<3?N(X):F>3?N(S,k,X):N(S,k))||X);return F>3&&X&&Object.defineProperty(S,k,X),X},E=this&&this.__param||function(b,S){return function(k,M){S(k,M,b)}},H=this&&this.__values||function(b){var S="function"==typeof Symbol&&Symbol.iterator,k=S&&b[S],M=0;if(k)return k.call(b);if(b&&"number"==typeof b.length)return{next:function(){return b&&M>=b.length&&(b=void 0),{value:b&&b[M++],done:!b}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},R=this&&this.__read||function(b,S){var k="function"==typeof Symbol&&b[Symbol.iterator];if(!k)return b;var M,N,F=k.call(b),X=[];try{for(;(void 0===S||S-- >0)&&!(M=F.next()).done;)X.push(M.value)}catch($){N={error:$}}finally{try{M&&!M.done&&(k=F.return)&&k.call(F)}finally{if(N)throw N.error}}return X};Object.defineProperty(A,"__esModule",{value:!0}),A.Linkifier2=void 0;var v=j(2585),x=j(8460),w=j(844),Z=j(3656),D=function(b){function S(k){var M=b.call(this)||this;return M._bufferService=k,M._linkProviders=[],M._linkCacheDisposables=[],M._isMouseOut=!0,M._activeLine=-1,M._onShowLinkUnderline=M.register(new x.EventEmitter),M._onHideLinkUnderline=M.register(new x.EventEmitter),M.register((0,w.getDisposeArrayDisposable)(M._linkCacheDisposables)),M}return P(S,b),Object.defineProperty(S.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),S.prototype.registerLinkProvider=function(k){var M=this;return this._linkProviders.push(k),{dispose:function(){var F=M._linkProviders.indexOf(k);-1!==F&&M._linkProviders.splice(F,1)}}},S.prototype.attachToDom=function(k,M,N){var F=this;this._element=k,this._mouseService=M,this._renderService=N,this.register((0,Z.addDisposableDomListener)(this._element,"mouseleave",function(){F._isMouseOut=!0,F._clearCurrentLink()})),this.register((0,Z.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,Z.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,Z.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},S.prototype._onMouseMove=function(k){if(this._lastMouseEvent=k,this._element&&this._mouseService){var M=this._positionFromMouseEvent(k,this._element,this._mouseService);if(M){this._isMouseOut=!1;for(var N=k.composedPath(),F=0;F<N.length;F++){var X=N[F];if(X.classList.contains("xterm"))break;if(X.classList.contains("xterm-hover"))return}this._lastBufferCell&&M.x===this._lastBufferCell.x&&M.y===this._lastBufferCell.y||(this._onHover(M),this._lastBufferCell=M)}}},S.prototype._onHover=function(k){if(this._activeLine!==k.y)return this._clearCurrentLink(),void this._askForLink(k,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,k)||(this._clearCurrentLink(),this._askForLink(k,!0))},S.prototype._askForLink=function(k,M){var N,F,X,$,V=this;this._activeProviderReplies&&M||(null===(X=this._activeProviderReplies)||void 0===X||X.forEach(function(de){null==de||de.forEach(function(ge){ge.link.dispose&&ge.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=k.y);var Q=!1,te=function(ge,He){M?null!==($=be._activeProviderReplies)&&void 0!==$&&$.get(ge)&&(Q=be._checkLinkProviderResult(ge,k,Q)):He.provideLinks(k.y,function(ot){var St,Tt;if(!V._isMouseOut){var Dt=null==ot?void 0:ot.map(function(Rt){return{link:Rt}});null===(St=V._activeProviderReplies)||void 0===St||St.set(ge,Dt),Q=V._checkLinkProviderResult(ge,k,Q),(null===(Tt=V._activeProviderReplies)||void 0===Tt?void 0:Tt.size)===V._linkProviders.length&&V._removeIntersectingLinks(k.y,V._activeProviderReplies)}})},be=this;try{for(var pe=H(this._linkProviders.entries()),fe=pe.next();!fe.done;fe=pe.next()){var ue=R(fe.value,2);te(ue[0],ue[1])}}catch(de){N={error:de}}finally{try{fe&&!fe.done&&(F=pe.return)&&F.call(pe)}finally{if(N)throw N.error}}},S.prototype._removeIntersectingLinks=function(k,M){for(var N=new Set,F=0;F<M.size;F++){var X=M.get(F);if(X)for(var $=0;$<X.length;$++)for(var V=X[$],Q=V.link.range.start.y<k?0:V.link.range.start.x,te=V.link.range.end.y>k?this._bufferService.cols:V.link.range.end.x,be=Q;be<=te;be++){if(N.has(be)){X.splice($--,1);break}N.add(be)}}},S.prototype._checkLinkProviderResult=function(k,M,N){var F,X=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(k),V=!1,Q=0;Q<k;Q++)this._activeProviderReplies.has(Q)&&!this._activeProviderReplies.get(Q)||(V=!0);if(!V&&$){var te=$.find(function(pe){return X._linkAtPosition(pe.link,M)});te&&(N=!0,this._handleNewLink(te))}if(this._activeProviderReplies.size===this._linkProviders.length&&!N)for(Q=0;Q<this._activeProviderReplies.size;Q++){var be=null===(F=this._activeProviderReplies.get(Q))||void 0===F?void 0:F.find(function(pe){return X._linkAtPosition(pe.link,M)});if(be){N=!0,this._handleNewLink(be);break}}return N},S.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},S.prototype._handleMouseUp=function(k){if(this._element&&this._mouseService&&this._currentLink){var M=this._positionFromMouseEvent(k,this._element,this._mouseService);M&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,M)&&this._currentLink.link.activate(k,this._currentLink.link.text)}},S.prototype._clearCurrentLink=function(k,M){this._element&&this._currentLink&&this._lastMouseEvent&&(!k||!M||this._currentLink.link.range.start.y>=k&&this._currentLink.link.range.end.y<=M)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,w.disposeArray)(this._linkCacheDisposables))},S.prototype._handleNewLink=function(k){var M=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(k.link,N)&&(this._currentLink=k,this._currentLink.state={decorations:{underline:void 0===k.link.decorations||k.link.decorations.underline,pointerCursor:void 0===k.link.decorations||k.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,k.link,this._lastMouseEvent),k.link.decorations={},Object.defineProperties(k.link.decorations,{pointerCursor:{get:function(){var X,$;return null===($=null===(X=M._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(X){var $,V;(null===($=M._currentLink)||void 0===$?void 0:$.state)&&M._currentLink.state.decorations.pointerCursor!==X&&(M._currentLink.state.decorations.pointerCursor=X,M._currentLink.state.isHovered&&(null===(V=M._element)||void 0===V||V.classList.toggle("xterm-cursor-pointer",X)))}},underline:{get:function(){var X,$;return null===($=null===(X=M._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.underline},set:function(X){var $,V,Q;(null===($=M._currentLink)||void 0===$?void 0:$.state)&&(null===(Q=null===(V=M._currentLink)||void 0===V?void 0:V.state)||void 0===Q?void 0:Q.decorations.underline)!==X&&(M._currentLink.state.decorations.underline=X,M._currentLink.state.isHovered&&M._fireUnderlineEvent(k.link,X))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(F){var X=0===F.start?0:F.start+1+M._bufferService.buffer.ydisp;M._clearCurrentLink(X,F.end+1+M._bufferService.buffer.ydisp)})))}},S.prototype._linkHover=function(k,M,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(M,!0),this._currentLink.state.decorations.pointerCursor&&k.classList.add("xterm-cursor-pointer")),M.hover&&M.hover(N,M.text)},S.prototype._fireUnderlineEvent=function(k,M){var N=k.range,F=this._bufferService.buffer.ydisp,X=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-F-1,N.end.x,N.end.y-F-1,void 0);(M?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(X)},S.prototype._linkLeave=function(k,M,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(M,!1),this._currentLink.state.decorations.pointerCursor&&k.classList.remove("xterm-cursor-pointer")),M.leave&&M.leave(N,M.text)},S.prototype._linkAtPosition=function(k,M){var N=k.range.start.y===k.range.end.y,F=k.range.start.y<M.y,X=k.range.end.y>M.y;return(N&&k.range.start.x<=M.x&&k.range.end.x>=M.x||F&&k.range.end.x>=M.x||X&&k.range.start.x<=M.x||F&&X)&&k.range.start.y<=M.y&&k.range.end.y>=M.y},S.prototype._positionFromMouseEvent=function(k,M,N){var F=N.getCoords(k,M,this._bufferService.cols,this._bufferService.rows);if(F)return{x:F[0],y:F[1]+this._bufferService.buffer.ydisp}},S.prototype._createLinkUnderlineEvent=function(k,M,N,F,X){return{x1:k,y1:M,x2:N,y2:F,cols:this._bufferService.cols,fg:X}},T([E(0,v.IBufferService)],S)}(w.Disposable);A.Linkifier2=D},9042:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.tooMuchOutput=A.promptLabel=void 0,A.promptLabel="Terminal input",A.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,A,j){var I,P=this&&this.__extends||(I=function(D,b){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}I(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZoneManager=void 0;var H=j(844),R=j(3656),v=j(4725),x=j(2585),w=function(Z){function D(b,S,k,M,N,F){var X=Z.call(this)||this;return X._element=b,X._screenElement=S,X._bufferService=k,X._mouseService=M,X._selectionService=N,X._optionsService=F,X._zones=[],X._areZonesActive=!1,X._lastHoverCoords=[void 0,void 0],X._initialSelectionLength=0,X.register((0,R.addDisposableDomListener)(X._element,"mousedown",function($){return X._onMouseDown($)})),X._mouseMoveListener=function($){return X._onMouseMove($)},X._mouseLeaveListener=function($){return X._onMouseLeave($)},X._clickListener=function($){return X._onClick($)},X}return P(D,Z),D.prototype.dispose=function(){Z.prototype.dispose.call(this),this._deactivate()},D.prototype.add=function(b){this._zones.push(b),1===this._zones.length&&this._activate()},D.prototype.clearAll=function(b,S){if(0!==this._zones.length){b&&S||(b=0,S=this._bufferService.rows-1);for(var k=0;k<this._zones.length;k++){var M=this._zones[k];(M.y1>b&&M.y1<=S+1||M.y2>b&&M.y2<=S+1||M.y1<b&&M.y2>S+1)&&(this._currentZone&&this._currentZone===M&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(k--,1))}0===this._zones.length&&this._deactivate()}},D.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},D.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},D.prototype._onMouseMove=function(b){this._lastHoverCoords[0]===b.pageX&&this._lastHoverCoords[1]===b.pageY||(this._onHover(b),this._lastHoverCoords=[b.pageX,b.pageY])},D.prototype._onHover=function(b){var S=this,k=this._findZoneEventAt(b);k!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),k&&(this._currentZone=k,k.hoverCallback&&k.hoverCallback(b),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(b)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},D.prototype._onTooltip=function(b){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(b);null==S||S.tooltipCallback(b)},D.prototype._onMouseDown=function(b){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(b);null!=S&&S.willLinkActivate(b)&&(b.preventDefault(),b.stopImmediatePropagation())}},D.prototype._onMouseLeave=function(b){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},D.prototype._onClick=function(b){var S=this._findZoneEventAt(b),k=this._getSelectionLength();S&&k===this._initialSelectionLength&&(S.clickCallback(b),b.preventDefault(),b.stopImmediatePropagation())},D.prototype._getSelectionLength=function(){var b=this._selectionService.selectionText;return b?b.length:0},D.prototype._findZoneEventAt=function(b){var S=this._mouseService.getCoords(b,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var k=S[0],M=S[1],N=0;N<this._zones.length;N++){var F=this._zones[N];if(F.y1===F.y2){if(M===F.y1&&k>=F.x1&&k<F.x2)return F}else if(M===F.y1&&k>=F.x1||M===F.y2&&k<F.x2||M>F.y1&&M<F.y2)return F}},T([E(2,x.IBufferService),E(3,v.IMouseService),E(4,v.ISelectionService),E(5,x.IOptionsService)],D)}(H.Disposable);A.MouseZoneManager=w},6193:function(W,A){var j=this&&this.__values||function(P){var T="function"==typeof Symbol&&Symbol.iterator,E=T&&P[T],H=0;if(E)return E.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&H>=P.length&&(P=void 0),{value:P&&P[H++],done:!P}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderDebouncer=void 0;var I=function(){function P(T){this._renderCallback=T,this._refreshCallbacks=[]}return P.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},P.prototype.addRefreshCallback=function(T){var E=this;return this._refreshCallbacks.push(T),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return E._innerRefresh()})),this._animationFrame},P.prototype.refresh=function(T,E,H){var R=this;this._rowCount=H,T=void 0!==T?T:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,T):T,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return R._innerRefresh()}))},P.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var T=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(T,E),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},P.prototype._runRefreshCallbacks=function(){var T,E;try{for(var H=j(this._refreshCallbacks),R=H.next();!R.done;R=H.next())(0,R.value)(0)}catch(v){T={error:v}}finally{try{R&&!R.done&&(E=H.return)&&E.call(H)}finally{if(T)throw T.error}}this._refreshCallbacks=[]},P}();A.RenderDebouncer=I},5596:function(W,A,j){var I,P=this&&this.__extends||(I=function(H,R){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(v[w]=x[w])})(H,R)},function(E,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function R(){this.constructor=E}I(E,H),E.prototype=null===H?Object.create(H):(R.prototype=H.prototype,new R)});Object.defineProperty(A,"__esModule",{value:!0}),A.ScreenDprMonitor=void 0;var T=function(E){function H(){var R=null!==E&&E.apply(this,arguments)||this;return R._currentDevicePixelRatio=window.devicePixelRatio,R}return P(H,E),H.prototype.setListener=function(R){var v=this;this._listener&&this.clearListener(),this._listener=R,this._outerListener=function(){v._listener&&(v._listener(window.devicePixelRatio,v._currentDevicePixelRatio),v._updateDpr())},this._updateDpr()},H.prototype.dispose=function(){E.prototype.dispose.call(this),this.clearListener()},H.prototype._updateDpr=function(){var R;this._outerListener&&(null===(R=this._resolutionMediaMatchList)||void 0===R||R.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},H.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},H}(j(844).Disposable);A.ScreenDprMonitor=T},3236:function(W,A,j){var I,P=this&&this.__extends||(I=function(Ct,Ve){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,ht){at.__proto__=ht}||function(at,ht){for(var Ut in ht)Object.prototype.hasOwnProperty.call(ht,Ut)&&(at[Ut]=ht[Ut])})(Ct,Ve)},function(_t,Ct){if("function"!=typeof Ct&&null!==Ct)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function Ve(){this.constructor=_t}I(_t,Ct),_t.prototype=null===Ct?Object.create(Ct):(Ve.prototype=Ct.prototype,new Ve)}),T=this&&this.__values||function(_t){var Ct="function"==typeof Symbol&&Symbol.iterator,Ve=Ct&&_t[Ct],at=0;if(Ve)return Ve.call(_t);if(_t&&"number"==typeof _t.length)return{next:function(){return _t&&at>=_t.length&&(_t=void 0),{value:_t&&_t[at++],done:!_t}}};throw new TypeError(Ct?"Object is not iterable.":"Symbol.iterator is not defined.")},E=this&&this.__read||function(_t,Ct){var Ve="function"==typeof Symbol&&_t[Symbol.iterator];if(!Ve)return _t;var at,ht,Ut=Ve.call(_t),Wt=[];try{for(;(void 0===Ct||Ct-- >0)&&!(at=Ut.next()).done;)Wt.push(at.value)}catch(U){ht={error:U}}finally{try{at&&!at.done&&(Ve=Ut.return)&&Ve.call(Ut)}finally{if(ht)throw ht.error}}return Wt},H=this&&this.__spreadArray||function(_t,Ct,Ve){if(Ve||2===arguments.length)for(var at,ht=0,Ut=Ct.length;ht<Ut;ht++)!at&&ht in Ct||(at||(at=Array.prototype.slice.call(Ct,0,ht)),at[ht]=Ct[ht]);return _t.concat(at||Array.prototype.slice.call(Ct))};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var R=j(2950),v=j(1680),x=j(3614),w=j(2584),Z=j(5435),D=j(3525),b=j(3551),S=j(9312),k=j(6114),M=j(3656),N=j(9042),F=j(357),X=j(6954),$=j(4567),V=j(1296),Q=j(7399),te=j(8460),be=j(8437),pe=j(5680),fe=j(3230),ue=j(4725),de=j(428),ge=j(8934),He=j(6465),ot=j(5114),St=j(8969),Tt=j(8055),Dt=j(4269),Rt=j(5941),Ze=j(3107),$t=j(5744),Ft=j(9074),pn=j(2585),rt="undefined"!=typeof window?window.document:null,Ot=function(_t){function Ct(Ve){void 0===Ve&&(Ve={});var at=_t.call(this,Ve)||this;return at.browser=k,at._keyDownHandled=!1,at._keyDownSeen=!1,at._keyPressHandled=!1,at._unprocessedDeadKey=!1,at._onCursorMove=new te.EventEmitter,at._onKey=new te.EventEmitter,at._onRender=new te.EventEmitter,at._onSelectionChange=new te.EventEmitter,at._onTitleChange=new te.EventEmitter,at._onBell=new te.EventEmitter,at._onFocus=new te.EventEmitter,at._onBlur=new te.EventEmitter,at._onA11yCharEmitter=new te.EventEmitter,at._onA11yTabEmitter=new te.EventEmitter,at._setup(),at.linkifier=at._instantiationService.createInstance(b.Linkifier),at.linkifier2=at.register(at._instantiationService.createInstance(He.Linkifier2)),at._decorationService=at._instantiationService.createInstance(Ft.DecorationService),at._instantiationService.setService(pn.IDecorationService,at._decorationService),at.register(at._inputHandler.onRequestBell(function(){return at.bell()})),at.register(at._inputHandler.onRequestRefreshRows(function(ht,Ut){return at.refresh(ht,Ut)})),at.register(at._inputHandler.onRequestSendFocus(function(){return at._reportFocus()})),at.register(at._inputHandler.onRequestReset(function(){return at.reset()})),at.register(at._inputHandler.onRequestWindowsOptionsReport(function(ht){return at._reportWindowsOptions(ht)})),at.register(at._inputHandler.onColor(function(ht){return at._handleColorEvent(ht)})),at.register((0,te.forwardEvent)(at._inputHandler.onCursorMove,at._onCursorMove)),at.register((0,te.forwardEvent)(at._inputHandler.onTitleChange,at._onTitleChange)),at.register((0,te.forwardEvent)(at._inputHandler.onA11yChar,at._onA11yCharEmitter)),at.register((0,te.forwardEvent)(at._inputHandler.onA11yTab,at._onA11yTabEmitter)),at.register(at._bufferService.onResize(function(ht){return at._afterResize(ht.cols,ht.rows)})),at}return P(Ct,_t),Object.defineProperty(Ct.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ct.prototype._handleColorEvent=function(Ve){var at,ht,Ut,Wt;if(this._colorManager){try{for(var U=T(Ve),B=U.next();!B.done;B=U.next()){var qe=B.value,Be=void 0,se="";switch(qe.index){case 256:Be="foreground",se="10";break;case 257:Be="background",se="11";break;case 258:Be="cursor",se="12";break;default:Be="ansi",se="4;"+qe.index}if(Be)switch(qe.type){case 0:var t=Tt.color.toColorRGB("ansi"===Be?this._colorManager.colors.ansi[qe.index]:this._colorManager.colors[Be]);this.coreService.triggerDataEvent(w.C0.ESC+"]"+se+";"+(0,Rt.toRgbString)(t)+w.C1_ESCAPED.ST);break;case 1:"ansi"===Be?this._colorManager.colors.ansi[qe.index]=Tt.rgba.toColor.apply(Tt.rgba,H([],E(qe.color),!1)):this._colorManager.colors[Be]=Tt.rgba.toColor.apply(Tt.rgba,H([],E(qe.color),!1));break;case 2:this._colorManager.restoreColor(qe.index)}}}catch(Lt){at={error:Lt}}finally{try{B&&!B.done&&(ht=U.return)&&ht.call(U)}finally{if(at)throw at.error}}null===(Ut=this._renderService)||void 0===Ut||Ut.setColors(this._colorManager.colors),null===(Wt=this.viewport)||void 0===Wt||Wt.onThemeChange(this._colorManager.colors)}},Ct.prototype.dispose=function(){var Ve,at,ht;this._isDisposed||(_t.prototype.dispose.call(this),null===(Ve=this._renderService)||void 0===Ve||Ve.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(ht=null===(at=this.element)||void 0===at?void 0:at.parentNode)||void 0===ht||ht.removeChild(this.element))},Ct.prototype._setup=function(){_t.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ct.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ct.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ct.prototype._updateOptions=function(Ve){var at,ht,Ut,Wt;switch(_t.prototype._updateOptions.call(this,Ve),Ve){case"fontFamily":case"fontSize":null===(at=this._renderService)||void 0===at||at.clear(),null===(ht=this._charSizeService)||void 0===ht||ht.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)):(null===(Wt=this._accessibilityManager)||void 0===Wt||Wt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},Ct.prototype._onTextAreaFocus=function(Ve){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(w.C0.ESC+"[I"),this.updateCursorStyle(Ve),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ct.prototype.blur=function(){var Ve;return null===(Ve=this.textarea)||void 0===Ve?void 0:Ve.blur()},Ct.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(w.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ct.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var Ve=this.buffer.ybase+this.buffer.y,at=this.buffer.lines.get(Ve);if(at){var ht=Math.min(this.buffer.x,this.cols-1),Ut=this._renderService.dimensions.actualCellHeight,Wt=at.getWidth(ht),U=this._renderService.dimensions.actualCellWidth*Wt,B=this.buffer.y*this._renderService.dimensions.actualCellHeight,qe=ht*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=qe+"px",this.textarea.style.top=B+"px",this.textarea.style.width=U+"px",this.textarea.style.height=Ut+"px",this.textarea.style.lineHeight=Ut+"px",this.textarea.style.zIndex="-5"}}},Ct.prototype._initGlobal=function(){var Ve=this;this._bindKeys(),this.register((0,M.addDisposableDomListener)(this.element,"copy",function(ht){Ve.hasSelection()&&(0,x.copyHandler)(ht,Ve._selectionService)}));var at=function(Ut){return(0,x.handlePasteEvent)(Ut,Ve.textarea,Ve.coreService)};this.register((0,M.addDisposableDomListener)(this.textarea,"paste",at)),this.register((0,M.addDisposableDomListener)(this.element,"paste",at)),k.isFirefox?this.register((0,M.addDisposableDomListener)(this.element,"mousedown",function(ht){2===ht.button&&(0,x.rightClickHandler)(ht,Ve.textarea,Ve.screenElement,Ve._selectionService,Ve.options.rightClickSelectsWord)})):this.register((0,M.addDisposableDomListener)(this.element,"contextmenu",function(ht){(0,x.rightClickHandler)(ht,Ve.textarea,Ve.screenElement,Ve._selectionService,Ve.options.rightClickSelectsWord)})),k.isLinux&&this.register((0,M.addDisposableDomListener)(this.element,"auxclick",function(ht){1===ht.button&&(0,x.moveTextAreaUnderMouseCursor)(ht,Ve.textarea,Ve.screenElement)}))},Ct.prototype._bindKeys=function(){var Ve=this;this.register((0,M.addDisposableDomListener)(this.textarea,"keyup",function(at){return Ve._keyUp(at)},!0)),this.register((0,M.addDisposableDomListener)(this.textarea,"keydown",function(at){return Ve._keyDown(at)},!0)),this.register((0,M.addDisposableDomListener)(this.textarea,"keypress",function(at){return Ve._keyPress(at)},!0)),this.register((0,M.addDisposableDomListener)(this.textarea,"compositionstart",function(){return Ve._compositionHelper.compositionstart()})),this.register((0,M.addDisposableDomListener)(this.textarea,"compositionupdate",function(at){return Ve._compositionHelper.compositionupdate(at)})),this.register((0,M.addDisposableDomListener)(this.textarea,"compositionend",function(){return Ve._compositionHelper.compositionend()})),this.register((0,M.addDisposableDomListener)(this.textarea,"input",function(at){return Ve._inputEvent(at)},!0)),this.register(this.onRender(function(){return Ve._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(at){return Ve._queueLinkification(at.start,at.end)}))},Ct.prototype.open=function(Ve){var at=this;if(!Ve)throw new Error("Terminal requires a parent element.");Ve.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Ve.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),Ve.appendChild(this.element);var ht=rt.createDocumentFragment();this._viewportElement=rt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ht.appendChild(this._viewportElement),this._viewportScrollArea=rt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=rt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=rt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ht.appendChild(this.screenElement),this.textarea=rt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",N.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,M.addDisposableDomListener)(this.textarea,"focus",function(U){return at._onTextAreaFocus(U)})),this.register((0,M.addDisposableDomListener)(this.textarea,"blur",function(){return at._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ut=this._instantiationService.createInstance(ot.CoreBrowserService,this.textarea);this._instantiationService.setService(ue.ICoreBrowserService,Ut),this._charSizeService=this._instantiationService.createInstance(de.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ue.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new pe.ColorManager(rt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(U){return at._colorManager.onOptionsChange(U)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Dt.CharacterJoinerService),this._instantiationService.setService(ue.ICharacterJoinerService,this._characterJoinerService);var Wt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(fe.RenderService,Wt,this.rows,this.screenElement)),this._instantiationService.setService(ue.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(U){return at._onRender.fire(U)})),this.onResize(function(U){return at._renderService.resize(U.cols,U.rows)}),this._compositionView=rt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(R.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ht),this._soundService=this._instantiationService.createInstance(F.SoundService),this._instantiationService.setService(ue.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(ge.MouseService),this._instantiationService.setService(ue.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(v.Viewport,function(U){return at.scrollLines(U,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return at.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){at._renderService.onCursorMove(),at._syncTextArea()})),this.register(this.onResize(function(){return at._renderService.onResize(at.cols,at.rows)})),this.register(this.onBlur(function(){return at._renderService.onBlur()})),this.register(this.onFocus(function(){return at._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return at.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(S.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(ue.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(U){return at.scrollLines(U.amount,U.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return at._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(U){return at._renderService.onSelectionChanged(U.start,U.end,U.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(U){at.textarea.value=U,at.textarea.focus(),at.textarea.select()})),this.register(this._onScroll.event(function(U){at.viewport.syncScrollArea(),at._selectionService.refresh()})),this.register((0,M.addDisposableDomListener)(this._viewportElement,"scroll",function(){return at._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(X.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return at._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(Ze.BufferDecorationRenderer,this.screenElement)),this.register((0,M.addDisposableDomListener)(this.element,"mousedown",function(U){return at._selectionService.onMouseDown(U)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance($t.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!at._overviewRulerRenderer&&at.options.overviewRulerWidth&&at._viewportElement&&at.screenElement&&(at._overviewRulerRenderer=at._instantiationService.createInstance($t.OverviewRulerRenderer,at._viewportElement,at.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ct.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(D.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(V.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ct.prototype._setTheme=function(Ve){var at,ht,Ut;this._theme=Ve,null===(at=this._colorManager)||void 0===at||at.setTheme(Ve),null===(ht=this._renderService)||void 0===ht||ht.setColors(this._colorManager.colors),null===(Ut=this.viewport)||void 0===Ut||Ut.onThemeChange(this._colorManager.colors)},Ct.prototype.bindMouse=function(){var Ve=this,at=this,ht=this.element;function Ut(se){var t,Lt,zt=at._mouseService.getRawByteCoords(se,at.screenElement,at.cols,at.rows);if(!zt)return!1;switch(se.overrideType||se.type){case"mousemove":Lt=32,void 0===se.buttons?(t=3,void 0!==se.button&&(t=se.button<3?se.button:3)):t=1&se.buttons?0:4&se.buttons?1:2&se.buttons?2:3;break;case"mouseup":Lt=0,t=se.button<3?se.button:3;break;case"mousedown":Lt=1,t=se.button<3?se.button:3;break;case"wheel":if(0===at.viewport.getLinesScrolled(se))return!1;Lt=se.deltaY<0?0:1,t=4;break;default:return!1}return!(void 0===Lt||void 0===t||t>4)&&at.coreMouseService.triggerMouseEvent({col:zt.x-33,row:zt.y-33,button:t,action:Lt,ctrl:se.ctrlKey,alt:se.altKey,shift:se.shiftKey})}var Wt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},U=function(t){return Ut(t),t.buttons||(Ve._document.removeEventListener("mouseup",Wt.mouseup),Wt.mousedrag&&Ve._document.removeEventListener("mousemove",Wt.mousedrag)),Ve.cancel(t)},B=function(t){return Ut(t),Ve.cancel(t,!0)},qe=function(t){t.buttons&&Ut(t)},Be=function(t){t.buttons||Ut(t)};this.register(this.coreMouseService.onProtocolChange(function(se){se?("debug"===Ve.optionsService.rawOptions.logLevel&&Ve._logService.debug("Binding to mouse events:",Ve.coreMouseService.explainEvents(se)),Ve.element.classList.add("enable-mouse-events"),Ve._selectionService.disable()):(Ve._logService.debug("Unbinding from mouse events."),Ve.element.classList.remove("enable-mouse-events"),Ve._selectionService.enable()),8&se?Wt.mousemove||(ht.addEventListener("mousemove",Be),Wt.mousemove=Be):(ht.removeEventListener("mousemove",Wt.mousemove),Wt.mousemove=null),16&se?Wt.wheel||(ht.addEventListener("wheel",B,{passive:!1}),Wt.wheel=B):(ht.removeEventListener("wheel",Wt.wheel),Wt.wheel=null),2&se?Wt.mouseup||(Wt.mouseup=U):(Ve._document.removeEventListener("mouseup",Wt.mouseup),Wt.mouseup=null),4&se?Wt.mousedrag||(Wt.mousedrag=qe):(Ve._document.removeEventListener("mousemove",Wt.mousedrag),Wt.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,M.addDisposableDomListener)(ht,"mousedown",function(se){if(se.preventDefault(),Ve.focus(),Ve.coreMouseService.areMouseEventsActive&&!Ve._selectionService.shouldForceSelection(se))return Ut(se),Wt.mouseup&&Ve._document.addEventListener("mouseup",Wt.mouseup),Wt.mousedrag&&Ve._document.addEventListener("mousemove",Wt.mousedrag),Ve.cancel(se)})),this.register((0,M.addDisposableDomListener)(ht,"wheel",function(se){if(!Wt.wheel){if(!Ve.buffer.hasScrollback){var t=Ve.viewport.getLinesScrolled(se);if(0===t)return;for(var Lt=w.C0.ESC+(Ve.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(se.deltaY<0?"A":"B"),zt="",an=0;an<Math.abs(t);an++)zt+=Lt;return Ve.coreService.triggerDataEvent(zt,!0),Ve.cancel(se,!0)}return Ve.viewport.onWheel(se)?Ve.cancel(se):void 0}},{passive:!1})),this.register((0,M.addDisposableDomListener)(ht,"touchstart",function(se){if(!Ve.coreMouseService.areMouseEventsActive)return Ve.viewport.onTouchStart(se),Ve.cancel(se)},{passive:!0})),this.register((0,M.addDisposableDomListener)(ht,"touchmove",function(se){if(!Ve.coreMouseService.areMouseEventsActive)return Ve.viewport.onTouchMove(se)?void 0:Ve.cancel(se)},{passive:!1}))},Ct.prototype.refresh=function(Ve,at){var ht;null===(ht=this._renderService)||void 0===ht||ht.refreshRows(Ve,at)},Ct.prototype._queueLinkification=function(Ve,at){var ht;null===(ht=this.linkifier)||void 0===ht||ht.linkifyRows(Ve,at)},Ct.prototype.updateCursorStyle=function(Ve){var at;null!==(at=this._selectionService)&&void 0!==at&&at.shouldColumnSelect(Ve)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ct.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ct.prototype.scrollLines=function(Ve,at,ht){void 0===ht&&(ht=0),_t.prototype.scrollLines.call(this,Ve,at,ht),this.refresh(0,this.rows-1)},Ct.prototype.paste=function(Ve){(0,x.paste)(Ve,this.textarea,this.coreService)},Ct.prototype.attachCustomKeyEventHandler=function(Ve){this._customKeyEventHandler=Ve},Ct.prototype.registerLinkMatcher=function(Ve,at,ht){var Ut=this.linkifier.registerLinkMatcher(Ve,at,ht);return this.refresh(0,this.rows-1),Ut},Ct.prototype.deregisterLinkMatcher=function(Ve){this.linkifier.deregisterLinkMatcher(Ve)&&this.refresh(0,this.rows-1)},Ct.prototype.registerLinkProvider=function(Ve){return this.linkifier2.registerLinkProvider(Ve)},Ct.prototype.registerCharacterJoiner=function(Ve){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var at=this._characterJoinerService.register(Ve);return this.refresh(0,this.rows-1),at},Ct.prototype.deregisterCharacterJoiner=function(Ve){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(Ve)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ct.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ct.prototype.addMarker=function(Ve){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Ve)},Ct.prototype.registerDecoration=function(Ve){return this._decorationService.registerDecoration(Ve)},Ct.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ct.prototype.select=function(Ve,at,ht){this._selectionService.setSelection(Ve,at,ht)},Ct.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ct.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ct.prototype.clearSelection=function(){var Ve;null===(Ve=this._selectionService)||void 0===Ve||Ve.clearSelection()},Ct.prototype.selectAll=function(){var Ve;null===(Ve=this._selectionService)||void 0===Ve||Ve.selectAll()},Ct.prototype.selectLines=function(Ve,at){var ht;null===(ht=this._selectionService)||void 0===ht||ht.selectLines(Ve,at)},Ct.prototype._keyDown=function(Ve){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(Ve))return!1;var at=this.browser.isMac&&this.options.macOptionIsMeta&&Ve.altKey;if(!at&&!this._compositionHelper.keydown(Ve))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;at||"Dead"!==Ve.key&&"AltGraph"!==Ve.key||(this._unprocessedDeadKey=!0);var ht=(0,Q.evaluateKeyboardEvent)(Ve,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Ve),3===ht.type||2===ht.type){var Ut=this.rows-1;return this.scrollLines(2===ht.type?-Ut:Ut),this.cancel(Ve,!0)}return 1===ht.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Ve)||(ht.cancel&&this.cancel(Ve,!0),!ht.key||!!(Ve.key&&!Ve.ctrlKey&&!Ve.altKey&&!Ve.metaKey&&1===Ve.key.length&&Ve.key.charCodeAt(0)>=65&&Ve.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(ht.key!==w.C0.ETX&&ht.key!==w.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ht.key,domEvent:Ve}),this._showCursor(),this.coreService.triggerDataEvent(ht.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Ve,!0))))},Ct.prototype._isThirdLevelShift=function(Ve,at){var ht=Ve.isMac&&!this.options.macOptionIsMeta&&at.altKey&&!at.ctrlKey&&!at.metaKey||Ve.isWindows&&at.altKey&&at.ctrlKey&&!at.metaKey||Ve.isWindows&&at.getModifierState("AltGraph");return"keypress"===at.type?ht:ht&&(!at.keyCode||at.keyCode>47)},Ct.prototype._keyUp=function(Ve){var at;this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(Ve)||(16===(at=Ve).keyCode||17===at.keyCode||18===at.keyCode||this.focus(),this.updateCursorStyle(Ve),this._keyPressHandled=!1)},Ct.prototype._keyPress=function(Ve){var at;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(Ve))return!1;if(this.cancel(Ve),Ve.charCode)at=Ve.charCode;else if(null===Ve.which||void 0===Ve.which)at=Ve.keyCode;else{if(0===Ve.which||0===Ve.charCode)return!1;at=Ve.which}return!(!at||(Ve.altKey||Ve.ctrlKey||Ve.metaKey)&&!this._isThirdLevelShift(this.browser,Ve)||(at=String.fromCharCode(at),this._onKey.fire({key:at,domEvent:Ve}),this._showCursor(),this.coreService.triggerDataEvent(at,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},Ct.prototype._inputEvent=function(Ve){if(Ve.data&&"insertText"===Ve.inputType&&(!Ve.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var at=Ve.data;return this.coreService.triggerDataEvent(at,!0),this.cancel(Ve),!0}return!1},Ct.prototype.bell=function(){var Ve;this._soundBell()&&(null===(Ve=this._soundService)||void 0===Ve||Ve.playBellSound()),this._onBell.fire()},Ct.prototype.resize=function(Ve,at){Ve!==this.cols||at!==this.rows?_t.prototype.resize.call(this,Ve,at):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ct.prototype._afterResize=function(Ve,at){var ht,Ut;null===(ht=this._charSizeService)||void 0===ht||ht.measure(),null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea(!0)},Ct.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var Ve=1;Ve<this.rows;Ve++)this.buffer.lines.push(this.buffer.getBlankLine(be.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},Ct.prototype.reset=function(){var Ve,at;this.options.rows=this.rows,this.options.cols=this.cols;var ht=this._customKeyEventHandler;this._setup(),_t.prototype.reset.call(this),null===(Ve=this._selectionService)||void 0===Ve||Ve.reset(),this._decorationService.reset(),this._customKeyEventHandler=ht,this.refresh(0,this.rows-1),null===(at=this.viewport)||void 0===at||at.syncScrollArea()},Ct.prototype.clearTextureAtlas=function(){var Ve;null===(Ve=this._renderService)||void 0===Ve||Ve.clearTextureAtlas()},Ct.prototype._reportFocus=function(){var Ve;null!==(Ve=this.element)&&void 0!==Ve&&Ve.classList.contains("focus")?this.coreService.triggerDataEvent(w.C0.ESC+"[I"):this.coreService.triggerDataEvent(w.C0.ESC+"[O")},Ct.prototype._reportWindowsOptions=function(Ve){if(this._renderService)switch(Ve){case Z.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var at=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ht=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(w.C0.ESC+"[4;"+ht+";"+at+"t");break;case Z.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ut=this._renderService.dimensions.scaledCellWidth.toFixed(0),Wt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(w.C0.ESC+"[6;"+Wt+";"+Ut+"t")}},Ct.prototype.cancel=function(Ve,at){if(this.options.cancelEvents||at)return Ve.preventDefault(),Ve.stopPropagation(),!1},Ct.prototype._visualBell=function(){return!1},Ct.prototype._soundBell=function(){return"sound"===this.options.bellStyle},Ct}(St.CoreTerminal);A.Terminal=Ot},9924:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.TimeBasedDebouncer=void 0;var j=function(){function I(P,T){void 0===T&&(T=1e3),this._renderCallback=P,this._debounceThresholdMS=T,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return I.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},I.prototype.refresh=function(P,T,E){var H=this;this._rowCount=E,P=void 0!==P?P:0,T=void 0!==T?T:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,P):P,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,T):T;var R=Date.now();if(R-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=R,this._innerRefresh();else if(!this._additionalRefreshRequested){var v=R-this._lastRefreshMs,x=this._debounceThresholdMS-v;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){H._lastRefreshMs=Date.now(),H._innerRefresh(),H._additionalRefreshRequested=!1,H._refreshTimeoutID=void 0},x)}},I.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),T=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(P,T)}},I}();A.TimeBasedDebouncer=j},1680:function(W,A,j){var I,P=this&&this.__extends||(I=function(D,b){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}I(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.Viewport=void 0;var H=j(844),R=j(3656),v=j(4725),x=j(2585),w=function(Z){function D(b,S,k,M,N,F,X,$){var V=Z.call(this)||this;return V._scrollLines=b,V._viewportElement=S,V._scrollArea=k,V._element=M,V._bufferService=N,V._optionsService=F,V._charSizeService=X,V._renderService=$,V.scrollBarWidth=0,V._currentRowHeight=0,V._currentScaledCellHeight=0,V._lastRecordedBufferLength=0,V._lastRecordedViewportHeight=0,V._lastRecordedBufferHeight=0,V._lastTouchY=0,V._lastScrollTop=0,V._wheelPartialScroll=0,V._refreshAnimationFrame=null,V._ignoreNextScrollEvent=!1,V.scrollBarWidth=V._viewportElement.offsetWidth-V._scrollArea.offsetWidth||15,V.register((0,R.addDisposableDomListener)(V._viewportElement,"scroll",V._onScroll.bind(V))),V._activeBuffer=V._bufferService.buffer,V.register(V._bufferService.buffers.onBufferActivate(function(Q){return V._activeBuffer=Q.activeBuffer})),V._renderDimensions=V._renderService.dimensions,V.register(V._renderService.onDimensionsChange(function(Q){return V._renderDimensions=Q})),setTimeout(function(){return V.syncScrollArea()},0),V}return P(D,Z),D.prototype.onThemeChange=function(b){this._viewportElement.style.backgroundColor=b.background.css},D.prototype._refresh=function(b){var S=this;if(b)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},D.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var b=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==b&&(this._lastRecordedBufferHeight=b,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this._refreshAnimationFrame=null},D.prototype.syncScrollArea=function(b){if(void 0===b&&(b=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(b);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(b)},D.prototype._onScroll=function(b){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},D.prototype._bubbleScroll=function(b,S){var k=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&k<this._lastRecordedBufferHeight)||(b.cancelable&&b.preventDefault(),!1)},D.prototype.onWheel=function(b){var S=this._getPixelsScrolled(b);return 0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(b,S))},D.prototype._getPixelsScrolled=function(b){if(0===b.deltaY||b.shiftKey)return 0;var S=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_LINE?S*=this._currentRowHeight:b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._currentRowHeight*this._bufferService.rows),S},D.prototype.getLinesScrolled=function(b){if(0===b.deltaY||b.shiftKey)return 0;var S=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(S/=this._currentRowHeight+0,this._wheelPartialScroll+=S,S=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},D.prototype._applyScrollModifier=function(b,S){var k=this._optionsService.rawOptions.fastScrollModifier;return"alt"===k&&S.altKey||"ctrl"===k&&S.ctrlKey||"shift"===k&&S.shiftKey?b*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:b*this._optionsService.rawOptions.scrollSensitivity},D.prototype.onTouchStart=function(b){this._lastTouchY=b.touches[0].pageY},D.prototype.onTouchMove=function(b){var S=this._lastTouchY-b.touches[0].pageY;return this._lastTouchY=b.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(b,S))},T([E(4,x.IBufferService),E(5,x.IOptionsService),E(6,v.ICharSizeService),E(7,v.IRenderService)],D)}(H.Disposable);A.Viewport=w},3107:function(W,A,j){var I,P=this&&this.__extends||(I=function(b,S){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}I(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)}),T=this&&this.__decorate||function(D,b,S,k){var M,N=arguments.length,F=N<3?b:null===k?k=Object.getOwnPropertyDescriptor(b,S):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(D,b,S,k);else for(var X=D.length-1;X>=0;X--)(M=D[X])&&(F=(N<3?M(F):N>3?M(b,S,F):M(b,S))||F);return N>3&&F&&Object.defineProperty(b,S,F),F},E=this&&this.__param||function(D,b){return function(S,k){b(S,k,D)}},H=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferDecorationRenderer=void 0;var R=j(3656),v=j(4725),x=j(844),w=j(2585),Z=function(D){function b(S,k,M,N){var F=D.call(this)||this;return F._screenElement=S,F._bufferService=k,F._decorationService=M,F._renderService=N,F._decorationElements=new Map,F._altBufferIsActive=!1,F._dimensionsChanged=!1,F._container=document.createElement("div"),F._container.classList.add("xterm-decoration-container"),F._screenElement.appendChild(F._container),F.register(F._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),F.register(F._renderService.onDimensionsChange(function(){F._dimensionsChanged=!0,F._queueRefresh()})),F.register((0,R.addDisposableDomListener)(window,"resize",function(){return F._queueRefresh()})),F.register(F._bufferService.buffers.onBufferActivate(function(){F._altBufferIsActive=F._bufferService.buffer===F._bufferService.buffers.alt})),F.register(F._decorationService.onDecorationRegistered(function(){return F._queueRefresh()})),F.register(F._decorationService.onDecorationRemoved(function(X){return F._removeDecoration(X)})),F}return P(b,D),b.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),D.prototype.dispose.call(this)},b.prototype._queueRefresh=function(){var S=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){S.refreshDecorations(),S._animationFrame=void 0}))},b.prototype.refreshDecorations=function(){var S,k;try{for(var M=H(this._decorationService.decorations),N=M.next();!N.done;N=M.next()){var F=N.value;this._renderDecoration(F)}}catch(X){S={error:X}}finally{try{N&&!N.done&&(k=M.return)&&k.call(M)}finally{if(S)throw S.error}}this._dimensionsChanged=!1},b.prototype._renderDecoration=function(S){this._refreshStyle(S),this._dimensionsChanged&&this._refreshXPosition(S)},b.prototype._createElement=function(S){var k,M=document.createElement("div");M.classList.add("xterm-decoration"),M.style.width=Math.round((S.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",M.style.height=(S.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",M.style.top=(S.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",M.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var N=null!==(k=S.options.x)&&void 0!==k?k:0;return N&&N>this._bufferService.cols&&(M.style.display="none"),this._refreshXPosition(S,M),M},b.prototype._refreshStyle=function(S){var k=this,M=S.marker.line-this._bufferService.buffers.active.ydisp;if(M<0||M>=this._bufferService.rows)S.element&&(S.element.style.display="none",S.onRenderEmitter.fire(S.element));else{var N=this._decorationElements.get(S);N||(S.onDispose(function(){return k._removeDecoration(S)}),N=this._createElement(S),S.element=N,this._decorationElements.set(S,N),this._container.appendChild(N)),N.style.top=M*this._renderService.dimensions.actualCellHeight+"px",N.style.display=this._altBufferIsActive?"none":"block",S.onRenderEmitter.fire(N)}},b.prototype._refreshXPosition=function(S,k){var M;if(void 0===k&&(k=S.element),k){var N=null!==(M=S.options.x)&&void 0!==M?M:0;"right"===(S.options.anchor||"left")?k.style.right=N?N*this._renderService.dimensions.actualCellWidth+"px":"":k.style.left=N?N*this._renderService.dimensions.actualCellWidth+"px":""}},b.prototype._removeDecoration=function(S){var k;null===(k=this._decorationElements.get(S))||void 0===k||k.remove(),this._decorationElements.delete(S)},T([E(1,w.IBufferService),E(2,w.IDecorationService),E(3,v.IRenderService)],b)}(x.Disposable);A.BufferDecorationRenderer=Z},5871:function(W,A){var j=this&&this.__values||function(P){var T="function"==typeof Symbol&&Symbol.iterator,E=T&&P[T],H=0;if(E)return E.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&H>=P.length&&(P=void 0),{value:P&&P[H++],done:!P}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorZoneStore=void 0;var I=function(){function P(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(P.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),P.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},P.prototype.addDecoration=function(T){var E,H;if(T.options.overviewRulerOptions){try{for(var R=j(this._zones),v=R.next();!v.done;v=R.next()){var x=v.value;if(x.color===T.options.overviewRulerOptions.color&&x.position===T.options.overviewRulerOptions.position){if(this._lineIntersectsZone(x,T.marker.line))return;if(this._lineAdjacentToZone(x,T.marker.line,T.options.overviewRulerOptions.position))return void this._addLineToZone(x,T.marker.line)}}}catch(w){E={error:w}}finally{try{v&&!v.done&&(H=R.return)&&H.call(R)}finally{if(E)throw E.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=T.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=T.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=T.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=T.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:T.options.overviewRulerOptions.color,position:T.options.overviewRulerOptions.position,startBufferLine:T.marker.line,endBufferLine:T.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},P.prototype.setPadding=function(T){this._linePadding=T},P.prototype._lineIntersectsZone=function(T,E){return E>=T.startBufferLine&&E<=T.endBufferLine},P.prototype._lineAdjacentToZone=function(T,E,H){return E>=T.startBufferLine-this._linePadding[H||"full"]&&E<=T.endBufferLine+this._linePadding[H||"full"]},P.prototype._addLineToZone=function(T,E){T.startBufferLine=Math.min(T.startBufferLine,E),T.endBufferLine=Math.max(T.endBufferLine,E)},P}();A.ColorZoneStore=I},5744:function(W,A,j){var I,P=this&&this.__extends||(I=function(N,F){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(X[V]=$[V])})(N,F)},function(M,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=M}I(M,N),M.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),T=this&&this.__decorate||function(M,N,F,X){var $,V=arguments.length,Q=V<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(M,N,F,X);else for(var te=M.length-1;te>=0;te--)($=M[te])&&(Q=(V<3?$(Q):V>3?$(N,F,Q):$(N,F))||Q);return V>3&&Q&&Object.defineProperty(N,F,Q),Q},E=this&&this.__param||function(M,N){return function(F,X){N(F,X,M)}},H=this&&this.__values||function(M){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&M[N],X=0;if(F)return F.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&X>=M.length&&(M=void 0),{value:M&&M[X++],done:!M}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.OverviewRulerRenderer=void 0;var R=j(5871),v=j(3656),x=j(4725),w=j(844),Z=j(2585),D={full:0,left:0,center:0,right:0},b={full:0,left:0,center:0,right:0},S={full:0,left:0,center:0,right:0},k=function(M){function N(F,X,$,V,Q,te){var be,pe=M.call(this)||this;pe._viewportElement=F,pe._screenElement=X,pe._bufferService=$,pe._decorationService=V,pe._renderService=Q,pe._optionsService=te,pe._colorZoneStore=new R.ColorZoneStore,pe._shouldUpdateDimensions=!0,pe._shouldUpdateAnchor=!0,pe._lastKnownBufferLength=0,pe._canvas=document.createElement("canvas"),pe._canvas.classList.add("xterm-decoration-overview-ruler"),pe._refreshCanvasDimensions(),null===(be=pe._viewportElement.parentElement)||void 0===be||be.insertBefore(pe._canvas,pe._viewportElement);var fe=pe._canvas.getContext("2d");if(!fe)throw new Error("Ctx cannot be null");return pe._ctx=fe,pe._registerDecorationListeners(),pe._registerBufferChangeListeners(),pe._registerDimensionChangeListeners(),pe}return P(N,M),Object.defineProperty(N.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),N.prototype._registerDecorationListeners=function(){var F=this;this.register(this._decorationService.onDecorationRegistered(function(){return F._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return F._queueRefresh(void 0,!0)}))},N.prototype._registerBufferChangeListeners=function(){var F=this;this.register(this._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){F._canvas.style.display=F._bufferService.buffer===F._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){F._lastKnownBufferLength!==F._bufferService.buffers.normal.lines.length&&(F._refreshDrawHeightConstants(),F._refreshColorZonePadding())}))},N.prototype._registerDimensionChangeListeners=function(){var F=this;this.register(this._renderService.onRender(function(){F._containerHeight&&F._containerHeight===F._screenElement.clientHeight||(F._queueRefresh(!0),F._containerHeight=F._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(X){"overviewRulerWidth"===X&&F._queueRefresh(!0)})),this.register((0,v.addDisposableDomListener)(window,"resize",function(){F._queueRefresh(!0)})),this._queueRefresh(!0)},N.prototype.dispose=function(){var F;null===(F=this._canvas)||void 0===F||F.remove(),M.prototype.dispose.call(this)},N.prototype._refreshDrawConstants=function(){var F=Math.floor(this._canvas.width/3),X=Math.ceil(this._canvas.width/3);b.full=this._canvas.width,b.left=F,b.center=X,b.right=F,this._refreshDrawHeightConstants(),S.full=0,S.left=0,S.center=b.left,S.right=b.left+b.center},N.prototype._refreshDrawHeightConstants=function(){D.full=Math.round(2*window.devicePixelRatio);var F=this._canvas.height/this._bufferService.buffer.lines.length,X=Math.round(Math.max(Math.min(F,12),6)*window.devicePixelRatio);D.left=X,D.center=X,D.right=X},N.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},N.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},N.prototype._refreshDecorations=function(){var F,X,$,V,Q,te;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var be=H(this._decorationService.decorations),pe=be.next();!pe.done;pe=be.next()){var fe=pe.value;this._colorZoneStore.addDecoration(fe)}}catch(Tt){F={error:Tt}}finally{try{pe&&!pe.done&&(X=be.return)&&X.call(be)}finally{if(F)throw F.error}}this._ctx.lineWidth=1;var ue=this._colorZoneStore.zones;try{for(var de=H(ue),ge=de.next();!ge.done;ge=de.next())"full"!==(St=ge.value).position&&this._renderColorZone(St)}catch(Tt){$={error:Tt}}finally{try{ge&&!ge.done&&(V=de.return)&&V.call(de)}finally{if($)throw $.error}}try{for(var He=H(ue),ot=He.next();!ot.done;ot=He.next()){var St;"full"===(St=ot.value).position&&this._renderColorZone(St)}}catch(Tt){Q={error:Tt}}finally{try{ot&&!ot.done&&(te=He.return)&&te.call(He)}finally{if(Q)throw Q.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},N.prototype._renderColorZone=function(F){this._ctx.fillStyle=F.color,this._ctx.fillRect(S[F.position||"full"],Math.round((this._canvas.height-1)*(F.startBufferLine/this._bufferService.buffers.active.lines.length)-D[F.position||"full"]/2),b[F.position||"full"],Math.round((this._canvas.height-1)*((F.endBufferLine-F.startBufferLine)/this._bufferService.buffers.active.lines.length)+D[F.position||"full"]))},N.prototype._queueRefresh=function(F,X){var $=this;this._shouldUpdateDimensions=F||this._shouldUpdateDimensions,this._shouldUpdateAnchor=X||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){$._refreshDecorations(),$._animationFrame=void 0}))},T([E(2,Z.IBufferService),E(3,Z.IDecorationService),E(4,x.IRenderService),E(5,Z.IOptionsService)],N)}(w.Disposable);A.OverviewRulerRenderer=k},2950:function(W,A,j){var I=this&&this.__decorate||function(R,v,x,w){var Z,D=arguments.length,b=D<3?v:null===w?w=Object.getOwnPropertyDescriptor(v,x):w;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(R,v,x,w);else for(var S=R.length-1;S>=0;S--)(Z=R[S])&&(b=(D<3?Z(b):D>3?Z(v,x,b):Z(v,x))||b);return D>3&&b&&Object.defineProperty(v,x,b),b},P=this&&this.__param||function(R,v){return function(x,w){v(x,w,R)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CompositionHelper=void 0;var T=j(4725),E=j(2585),H=function(){function R(v,x,w,Z,D,b){this._textarea=v,this._compositionView=x,this._bufferService=w,this._optionsService=Z,this._coreService=D,this._renderService=b,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(R.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),R.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},R.prototype.compositionupdate=function(v){var x=this;this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout(function(){x._compositionPosition.end=x._textarea.value.length},0)},R.prototype.compositionend=function(){this._finalizeComposition(!0)},R.prototype.keydown=function(v){if(this._isComposing||this._isSendingComposition){if(229===v.keyCode||16===v.keyCode||17===v.keyCode||18===v.keyCode)return!1;this._finalizeComposition(!1)}return 229!==v.keyCode||(this._handleAnyTextareaChanges(),!1)},R.prototype._finalizeComposition=function(v){var x=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){var w={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var D;x._isSendingComposition&&(x._isSendingComposition=!1,w.start+=x._dataAlreadySent.length,(D=x._isComposing?x._textarea.value.substring(w.start,w.end):x._textarea.value.substring(w.start)).length>0&&x._coreService.triggerDataEvent(D,!0))},0)}else{this._isSendingComposition=!1;var Z=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(Z,!0)}},R.prototype._handleAnyTextareaChanges=function(){var v=this,x=this._textarea.value;setTimeout(function(){if(!v._isComposing){var w=v._textarea.value.replace(x,"");w.length>0&&(v._dataAlreadySent=w,v._coreService.triggerDataEvent(w,!0))}},0)},R.prototype.updateCompositionElements=function(v){var x=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var w=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),Z=this._renderService.dimensions.actualCellHeight,D=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,b=w*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=b+"px",this._compositionView.style.top=D+"px",this._compositionView.style.height=Z+"px",this._compositionView.style.lineHeight=Z+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=b+"px",this._textarea.style.top=D+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}v||setTimeout(function(){return x.updateCompositionElements(!0)},0)}},I([P(2,E.IBufferService),P(3,E.IOptionsService),P(4,E.ICoreService),P(5,T.IRenderService)],R)}();A.CompositionHelper=H},9806:function(W,A){function j(I,P,T){var E=T.getBoundingClientRect(),H=I.getComputedStyle(T),R=parseInt(H.getPropertyValue("padding-left")),v=parseInt(H.getPropertyValue("padding-top"));return[P.clientX-E.left-R,P.clientY-E.top-v]}Object.defineProperty(A,"__esModule",{value:!0}),A.getRawByteCoords=A.getCoords=A.getCoordsRelativeToElement=void 0,A.getCoordsRelativeToElement=j,A.getCoords=function(I,P,T,E,H,R,v,x,w){if(R){var Z=j(I,P,T);if(Z)return Z[0]=Math.ceil((Z[0]+(w?v/2:0))/v),Z[1]=Math.ceil(Z[1]/x),Z[0]=Math.min(Math.max(Z[0],1),E+(w?1:0)),Z[1]=Math.min(Math.max(Z[1],1),H),Z}},A.getRawByteCoords=function(I){if(I)return{x:I[0]+32,y:I[1]+32}}},9504:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.moveToCellSequence=void 0;var I=j(2584);function P(x,w,Z,D){var b=x-T(Z,x),S=w-T(Z,w);return v(Math.abs(b-S)-function(M,N,F){for(var X=0,$=M-T(F,M),V=N-T(F,N),Q=0;Q<Math.abs($-V);Q++){var te="A"===E(M,N)?-1:1,be=F.buffer.lines.get($+te*Q);null!=be&&be.isWrapped&&X++}return X}(x,w,Z),R(E(x,w),D))}function T(x,w){for(var Z=0,D=x.buffer.lines.get(w),b=null==D?void 0:D.isWrapped;b&&w>=0&&w<x.rows;)Z++,b=null==(D=x.buffer.lines.get(--w))?void 0:D.isWrapped;return Z}function E(x,w){return x>w?"A":"B"}function H(x,w,Z,D,b,S){for(var k=x,M=w,N="";k!==Z||M!==D;)k+=b?1:-1,b&&k>S.cols-1?(N+=S.buffer.translateBufferLineToString(M,!1,x,k),k=0,x=0,M++):!b&&k<0&&(N+=S.buffer.translateBufferLineToString(M,!1,0,x+1),x=k=S.cols-1,M--);return N+S.buffer.translateBufferLineToString(M,!1,x,k)}function R(x,w){var Z=w?"O":"[";return I.C0.ESC+Z+x}function v(x,w){x=Math.floor(x);for(var Z="",D=0;D<x;D++)Z+=w;return Z}A.moveToCellSequence=function(x,w,Z,D){var b,N,F,V,Q,S=Z.buffer.x,k=Z.buffer.y;if(!Z.buffer.hasScrollback)return N=S,(0===P(F=k,w,V=Z,Q=D).length?"":v(H(N,F,N,F-T(V,F),!1,V).length,R("D",Q)))+P(k,w,Z,D)+function(N,F,X,$,V,Q){var te;te=P(F,$,V,Q).length>0?$-T(V,$):F;var fe,ue,de,ge,He,St,be=$,pe=(fe=N,ue=F,St=P(de=X,ge=$,He=V,Q).length>0?ge-T(He,ge):ue,fe<de&&St<=ge||fe>=de&&St<ge?"C":"D");return v(H(N,te,X,be,"C"===pe,V).length,R(pe,Q))}(S,k,x,w,Z,D);if(k===w)return b=S>x?"D":"C",v(Math.abs(S-x),R(b,D));b=k>w?"D":"C";var M=Math.abs(k-w);return v(function(N,F){return F.cols-N}(k>w?x:S,Z)+(M-1)*Z.cols+1+((k>w?S:x)-1),R(b,D))}},4389:function(W,A,j){var I=this&&this.__assign||function(){return I=Object.assign||function(D){for(var b,S=1,k=arguments.length;S<k;S++)for(var M in b=arguments[S])Object.prototype.hasOwnProperty.call(b,M)&&(D[M]=b[M]);return D},I.apply(this,arguments)},P=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var T=j(3236),E=j(9042),H=j(7975),R=j(7090),v=j(5741),x=j(8285),w=["cols","rows"],Z=function(){function D(b){var S=this;this._core=new T.Terminal(b),this._addonManager=new v.AddonManager,this._publicOptions=I({},this._core.options);var k=function($){return S._core.options[$]},M=function($,V){S._checkReadonlyOptions($),S._core.options[$]=V};for(var N in this._core.options){var F={get:k.bind(this,N),set:M.bind(this,N)};Object.defineProperty(this._publicOptions,N,F)}}return D.prototype._checkReadonlyOptions=function(b){if(w.includes(b))throw new Error('Option "'+b+'" can only be set in the constructor')},D.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(D.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new H.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"unicode",{get:function(){return this._checkProposedApi(),new R.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new x.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"modes",{get:function(){var S=this._core.coreService.decPrivateModes,k="none";switch(this._core.coreMouseService.activeProtocol){case"X10":k="x10";break;case"VT200":k="vt200";break;case"DRAG":k="drag";break;case"ANY":k="any"}return{applicationCursorKeysMode:S.applicationCursorKeys,applicationKeypadMode:S.applicationKeypad,bracketedPasteMode:S.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:k,originMode:S.origin,reverseWraparoundMode:S.reverseWraparound,sendFocusMode:S.sendFocus,wraparoundMode:S.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"options",{get:function(){return this._publicOptions},set:function(S){for(var k in S)this._publicOptions[k]=S[k]},enumerable:!1,configurable:!0}),D.prototype.blur=function(){this._core.blur()},D.prototype.focus=function(){this._core.focus()},D.prototype.resize=function(b,S){this._verifyIntegers(b,S),this._core.resize(b,S)},D.prototype.open=function(b){this._core.open(b)},D.prototype.attachCustomKeyEventHandler=function(b){this._core.attachCustomKeyEventHandler(b)},D.prototype.registerLinkMatcher=function(b,S,k){return this._checkProposedApi(),this._core.registerLinkMatcher(b,S,k)},D.prototype.deregisterLinkMatcher=function(b){this._checkProposedApi(),this._core.deregisterLinkMatcher(b)},D.prototype.registerLinkProvider=function(b){return this._checkProposedApi(),this._core.registerLinkProvider(b)},D.prototype.registerCharacterJoiner=function(b){return this._checkProposedApi(),this._core.registerCharacterJoiner(b)},D.prototype.deregisterCharacterJoiner=function(b){this._checkProposedApi(),this._core.deregisterCharacterJoiner(b)},D.prototype.registerMarker=function(b){return void 0===b&&(b=0),this._checkProposedApi(),this._verifyIntegers(b),this._core.addMarker(b)},D.prototype.registerDecoration=function(b){var S,k,M;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(S=b.x)&&void 0!==S?S:0,null!==(k=b.width)&&void 0!==k?k:0,null!==(M=b.height)&&void 0!==M?M:0),this._core.registerDecoration(b)},D.prototype.addMarker=function(b){return this.registerMarker(b)},D.prototype.hasSelection=function(){return this._core.hasSelection()},D.prototype.select=function(b,S,k){this._verifyIntegers(b,S,k),this._core.select(b,S,k)},D.prototype.getSelection=function(){return this._core.getSelection()},D.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},D.prototype.clearSelection=function(){this._core.clearSelection()},D.prototype.selectAll=function(){this._core.selectAll()},D.prototype.selectLines=function(b,S){this._verifyIntegers(b,S),this._core.selectLines(b,S)},D.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},D.prototype.scrollLines=function(b){this._verifyIntegers(b),this._core.scrollLines(b)},D.prototype.scrollPages=function(b){this._verifyIntegers(b),this._core.scrollPages(b)},D.prototype.scrollToTop=function(){this._core.scrollToTop()},D.prototype.scrollToBottom=function(){this._core.scrollToBottom()},D.prototype.scrollToLine=function(b){this._verifyIntegers(b),this._core.scrollToLine(b)},D.prototype.clear=function(){this._core.clear()},D.prototype.write=function(b,S){this._core.write(b,S)},D.prototype.writeUtf8=function(b,S){this._core.write(b,S)},D.prototype.writeln=function(b,S){this._core.write(b),this._core.write("\r\n",S)},D.prototype.paste=function(b){this._core.paste(b)},D.prototype.getOption=function(b){return this._core.optionsService.getOption(b)},D.prototype.setOption=function(b,S){this._checkReadonlyOptions(b),this._core.optionsService.setOption(b,S)},D.prototype.refresh=function(b,S){this._verifyIntegers(b,S),this._core.refresh(b,S)},D.prototype.reset=function(){this._core.reset()},D.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},D.prototype.loadAddon=function(b){return this._addonManager.loadAddon(this,b)},Object.defineProperty(D,"strings",{get:function(){return E},enumerable:!1,configurable:!0}),D.prototype._verifyIntegers=function(){for(var b,S,k=[],M=0;M<arguments.length;M++)k[M]=arguments[M];try{for(var N=P(k),F=N.next();!F.done;F=N.next()){var X=F.value;if(X===1/0||isNaN(X)||X%1!=0)throw new Error("This API only accepts integers")}}catch($){b={error:$}}finally{try{F&&!F.done&&(S=N.return)&&S.call(N)}finally{if(b)throw b.error}}},D.prototype._verifyPositiveIntegers=function(){for(var b,S,k=[],M=0;M<arguments.length;M++)k[M]=arguments[M];try{for(var N=P(k),F=N.next();!F.done;F=N.next()){var X=F.value;if(X&&(X===1/0||isNaN(X)||X%1!=0||X<0))throw new Error("This API only accepts positive integers")}}catch($){b={error:$}}finally{try{F&&!F.done&&(S=N.return)&&S.call(N)}finally{if(b)throw b.error}}},D}();A.Terminal=Z},1546:function(W,A,j){var I=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BaseRenderLayer=void 0;var P=j(643),T=j(8803),E=j(1420),H=j(3734),R=j(1752),v=j(8055),x=j(9631),w=j(8978),Z=function(){function D(b,S,k,M,N,F,X,$,V){this._container=b,this._alpha=M,this._colors=N,this._rendererId=F,this._bufferService=X,this._optionsService=$,this._decorationService=V,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+S+"-layer"),this._canvas.style.zIndex=k.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return D.prototype.dispose=function(){var b;(0,x.removeElementFromParent)(this._canvas),null===(b=this._charAtlas)||void 0===b||b.dispose()},D.prototype._initCanvas=function(){this._ctx=(0,R.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},D.prototype.onOptionsChanged=function(){},D.prototype.onBlur=function(){},D.prototype.onFocus=function(){},D.prototype.onCursorMove=function(){},D.prototype.onGridChanged=function(b,S){},D.prototype.onSelectionChanged=function(b,S,k){void 0===k&&(k=!1),this._selectionStart=b,this._selectionEnd=S,this._columnSelectMode=k},D.prototype.setColors=function(b){this._refreshCharAtlas(b)},D.prototype._setTransparency=function(b){if(b!==this._alpha){var S=this._canvas;this._alpha=b,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,S),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},D.prototype._refreshCharAtlas=function(b){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,E.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,b,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},D.prototype.resize=function(b){this._scaledCellWidth=b.scaledCellWidth,this._scaledCellHeight=b.scaledCellHeight,this._scaledCharWidth=b.scaledCharWidth,this._scaledCharHeight=b.scaledCharHeight,this._scaledCharLeft=b.scaledCharLeft,this._scaledCharTop=b.scaledCharTop,this._canvas.width=b.scaledCanvasWidth,this._canvas.height=b.scaledCanvasHeight,this._canvas.style.width=b.canvasWidth+"px",this._canvas.style.height=b.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},D.prototype.clearTextureAtlas=function(){var b;null===(b=this._charAtlas)||void 0===b||b.clear()},D.prototype._fillCells=function(b,S,k,M){this._ctx.fillRect(b*this._scaledCellWidth,S*this._scaledCellHeight,k*this._scaledCellWidth,M*this._scaledCellHeight)},D.prototype._fillMiddleLineAtCells=function(b,S,k){void 0===k&&(k=1);var M=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(b*this._scaledCellWidth,(S+1)*this._scaledCellHeight-M-window.devicePixelRatio,k*this._scaledCellWidth,window.devicePixelRatio)},D.prototype._fillBottomLineAtCells=function(b,S,k){void 0===k&&(k=1),this._ctx.fillRect(b*this._scaledCellWidth,(S+1)*this._scaledCellHeight-window.devicePixelRatio-1,k*this._scaledCellWidth,window.devicePixelRatio)},D.prototype._fillLeftLineAtCell=function(b,S,k){this._ctx.fillRect(b*this._scaledCellWidth,S*this._scaledCellHeight,window.devicePixelRatio*k,this._scaledCellHeight)},D.prototype._strokeRectAtCell=function(b,S,k,M){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(b*this._scaledCellWidth+window.devicePixelRatio/2,S*this._scaledCellHeight+window.devicePixelRatio/2,k*this._scaledCellWidth-window.devicePixelRatio,M*this._scaledCellHeight-window.devicePixelRatio)},D.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},D.prototype._clearCells=function(b,S,k,M){this._alpha?this._ctx.clearRect(b*this._scaledCellWidth,S*this._scaledCellHeight,k*this._scaledCellWidth,M*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(b*this._scaledCellWidth,S*this._scaledCellHeight,k*this._scaledCellWidth,M*this._scaledCellHeight))},D.prototype._fillCharTrueColor=function(b,S,k){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=T.TEXT_BASELINE,this._clipRow(k);var M=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(M=(0,w.tryDrawCustomChar)(this._ctx,b.getChars(),S*this._scaledCellWidth,k*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),M||this._ctx.fillText(b.getChars(),S*this._scaledCellWidth+this._scaledCharLeft,k*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},D.prototype._drawChars=function(b,S,k){var M,N,F,X=this._getContrastColor(b,S,k);if(X||b.isFgRGB()||b.isBgRGB())this._drawUncachedChars(b,S,k,X);else{var $,V;b.isInverse()?($=b.isBgDefault()?T.INVERTED_DEFAULT_COLOR:b.getBgColor(),V=b.isFgDefault()?T.INVERTED_DEFAULT_COLOR:b.getFgColor()):(V=b.isBgDefault()?P.DEFAULT_COLOR:b.getBgColor(),$=b.isFgDefault()?P.DEFAULT_COLOR:b.getFgColor()),$+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&b.isBold()&&$<8?8:0,this._currentGlyphIdentifier.chars=b.getChars()||P.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=b.getCode()||P.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=V,this._currentGlyphIdentifier.fg=$,this._currentGlyphIdentifier.bold=!!b.isBold(),this._currentGlyphIdentifier.dim=!!b.isDim(),this._currentGlyphIdentifier.italic=!!b.isItalic();var Q=!1;try{for(var te=I(this._decorationService.getDecorationsAtCell(S,k)),be=te.next();!be.done;be=te.next()){var pe=be.value;if(pe.backgroundColorRGB||pe.foregroundColorRGB){Q=!0;break}}}catch(fe){M={error:fe}}finally{try{be&&!be.done&&(N=te.return)&&N.call(te)}finally{if(M)throw M.error}}!Q&&(null===(F=this._charAtlas)||void 0===F?void 0:F.draw(this._ctx,this._currentGlyphIdentifier,S*this._scaledCellWidth+this._scaledCharLeft,k*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(b,S,k)}},D.prototype._drawUncachedChars=function(b,S,k,M){if(this._ctx.save(),this._ctx.font=this._getFont(!!b.isBold(),!!b.isItalic()),this._ctx.textBaseline=T.TEXT_BASELINE,b.isInverse())if(M)this._ctx.fillStyle=M.css;else if(b.isBgDefault())this._ctx.fillStyle=v.color.opaque(this._colors.background).css;else if(b.isBgRGB())this._ctx.fillStyle="rgb("+H.AttributeData.toColorRGB(b.getBgColor()).join(",")+")";else{var N=b.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&b.isBold()&&N<8&&(N+=8),this._ctx.fillStyle=this._colors.ansi[N].css}else if(M)this._ctx.fillStyle=M.css;else if(b.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(b.isFgRGB())this._ctx.fillStyle="rgb("+H.AttributeData.toColorRGB(b.getFgColor()).join(",")+")";else{var F=b.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&b.isBold()&&F<8&&(F+=8),this._ctx.fillStyle=this._colors.ansi[F].css}this._clipRow(k),b.isDim()&&(this._ctx.globalAlpha=T.DIM_OPACITY);var X=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(X=(0,w.tryDrawCustomChar)(this._ctx,b.getChars(),S*this._scaledCellWidth,k*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),X||this._ctx.fillText(b.getChars(),S*this._scaledCellWidth+this._scaledCharLeft,k*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},D.prototype._clipRow=function(b){this._ctx.beginPath(),this._ctx.rect(0,b*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},D.prototype._getFont=function(b,S){return(S?"italic":"")+" "+(b?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},D.prototype._getContrastColor=function(b,S,k){var M,N,F,X,$=!1;try{for(var V=I(this._decorationService.getDecorationsAtCell(S,k)),Q=V.next();!Q.done;Q=V.next()){var te=Q.value;"top"!==te.options.layer&&$||(te.backgroundColorRGB&&(F=te.backgroundColorRGB.rgba),te.foregroundColorRGB&&(X=te.foregroundColorRGB.rgba),$="top"===te.options.layer)}}catch($t){M={error:$t}}finally{try{Q&&!Q.done&&(N=V.return)&&N.call(V)}finally{if(M)throw M.error}}if($||this._colors.selectionForeground&&this._isCellInSelection(S,k)&&(X=this._colors.selectionForeground.rgba),F||X||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,R.excludeFromContrastRatioDemands)(b.getCode())){if(!F&&!X){var be=this._colors.contrastCache.getColor(b.bg,b.fg);if(void 0!==be)return be||void 0}var pe=b.getFgColor(),fe=b.getFgColorMode(),ue=b.getBgColor(),de=b.getBgColorMode(),ge=!!b.isInverse(),He=!!b.isInverse();if(ge){var ot=pe;pe=ue,ue=ot;var St=fe;fe=de,de=St}var Tt=this._resolveBackgroundRgba(void 0!==F?50331648:de,null!=F?F:ue,ge),Dt=this._resolveForegroundRgba(fe,pe,ge,He),Rt=v.rgba.ensureContrastRatio(null!=F?F:Tt,null!=X?X:Dt,this._optionsService.rawOptions.minimumContrastRatio);if(!Rt){if(!X)return void this._colors.contrastCache.setColor(b.bg,b.fg,null);Rt=X}var Ze={css:v.channels.toCss(Rt>>24&255,Rt>>16&255,Rt>>8&255),rgba:Rt};return F||X||this._colors.contrastCache.setColor(b.bg,b.fg,Ze),Ze}},D.prototype._resolveBackgroundRgba=function(b,S,k){switch(b){case 16777216:case 33554432:return this._colors.ansi[S].rgba;case 50331648:return S<<8;default:return k?this._colors.foreground.rgba:this._colors.background.rgba}},D.prototype._resolveForegroundRgba=function(b,S,k,M){switch(b){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&M&&S<8&&(S+=8),this._colors.ansi[S].rgba;case 50331648:return S<<8;default:return k?this._colors.background.rgba:this._colors.foreground.rgba}},D.prototype._isCellInSelection=function(b,S){var k=this._selectionStart,M=this._selectionEnd;return!(!k||!M)&&(this._columnSelectMode?b>=k[0]&&S>=k[1]&&b<M[0]&&S<M[1]:S>k[1]&&S<M[1]||k[1]===M[1]&&S===k[1]&&b>=k[0]&&b<M[0]||k[1]<M[1]&&S===M[1]&&b<M[0]||k[1]<M[1]&&S===k[1]&&b>=k[0])},D}();A.BaseRenderLayer=Z},2512:function(W,A,j){var I,P=this&&this.__extends||(I=function(S,k){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(M[F]=N[F])})(S,k)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=b}I(b,S),b.prototype=null===S?Object.create(S):(k.prototype=S.prototype,new k)}),T=this&&this.__decorate||function(b,S,k,M){var N,F=arguments.length,X=F<3?S:null===M?M=Object.getOwnPropertyDescriptor(S,k):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(b,S,k,M);else for(var $=b.length-1;$>=0;$--)(N=b[$])&&(X=(F<3?N(X):F>3?N(S,k,X):N(S,k))||X);return F>3&&X&&Object.defineProperty(S,k,X),X},E=this&&this.__param||function(b,S){return function(k,M){S(k,M,b)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorRenderLayer=void 0;var H=j(1546),R=j(511),v=j(2585),x=j(4725),w=600,Z=function(b){function S(k,M,N,F,X,$,V,Q,te,be){var pe=b.call(this,k,"cursor",M,!0,N,F,$,V,be)||this;return pe._onRequestRedraw=X,pe._coreService=Q,pe._coreBrowserService=te,pe._cell=new R.CellData,pe._state={x:0,y:0,isFocused:!1,style:"",width:0},pe._cursorRenderers={bar:pe._renderBarCursor.bind(pe),block:pe._renderBlockCursor.bind(pe),underline:pe._renderUnderlineCursor.bind(pe)},pe}return P(S,b),S.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),b.prototype.dispose.call(this)},S.prototype.resize=function(k){b.prototype.resize.call(this,k),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){var k;this._clearCursor(),null===(k=this._cursorBlinkStateManager)||void 0===k||k.restartBlinkAnimation(),this.onOptionsChanged()},S.prototype.onBlur=function(){var k;null===(k=this._cursorBlinkStateManager)||void 0===k||k.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){var k;null===(k=this._cursorBlinkStateManager)||void 0===k||k.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var k,M=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new D(this._coreBrowserService.isFocused,function(){M._render(!0)})):(null===(k=this._cursorBlinkStateManager)||void 0===k||k.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){var k;null===(k=this._cursorBlinkStateManager)||void 0===k||k.restartBlinkAnimation()},S.prototype.onGridChanged=function(k,M){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(k){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var M=this._bufferService.buffer.ybase+this._bufferService.buffer.y,N=M-this._bufferService.buffer.ydisp;if(N<0||N>=this._bufferService.rows)this._clearCursor();else{var F=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(M).loadCell(F,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var X=this._optionsService.rawOptions.cursorStyle;return X&&"block"!==X?this._cursorRenderers[X](F,N,this._cell):this._renderBlurCursor(F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=X,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===F&&this._state.y===N&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},S.prototype._renderBarCursor=function(k,M,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(k,M,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(k,M,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(k,M,N.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(N,k,M),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(k,M,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(k,M),this._ctx.restore()},S.prototype._renderBlurCursor=function(k,M,N){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(k,M,N.getWidth(),1),this._ctx.restore()},T([E(5,v.IBufferService),E(6,v.IOptionsService),E(7,v.ICoreService),E(8,x.ICoreBrowserService),E(9,v.IDecorationService)],S)}(H.BaseRenderLayer);A.CursorRenderLayer=Z;var D=function(){function b(S,k){this._renderCallback=k,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(b.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},b.prototype._restartInterval=function(S){var k=this;void 0===S&&(S=w),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(k._animationTimeRestarted){var M=w-(Date.now()-k._animationTimeRestarted);if(k._animationTimeRestarted=void 0,M>0)return void k._restartInterval(M)}k.isCursorVisible=!1,k._animationFrame=window.requestAnimationFrame(function(){k._renderCallback(),k._animationFrame=void 0}),k._blinkInterval=window.setInterval(function(){if(k._animationTimeRestarted){var N=w-(Date.now()-k._animationTimeRestarted);return k._animationTimeRestarted=void 0,void k._restartInterval(N)}k.isCursorVisible=!k.isCursorVisible,k._animationFrame=window.requestAnimationFrame(function(){k._renderCallback(),k._animationFrame=void 0})},w)},S)},b.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},b}()},8978:function(W,A,j){var I,P,T,E,H,R,v,x,w,Z,D,b,S,k,M,N,F,X,$,V,Q,te,be,pe,fe,ue,de,ge,He,ot,St,Tt,Dt,Rt,Ze,$t,Ft,pn,rt,Ot,_t,Ct,Ve,at,ht,Ut,Wt,U,B,qe,Be,se,t,Lt,zt,an,Qt,vn,Vt,Jt,Qe,Fe,ne,ye,he,Le,lt,ut,Nt,Ht,sn,yn,ln,Sn,hn,mn,At,xt,tt,Et,We,Ye,Re,Je,vt,fn,Un,Kt,yt,et,gt,wt,nn,jn,Wn,Vn,ir,Ir,yi,zi,Va,Ca,wa,ls,ta,Di,na,_o,Gn,vr,fi,ni,ws,ki,Ko,ii,So,so,xr,Yi,Eo,ca,ra,lo,da,Ya,uo,Ui,qs=this&&this.__read||function(tn,en){var Dr="function"==typeof Symbol&&tn[Symbol.iterator];if(!Dr)return tn;var no,qi,Jo=Dr.call(tn),Ti=[];try{for(;(void 0===en||en-- >0)&&!(no=Jo.next()).done;)Ti.push(no.value)}catch(ro){qi={error:ro}}finally{try{no&&!no.done&&(Dr=Jo.return)&&Dr.call(Jo)}finally{if(qi)throw qi.error}}return Ti},oi=this&&this.__values||function(tn){var en="function"==typeof Symbol&&Symbol.iterator,Dr=en&&tn[en],no=0;if(Dr)return Dr.call(tn);if(tn&&"number"==typeof tn.length)return{next:function(){return tn&&no>=tn.length&&(tn=void 0),{value:tn&&tn[no++],done:!tn}}};throw new TypeError(en?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.tryDrawCustomChar=A.powerlineDefinitions=A.boxDrawingDefinitions=A.blockElementDefinitions=void 0;var qo=j(1752);A.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var $u={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};A.boxDrawingDefinitions={"\u2500":(I={},I[1]="M0,.5 L1,.5",I),"\u2501":(P={},P[3]="M0,.5 L1,.5",P),"\u2502":(T={},T[1]="M.5,0 L.5,1",T),"\u2503":(E={},E[3]="M.5,0 L.5,1",E),"\u250c":(H={},H[1]="M0.5,1 L.5,.5 L1,.5",H),"\u250f":(R={},R[3]="M0.5,1 L.5,.5 L1,.5",R),"\u2510":(v={},v[1]="M0,.5 L.5,.5 L.5,1",v),"\u2513":(x={},x[3]="M0,.5 L.5,.5 L.5,1",x),"\u2514":(w={},w[1]="M.5,0 L.5,.5 L1,.5",w),"\u2517":(Z={},Z[3]="M.5,0 L.5,.5 L1,.5",Z),"\u2518":(D={},D[1]="M.5,0 L.5,.5 L0,.5",D),"\u251b":(b={},b[3]="M.5,0 L.5,.5 L0,.5",b),"\u251c":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L1,.5",S),"\u2523":(k={},k[3]="M.5,0 L.5,1 M.5,.5 L1,.5",k),"\u2524":(M={},M[1]="M.5,0 L.5,1 M.5,.5 L0,.5",M),"\u252b":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L0,.5",N),"\u252c":(F={},F[1]="M0,.5 L1,.5 M.5,.5 L.5,1",F),"\u2533":(X={},X[3]="M0,.5 L1,.5 M.5,.5 L.5,1",X),"\u2534":($={},$[1]="M0,.5 L1,.5 M.5,.5 L.5,0",$),"\u253b":(V={},V[3]="M0,.5 L1,.5 M.5,.5 L.5,0",V),"\u253c":(Q={},Q[1]="M0,.5 L1,.5 M.5,0 L.5,1",Q),"\u254b":(te={},te[3]="M0,.5 L1,.5 M.5,0 L.5,1",te),"\u2574":(be={},be[1]="M.5,.5 L0,.5",be),"\u2578":(pe={},pe[3]="M.5,.5 L0,.5",pe),"\u2575":(fe={},fe[1]="M.5,.5 L.5,0",fe),"\u2579":(ue={},ue[3]="M.5,.5 L.5,0",ue),"\u2576":(de={},de[1]="M.5,.5 L1,.5",de),"\u257a":(ge={},ge[3]="M.5,.5 L1,.5",ge),"\u2577":(He={},He[1]="M.5,.5 L.5,1",He),"\u257b":(ot={},ot[3]="M.5,.5 L.5,1",ot),"\u2550":(St={},St[1]=function(tn,en){return"M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)},St),"\u2551":(Tt={},Tt[1]=function(tn,en){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},Tt),"\u2552":(Dt={},Dt[1]=function(tn,en){return"M.5,1 L.5,"+(.5-en)+" L1,"+(.5-en)+" M.5,"+(.5+en)+" L1,"+(.5+en)},Dt),"\u2553":(Rt={},Rt[1]=function(tn,en){return"M"+(.5-tn)+",1 L"+(.5-tn)+",.5 L1,.5 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},Rt),"\u2554":(Ze={},Ze[1]=function(tn,en){return"M1,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1"},Ze),"\u2555":($t={},$t[1]=function(tn,en){return"M0,"+(.5-en)+" L.5,"+(.5-en)+" L.5,1 M0,"+(.5+en)+" L.5,"+(.5+en)},$t),"\u2556":(Ft={},Ft[1]=function(tn,en){return"M"+(.5+tn)+",1 L"+(.5+tn)+",.5 L0,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1"},Ft),"\u2557":(pn={},pn[1]=function(tn,en){return"M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M0,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",1"},pn),"\u2558":(rt={},rt[1]=function(tn,en){return"M.5,0 L.5,"+(.5+en)+" L1,"+(.5+en)+" M.5,"+(.5-en)+" L1,"+(.5-en)},rt),"\u2559":(Ot={},Ot[1]=function(tn,en){return"M1,.5 L"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},Ot),"\u255a":(_t={},_t[1]=function(tn,en){return"M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0 M1,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",0"},_t),"\u255b":(Ct={},Ct[1]=function(tn,en){return"M0,"+(.5+en)+" L.5,"+(.5+en)+" L.5,0 M0,"+(.5-en)+" L.5,"+(.5-en)},Ct),"\u255c":(Ve={},Ve[1]=function(tn,en){return"M0,.5 L"+(.5+tn)+",.5 L"+(.5+tn)+",0 M"+(.5-tn)+",.5 L"+(.5-tn)+",0"},Ve),"\u255d":(at={},at[1]=function(tn,en){return"M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0 M0,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",0"},at),"\u255e":(ht={},ht[1]=function(tn,en){return"M.5,0 L.5,1 M.5,"+(.5-en)+" L1,"+(.5-en)+" M.5,"+(.5+en)+" L1,"+(.5+en)},ht),"\u255f":(Ut={},Ut[1]=function(tn,en){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1 M"+(.5+tn)+",.5 L1,.5"},Ut),"\u2560":(Wt={},Wt[1]=function(tn,en){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1 M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0"},Wt),"\u2561":(U={},U[1]=function(tn,en){return"M.5,0 L.5,1 M0,"+(.5-en)+" L.5,"+(.5-en)+" M0,"+(.5+en)+" L.5,"+(.5+en)},U),"\u2562":(B={},B[1]=function(tn,en){return"M0,.5 L"+(.5-tn)+",.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},B),"\u2563":(qe={},qe[1]=function(tn,en){return"M"+(.5+tn)+",0 L"+(.5+tn)+",1 M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0"},qe),"\u2564":(Be={},Be[1]=function(tn,en){return"M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)+" M.5,"+(.5+en)+" L.5,1"},Be),"\u2565":(se={},se[1]=function(tn,en){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},se),"\u2566":(t={},t[1]=function(tn,en){return"M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1"},t),"\u2567":(Lt={},Lt[1]=function(tn,en){return"M.5,0 L.5,"+(.5-en)+" M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)},Lt),"\u2568":(zt={},zt[1]=function(tn,en){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},zt),"\u2569":(an={},an[1]=function(tn,en){return"M0,"+(.5+en)+" L1,"+(.5+en)+" M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0 M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0"},an),"\u256a":(Qt={},Qt[1]=function(tn,en){return"M.5,0 L.5,1 M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)},Qt),"\u256b":(vn={},vn[1]=function(tn,en){return"M0,.5 L1,.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},vn),"\u256c":(Vt={},Vt[1]=function(tn,en){return"M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1 M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0 M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0"},Vt),"\u2571":(Jt={},Jt[1]="M1,0 L0,1",Jt),"\u2572":(Qe={},Qe[1]="M0,0 L1,1",Qe),"\u2573":(Fe={},Fe[1]="M1,0 L0,1 M0,0 L1,1",Fe),"\u257c":(ne={},ne[1]="M.5,.5 L0,.5",ne[3]="M.5,.5 L1,.5",ne),"\u257d":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L.5,1",ye),"\u257e":(he={},he[1]="M.5,.5 L1,.5",he[3]="M.5,.5 L0,.5",he),"\u257f":(Le={},Le[1]="M.5,.5 L.5,1",Le[3]="M.5,.5 L.5,0",Le),"\u250d":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,.5 L1,.5",lt),"\u250e":(ut={},ut[1]="M.5,.5 L1,.5",ut[3]="M.5,.5 L.5,1",ut),"\u2511":(Nt={},Nt[1]="M.5,.5 L.5,1",Nt[3]="M.5,.5 L0,.5",Nt),"\u2512":(Ht={},Ht[1]="M.5,.5 L0,.5",Ht[3]="M.5,.5 L.5,1",Ht),"\u2515":(sn={},sn[1]="M.5,.5 L.5,0",sn[3]="M.5,.5 L1,.5",sn),"\u2516":(yn={},yn[1]="M.5,.5 L1,.5",yn[3]="M.5,.5 L.5,0",yn),"\u2519":(ln={},ln[1]="M.5,.5 L.5,0",ln[3]="M.5,.5 L0,.5",ln),"\u251a":(Sn={},Sn[1]="M.5,.5 L0,.5",Sn[3]="M.5,.5 L.5,0",Sn),"\u251d":(hn={},hn[1]="M.5,0 L.5,1",hn[3]="M.5,.5 L1,.5",hn),"\u251e":(mn={},mn[1]="M0.5,1 L.5,.5 L1,.5",mn[3]="M.5,.5 L.5,0",mn),"\u251f":(At={},At[1]="M.5,0 L.5,.5 L1,.5",At[3]="M.5,.5 L.5,1",At),"\u2520":(xt={},xt[1]="M.5,.5 L1,.5",xt[3]="M.5,0 L.5,1",xt),"\u2521":(tt={},tt[1]="M.5,.5 L.5,1",tt[3]="M.5,0 L.5,.5 L1,.5",tt),"\u2522":(Et={},Et[1]="M.5,.5 L.5,0",Et[3]="M0.5,1 L.5,.5 L1,.5",Et),"\u2525":(We={},We[1]="M.5,0 L.5,1",We[3]="M.5,.5 L0,.5",We),"\u2526":(Ye={},Ye[1]="M0,.5 L.5,.5 L.5,1",Ye[3]="M.5,.5 L.5,0",Ye),"\u2527":(Re={},Re[1]="M.5,0 L.5,.5 L0,.5",Re[3]="M.5,.5 L.5,1",Re),"\u2528":(Je={},Je[1]="M.5,.5 L0,.5",Je[3]="M.5,0 L.5,1",Je),"\u2529":(vt={},vt[1]="M.5,.5 L.5,1",vt[3]="M.5,0 L.5,.5 L0,.5",vt),"\u252a":(fn={},fn[1]="M.5,.5 L.5,0",fn[3]="M0,.5 L.5,.5 L.5,1",fn),"\u252d":(Un={},Un[1]="M0.5,1 L.5,.5 L1,.5",Un[3]="M.5,.5 L0,.5",Un),"\u252e":(Kt={},Kt[1]="M0,.5 L.5,.5 L.5,1",Kt[3]="M.5,.5 L1,.5",Kt),"\u252f":(yt={},yt[1]="M.5,.5 L.5,1",yt[3]="M0,.5 L1,.5",yt),"\u2530":(et={},et[1]="M0,.5 L1,.5",et[3]="M.5,.5 L.5,1",et),"\u2531":(gt={},gt[1]="M.5,.5 L1,.5",gt[3]="M0,.5 L.5,.5 L.5,1",gt),"\u2532":(wt={},wt[1]="M.5,.5 L0,.5",wt[3]="M0.5,1 L.5,.5 L1,.5",wt),"\u2535":(nn={},nn[1]="M.5,0 L.5,.5 L1,.5",nn[3]="M.5,.5 L0,.5",nn),"\u2536":(jn={},jn[1]="M.5,0 L.5,.5 L0,.5",jn[3]="M.5,.5 L1,.5",jn),"\u2537":(Wn={},Wn[1]="M.5,.5 L.5,0",Wn[3]="M0,.5 L1,.5",Wn),"\u2538":(Vn={},Vn[1]="M0,.5 L1,.5",Vn[3]="M.5,.5 L.5,0",Vn),"\u2539":(ir={},ir[1]="M.5,.5 L1,.5",ir[3]="M.5,0 L.5,.5 L0,.5",ir),"\u253a":(Ir={},Ir[1]="M.5,.5 L0,.5",Ir[3]="M.5,0 L.5,.5 L1,.5",Ir),"\u253d":(yi={},yi[1]="M.5,0 L.5,1 M.5,.5 L1,.5",yi[3]="M.5,.5 L0,.5",yi),"\u253e":(zi={},zi[1]="M.5,0 L.5,1 M.5,.5 L0,.5",zi[3]="M.5,.5 L1,.5",zi),"\u253f":(Va={},Va[1]="M.5,0 L.5,1",Va[3]="M0,.5 L1,.5",Va),"\u2540":(Ca={},Ca[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ca[3]="M.5,.5 L.5,0",Ca),"\u2541":(wa={},wa[1]="M.5,.5 L.5,0 M0,.5 L1,.5",wa[3]="M.5,.5 L.5,1",wa),"\u2542":(ls={},ls[1]="M0,.5 L1,.5",ls[3]="M.5,0 L.5,1",ls),"\u2543":(ta={},ta[1]="M0.5,1 L.5,.5 L1,.5",ta[3]="M.5,0 L.5,.5 L0,.5",ta),"\u2544":(Di={},Di[1]="M0,.5 L.5,.5 L.5,1",Di[3]="M.5,0 L.5,.5 L1,.5",Di),"\u2545":(na={},na[1]="M.5,0 L.5,.5 L1,.5",na[3]="M0,.5 L.5,.5 L.5,1",na),"\u2546":(_o={},_o[1]="M.5,0 L.5,.5 L0,.5",_o[3]="M0.5,1 L.5,.5 L1,.5",_o),"\u2547":(Gn={},Gn[1]="M.5,.5 L.5,1",Gn[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Gn),"\u2548":(vr={},vr[1]="M.5,.5 L.5,0",vr[3]="M0,.5 L1,.5 M.5,.5 L.5,1",vr),"\u2549":(fi={},fi[1]="M.5,.5 L1,.5",fi[3]="M.5,0 L.5,1 M.5,.5 L0,.5",fi),"\u254a":(ni={},ni[1]="M.5,.5 L0,.5",ni[3]="M.5,0 L.5,1 M.5,.5 L1,.5",ni),"\u254c":(ws={},ws[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ws),"\u254d":(ki={},ki[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ki),"\u2504":(Ko={},Ko[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Ko),"\u2505":(ii={},ii[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ii),"\u2508":(So={},So[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",So),"\u2509":(so={},so[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",so),"\u254e":(xr={},xr[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",xr),"\u254f":(Yi={},Yi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yi),"\u2506":(Eo={},Eo[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Eo),"\u2507":(ca={},ca[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ca),"\u250a":(ra={},ra[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",ra),"\u250b":(lo={},lo[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",lo),"\u256d":(da={},da[1]="C.5,1,.5,.5,1,.5",da),"\u256e":(Ya={},Ya[1]="C.5,1,.5,.5,0,.5",Ya),"\u256f":(uo={},uo[1]="C.5,0,.5,.5,0,.5",uo),"\u2570":(Ui={},Ui[1]="C.5,0,.5,.5,1,.5",Ui)},A.powerlineDefinitions={"\ue0b0":{d:"M0,0 L1,.5 L0,1",type:0},"\ue0b1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\ue0b2":{d:"M1,0 L0,.5 L1,1",type:0},"\ue0b3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},A.tryDrawCustomChar=function(tn,en,Dr,no,qi,Jo){var Ti=A.blockElementDefinitions[en];if(Ti)return function(Jr,Yn,An,cn,Ji,Oi){for(var Qi=0;Qi<Yn.length;Qi++){var Pi=Yn[Qi],ai=Ji/8,Mi=Oi/8;Jr.fillRect(An+Pi.x*ai,cn+Pi.y*Mi,Pi.w*ai,Pi.h*Mi)}}(tn,Ti,Dr,no,qi,Jo),!0;var ro=$u[en];if(ro)return function(Jr,Yn,An,cn,Ji,Oi){var Qi,Pi=to.get(Yn);Pi||(Pi=new Map,to.set(Yn,Pi));var ai=Jr.fillStyle;if("string"!=typeof ai)throw new Error('Unexpected fillStyle type "'+ai+'"');var Mi=Pi.get(ai);if(!Mi){var ji=Yn[0].length,hr=Yn.length,co=document.createElement("canvas");co.width=ji,co.height=hr;var fa=(0,qo.throwIfFalsy)(co.getContext("2d")),ka=new ImageData(ji,hr),go=void 0,fo=void 0,ia=void 0,hl=void 0;if(ai.startsWith("#"))go=parseInt(ai.slice(1,3),16),fo=parseInt(ai.slice(3,5),16),ia=parseInt(ai.slice(5,7),16),hl=ai.length>7&&parseInt(ai.slice(7,9),16)||1;else{if(!ai.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+ai+'" when drawing pattern glyph');go=(Qi=qs(ai.substring(5,ai.length-1).split(",").map(function(Qo){return parseFloat(Qo)}),4))[0],fo=Qi[1],ia=Qi[2],hl=Qi[3]}for(var Ka=0;Ka<hr;Ka++)for(var qa=0;qa<ji;qa++)ka.data[4*(Ka*ji+qa)]=go,ka.data[4*(Ka*ji+qa)+1]=fo,ka.data[4*(Ka*ji+qa)+2]=ia,ka.data[4*(Ka*ji+qa)+3]=Yn[Ka][qa]*(255*hl);fa.putImageData(ka,0,0),Mi=(0,qo.throwIfFalsy)(Jr.createPattern(co,null)),Pi.set(ai,Mi)}Jr.fillStyle=Mi,Jr.fillRect(An,cn,Ji,Oi)}(tn,ro,Dr,no,qi,Jo),!0;var Rn=A.boxDrawingDefinitions[en];if(Rn)return function(Jr,Yn,An,cn,Ji,Oi){var Qi,Pi,ai,Mi;Jr.strokeStyle=Jr.fillStyle;try{for(var ji=oi(Object.entries(Yn)),hr=ji.next();!hr.done;hr=ji.next()){var co=qs(hr.value,2),fa=co[0],ka=co[1];Jr.beginPath(),Jr.lineWidth=window.devicePixelRatio*Number.parseInt(fa);var go=void 0;go="function"==typeof ka?ka(.15,.15/Oi*Ji):ka;try{for(var fo=(ai=void 0,oi(go.split(" "))),ia=fo.next();!ia.done;ia=fo.next()){var hl=ia.value,Ka=hl[0],qa=hu[Ka];if(qa){var Qo=hl.substring(1).split(",");Qo[0]&&Qo[1]&&qa(Jr,Ki(Qo,Ji,Oi,An,cn))}else console.error('Could not find drawing instructions for "'+Ka+'"')}}catch(Xo){ai={error:Xo}}finally{try{ia&&!ia.done&&(Mi=fo.return)&&Mi.call(fo)}finally{if(ai)throw ai.error}}Jr.stroke(),Jr.closePath()}}catch(Xo){Qi={error:Xo}}finally{try{hr&&!hr.done&&(Pi=ji.return)&&Pi.call(ji)}finally{if(Qi)throw Qi.error}}}(tn,Rn,Dr,no,qi,Jo),!0;var mu=A.powerlineDefinitions[en];return!!mu&&(function(Jr,Yn,An,cn,Ji,Oi){var Qi,Pi;Jr.beginPath(),Jr.lineWidth=window.devicePixelRatio;try{for(var ai=oi(Yn.d.split(" ")),Mi=ai.next();!Mi.done;Mi=ai.next()){var ji=Mi.value,hr=ji[0],co=hu[hr];if(co){var fa=ji.substring(1).split(",");fa[0]&&fa[1]&&co(Jr,Ki(fa,Ji,Oi,An,cn,Yn.horizontalPadding))}else console.error('Could not find drawing instructions for "'+hr+'"')}}catch(ka){Qi={error:ka}}finally{try{Mi&&!Mi.done&&(Pi=ai.return)&&Pi.call(ai)}finally{if(Qi)throw Qi.error}}1===Yn.type?(Jr.strokeStyle=Jr.fillStyle,Jr.stroke()):Jr.fill(),Jr.closePath()}(tn,mu,Dr,no,qi,Jo),!0)};var to=new Map;function Ai(tn,en,Dr){return void 0===Dr&&(Dr=0),Math.max(Math.min(tn,en),Dr)}var hu={C:function(en,Dr){return en.bezierCurveTo(Dr[0],Dr[1],Dr[2],Dr[3],Dr[4],Dr[5])},L:function(en,Dr){return en.lineTo(Dr[0],Dr[1])},M:function(en,Dr){return en.moveTo(Dr[0],Dr[1])}};function Ki(tn,en,Dr,no,qi,Jo){void 0===Jo&&(Jo=0);var Ti=tn.map(function(mu){return parseFloat(mu)||parseInt(mu)});if(Ti.length<2)throw new Error("Too few arguments for instruction");for(var ro=0;ro<Ti.length;ro+=2)Ti[ro]*=en-2*Jo*window.devicePixelRatio,0!==Ti[ro]&&(Ti[ro]=Ai(Math.round(Ti[ro]+.5)-.5,en,0)),Ti[ro]+=no+Jo*window.devicePixelRatio;for(var Rn=1;Rn<Ti.length;Rn+=2)Ti[Rn]*=Dr,0!==Ti[Rn]&&(Ti[Rn]=Ai(Math.round(Ti[Rn]+.5)-.5,Dr,0)),Ti[Rn]+=qi;return Ti}},3700:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.GridCache=void 0;var j=function(){function I(){this.cache=[]}return I.prototype.resize=function(P,T){for(var E=0;E<P;E++){this.cache.length<=E&&this.cache.push([]);for(var H=this.cache[E].length;H<T;H++)this.cache[E].push(void 0);this.cache[E].length=T}this.cache.length=P},I.prototype.clear=function(){for(var P=0;P<this.cache.length;P++)for(var T=0;T<this.cache[P].length;T++)this.cache[P][T]=void 0},I}();A.GridCache=j},5098:function(W,A,j){var I,P=this&&this.__extends||(I=function(D,b){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}I(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.LinkRenderLayer=void 0;var H=j(1546),R=j(8803),v=j(2040),x=j(2585),w=function(Z){function D(b,S,k,M,N,F,X,$,V){var Q=Z.call(this,b,"link",S,!0,k,M,X,$,V)||this;return N.onShowLinkUnderline(function(te){return Q._onShowLinkUnderline(te)}),N.onHideLinkUnderline(function(te){return Q._onHideLinkUnderline(te)}),F.onShowLinkUnderline(function(te){return Q._onShowLinkUnderline(te)}),F.onHideLinkUnderline(function(te){return Q._onHideLinkUnderline(te)}),Q}return P(D,Z),D.prototype.resize=function(b){Z.prototype.resize.call(this,b),this._state=void 0},D.prototype.reset=function(){this._clearCurrentLink()},D.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var b=this._state.y2-this._state.y1-1;b>0&&this._clearCells(0,this._state.y1+1,this._state.cols,b),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},D.prototype._onShowLinkUnderline=function(b){if(b.fg===R.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:b.fg&&(0,v.is256Color)(b.fg)?this._ctx.fillStyle=this._colors.ansi[b.fg].css:this._ctx.fillStyle=this._colors.foreground.css,b.y1===b.y2)this._fillBottomLineAtCells(b.x1,b.y1,b.x2-b.x1);else{this._fillBottomLineAtCells(b.x1,b.y1,b.cols-b.x1);for(var S=b.y1+1;S<b.y2;S++)this._fillBottomLineAtCells(0,S,b.cols);this._fillBottomLineAtCells(0,b.y2,b.x2)}this._state=b},D.prototype._onHideLinkUnderline=function(b){this._clearCurrentLink()},T([E(6,x.IBufferService),E(7,x.IOptionsService),E(8,x.IDecorationService)],D)}(H.BaseRenderLayer);A.LinkRenderLayer=w},3525:function(W,A,j){var I,P=this&&this.__extends||(I=function(X,$){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,Q){V.__proto__=Q}||function(V,Q){for(var te in Q)Object.prototype.hasOwnProperty.call(Q,te)&&(V[te]=Q[te])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}I(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)}),T=this&&this.__decorate||function(F,X,$,V){var Q,te=arguments.length,be=te<3?X:null===V?V=Object.getOwnPropertyDescriptor(X,$):V;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)be=Reflect.decorate(F,X,$,V);else for(var pe=F.length-1;pe>=0;pe--)(Q=F[pe])&&(be=(te<3?Q(be):te>3?Q(X,$,be):Q(X,$))||be);return te>3&&be&&Object.defineProperty(X,$,be),be},E=this&&this.__param||function(F,X){return function($,V){X($,V,F)}},H=this&&this.__values||function(F){var X="function"==typeof Symbol&&Symbol.iterator,$=X&&F[X],V=0;if($)return $.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&V>=F.length&&(F=void 0),{value:F&&F[V++],done:!F}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Renderer=void 0;var R=j(9596),v=j(4149),x=j(2512),w=j(5098),Z=j(844),D=j(4725),b=j(2585),S=j(1420),k=j(8460),M=1,N=function(F){function X($,V,Q,te,be,pe,fe,ue){var de=F.call(this)||this;de._colors=$,de._screenElement=V,de._bufferService=pe,de._charSizeService=fe,de._optionsService=ue,de._id=M++,de._onRequestRedraw=new k.EventEmitter;var ge=de._optionsService.rawOptions.allowTransparency;return de._renderLayers=[be.createInstance(R.TextRenderLayer,de._screenElement,0,de._colors,ge,de._id),be.createInstance(v.SelectionRenderLayer,de._screenElement,1,de._colors,de._id),be.createInstance(w.LinkRenderLayer,de._screenElement,2,de._colors,de._id,Q,te),be.createInstance(x.CursorRenderLayer,de._screenElement,3,de._colors,de._id,de._onRequestRedraw)],de.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},de._devicePixelRatio=window.devicePixelRatio,de._updateDimensions(),de.onOptionsChanged(),de}return P(X,F),Object.defineProperty(X.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),X.prototype.dispose=function(){var $,V;try{for(var Q=H(this._renderLayers),te=Q.next();!te.done;te=Q.next())te.value.dispose()}catch(be){$={error:be}}finally{try{te&&!te.done&&(V=Q.return)&&V.call(Q)}finally{if($)throw $.error}}F.prototype.dispose.call(this),(0,S.removeTerminalFromCache)(this._id)},X.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},X.prototype.setColors=function($){var V,Q;this._colors=$;try{for(var te=H(this._renderLayers),be=te.next();!be.done;be=te.next()){var pe=be.value;pe.setColors(this._colors),pe.reset()}}catch(fe){V={error:fe}}finally{try{be&&!be.done&&(Q=te.return)&&Q.call(te)}finally{if(V)throw V.error}}},X.prototype.onResize=function($,V){var Q,te;this._updateDimensions();try{for(var be=H(this._renderLayers),pe=be.next();!pe.done;pe=be.next())pe.value.resize(this.dimensions)}catch(fe){Q={error:fe}}finally{try{pe&&!pe.done&&(te=be.return)&&te.call(be)}finally{if(Q)throw Q.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},X.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},X.prototype.onBlur=function(){this._runOperation(function($){return $.onBlur()})},X.prototype.onFocus=function(){this._runOperation(function($){return $.onFocus()})},X.prototype.onSelectionChanged=function($,V,Q){void 0===Q&&(Q=!1),this._runOperation(function(te){return te.onSelectionChanged($,V,Q)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},X.prototype.onCursorMove=function(){this._runOperation(function($){return $.onCursorMove()})},X.prototype.onOptionsChanged=function(){this._runOperation(function($){return $.onOptionsChanged()})},X.prototype.clear=function(){this._runOperation(function($){return $.reset()})},X.prototype._runOperation=function($){var V,Q;try{for(var te=H(this._renderLayers),be=te.next();!be.done;be=te.next())$(be.value)}catch(pe){V={error:pe}}finally{try{be&&!be.done&&(Q=te.return)&&Q.call(te)}finally{if(V)throw V.error}}},X.prototype.renderRows=function($,V){var Q,te;try{for(var be=H(this._renderLayers),pe=be.next();!pe.done;pe=be.next())pe.value.onGridChanged($,V)}catch(fe){Q={error:fe}}finally{try{pe&&!pe.done&&(te=be.return)&&te.call(be)}finally{if(Q)throw Q.error}}},X.prototype.clearTextureAtlas=function(){var $,V;try{for(var Q=H(this._renderLayers),te=Q.next();!te.done;te=Q.next())te.value.clearTextureAtlas()}catch(be){$={error:be}}finally{try{te&&!te.done&&(V=Q.return)&&V.call(Q)}finally{if($)throw $.error}}},X.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},T([E(4,b.IInstantiationService),E(5,b.IBufferService),E(6,D.ICharSizeService),E(7,b.IOptionsService)],X)}(Z.Disposable);A.Renderer=N},1752:function(W,A){function j(I){return 57508<=I&&I<=57558}Object.defineProperty(A,"__esModule",{value:!0}),A.excludeFromContrastRatioDemands=A.isPowerlineGlyph=A.throwIfFalsy=void 0,A.throwIfFalsy=function(I){if(!I)throw new Error("value must not be falsy");return I},A.isPowerlineGlyph=j,A.excludeFromContrastRatioDemands=function(I){return j(I)||9472<=(P=I)&&P<=9631;var P}},4149:function(W,A,j){var I,P=this&&this.__extends||(I=function(w,Z){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,b){D.__proto__=b}||function(D,b){for(var S in b)Object.prototype.hasOwnProperty.call(b,S)&&(D[S]=b[S])})(w,Z)},function(x,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function Z(){this.constructor=x}I(x,w),x.prototype=null===w?Object.create(w):(Z.prototype=w.prototype,new Z)}),T=this&&this.__decorate||function(x,w,Z,D){var b,S=arguments.length,k=S<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,Z):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(x,w,Z,D);else for(var M=x.length-1;M>=0;M--)(b=x[M])&&(k=(S<3?b(k):S>3?b(w,Z,k):b(w,Z))||k);return S>3&&k&&Object.defineProperty(w,Z,k),k},E=this&&this.__param||function(x,w){return function(Z,D){w(Z,D,x)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionRenderLayer=void 0;var H=j(1546),R=j(2585),v=function(x){function w(Z,D,b,S,k,M,N){var F=x.call(this,Z,"selection",D,!0,b,S,k,M,N)||this;return F._clearState(),F}return P(w,x),w.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},w.prototype.resize=function(Z){x.prototype.resize.call(this,Z),this._clearState()},w.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},w.prototype.onSelectionChanged=function(Z,D,b){if(x.prototype.onSelectionChanged.call(this,Z,D,b),this._didStateChange(Z,D,b,this._bufferService.buffer.ydisp))if(this._clearAll(),Z&&D){var S=Z[1]-this._bufferService.buffer.ydisp,k=D[1]-this._bufferService.buffer.ydisp,M=Math.max(S,0),N=Math.min(k,this._bufferService.rows-1);if(M>=this._bufferService.rows||N<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,b){var F=Z[0],X=D[0]-F,$=N-M+1;this._fillCells(F,M,X,$)}else{F=S===M?Z[0]:0;var V=M===k?D[0]:this._bufferService.cols;this._fillCells(F,M,V-F,1);var Q=Math.max(N-M-1,0);if(this._fillCells(0,M+1,this._bufferService.cols,Q),M!==N){var te=k===N?D[0]:this._bufferService.cols;this._fillCells(0,N,te,1)}}this._state.start=[Z[0],Z[1]],this._state.end=[D[0],D[1]],this._state.columnSelectMode=b,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},w.prototype._didStateChange=function(Z,D,b,S){return!this._areCoordinatesEqual(Z,this._state.start)||!this._areCoordinatesEqual(D,this._state.end)||b!==this._state.columnSelectMode||S!==this._state.ydisp},w.prototype._areCoordinatesEqual=function(Z,D){return!(!Z||!D)&&Z[0]===D[0]&&Z[1]===D[1]},T([E(4,R.IBufferService),E(5,R.IOptionsService),E(6,R.IDecorationService)],w)}(H.BaseRenderLayer);A.SelectionRenderLayer=v},9596:function(W,A,j){var I,P=this&&this.__extends||(I=function(N,F){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(X[V]=$[V])})(N,F)},function(M,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=M}I(M,N),M.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),T=this&&this.__decorate||function(M,N,F,X){var $,V=arguments.length,Q=V<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(M,N,F,X);else for(var te=M.length-1;te>=0;te--)($=M[te])&&(Q=(V<3?$(Q):V>3?$(N,F,Q):$(N,F))||Q);return V>3&&Q&&Object.defineProperty(N,F,Q),Q},E=this&&this.__param||function(M,N){return function(F,X){N(F,X,M)}},H=this&&this.__values||function(M){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&M[N],X=0;if(F)return F.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&X>=M.length&&(M=void 0),{value:M&&M[X++],done:!M}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.TextRenderLayer=void 0;var R=j(3700),v=j(1546),x=j(3734),w=j(643),Z=j(511),D=j(2585),b=j(4725),S=j(4269),k=function(M){function N(F,X,$,V,Q,te,be,pe,fe){var ue=M.call(this,F,"text",X,V,$,Q,te,be,fe)||this;return ue._characterJoinerService=pe,ue._characterWidth=0,ue._characterFont="",ue._characterOverlapCache={},ue._workCell=new Z.CellData,ue._state=new R.GridCache,ue}return P(N,M),N.prototype.resize=function(F){M.prototype.resize.call(this,F);var X=this._getFont(!1,!1);this._characterWidth===F.scaledCharWidth&&this._characterFont===X||(this._characterWidth=F.scaledCharWidth,this._characterFont=X,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},N.prototype.reset=function(){this._state.clear(),this._clearAll()},N.prototype._forEachCell=function(F,X,$){for(var V=F;V<=X;V++)for(var Q=V+this._bufferService.buffer.ydisp,te=this._bufferService.buffer.lines.get(Q),be=this._characterJoinerService.getJoinedCharacters(Q),pe=0;pe<this._bufferService.cols;pe++){te.loadCell(pe,this._workCell);var fe=this._workCell,ue=!1,de=pe;if(0!==fe.getWidth()){if(be.length>0&&pe===be[0][0]){ue=!0;var ge=be.shift();fe=new S.JoinedCellData(this._workCell,te.translateToString(!0,ge[0],ge[1]),ge[1]-ge[0]),de=ge[1]-1}!ue&&this._isOverlapping(fe)&&de<te.length-1&&te.getCodePoint(de+1)===w.NULL_CELL_CODE&&(fe.content&=-12582913,fe.content|=2<<22),$(fe,pe,V),pe=de}}},N.prototype._drawBackground=function(F,X){var $=this,V=this._ctx,Q=this._bufferService.cols,te=0,be=0,pe=null;V.save(),this._forEachCell(F,X,function(fe,ue,de){var ge,He,ot=null;fe.isInverse()?ot=fe.isFgDefault()?$._colors.foreground.css:fe.isFgRGB()?"rgb("+x.AttributeData.toColorRGB(fe.getFgColor()).join(",")+")":$._colors.ansi[fe.getFgColor()].css:fe.isBgRGB()?ot="rgb("+x.AttributeData.toColorRGB(fe.getBgColor()).join(",")+")":fe.isBgPalette()&&(ot=$._colors.ansi[fe.getBgColor()].css);var St=!1;try{for(var Tt=H($._decorationService.getDecorationsAtCell(ue,$._bufferService.buffer.ydisp+de)),Dt=Tt.next();!Dt.done;Dt=Tt.next()){var Rt=Dt.value;"top"!==Rt.options.layer&&St||(Rt.backgroundColorRGB&&(ot=Rt.backgroundColorRGB.css),St="top"===Rt.options.layer)}}catch(Ze){ge={error:Ze}}finally{try{Dt&&!Dt.done&&(He=Tt.return)&&He.call(Tt)}finally{if(ge)throw ge.error}}null===pe&&(te=ue,be=de),de!==be?(V.fillStyle=pe||"",$._fillCells(te,be,Q-te,1),te=ue,be=de):pe!==ot&&(V.fillStyle=pe||"",$._fillCells(te,be,ue-te,1),te=ue,be=de),pe=ot}),null!==pe&&(V.fillStyle=pe,this._fillCells(te,be,Q-te,1)),V.restore()},N.prototype._drawForeground=function(F,X){var $=this;this._forEachCell(F,X,function(V,Q,te){if(!V.isInvisible()&&($._drawChars(V,Q,te),V.isUnderline()||V.isStrikethrough())){if($._ctx.save(),V.isInverse())if(V.isBgDefault())$._ctx.fillStyle=$._colors.background.css;else if(V.isBgRGB())$._ctx.fillStyle="rgb("+x.AttributeData.toColorRGB(V.getBgColor()).join(",")+")";else{var be=V.getBgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&V.isBold()&&be<8&&(be+=8),$._ctx.fillStyle=$._colors.ansi[be].css}else if(V.isFgDefault())$._ctx.fillStyle=$._colors.foreground.css;else if(V.isFgRGB())$._ctx.fillStyle="rgb("+x.AttributeData.toColorRGB(V.getFgColor()).join(",")+")";else{var pe=V.getFgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&V.isBold()&&pe<8&&(pe+=8),$._ctx.fillStyle=$._colors.ansi[pe].css}V.isStrikethrough()&&$._fillMiddleLineAtCells(Q,te,V.getWidth()),V.isUnderline()&&$._fillBottomLineAtCells(Q,te,V.getWidth()),$._ctx.restore()}})},N.prototype.onGridChanged=function(F,X){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,F,this._bufferService.cols,X-F+1),this._drawBackground(F,X),this._drawForeground(F,X))},N.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},N.prototype._isOverlapping=function(F){if(1!==F.getWidth()||F.getCode()<256)return!1;var X=F.getChars();if(this._characterOverlapCache.hasOwnProperty(X))return this._characterOverlapCache[X];this._ctx.save(),this._ctx.font=this._characterFont;var $=Math.floor(this._ctx.measureText(X).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[X]=$,$},T([E(5,D.IBufferService),E(6,D.IOptionsService),E(7,b.ICharacterJoinerService),E(8,D.IDecorationService)],N)}(v.BaseRenderLayer);A.TextRenderLayer=k},9616:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.BaseCharAtlas=void 0;var j=function(){function I(){this._didWarmUp=!1}return I.prototype.dispose=function(){},I.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},I.prototype._doWarmUp=function(){},I.prototype.clear=function(){},I.prototype.beginFrame=function(){},I}();A.BaseCharAtlas=j},1420:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.removeTerminalFromCache=A.acquireCharAtlas=void 0;var I=j(2040),P=j(1906),T=[];A.acquireCharAtlas=function(E,H,R,v,x){for(var w=(0,I.generateConfig)(v,x,E,R),Z=0;Z<T.length;Z++){var D=(b=T[Z]).ownedBy.indexOf(H);if(D>=0){if((0,I.configEquals)(b.config,w))return b.atlas;1===b.ownedBy.length?(b.atlas.dispose(),T.splice(Z,1)):b.ownedBy.splice(D,1);break}}for(Z=0;Z<T.length;Z++){var b=T[Z];if((0,I.configEquals)(b.config,w))return b.ownedBy.push(H),b.atlas}var S={atlas:new P.DynamicCharAtlas(document,w),config:w,ownedBy:[H]};return T.push(S),S.atlas},A.removeTerminalFromCache=function(E){for(var H=0;H<T.length;H++){var R=T[H].ownedBy.indexOf(E);if(-1!==R){1===T[H].ownedBy.length?(T[H].atlas.dispose(),T.splice(H,1)):T[H].ownedBy.splice(R,1);break}}}},2040:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.is256Color=A.configEquals=A.generateConfig=void 0;var I=j(643);A.generateConfig=function(P,T,E,H){var R={foreground:H.foreground,background:H.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:H.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:P,scaledCharHeight:T,fontFamily:E.fontFamily,fontSize:E.fontSize,fontWeight:E.fontWeight,fontWeightBold:E.fontWeightBold,allowTransparency:E.allowTransparency,colors:R}},A.configEquals=function(P,T){for(var E=0;E<P.colors.ansi.length;E++)if(P.colors.ansi[E].rgba!==T.colors.ansi[E].rgba)return!1;return P.devicePixelRatio===T.devicePixelRatio&&P.fontFamily===T.fontFamily&&P.fontSize===T.fontSize&&P.fontWeight===T.fontWeight&&P.fontWeightBold===T.fontWeightBold&&P.allowTransparency===T.allowTransparency&&P.scaledCharWidth===T.scaledCharWidth&&P.scaledCharHeight===T.scaledCharHeight&&P.colors.foreground===T.colors.foreground&&P.colors.background===T.colors.background},A.is256Color=function(P){return P<I.DEFAULT_COLOR}},8803:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.CHAR_ATLAS_CELL_SPACING=A.TEXT_BASELINE=A.DIM_OPACITY=A.INVERTED_DEFAULT_COLOR=void 0;var I=j(6114);A.INVERTED_DEFAULT_COLOR=257,A.DIM_OPACITY=.5,A.TEXT_BASELINE=I.isFirefox||I.isLegacyEdge?"bottom":"ideographic",A.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,A,j){var I,P=this&&this.__extends||(I=function(X,$){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,Q){V.__proto__=Q}||function(V,Q){for(var te in Q)Object.prototype.hasOwnProperty.call(Q,te)&&(V[te]=Q[te])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}I(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)});Object.defineProperty(A,"__esModule",{value:!0}),A.NoneCharAtlas=A.DynamicCharAtlas=A.getGlyphCacheKey=void 0;var T=j(8803),E=j(9616),H=j(5680),R=j(7001),v=j(6114),x=j(1752),w=j(8055),Z=1024,D=1024,b={css:"rgba(0, 0, 0, 0)",rgba:0};function S(F){return F.code<<21|F.bg<<12|F.fg<<3|(F.bold?0:4)+(F.dim?0:2)+(F.italic?0:1)}A.getGlyphCacheKey=S;var k=function(F){function X($,V){var Q=F.call(this)||this;Q._config=V,Q._drawToCacheCount=0,Q._glyphsWaitingOnBitmap=[],Q._bitmapCommitTimeout=null,Q._bitmap=null,Q._cacheCanvas=$.createElement("canvas"),Q._cacheCanvas.width=Z,Q._cacheCanvas.height=D,Q._cacheCtx=(0,x.throwIfFalsy)(Q._cacheCanvas.getContext("2d",{alpha:!0}));var te=$.createElement("canvas");te.width=Q._config.scaledCharWidth,te.height=Q._config.scaledCharHeight,Q._tmpCtx=(0,x.throwIfFalsy)(te.getContext("2d",{alpha:Q._config.allowTransparency})),Q._width=Math.floor(Z/Q._config.scaledCharWidth),Q._height=Math.floor(D/Q._config.scaledCharHeight);var be=Q._width*Q._height;return Q._cacheMap=new R.LRUMap(be),Q._cacheMap.prealloc(be),Q}return P(X,F),X.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},X.prototype.beginFrame=function(){this._drawToCacheCount=0},X.prototype.clear=function(){if(this._cacheMap.size>0){var $=this._width*this._height;this._cacheMap=new R.LRUMap($),this._cacheMap.prealloc($)}this._cacheCtx.clearRect(0,0,Z,D),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},X.prototype.draw=function($,V,Q,te){if(32===V.code)return!0;if(!this._canCache(V))return!1;var be=S(V),pe=this._cacheMap.get(be);if(null!=pe)return this._drawFromCache($,pe,Q,te),!0;if(this._drawToCacheCount<100){var fe;fe=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ue=this._drawToCache(V,fe);return this._cacheMap.set(be,ue),this._drawFromCache($,ue,Q,te),!0}return!1},X.prototype._canCache=function($){return $.code<256},X.prototype._toCoordinateX=function($){return $%this._width*this._config.scaledCharWidth},X.prototype._toCoordinateY=function($){return Math.floor($/this._width)*this._config.scaledCharHeight},X.prototype._drawFromCache=function($,V,Q,te){if(!V.isEmpty){var be=this._toCoordinateX(V.index),pe=this._toCoordinateY(V.index);$.drawImage(V.inBitmap?this._bitmap:this._cacheCanvas,be,pe,this._config.scaledCharWidth,this._config.scaledCharHeight,Q,te,this._config.scaledCharWidth,this._config.scaledCharHeight)}},X.prototype._getColorFromAnsiIndex=function($){return $<this._config.colors.ansi.length?this._config.colors.ansi[$]:H.DEFAULT_ANSI_COLORS[$]},X.prototype._getBackgroundColor=function($){return this._config.allowTransparency?b:$.bg===T.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:$.bg<256?this._getColorFromAnsiIndex($.bg):this._config.colors.background},X.prototype._getForegroundColor=function($){return $.fg===T.INVERTED_DEFAULT_COLOR?w.color.opaque(this._config.colors.background):$.fg<256?this._getColorFromAnsiIndex($.fg):this._config.colors.foreground},X.prototype._drawToCache=function($,V){this._drawToCacheCount++,this._tmpCtx.save();var Q=this._getBackgroundColor($);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=Q.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var te=$.bold?this._config.fontWeightBold:this._config.fontWeight,be=$.italic?"italic":"";this._tmpCtx.font=be+" "+te+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=T.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor($).css,$.dim&&(this._tmpCtx.globalAlpha=T.DIM_OPACITY),this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight);var pe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),fe=!1;if(this._config.allowTransparency||(fe=N(pe,Q)),fe&&"_"===$.chars&&!this._config.allowTransparency)for(var ue=1;ue<=5&&(this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight-ue),fe=N(pe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),Q));ue++);this._tmpCtx.restore();var de=this._toCoordinateX(V),ge=this._toCoordinateY(V);this._cacheCtx.putImageData(pe,de,ge);var He={index:V,isEmpty:fe,inBitmap:!1};return this._addGlyphToBitmap(He),He},X.prototype._addGlyphToBitmap=function($){var V=this;!("createImageBitmap"in window)||v.isFirefox||v.isSafari||(this._glyphsWaitingOnBitmap.push($),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return V._generateBitmap()},100)))},X.prototype._generateBitmap=function(){var $=this,V=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(Q){$._bitmap=Q;for(var te=0;te<V.length;te++)V[te].inBitmap=!0}),this._bitmapCommitTimeout=null},X}(E.BaseCharAtlas);A.DynamicCharAtlas=k;var M=function(F){function X($,V){return F.call(this)||this}return P(X,F),X.prototype.draw=function($,V,Q,te){return!1},X}(E.BaseCharAtlas);function N(F,X){for(var $=!0,V=X.rgba>>>24,Q=X.rgba>>>16&255,te=X.rgba>>>8&255,be=0;be<F.data.length;be+=4)F.data[be]===V&&F.data[be+1]===Q&&F.data[be+2]===te?F.data[be+3]=0:$=!1;return $}A.NoneCharAtlas=M},7001:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.LRUMap=void 0;var j=function(){function I(P){this.capacity=P,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return I.prototype._unlinkNode=function(P){var T=P.prev,E=P.next;P===this._head&&(this._head=E),P===this._tail&&(this._tail=T),null!==T&&(T.next=E),null!==E&&(E.prev=T)},I.prototype._appendNode=function(P){var T=this._tail;null!==T&&(T.next=P),P.prev=T,P.next=null,this._tail=P,null===this._head&&(this._head=P)},I.prototype.prealloc=function(P){for(var T=this._nodePool,E=0;E<P;E++)T.push({prev:null,next:null,key:null,value:null})},I.prototype.get=function(P){var T=this._map[P];return void 0!==T?(this._unlinkNode(T),this._appendNode(T),T.value):null},I.prototype.peekValue=function(P){var T=this._map[P];return void 0!==T?T.value:null},I.prototype.peek=function(){var P=this._head;return null===P?null:P.value},I.prototype.set=function(P,T){var E=this._map[P];if(void 0!==E)E=this._map[P],this._unlinkNode(E),E.value=T;else if(this.size>=this.capacity)E=this._head,this._unlinkNode(E),delete this._map[E.key],E.key=P,E.value=T,this._map[P]=E;else{var H=this._nodePool;H.length>0?((E=H.pop()).key=P,E.value=T):E={prev:null,next:null,key:P,value:T},this._map[P]=E,this.size++}this._appendNode(E)},I}();A.LRUMap=j},1296:function(W,A,j){var I,P=this&&this.__extends||(I=function(Q,te){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,pe){be.__proto__=pe}||function(be,pe){for(var fe in pe)Object.prototype.hasOwnProperty.call(pe,fe)&&(be[fe]=pe[fe])})(Q,te)},function(V,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function te(){this.constructor=V}I(V,Q),V.prototype=null===Q?Object.create(Q):(te.prototype=Q.prototype,new te)}),T=this&&this.__decorate||function(V,Q,te,be){var pe,fe=arguments.length,ue=fe<3?Q:null===be?be=Object.getOwnPropertyDescriptor(Q,te):be;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ue=Reflect.decorate(V,Q,te,be);else for(var de=V.length-1;de>=0;de--)(pe=V[de])&&(ue=(fe<3?pe(ue):fe>3?pe(Q,te,ue):pe(Q,te))||ue);return fe>3&&ue&&Object.defineProperty(Q,te,ue),ue},E=this&&this.__param||function(V,Q){return function(te,be){Q(te,be,V)}},H=this&&this.__values||function(V){var Q="function"==typeof Symbol&&Symbol.iterator,te=Q&&V[Q],be=0;if(te)return te.call(V);if(V&&"number"==typeof V.length)return{next:function(){return V&&be>=V.length&&(V=void 0),{value:V&&V[be++],done:!V}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRenderer=void 0;var R=j(3787),v=j(8803),x=j(844),w=j(4725),Z=j(2585),D=j(8460),b=j(8055),S=j(9631),k="xterm-dom-renderer-owner-",M="xterm-fg-",N="xterm-bg-",F="xterm-focus",X=1,$=function(V){function Q(te,be,pe,fe,ue,de,ge,He,ot,St){var Tt=V.call(this)||this;return Tt._colors=te,Tt._element=be,Tt._screenElement=pe,Tt._viewportElement=fe,Tt._linkifier=ue,Tt._linkifier2=de,Tt._charSizeService=He,Tt._optionsService=ot,Tt._bufferService=St,Tt._terminalClass=X++,Tt._rowElements=[],Tt._rowContainer=document.createElement("div"),Tt._rowContainer.classList.add("xterm-rows"),Tt._rowContainer.style.lineHeight="normal",Tt._rowContainer.setAttribute("aria-hidden","true"),Tt._refreshRowElements(Tt._bufferService.cols,Tt._bufferService.rows),Tt._selectionContainer=document.createElement("div"),Tt._selectionContainer.classList.add("xterm-selection"),Tt._selectionContainer.setAttribute("aria-hidden","true"),Tt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Tt._updateDimensions(),Tt._injectCss(),Tt._rowFactory=ge.createInstance(R.DomRendererRowFactory,document,Tt._colors),Tt._element.classList.add(k+Tt._terminalClass),Tt._screenElement.appendChild(Tt._rowContainer),Tt._screenElement.appendChild(Tt._selectionContainer),Tt.register(Tt._linkifier.onShowLinkUnderline(function(Dt){return Tt._onLinkHover(Dt)})),Tt.register(Tt._linkifier.onHideLinkUnderline(function(Dt){return Tt._onLinkLeave(Dt)})),Tt.register(Tt._linkifier2.onShowLinkUnderline(function(Dt){return Tt._onLinkHover(Dt)})),Tt.register(Tt._linkifier2.onHideLinkUnderline(function(Dt){return Tt._onLinkLeave(Dt)})),Tt}return P(Q,V),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return(new D.EventEmitter).event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._element.classList.remove(k+this._terminalClass),(0,S.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),V.prototype.dispose.call(this)},Q.prototype._updateDimensions=function(){var te,be;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var pe=H(this._rowElements),fe=pe.next();!fe.done;fe=pe.next()){var ue=fe.value;ue.style.width=this.dimensions.canvasWidth+"px",ue.style.height=this.dimensions.actualCellHeight+"px",ue.style.lineHeight=this.dimensions.actualCellHeight+"px",ue.style.overflow="hidden"}}catch(ge){te={error:ge}}finally{try{fe&&!fe.done&&(be=pe.return)&&be.call(pe)}finally{if(te)throw te.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var de=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=de,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},Q.prototype.setColors=function(te){this._colors=te,this._injectCss()},Q.prototype._injectCss=function(){var te=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var be=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";be+=this._terminalSelector+" span:not(."+R.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+R.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+R.ITALIC_CLASS+" { font-style: italic;}",be+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",be+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",be+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+R.CURSOR_CLASS+"."+R.CURSOR_BLINK_CLASS+":not(."+R.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+R.CURSOR_CLASS+"."+R.CURSOR_BLINK_CLASS+"."+R.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",be+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(pe,fe){be+=te._terminalSelector+" ."+M+fe+" { color: "+pe.css+"; }"+te._terminalSelector+" ."+N+fe+" { background-color: "+pe.css+"; }"}),be+=this._terminalSelector+" ."+M+v.INVERTED_DEFAULT_COLOR+" { color: "+b.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+N+v.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=be},Q.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},Q.prototype._refreshRowElements=function(te,be){for(var pe=this._rowElements.length;pe<=be;pe++){var fe=document.createElement("div");this._rowContainer.appendChild(fe),this._rowElements.push(fe)}for(;this._rowElements.length>be;)this._rowContainer.removeChild(this._rowElements.pop())},Q.prototype.onResize=function(te,be){this._refreshRowElements(te,be),this._updateDimensions()},Q.prototype.onCharSizeChanged=function(){this._updateDimensions()},Q.prototype.onBlur=function(){this._rowContainer.classList.remove(F)},Q.prototype.onFocus=function(){this._rowContainer.classList.add(F)},Q.prototype.onSelectionChanged=function(te,be,pe){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(te,be,pe),this.renderRows(0,this._bufferService.rows-1),te&&be){var fe=te[1]-this._bufferService.buffer.ydisp,ue=be[1]-this._bufferService.buffer.ydisp,de=Math.max(fe,0),ge=Math.min(ue,this._bufferService.rows-1);if(!(de>=this._bufferService.rows||ge<0)){var He=document.createDocumentFragment();if(pe){var ot=te[0]>be[0];He.appendChild(this._createSelectionElement(de,ot?be[0]:te[0],ot?te[0]:be[0],ge-de+1))}else{var St=fe===de?te[0]:0,Tt=de===ue?be[0]:this._bufferService.cols;He.appendChild(this._createSelectionElement(de,St,Tt));var Dt=ge-de-1;if(He.appendChild(this._createSelectionElement(de+1,0,this._bufferService.cols,Dt)),de!==ge){var Rt=ue===ge?be[0]:this._bufferService.cols;He.appendChild(this._createSelectionElement(ge,0,Rt))}}this._selectionContainer.appendChild(He)}}},Q.prototype._createSelectionElement=function(te,be,pe,fe){void 0===fe&&(fe=1);var ue=document.createElement("div");return ue.style.height=fe*this.dimensions.actualCellHeight+"px",ue.style.top=te*this.dimensions.actualCellHeight+"px",ue.style.left=be*this.dimensions.actualCellWidth+"px",ue.style.width=this.dimensions.actualCellWidth*(pe-be)+"px",ue},Q.prototype.onCursorMove=function(){},Q.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},Q.prototype.clear=function(){var te,be;try{for(var pe=H(this._rowElements),fe=pe.next();!fe.done;fe=pe.next())fe.value.innerText=""}catch(ue){te={error:ue}}finally{try{fe&&!fe.done&&(be=pe.return)&&be.call(pe)}finally{if(te)throw te.error}}},Q.prototype.renderRows=function(te,be){for(var pe=this._bufferService.buffer.ybase+this._bufferService.buffer.y,fe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ue=this._optionsService.rawOptions.cursorBlink,de=te;de<=be;de++){var ge=this._rowElements[de];ge.innerText="";var He=de+this._bufferService.buffer.ydisp,ot=this._bufferService.buffer.lines.get(He),St=this._optionsService.rawOptions.cursorStyle;ge.appendChild(this._rowFactory.createRow(ot,He,He===pe,St,fe,ue,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(Q.prototype,"_terminalSelector",{get:function(){return"."+k+this._terminalClass},enumerable:!1,configurable:!0}),Q.prototype._onLinkHover=function(te){this._setCellUnderline(te.x1,te.x2,te.y1,te.y2,te.cols,!0)},Q.prototype._onLinkLeave=function(te){this._setCellUnderline(te.x1,te.x2,te.y1,te.y2,te.cols,!1)},Q.prototype._setCellUnderline=function(te,be,pe,fe,ue,de){for(;te!==be||pe!==fe;){var ge=this._rowElements[pe];if(!ge)return;var He=ge.children[te];He&&(He.style.textDecoration=de?"underline":"none"),++te>=ue&&(te=0,pe++)}},T([E(6,Z.IInstantiationService),E(7,w.ICharSizeService),E(8,Z.IOptionsService),E(9,Z.IBufferService)],Q)}(x.Disposable);A.DomRenderer=$},3787:function(W,A,j){var I=this&&this.__decorate||function(k,M,N,F){var X,$=arguments.length,V=$<3?M:null===F?F=Object.getOwnPropertyDescriptor(M,N):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)V=Reflect.decorate(k,M,N,F);else for(var Q=k.length-1;Q>=0;Q--)(X=k[Q])&&(V=($<3?X(V):$>3?X(M,N,V):X(M,N))||V);return $>3&&V&&Object.defineProperty(M,N,V),V},P=this&&this.__param||function(k,M){return function(N,F){M(N,F,k)}},T=this&&this.__values||function(k){var M="function"==typeof Symbol&&Symbol.iterator,N=M&&k[M],F=0;if(N)return N.call(k);if(k&&"number"==typeof k.length)return{next:function(){return k&&F>=k.length&&(k=void 0),{value:k&&k[F++],done:!k}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRendererRowFactory=A.CURSOR_STYLE_UNDERLINE_CLASS=A.CURSOR_STYLE_BAR_CLASS=A.CURSOR_STYLE_BLOCK_CLASS=A.CURSOR_BLINK_CLASS=A.CURSOR_CLASS=A.STRIKETHROUGH_CLASS=A.UNDERLINE_CLASS=A.ITALIC_CLASS=A.DIM_CLASS=A.BOLD_CLASS=void 0;var E=j(8803),H=j(643),R=j(511),v=j(2585),x=j(8055),w=j(4725),Z=j(4269),D=j(1752);A.BOLD_CLASS="xterm-bold",A.DIM_CLASS="xterm-dim",A.ITALIC_CLASS="xterm-italic",A.UNDERLINE_CLASS="xterm-underline",A.STRIKETHROUGH_CLASS="xterm-strikethrough",A.CURSOR_CLASS="xterm-cursor",A.CURSOR_BLINK_CLASS="xterm-cursor-blink",A.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",A.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",A.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var b=function(){function k(M,N,F,X,$,V){this._document=M,this._colors=N,this._characterJoinerService=F,this._optionsService=X,this._coreService=$,this._decorationService=V,this._workCell=new R.CellData,this._columnSelectMode=!1}return k.prototype.setColors=function(M){this._colors=M},k.prototype.onSelectionChanged=function(M,N,F){this._selectionStart=M,this._selectionEnd=N,this._columnSelectMode=F},k.prototype.createRow=function(M,N,F,X,$,V,Q,te){for(var be,pe,fe=this._document.createDocumentFragment(),ue=this._characterJoinerService.getJoinedCharacters(N),de=0,ge=Math.min(M.length,te)-1;ge>=0;ge--)if(M.loadCell(ge,this._workCell).getCode()!==H.NULL_CELL_CODE||F&&ge===$){de=ge+1;break}for(ge=0;ge<de;ge++){M.loadCell(ge,this._workCell);var He=this._workCell.getWidth();if(0!==He){var ot=!1,St=ge,Tt=this._workCell;if(ue.length>0&&ge===ue[0][0]){ot=!0;var Dt=ue.shift();Tt=new Z.JoinedCellData(this._workCell,M.translateToString(!0,Dt[0],Dt[1]),Dt[1]-Dt[0]),St=Dt[1]-1,He=Tt.getWidth()}var Rt=this._document.createElement("span");if(He>1&&(Rt.style.width=Q*He+"px"),ot&&(Rt.style.display="inline",$>=ge&&$<=St&&($=ge)),!this._coreService.isCursorHidden&&F&&ge===$)switch(Rt.classList.add(A.CURSOR_CLASS),V&&Rt.classList.add(A.CURSOR_BLINK_CLASS),X){case"bar":Rt.classList.add(A.CURSOR_STYLE_BAR_CLASS);break;case"underline":Rt.classList.add(A.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Rt.classList.add(A.CURSOR_STYLE_BLOCK_CLASS)}Tt.isBold()&&Rt.classList.add(A.BOLD_CLASS),Tt.isItalic()&&Rt.classList.add(A.ITALIC_CLASS),Tt.isDim()&&Rt.classList.add(A.DIM_CLASS),Tt.isUnderline()&&Rt.classList.add(A.UNDERLINE_CLASS),Tt.isInvisible()?Rt.textContent=H.WHITESPACE_CELL_CHAR:Rt.textContent=Tt.getChars()||H.WHITESPACE_CELL_CHAR,Tt.isStrikethrough()&&Rt.classList.add(A.STRIKETHROUGH_CLASS);var Ze=Tt.getFgColor(),$t=Tt.getFgColorMode(),Ft=Tt.getBgColor(),pn=Tt.getBgColorMode(),rt=!!Tt.isInverse();if(rt){var Ot=Ze;Ze=Ft,Ft=Ot;var _t=$t;$t=pn,pn=_t}var Ct=void 0,Ve=void 0,at=!1;try{for(var ht=(be=void 0,T(this._decorationService.getDecorationsAtCell(ge,N))),Ut=ht.next();!Ut.done;Ut=ht.next()){var Wt=Ut.value;"top"!==Wt.options.layer&&at||(Wt.backgroundColorRGB&&(pn=50331648,Ft=Wt.backgroundColorRGB.rgba>>8&16777215,Ct=Wt.backgroundColorRGB),Wt.foregroundColorRGB&&($t=50331648,Ze=Wt.foregroundColorRGB.rgba>>8&16777215,Ve=Wt.foregroundColorRGB),at="top"===Wt.options.layer)}}catch(Be){be={error:Be}}finally{try{Ut&&!Ut.done&&(pe=ht.return)&&pe.call(ht)}finally{if(be)throw be.error}}var U=this._isCellInSelection(ge,N);at||this._colors.selectionForeground&&U&&($t=50331648,Ze=this._colors.selectionForeground.rgba>>8&16777215,Ve=this._colors.selectionForeground),U&&(Ct=this._colors.selectionOpaque,at=!0),at&&Rt.classList.add("xterm-decoration-top");var B=void 0;switch(pn){case 16777216:case 33554432:B=this._colors.ansi[Ft],Rt.classList.add("xterm-bg-"+Ft);break;case 50331648:B=x.rgba.toColor(Ft>>16,Ft>>8&255,255&Ft),this._addStyle(Rt,"background-color:#"+S((Ft>>>0).toString(16),"0",6));break;default:rt?(B=this._colors.foreground,Rt.classList.add("xterm-bg-"+E.INVERTED_DEFAULT_COLOR)):B=this._colors.background}switch($t){case 16777216:case 33554432:Tt.isBold()&&Ze<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ze+=8),this._applyMinimumContrast(Rt,B,this._colors.ansi[Ze],Tt,Ct,void 0)||Rt.classList.add("xterm-fg-"+Ze);break;case 50331648:var qe=x.rgba.toColor(Ze>>16&255,Ze>>8&255,255&Ze);this._applyMinimumContrast(Rt,B,qe,Tt,Ct,Ve)||this._addStyle(Rt,"color:#"+S(Ze.toString(16),"0",6));break;default:this._applyMinimumContrast(Rt,B,this._colors.foreground,Tt,Ct,void 0)||rt&&Rt.classList.add("xterm-fg-"+E.INVERTED_DEFAULT_COLOR)}fe.appendChild(Rt),ge=St}}return fe},k.prototype._applyMinimumContrast=function(M,N,F,X,$,V){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,D.excludeFromContrastRatioDemands)(X.getCode()))return!1;var Q=void 0;return $||V||(Q=this._colors.contrastCache.getColor(N.rgba,F.rgba)),void 0===Q&&(Q=x.color.ensureContrastRatio($||N,V||F,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(($||N).rgba,(V||F).rgba,null!=Q?Q:null)),!!Q&&(this._addStyle(M,"color:"+Q.css),!0)},k.prototype._addStyle=function(M,N){M.setAttribute("style",""+(M.getAttribute("style")||"")+N+";")},k.prototype._isCellInSelection=function(M,N){var F=this._selectionStart,X=this._selectionEnd;return!(!F||!X)&&(this._columnSelectMode?F[0]<=X[0]?M>=F[0]&&N>=F[1]&&M<X[0]&&N<=X[1]:M<F[0]&&N>=F[1]&&M>=X[0]&&N<=X[1]:N>F[1]&&N<X[1]||F[1]===X[1]&&N===F[1]&&M>=F[0]&&M<X[0]||F[1]<X[1]&&N===X[1]&&M<X[0]||F[1]<X[1]&&N===F[1]&&M>=F[0])},I([P(2,w.ICharacterJoinerService),P(3,v.IOptionsService),P(4,v.ICoreService),P(5,v.IDecorationService)],k)}();function S(k,M,N){for(;k.length<N;)k=M+k;return k}A.DomRendererRowFactory=b},456:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionModel=void 0;var j=function(){function I(P){this._bufferService=P,this.isSelectAllActive=!1,this.selectionStartLength=0}return I.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(I.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(T=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?T%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(T/this._bufferService.cols)-1]:[T%this._bufferService.cols,this.selectionStart[1]+Math.floor(T/this._bufferService.cols)]:[T,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(T=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[T%this._bufferService.cols,this.selectionStart[1]+Math.floor(T/this._bufferService.cols)]:[Math.max(T,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var T},enumerable:!1,configurable:!0}),I.prototype.areSelectionValuesReversed=function(){var P=this.selectionStart,T=this.selectionEnd;return!(!P||!T)&&(P[1]>T[1]||P[1]===T[1]&&P[0]>T[0])},I.prototype.onTrim=function(P){return this.selectionStart&&(this.selectionStart[1]-=P),this.selectionEnd&&(this.selectionEnd[1]-=P),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},I}();A.SelectionModel=j},428:function(W,A,j){var I=this&&this.__decorate||function(v,x,w,Z){var D,b=arguments.length,S=b<3?x:null===Z?Z=Object.getOwnPropertyDescriptor(x,w):Z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(v,x,w,Z);else for(var k=v.length-1;k>=0;k--)(D=v[k])&&(S=(b<3?D(S):b>3?D(x,w,S):D(x,w))||S);return b>3&&S&&Object.defineProperty(x,w,S),S},P=this&&this.__param||function(v,x){return function(w,Z){x(w,Z,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharSizeService=void 0;var T=j(2585),E=j(8460),H=function(){function v(x,w,Z){this._optionsService=Z,this.width=0,this.height=0,this._onCharSizeChange=new E.EventEmitter,this._measureStrategy=new R(x,w,this._optionsService)}return Object.defineProperty(v.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),v.prototype.measure=function(){var x=this._measureStrategy.measure();x.width===this.width&&x.height===this.height||(this.width=x.width,this.height=x.height,this._onCharSizeChange.fire())},I([P(2,T.IOptionsService)],v)}();A.CharSizeService=H;var R=function(){function v(x,w,Z){this._document=x,this._parentElement=w,this._optionsService=Z,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return v.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var x=this._measureElement.getBoundingClientRect();return 0!==x.width&&0!==x.height&&(this._result.width=x.width,this._result.height=Math.ceil(x.height)),this._result},v}()},4269:function(W,A,j){var I,P=this&&this.__extends||(I=function(b,S){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}I(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)}),T=this&&this.__decorate||function(D,b,S,k){var M,N=arguments.length,F=N<3?b:null===k?k=Object.getOwnPropertyDescriptor(b,S):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(D,b,S,k);else for(var X=D.length-1;X>=0;X--)(M=D[X])&&(F=(N<3?M(F):N>3?M(b,S,F):M(b,S))||F);return N>3&&F&&Object.defineProperty(b,S,F),F},E=this&&this.__param||function(D,b){return function(S,k){b(S,k,D)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharacterJoinerService=A.JoinedCellData=void 0;var H=j(3734),R=j(643),v=j(511),x=j(2585),w=function(D){function b(S,k,M){var N=D.call(this)||this;return N.content=0,N.combinedData="",N.fg=S.fg,N.bg=S.bg,N.combinedData=k,N._width=M,N}return P(b,D),b.prototype.isCombined=function(){return 2097152},b.prototype.getWidth=function(){return this._width},b.prototype.getChars=function(){return this.combinedData},b.prototype.getCode=function(){return 2097151},b.prototype.setFromCharData=function(S){throw new Error("not implemented")},b.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},b}(H.AttributeData);A.JoinedCellData=w;var Z=function(){function D(b){this._bufferService=b,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return D.prototype.register=function(b){var S={id:this._nextCharacterJoinerId++,handler:b};return this._characterJoiners.push(S),S.id},D.prototype.deregister=function(b){for(var S=0;S<this._characterJoiners.length;S++)if(this._characterJoiners[S].id===b)return this._characterJoiners.splice(S,1),!0;return!1},D.prototype.getJoinedCharacters=function(b){if(0===this._characterJoiners.length)return[];var S=this._bufferService.buffer.lines.get(b);if(!S||0===S.length)return[];for(var k=[],M=S.translateToString(!0),N=0,F=0,X=0,$=S.getFg(0),V=S.getBg(0),Q=0;Q<S.getTrimmedLength();Q++)if(S.loadCell(Q,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==$||this._workCell.bg!==V){if(Q-N>1)for(var te=this._getJoinedRanges(M,X,F,S,N),be=0;be<te.length;be++)k.push(te[be]);N=Q,X=F,$=this._workCell.fg,V=this._workCell.bg}F+=this._workCell.getChars().length||R.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-N>1)for(te=this._getJoinedRanges(M,X,F,S,N),be=0;be<te.length;be++)k.push(te[be]);return k},D.prototype._getJoinedRanges=function(b,S,k,M,N){var F=b.substring(S,k),X=[];try{X=this._characterJoiners[0].handler(F)}catch(te){console.error(te)}for(var $=1;$<this._characterJoiners.length;$++)try{for(var V=this._characterJoiners[$].handler(F),Q=0;Q<V.length;Q++)D._mergeRanges(X,V[Q])}catch(te){console.error(te)}return this._stringRangesToCellRanges(X,M,N),X},D.prototype._stringRangesToCellRanges=function(b,S,k){var M=0,N=!1,F=0,X=b[M];if(X){for(var $=k;$<this._bufferService.cols;$++){var V=S.getWidth($),Q=S.getString($).length||R.WHITESPACE_CELL_CHAR.length;if(0!==V){if(!N&&X[0]<=F&&(X[0]=$,N=!0),X[1]<=F){if(X[1]=$,!(X=b[++M]))break;X[0]<=F?(X[0]=$,N=!0):N=!1}F+=Q}}X&&(X[1]=this._bufferService.cols)}},D._mergeRanges=function(b,S){for(var k=!1,M=0;M<b.length;M++){var N=b[M];if(k){if(S[1]<=N[0])return b[M-1][1]=S[1],b;if(S[1]<=N[1])return b[M-1][1]=Math.max(S[1],N[1]),b.splice(M,1),b;b.splice(M,1),M--}else{if(S[1]<=N[0])return b.splice(M,0,S),b;if(S[1]<=N[1])return N[0]=Math.min(S[0],N[0]),b;S[0]<N[1]&&(N[0]=Math.min(S[0],N[0]),k=!0)}}return k?b[b.length-1][1]=S[1]:b.push(S),b},D=T([E(0,x.IBufferService)],D)}();A.CharacterJoinerService=Z},5114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CoreBrowserService=void 0;var j=function(){function I(P){this._textarea=P}return Object.defineProperty(I.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),I}();A.CoreBrowserService=j},8934:function(W,A,j){var I=this&&this.__decorate||function(R,v,x,w){var Z,D=arguments.length,b=D<3?v:null===w?w=Object.getOwnPropertyDescriptor(v,x):w;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(R,v,x,w);else for(var S=R.length-1;S>=0;S--)(Z=R[S])&&(b=(D<3?Z(b):D>3?Z(v,x,b):Z(v,x))||b);return D>3&&b&&Object.defineProperty(v,x,b),b},P=this&&this.__param||function(R,v){return function(x,w){v(x,w,R)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseService=void 0;var T=j(4725),E=j(9806),H=function(){function R(v,x){this._renderService=v,this._charSizeService=x}return R.prototype.getCoords=function(v,x,w,Z,D){return(0,E.getCoords)(window,v,x,w,Z,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,D)},R.prototype.getRawByteCoords=function(v,x,w,Z){var D=this.getCoords(v,x,w,Z);return(0,E.getRawByteCoords)(D)},I([P(0,T.IRenderService),P(1,T.ICharSizeService)],R)}();A.MouseService=H},3230:function(W,A,j){var I,P=this&&this.__extends||(I=function(k,M){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,F){N.__proto__=F}||function(N,F){for(var X in F)Object.prototype.hasOwnProperty.call(F,X)&&(N[X]=F[X])})(k,M)},function(S,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function M(){this.constructor=S}I(S,k),S.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)}),T=this&&this.__decorate||function(S,k,M,N){var F,X=arguments.length,$=X<3?k:null===N?N=Object.getOwnPropertyDescriptor(k,M):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(S,k,M,N);else for(var V=S.length-1;V>=0;V--)(F=S[V])&&($=(X<3?F($):X>3?F(k,M,$):F(k,M))||$);return X>3&&$&&Object.defineProperty(k,M,$),$},E=this&&this.__param||function(S,k){return function(M,N){k(M,N,S)}};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderService=void 0;var H=j(6193),R=j(8460),v=j(844),x=j(5596),w=j(3656),Z=j(2585),D=j(4725),b=function(S){function k(M,N,F,X,$,V,Q){var te=S.call(this)||this;if(te._renderer=M,te._rowCount=N,te._charSizeService=$,te._isPaused=!1,te._needsFullRefresh=!1,te._isNextRenderRedrawOnly=!0,te._needsSelectionRefresh=!1,te._canvasWidth=0,te._canvasHeight=0,te._selectionState={start:void 0,end:void 0,columnSelectMode:!1},te._onDimensionsChange=new R.EventEmitter,te._onRenderedViewportChange=new R.EventEmitter,te._onRender=new R.EventEmitter,te._onRefreshRequest=new R.EventEmitter,te.register({dispose:function(){return te._renderer.dispose()}}),te._renderDebouncer=new H.RenderDebouncer(function(pe,fe){return te._renderRows(pe,fe)}),te.register(te._renderDebouncer),te._screenDprMonitor=new x.ScreenDprMonitor,te._screenDprMonitor.setListener(function(){return te.onDevicePixelRatioChange()}),te.register(te._screenDprMonitor),te.register(Q.onResize(function(){return te._fullRefresh()})),te.register(Q.buffers.onBufferActivate(function(){var pe;return null===(pe=te._renderer)||void 0===pe?void 0:pe.clear()})),te.register(X.onOptionChange(function(){return te._handleOptionsChanged()})),te.register(te._charSizeService.onCharSizeChange(function(){return te.onCharSizeChanged()})),te.register(V.onDecorationRegistered(function(){return te._fullRefresh()})),te.register(V.onDecorationRemoved(function(){return te._fullRefresh()})),te._renderer.onRequestRedraw(function(pe){return te.refreshRows(pe.start,pe.end,!0)}),te.register((0,w.addDisposableDomListener)(window,"resize",function(){return te.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var be=new IntersectionObserver(function(pe){return te._onIntersectionChange(pe[pe.length-1])},{threshold:0});be.observe(F),te.register({dispose:function(){return be.disconnect()}})}return te}return P(k,S),Object.defineProperty(k.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),k.prototype._onIntersectionChange=function(M){this._isPaused=void 0===M.isIntersecting?0===M.intersectionRatio:!M.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},k.prototype.refreshRows=function(M,N,F){void 0===F&&(F=!1),this._isPaused?this._needsFullRefresh=!0:(F||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(M,N,this._rowCount))},k.prototype._renderRows=function(M,N){this._renderer.renderRows(M,N),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:M,end:N}),this._onRender.fire({start:M,end:N}),this._isNextRenderRedrawOnly=!0},k.prototype.resize=function(M,N){this._rowCount=N,this._fireOnCanvasResize()},k.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},k.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},k.prototype.dispose=function(){S.prototype.dispose.call(this)},k.prototype.setRenderer=function(M){var N=this;this._renderer.dispose(),this._renderer=M,this._renderer.onRequestRedraw(function(F){return N.refreshRows(F.start,F.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},k.prototype.addRefreshCallback=function(M){return this._renderDebouncer.addRefreshCallback(M)},k.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},k.prototype.clearTextureAtlas=function(){var M,N;null===(N=null===(M=this._renderer)||void 0===M?void 0:M.clearTextureAtlas)||void 0===N||N.call(M),this._fullRefresh()},k.prototype.setColors=function(M){this._renderer.setColors(M),this._fullRefresh()},k.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},k.prototype.onResize=function(M,N){this._renderer.onResize(M,N),this._fullRefresh()},k.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},k.prototype.onBlur=function(){this._renderer.onBlur()},k.prototype.onFocus=function(){this._renderer.onFocus()},k.prototype.onSelectionChanged=function(M,N,F){this._selectionState.start=M,this._selectionState.end=N,this._selectionState.columnSelectMode=F,this._renderer.onSelectionChanged(M,N,F)},k.prototype.onCursorMove=function(){this._renderer.onCursorMove()},k.prototype.clear=function(){this._renderer.clear()},T([E(3,Z.IOptionsService),E(4,D.ICharSizeService),E(5,Z.IDecorationService),E(6,Z.IBufferService)],k)}(v.Disposable);A.RenderService=b},9312:function(W,A,j){var I,P=this&&this.__extends||(I=function($,V){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,te){Q.__proto__=te}||function(Q,te){for(var be in te)Object.prototype.hasOwnProperty.call(te,be)&&(Q[be]=te[be])})($,V)},function(X,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function V(){this.constructor=X}I(X,$),X.prototype=null===$?Object.create($):(V.prototype=$.prototype,new V)}),T=this&&this.__decorate||function(X,$,V,Q){var te,be=arguments.length,pe=be<3?$:null===Q?Q=Object.getOwnPropertyDescriptor($,V):Q;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)pe=Reflect.decorate(X,$,V,Q);else for(var fe=X.length-1;fe>=0;fe--)(te=X[fe])&&(pe=(be<3?te(pe):be>3?te($,V,pe):te($,V))||pe);return be>3&&pe&&Object.defineProperty($,V,pe),pe},E=this&&this.__param||function(X,$){return function(V,Q){$(V,Q,X)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionService=void 0;var H=j(6114),R=j(456),v=j(511),x=j(8460),w=j(4725),Z=j(2585),D=j(9806),b=j(9504),S=j(844),k=j(4841),M=String.fromCharCode(160),N=new RegExp(M,"g"),F=function(X){function $(V,Q,te,be,pe,fe,ue,de){var ge=X.call(this)||this;return ge._element=V,ge._screenElement=Q,ge._linkifier=te,ge._bufferService=be,ge._coreService=pe,ge._mouseService=fe,ge._optionsService=ue,ge._renderService=de,ge._dragScrollAmount=0,ge._enabled=!0,ge._workCell=new v.CellData,ge._mouseDownTimeStamp=0,ge._oldHasSelection=!1,ge._oldSelectionStart=void 0,ge._oldSelectionEnd=void 0,ge._onLinuxMouseSelection=ge.register(new x.EventEmitter),ge._onRedrawRequest=ge.register(new x.EventEmitter),ge._onSelectionChange=ge.register(new x.EventEmitter),ge._onRequestScrollLines=ge.register(new x.EventEmitter),ge._mouseMoveListener=function(He){return ge._onMouseMove(He)},ge._mouseUpListener=function(He){return ge._onMouseUp(He)},ge._coreService.onUserInput(function(){ge.hasSelection&&ge.clearSelection()}),ge._trimListener=ge._bufferService.buffer.lines.onTrim(function(He){return ge._onTrim(He)}),ge.register(ge._bufferService.buffers.onBufferActivate(function(He){return ge._onBufferActivate(He)})),ge.enable(),ge._model=new R.SelectionModel(ge._bufferService),ge._activeSelectionMode=0,ge}return P($,X),Object.defineProperty($.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){this._removeMouseDownListeners()},$.prototype.reset=function(){this.clearSelection()},$.prototype.disable=function(){this.clearSelection(),this._enabled=!1},$.prototype.enable=function(){this._enabled=!0},Object.defineProperty($.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"hasSelection",{get:function(){var Q=this._model.finalSelectionStart,te=this._model.finalSelectionEnd;return!(!Q||!te||Q[0]===te[0]&&Q[1]===te[1])},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionText",{get:function(){var Q=this._model.finalSelectionStart,te=this._model.finalSelectionEnd;if(!Q||!te)return"";var be=this._bufferService.buffer,pe=[];if(3===this._activeSelectionMode){if(Q[0]===te[0])return"";for(var fe=Q[0]<te[0]?Q[0]:te[0],ue=Q[0]<te[0]?te[0]:Q[0],de=Q[1];de<=te[1];de++){var ge=be.translateBufferLineToString(de,!0,fe,ue);pe.push(ge)}}else{var He=Q[1]===te[1]?te[0]:void 0;for(pe.push(be.translateBufferLineToString(Q[1],!0,Q[0],He)),de=Q[1]+1;de<=te[1]-1;de++){var ot=be.lines.get(de);ge=be.translateBufferLineToString(de,!0),null!=ot&&ot.isWrapped?pe[pe.length-1]+=ge:pe.push(ge)}Q[1]!==te[1]&&(ot=be.lines.get(te[1]),ge=be.translateBufferLineToString(te[1],!0,0,te[0]),ot&&ot.isWrapped?pe[pe.length-1]+=ge:pe.push(ge))}return pe.map(function(St){return St.replace(N," ")}).join(H.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),$.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},$.prototype.refresh=function(V){var Q=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return Q._refresh()})),H.isLinux&&V&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},$.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},$.prototype._isClickInSelection=function(V){var Q=this._getMouseBufferCoords(V),te=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!!(te&&be&&Q)&&this._areCoordsInSelection(Q,te,be)},$.prototype.isCellInSelection=function(V,Q){var te=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!(!te||!be)&&this._areCoordsInSelection([V,Q],te,be)},$.prototype._areCoordsInSelection=function(V,Q,te){return V[1]>Q[1]&&V[1]<te[1]||Q[1]===te[1]&&V[1]===Q[1]&&V[0]>=Q[0]&&V[0]<te[0]||Q[1]<te[1]&&V[1]===te[1]&&V[0]<te[0]||Q[1]<te[1]&&V[1]===Q[1]&&V[0]>=Q[0]},$.prototype._selectWordAtCursor=function(V,Q){var te,be,pe=null===(be=null===(te=this._linkifier.currentLink)||void 0===te?void 0:te.link)||void 0===be?void 0:be.range;if(pe)return this._model.selectionStart=[pe.start.x-1,pe.start.y-1],this._model.selectionStartLength=(0,k.getRangeLength)(pe,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var fe=this._getMouseBufferCoords(V);return!!fe&&(this._selectWordAt(fe,Q),this._model.selectionEnd=void 0,!0)},$.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},$.prototype.selectLines=function(V,Q){this._model.clearSelection(),V=Math.max(V,0),Q=Math.min(Q,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,V],this._model.selectionEnd=[this._bufferService.cols,Q],this.refresh(),this._onSelectionChange.fire()},$.prototype._onTrim=function(V){this._model.onTrim(V)&&this.refresh()},$.prototype._getMouseBufferCoords=function(V){var Q=this._mouseService.getCoords(V,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(Q)return Q[0]--,Q[1]--,Q[1]+=this._bufferService.buffer.ydisp,Q},$.prototype._getMouseEventScrollAmount=function(V){var Q=(0,D.getCoordsRelativeToElement)(window,V,this._screenElement)[1],te=this._renderService.dimensions.canvasHeight;return Q>=0&&Q<=te?0:(Q>te&&(Q-=te),Q=Math.min(Math.max(Q,-50),50),(Q/=50)/Math.abs(Q)+Math.round(14*Q))},$.prototype.shouldForceSelection=function(V){return H.isMac?V.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:V.shiftKey},$.prototype.onMouseDown=function(V){if(this._mouseDownTimeStamp=V.timeStamp,(2!==V.button||!this.hasSelection)&&0===V.button){if(!this._enabled){if(!this.shouldForceSelection(V))return;V.stopPropagation()}V.preventDefault(),this._dragScrollAmount=0,this._enabled&&V.shiftKey?this._onIncrementalClick(V):1===V.detail?this._onSingleClick(V):2===V.detail?this._onDoubleClick(V):3===V.detail&&this._onTripleClick(V),this._addMouseDownListeners(),this.refresh(!0)}},$.prototype._addMouseDownListeners=function(){var V=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return V._dragScroll()},50)},$.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},$.prototype._onIncrementalClick=function(V){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(V))},$.prototype._onSingleClick=function(V){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(V)?3:0,this._model.selectionStart=this._getMouseBufferCoords(V),this._model.selectionStart){this._model.selectionEnd=void 0;var Q=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);Q&&Q.length!==this._model.selectionStart[0]&&0===Q.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},$.prototype._onDoubleClick=function(V){this._selectWordAtCursor(V,!0)&&(this._activeSelectionMode=1)},$.prototype._onTripleClick=function(V){var Q=this._getMouseBufferCoords(V);Q&&(this._activeSelectionMode=2,this._selectLineAt(Q[1]))},$.prototype.shouldColumnSelect=function(V){return V.altKey&&!(H.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},$.prototype._onMouseMove=function(V){if(V.stopImmediatePropagation(),this._model.selectionStart){var Q=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(V),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(V),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var te=this._bufferService.buffer;if(this._model.selectionEnd[1]<te.lines.length){var be=te.lines.get(this._model.selectionEnd[1]);be&&0===be.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}Q&&Q[0]===this._model.selectionEnd[0]&&Q[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},$.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var V=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(V.ydisp+this._bufferService.rows,V.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=V.ydisp),this.refresh()}},$.prototype._onMouseUp=function(V){var Q=V.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&Q<500&&V.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var te=this._mouseService.getCoords(V,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(te&&void 0!==te[0]&&void 0!==te[1]){var be=(0,b.moveToCellSequence)(te[0]-1,te[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(be,!0)}}}else this._fireEventIfSelectionChanged()},$.prototype._fireEventIfSelectionChanged=function(){var V=this._model.finalSelectionStart,Q=this._model.finalSelectionEnd,te=!(!V||!Q||V[0]===Q[0]&&V[1]===Q[1]);te?V&&Q&&(this._oldSelectionStart&&this._oldSelectionEnd&&V[0]===this._oldSelectionStart[0]&&V[1]===this._oldSelectionStart[1]&&Q[0]===this._oldSelectionEnd[0]&&Q[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(V,Q,te)):this._oldHasSelection&&this._fireOnSelectionChange(V,Q,te)},$.prototype._fireOnSelectionChange=function(V,Q,te){this._oldSelectionStart=V,this._oldSelectionEnd=Q,this._oldHasSelection=te,this._onSelectionChange.fire()},$.prototype._onBufferActivate=function(V){var Q=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=V.activeBuffer.lines.onTrim(function(te){return Q._onTrim(te)})},$.prototype._convertViewportColToCharacterIndex=function(V,Q){for(var te=Q[0],be=0;Q[0]>=be;be++){var pe=V.loadCell(be,this._workCell).getChars().length;0===this._workCell.getWidth()?te--:pe>1&&Q[0]!==be&&(te+=pe-1)}return te},$.prototype.setSelection=function(V,Q,te){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[V,Q],this._model.selectionStartLength=te,this.refresh(),this._fireEventIfSelectionChanged()},$.prototype.rightClickSelect=function(V){this._isClickInSelection(V)||(this._selectWordAtCursor(V,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},$.prototype._getWordAt=function(V,Q,te,be){if(void 0===te&&(te=!0),void 0===be&&(be=!0),!(V[0]>=this._bufferService.cols)){var pe=this._bufferService.buffer,fe=pe.lines.get(V[1]);if(fe){var ue=pe.translateBufferLineToString(V[1],!1),de=this._convertViewportColToCharacterIndex(fe,V),ge=de,He=V[0]-de,ot=0,St=0,Tt=0,Dt=0;if(" "===ue.charAt(de)){for(;de>0&&" "===ue.charAt(de-1);)de--;for(;ge<ue.length&&" "===ue.charAt(ge+1);)ge++}else{var Rt=V[0],Ze=V[0];0===fe.getWidth(Rt)&&(ot++,Rt--),2===fe.getWidth(Ze)&&(St++,Ze++);var $t=fe.getString(Ze).length;for($t>1&&(Dt+=$t-1,ge+=$t-1);Rt>0&&de>0&&!this._isCharWordSeparator(fe.loadCell(Rt-1,this._workCell));){fe.loadCell(Rt-1,this._workCell);var Ft=this._workCell.getChars().length;0===this._workCell.getWidth()?(ot++,Rt--):Ft>1&&(Tt+=Ft-1,de-=Ft-1),de--,Rt--}for(;Ze<fe.length&&ge+1<ue.length&&!this._isCharWordSeparator(fe.loadCell(Ze+1,this._workCell));){fe.loadCell(Ze+1,this._workCell);var pn=this._workCell.getChars().length;2===this._workCell.getWidth()?(St++,Ze++):pn>1&&(Dt+=pn-1,ge+=pn-1),ge++,Ze++}}ge++;var rt=de+He-ot+Tt,Ot=Math.min(this._bufferService.cols,ge-de+ot+St-Tt-Dt);if(Q||""!==ue.slice(de,ge).trim()){if(te&&0===rt&&32!==fe.getCodePoint(0)){var _t=pe.lines.get(V[1]-1);if(_t&&fe.isWrapped&&32!==_t.getCodePoint(this._bufferService.cols-1)){var Ct=this._getWordAt([this._bufferService.cols-1,V[1]-1],!1,!0,!1);if(Ct){var Ve=this._bufferService.cols-Ct.start;rt-=Ve,Ot+=Ve}}}if(be&&rt+Ot===this._bufferService.cols&&32!==fe.getCodePoint(this._bufferService.cols-1)){var at=pe.lines.get(V[1]+1);if((null==at?void 0:at.isWrapped)&&32!==at.getCodePoint(0)){var ht=this._getWordAt([0,V[1]+1],!1,!1,!0);ht&&(Ot+=ht.length)}}return{start:rt,length:Ot}}}}},$.prototype._selectWordAt=function(V,Q){var te=this._getWordAt(V,Q);if(te){for(;te.start<0;)te.start+=this._bufferService.cols,V[1]--;this._model.selectionStart=[te.start,V[1]],this._model.selectionStartLength=te.length}},$.prototype._selectToWordAt=function(V){var Q=this._getWordAt(V,!0);if(Q){for(var te=V[1];Q.start<0;)Q.start+=this._bufferService.cols,te--;if(!this._model.areSelectionValuesReversed())for(;Q.start+Q.length>this._bufferService.cols;)Q.length-=this._bufferService.cols,te++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?Q.start:Q.start+Q.length,te]}},$.prototype._isCharWordSeparator=function(V){return 0!==V.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(V.getChars())>=0},$.prototype._selectLineAt=function(V){var Q=this._bufferService.buffer.getWrappedRangeForLine(V),te={start:{x:0,y:Q.first},end:{x:this._bufferService.cols-1,y:Q.last}};this._model.selectionStart=[0,Q.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,k.getRangeLength)(te,this._bufferService.cols)},T([E(3,Z.IBufferService),E(4,Z.ICoreService),E(5,w.IMouseService),E(6,Z.IOptionsService),E(7,w.IRenderService)],$)}(S.Disposable);A.SelectionService=F},4725:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.ICharacterJoinerService=A.ISoundService=A.ISelectionService=A.IRenderService=A.IMouseService=A.ICoreBrowserService=A.ICharSizeService=void 0;var I=j(8343);A.ICharSizeService=(0,I.createDecorator)("CharSizeService"),A.ICoreBrowserService=(0,I.createDecorator)("CoreBrowserService"),A.IMouseService=(0,I.createDecorator)("MouseService"),A.IRenderService=(0,I.createDecorator)("RenderService"),A.ISelectionService=(0,I.createDecorator)("SelectionService"),A.ISoundService=(0,I.createDecorator)("SoundService"),A.ICharacterJoinerService=(0,I.createDecorator)("CharacterJoinerService")},357:function(W,A,j){var I=this&&this.__decorate||function(H,R,v,x){var w,Z=arguments.length,D=Z<3?R:null===x?x=Object.getOwnPropertyDescriptor(R,v):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)D=Reflect.decorate(H,R,v,x);else for(var b=H.length-1;b>=0;b--)(w=H[b])&&(D=(Z<3?w(D):Z>3?w(R,v,D):w(R,v))||D);return Z>3&&D&&Object.defineProperty(R,v,D),D},P=this&&this.__param||function(H,R){return function(v,x){R(v,x,H)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SoundService=void 0;var T=j(2585),E=function(){function H(R){this._optionsService=R}return Object.defineProperty(H,"audioContext",{get:function(){if(!H._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;H._audioContext=new v}return H._audioContext},enumerable:!1,configurable:!0}),H.prototype.playBellSound=function(){var R=H.audioContext;if(R){var v=R.createBufferSource();R.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(x){v.buffer=x,v.connect(R.destination),v.start(0)})}},H.prototype._base64ToArrayBuffer=function(R){for(var v=window.atob(R),x=v.length,w=new Uint8Array(x),Z=0;Z<x;Z++)w[Z]=v.charCodeAt(Z);return w.buffer},H.prototype._removeMimeType=function(R){return R.split(",")[1]},H=I([P(0,T.IOptionsService)],H)}();A.SoundService=E},6349:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.CircularList=void 0;var I=j(8460),P=function(){function T(E){this._maxLength=E,this.onDeleteEmitter=new I.EventEmitter,this.onInsertEmitter=new I.EventEmitter,this.onTrimEmitter=new I.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(T.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"maxLength",{get:function(){return this._maxLength},set:function(H){if(this._maxLength!==H){for(var R=new Array(H),v=0;v<Math.min(H,this.length);v++)R[v]=this._array[this._getCyclicIndex(v)];this._array=R,this._maxLength=H,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"length",{get:function(){return this._length},set:function(H){if(H>this._length)for(var R=this._length;R<H;R++)this._array[R]=void 0;this._length=H},enumerable:!1,configurable:!0}),T.prototype.get=function(E){return this._array[this._getCyclicIndex(E)]},T.prototype.set=function(E,H){this._array[this._getCyclicIndex(E)]=H},T.prototype.push=function(E){this._array[this._getCyclicIndex(this._length)]=E,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},T.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(T.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),T.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},T.prototype.splice=function(E,H){for(var R=[],v=2;v<arguments.length;v++)R[v-2]=arguments[v];if(H){for(var x=E;x<this._length-H;x++)this._array[this._getCyclicIndex(x)]=this._array[this._getCyclicIndex(x+H)];this._length-=H,this.onDeleteEmitter.fire({index:E,amount:H})}for(x=this._length-1;x>=E;x--)this._array[this._getCyclicIndex(x+R.length)]=this._array[this._getCyclicIndex(x)];for(x=0;x<R.length;x++)this._array[this._getCyclicIndex(E+x)]=R[x];if(R.length&&this.onInsertEmitter.fire({index:E,amount:R.length}),this._length+R.length>this._maxLength){var w=this._length+R.length-this._maxLength;this._startIndex+=w,this._length=this._maxLength,this.onTrimEmitter.fire(w)}else this._length+=R.length},T.prototype.trimStart=function(E){E>this._length&&(E=this._length),this._startIndex+=E,this._length-=E,this.onTrimEmitter.fire(E)},T.prototype.shiftElements=function(E,H,R){if(!(H<=0)){if(E<0||E>=this._length)throw new Error("start argument out of range");if(E+R<0)throw new Error("Cannot shift elements in list beyond index 0");if(R>0){for(var v=H-1;v>=0;v--)this.set(E+v+R,this.get(E+v));var x=E+H+R-this._length;if(x>0)for(this._length+=x;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(v=0;v<H;v++)this.set(E+v+R,this.get(E+v))}},T.prototype._getCyclicIndex=function(E){return(this._startIndex+E)%this._maxLength},T}();A.CircularList=P},1439:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.clone=void 0,A.clone=function j(I,P){if(void 0===P&&(P=5),"object"!=typeof I)return I;var T=Array.isArray(I)?[]:{};for(var E in I)T[E]=P<=1?I[E]:I[E]&&j(I[E],P-1);return T}},8055:function(W,A){var j,I,P,T,v,E=this&&this.__read||function(v,x){var w="function"==typeof Symbol&&v[Symbol.iterator];if(!w)return v;var Z,D,b=w.call(v),S=[];try{for(;(void 0===x||x-- >0)&&!(Z=b.next()).done;)S.push(Z.value)}catch(k){D={error:k}}finally{try{Z&&!Z.done&&(w=b.return)&&w.call(b)}finally{if(D)throw D.error}}return S};function H(v){var x=v.toString(16);return x.length<2?"0"+x:x}function R(v,x){return v<x?(x+.05)/(v+.05):(v+.05)/(x+.05)}Object.defineProperty(A,"__esModule",{value:!0}),A.contrastRatio=A.toPaddedHex=A.rgba=A.rgb=A.css=A.color=A.channels=void 0,(v=j=A.channels||(A.channels={})).toCss=function(x,w,Z,D){return void 0!==D?"#"+H(x)+H(w)+H(Z)+H(D):"#"+H(x)+H(w)+H(Z)},v.toRgba=function(x,w,Z,D){return void 0===D&&(D=255),(x<<24|w<<16|Z<<8|D)>>>0},(I=A.color||(A.color={})).blend=function(v,x){var w=(255&x.rgba)/255;if(1===w)return{css:x.css,rgba:x.rgba};var Z=x.rgba>>24&255,D=x.rgba>>16&255,b=x.rgba>>8&255,S=v.rgba>>24&255,k=v.rgba>>16&255,M=v.rgba>>8&255,N=S+Math.round((Z-S)*w),F=k+Math.round((D-k)*w),X=M+Math.round((b-M)*w);return{css:j.toCss(N,F,X),rgba:j.toRgba(N,F,X)}},I.isOpaque=function(v){return 255==(255&v.rgba)},I.ensureContrastRatio=function(v,x,w){var Z=T.ensureContrastRatio(v.rgba,x.rgba,w);if(Z)return T.toColor(Z>>24&255,Z>>16&255,Z>>8&255)},I.opaque=function(v){var x=(255|v.rgba)>>>0,w=E(T.toChannels(x),3),Z=w[0],D=w[1],b=w[2];return{css:j.toCss(Z,D,b),rgba:x}},I.opacity=function(v,x){var w=Math.round(255*x),Z=E(T.toChannels(v.rgba),3),D=Z[0],b=Z[1],S=Z[2];return{css:j.toCss(D,b,S,w),rgba:j.toRgba(D,b,S,w)}},I.toColorRGB=function(v){return[v.rgba>>24&255,v.rgba>>16&255,v.rgba>>8&255]},(A.css||(A.css={})).toColor=function(v){if(v.match(/#[0-9a-f]{3,8}/i))switch(v.length){case 4:var x=parseInt(v.slice(1,2).repeat(2),16),w=parseInt(v.slice(2,3).repeat(2),16),Z=parseInt(v.slice(3,4).repeat(2),16);return T.toColor(x,w,Z);case 5:x=parseInt(v.slice(1,2).repeat(2),16),w=parseInt(v.slice(2,3).repeat(2),16),Z=parseInt(v.slice(3,4).repeat(2),16);var D=parseInt(v.slice(4,5).repeat(2),16);return T.toColor(x,w,Z,D);case 7:return{css:v,rgba:(parseInt(v.slice(1),16)<<8|255)>>>0};case 9:return{css:v,rgba:parseInt(v.slice(1),16)>>>0}}var b=v.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(b)return x=parseInt(b[1]),w=parseInt(b[2]),Z=parseInt(b[3]),D=Math.round(255*(void 0===b[5]?1:parseFloat(b[5]))),T.toColor(x,w,Z,D);throw new Error("css.toColor: Unsupported css format")},function(v){function x(w,Z,D){var b=w/255,S=Z/255,k=D/255;return.2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))+.0722*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))}v.relativeLuminance=function(w){return x(w>>16&255,w>>8&255,255&w)},v.relativeLuminance2=x}(P=A.rgb||(A.rgb={})),function(v){function x(Z,D,b){for(var S=Z>>24&255,k=Z>>16&255,M=Z>>8&255,N=D>>24&255,F=D>>16&255,X=D>>8&255,$=R(P.relativeLuminance2(N,F,X),P.relativeLuminance2(S,k,M));$<b&&(N>0||F>0||X>0);)N-=Math.max(0,Math.ceil(.1*N)),F-=Math.max(0,Math.ceil(.1*F)),X-=Math.max(0,Math.ceil(.1*X)),$=R(P.relativeLuminance2(N,F,X),P.relativeLuminance2(S,k,M));return(N<<24|F<<16|X<<8|255)>>>0}function w(Z,D,b){for(var S=Z>>24&255,k=Z>>16&255,M=Z>>8&255,N=D>>24&255,F=D>>16&255,X=D>>8&255,$=R(P.relativeLuminance2(N,F,X),P.relativeLuminance2(S,k,M));$<b&&(N<255||F<255||X<255);)N=Math.min(255,N+Math.ceil(.1*(255-N))),F=Math.min(255,F+Math.ceil(.1*(255-F))),X=Math.min(255,X+Math.ceil(.1*(255-X))),$=R(P.relativeLuminance2(N,F,X),P.relativeLuminance2(S,k,M));return(N<<24|F<<16|X<<8|255)>>>0}v.ensureContrastRatio=function(Z,D,b){var S=P.relativeLuminance(Z>>8),k=P.relativeLuminance(D>>8);if(R(S,k)<b){if(k<S){var M=x(Z,D,b),N=R(S,P.relativeLuminance(M>>8));if(N<b){var F=w(Z,Z,b);return N>R(S,P.relativeLuminance(F>>8))?M:F}return M}var X=w(Z,D,b),$=R(S,P.relativeLuminance(X>>8));return $<b?(F=x(Z,Z,b),$>R(S,P.relativeLuminance(F>>8))?X:F):X}},v.reduceLuminance=x,v.increaseLuminance=w,v.toChannels=function(Z){return[Z>>24&255,Z>>16&255,Z>>8&255,255&Z]},v.toColor=function(Z,D,b,S){return{css:j.toCss(Z,D,b,S),rgba:j.toRgba(Z,D,b,S)}}}(T=A.rgba||(A.rgba={})),A.toPaddedHex=H,A.contrastRatio=R},8969:function(W,A,j){var I,P=this&&this.__extends||(I=function(te,be){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,fe){pe.__proto__=fe}||function(pe,fe){for(var ue in fe)Object.prototype.hasOwnProperty.call(fe,ue)&&(pe[ue]=fe[ue])})(te,be)},function(Q,te){if("function"!=typeof te&&null!==te)throw new TypeError("Class extends value "+String(te)+" is not a constructor or null");function be(){this.constructor=Q}I(Q,te),Q.prototype=null===te?Object.create(te):(be.prototype=te.prototype,new be)}),T=this&&this.__values||function(Q){var te="function"==typeof Symbol&&Symbol.iterator,be=te&&Q[te],pe=0;if(be)return be.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&pe>=Q.length&&(Q=void 0),{value:Q&&Q[pe++],done:!Q}}};throw new TypeError(te?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreTerminal=void 0;var E=j(844),H=j(2585),R=j(4348),v=j(7866),x=j(744),w=j(7302),Z=j(6975),D=j(8460),b=j(1753),S=j(3730),k=j(1480),M=j(7994),N=j(9282),F=j(5435),X=j(5981),$=!1,V=function(Q){function te(be){var pe=Q.call(this)||this;return pe._onBinary=new D.EventEmitter,pe._onData=new D.EventEmitter,pe._onLineFeed=new D.EventEmitter,pe._onResize=new D.EventEmitter,pe._onScroll=new D.EventEmitter,pe._onWriteParsed=new D.EventEmitter,pe._instantiationService=new R.InstantiationService,pe.optionsService=new w.OptionsService(be),pe._instantiationService.setService(H.IOptionsService,pe.optionsService),pe._bufferService=pe.register(pe._instantiationService.createInstance(x.BufferService)),pe._instantiationService.setService(H.IBufferService,pe._bufferService),pe._logService=pe._instantiationService.createInstance(v.LogService),pe._instantiationService.setService(H.ILogService,pe._logService),pe.coreService=pe.register(pe._instantiationService.createInstance(Z.CoreService,function(){return pe.scrollToBottom()})),pe._instantiationService.setService(H.ICoreService,pe.coreService),pe.coreMouseService=pe._instantiationService.createInstance(b.CoreMouseService),pe._instantiationService.setService(H.ICoreMouseService,pe.coreMouseService),pe._dirtyRowService=pe._instantiationService.createInstance(S.DirtyRowService),pe._instantiationService.setService(H.IDirtyRowService,pe._dirtyRowService),pe.unicodeService=pe._instantiationService.createInstance(k.UnicodeService),pe._instantiationService.setService(H.IUnicodeService,pe.unicodeService),pe._charsetService=pe._instantiationService.createInstance(M.CharsetService),pe._instantiationService.setService(H.ICharsetService,pe._charsetService),pe._inputHandler=new F.InputHandler(pe._bufferService,pe._charsetService,pe.coreService,pe._dirtyRowService,pe._logService,pe.optionsService,pe.coreMouseService,pe.unicodeService),pe.register((0,D.forwardEvent)(pe._inputHandler.onLineFeed,pe._onLineFeed)),pe.register(pe._inputHandler),pe.register((0,D.forwardEvent)(pe._bufferService.onResize,pe._onResize)),pe.register((0,D.forwardEvent)(pe.coreService.onData,pe._onData)),pe.register((0,D.forwardEvent)(pe.coreService.onBinary,pe._onBinary)),pe.register(pe.optionsService.onOptionChange(function(fe){return pe._updateOptions(fe)})),pe.register(pe._bufferService.onScroll(function(fe){pe._onScroll.fire({position:pe._bufferService.buffer.ydisp,source:0}),pe._dirtyRowService.markRangeDirty(pe._bufferService.buffer.scrollTop,pe._bufferService.buffer.scrollBottom)})),pe.register(pe._inputHandler.onScroll(function(fe){pe._onScroll.fire({position:pe._bufferService.buffer.ydisp,source:0}),pe._dirtyRowService.markRangeDirty(pe._bufferService.buffer.scrollTop,pe._bufferService.buffer.scrollBottom)})),pe._writeBuffer=new X.WriteBuffer(function(fe,ue){return pe._inputHandler.parse(fe,ue)}),pe.register((0,D.forwardEvent)(pe._writeBuffer.onWriteParsed,pe._onWriteParsed)),pe}return P(te,Q),Object.defineProperty(te.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onScroll",{get:function(){var pe=this;return this._onScrollApi||(this._onScrollApi=new D.EventEmitter,this.register(this._onScroll.event(function(fe){var ue;null===(ue=pe._onScrollApi)||void 0===ue||ue.fire(fe.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"options",{get:function(){return this.optionsService.options},set:function(pe){for(var fe in pe)this.optionsService.options[fe]=pe[fe]},enumerable:!1,configurable:!0}),te.prototype.dispose=function(){var be;this._isDisposed||(Q.prototype.dispose.call(this),null===(be=this._windowsMode)||void 0===be||be.dispose(),this._windowsMode=void 0)},te.prototype.write=function(be,pe){this._writeBuffer.write(be,pe)},te.prototype.writeSync=function(be,pe){this._logService.logLevel<=H.LogLevelEnum.WARN&&!$&&(this._logService.warn("writeSync is unreliable and will be removed soon."),$=!0),this._writeBuffer.writeSync(be,pe)},te.prototype.resize=function(be,pe){isNaN(be)||isNaN(pe)||(be=Math.max(be,x.MINIMUM_COLS),pe=Math.max(pe,x.MINIMUM_ROWS),this._bufferService.resize(be,pe))},te.prototype.scroll=function(be,pe){void 0===pe&&(pe=!1),this._bufferService.scroll(be,pe)},te.prototype.scrollLines=function(be,pe,fe){this._bufferService.scrollLines(be,pe,fe)},te.prototype.scrollPages=function(be){this._bufferService.scrollPages(be)},te.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},te.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},te.prototype.scrollToLine=function(be){this._bufferService.scrollToLine(be)},te.prototype.registerEscHandler=function(be,pe){return this._inputHandler.registerEscHandler(be,pe)},te.prototype.registerDcsHandler=function(be,pe){return this._inputHandler.registerDcsHandler(be,pe)},te.prototype.registerCsiHandler=function(be,pe){return this._inputHandler.registerCsiHandler(be,pe)},te.prototype.registerOscHandler=function(be,pe){return this._inputHandler.registerOscHandler(be,pe)},te.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},te.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},te.prototype._updateOptions=function(be){var pe;switch(be){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(pe=this._windowsMode)||void 0===pe||pe.dispose(),this._windowsMode=void 0)}},te.prototype._enableWindowsMode=function(){var be=this;if(!this._windowsMode){var pe=[];pe.push(this.onLineFeed(N.updateWindowsModeWrappedState.bind(null,this._bufferService))),pe.push(this.registerCsiHandler({final:"H"},function(){return(0,N.updateWindowsModeWrappedState)(be._bufferService),!1})),this._windowsMode={dispose:function(){var ue,de;try{for(var ge=T(pe),He=ge.next();!He.done;He=ge.next())He.value.dispose()}catch(ot){ue={error:ot}}finally{try{He&&!He.done&&(de=ge.return)&&de.call(ge)}finally{if(ue)throw ue.error}}}}}},te}(E.Disposable);A.CoreTerminal=V},8460:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.forwardEvent=A.EventEmitter=void 0;var j=function(){function I(){this._listeners=[],this._disposed=!1}return Object.defineProperty(I.prototype,"event",{get:function(){var T=this;return this._event||(this._event=function(E){return T._listeners.push(E),{dispose:function(){if(!T._disposed)for(var R=0;R<T._listeners.length;R++)if(T._listeners[R]===E)return void T._listeners.splice(R,1)}}}),this._event},enumerable:!1,configurable:!0}),I.prototype.fire=function(P,T){for(var E=[],H=0;H<this._listeners.length;H++)E.push(this._listeners[H]);for(H=0;H<E.length;H++)E[H].call(void 0,P,T)},I.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},I}();A.EventEmitter=j,A.forwardEvent=function(I,P){return I(function(T){return P.fire(T)})}},5435:function(W,A,j){var I,P=this&&this.__extends||(I=function(fe,ue){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ge){de.__proto__=ge}||function(de,ge){for(var He in ge)Object.prototype.hasOwnProperty.call(ge,He)&&(de[He]=ge[He])})(fe,ue)},function(pe,fe){if("function"!=typeof fe&&null!==fe)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function ue(){this.constructor=pe}I(pe,fe),pe.prototype=null===fe?Object.create(fe):(ue.prototype=fe.prototype,new ue)});Object.defineProperty(A,"__esModule",{value:!0}),A.InputHandler=A.WindowsOptionsReportType=void 0;var T,pe,E=j(2584),H=j(7116),R=j(2015),v=j(844),x=j(8273),w=j(482),Z=j(8437),D=j(8460),b=j(643),S=j(511),k=j(3734),M=j(2585),N=j(6242),F=j(6351),X=j(5941),$={"(":0,")":1,"*":2,"+":3,"-":1,".":2},V=131072;function Q(pe,fe){if(pe>24)return fe.setWinLines||!1;switch(pe){case 1:return!!fe.restoreWin;case 2:return!!fe.minimizeWin;case 3:return!!fe.setWinPosition;case 4:return!!fe.setWinSizePixels;case 5:return!!fe.raiseWin;case 6:return!!fe.lowerWin;case 7:return!!fe.refreshWin;case 8:return!!fe.setWinSizeChars;case 9:return!!fe.maximizeWin;case 10:return!!fe.fullscreenWin;case 11:return!!fe.getWinState;case 13:return!!fe.getWinPosition;case 14:return!!fe.getWinSizePixels;case 15:return!!fe.getScreenSizePixels;case 16:return!!fe.getCellSizePixels;case 18:return!!fe.getWinSizeChars;case 19:return!!fe.getScreenSizeChars;case 20:return!!fe.getIconTitle;case 21:return!!fe.getWinTitle;case 22:return!!fe.pushTitle;case 23:return!!fe.popTitle;case 24:return!!fe.setWinLines}return!1}(pe=T=A.WindowsOptionsReportType||(A.WindowsOptionsReportType={}))[pe.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",pe[pe.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var te=function(){function pe(fe,ue,de,ge){this._bufferService=fe,this._coreService=ue,this._logService=de,this._optionsService=ge,this._data=new Uint32Array(0)}return pe.prototype.hook=function(fe){this._data=new Uint32Array(0)},pe.prototype.put=function(fe,ue,de){this._data=(0,x.concat)(this._data,fe.subarray(ue,de))},pe.prototype.unhook=function(fe){if(!fe)return this._data=new Uint32Array(0),!0;var ue=(0,w.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),ue){case'"q':this._coreService.triggerDataEvent(E.C0.ESC+'P1$r0"q'+E.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(E.C0.ESC+'P1$r61;1"p'+E.C0.ESC+"\\");break;case"r":var de=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(E.C0.ESC+"P1$r"+de+E.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(E.C0.ESC+"P1$r0m"+E.C0.ESC+"\\");break;case" q":var ge={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];ge-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(E.C0.ESC+"P1$r"+ge+" q"+E.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",ue),this._coreService.triggerDataEvent(E.C0.ESC+"P0$r"+E.C0.ESC+"\\")}return!0},pe}(),be=function(pe){function fe(ue,de,ge,He,ot,St,Tt,Dt,Rt){void 0===Rt&&(Rt=new R.EscapeSequenceParser);var Ze=pe.call(this)||this;Ze._bufferService=ue,Ze._charsetService=de,Ze._coreService=ge,Ze._dirtyRowService=He,Ze._logService=ot,Ze._optionsService=St,Ze._coreMouseService=Tt,Ze._unicodeService=Dt,Ze._parser=Rt,Ze._parseBuffer=new Uint32Array(4096),Ze._stringDecoder=new w.StringToUtf32,Ze._utf8Decoder=new w.Utf8ToUtf32,Ze._workCell=new S.CellData,Ze._windowTitle="",Ze._iconName="",Ze._windowTitleStack=[],Ze._iconNameStack=[],Ze._curAttrData=Z.DEFAULT_ATTR_DATA.clone(),Ze._eraseAttrDataInternal=Z.DEFAULT_ATTR_DATA.clone(),Ze._onRequestBell=new D.EventEmitter,Ze._onRequestRefreshRows=new D.EventEmitter,Ze._onRequestReset=new D.EventEmitter,Ze._onRequestSendFocus=new D.EventEmitter,Ze._onRequestSyncScrollBar=new D.EventEmitter,Ze._onRequestWindowsOptionsReport=new D.EventEmitter,Ze._onA11yChar=new D.EventEmitter,Ze._onA11yTab=new D.EventEmitter,Ze._onCursorMove=new D.EventEmitter,Ze._onLineFeed=new D.EventEmitter,Ze._onScroll=new D.EventEmitter,Ze._onTitleChange=new D.EventEmitter,Ze._onColor=new D.EventEmitter,Ze._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Ze._specialColors=[256,257,258],Ze.register(Ze._parser),Ze._activeBuffer=Ze._bufferService.buffer,Ze.register(Ze._bufferService.buffers.onBufferActivate(function(rt){return Ze._activeBuffer=rt.activeBuffer})),Ze._parser.setCsiHandlerFallback(function(rt,Ot){Ze._logService.debug("Unknown CSI code: ",{identifier:Ze._parser.identToString(rt),params:Ot.toArray()})}),Ze._parser.setEscHandlerFallback(function(rt){Ze._logService.debug("Unknown ESC code: ",{identifier:Ze._parser.identToString(rt)})}),Ze._parser.setExecuteHandlerFallback(function(rt){Ze._logService.debug("Unknown EXECUTE code: ",{code:rt})}),Ze._parser.setOscHandlerFallback(function(rt,Ot,_t){Ze._logService.debug("Unknown OSC code: ",{identifier:rt,action:Ot,data:_t})}),Ze._parser.setDcsHandlerFallback(function(rt,Ot,_t){"HOOK"===Ot&&(_t=_t.toArray()),Ze._logService.debug("Unknown DCS code: ",{identifier:Ze._parser.identToString(rt),action:Ot,payload:_t})}),Ze._parser.setPrintHandler(function(rt,Ot,_t){return Ze.print(rt,Ot,_t)}),Ze._parser.registerCsiHandler({final:"@"},function(rt){return Ze.insertChars(rt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"@"},function(rt){return Ze.scrollLeft(rt)}),Ze._parser.registerCsiHandler({final:"A"},function(rt){return Ze.cursorUp(rt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"A"},function(rt){return Ze.scrollRight(rt)}),Ze._parser.registerCsiHandler({final:"B"},function(rt){return Ze.cursorDown(rt)}),Ze._parser.registerCsiHandler({final:"C"},function(rt){return Ze.cursorForward(rt)}),Ze._parser.registerCsiHandler({final:"D"},function(rt){return Ze.cursorBackward(rt)}),Ze._parser.registerCsiHandler({final:"E"},function(rt){return Ze.cursorNextLine(rt)}),Ze._parser.registerCsiHandler({final:"F"},function(rt){return Ze.cursorPrecedingLine(rt)}),Ze._parser.registerCsiHandler({final:"G"},function(rt){return Ze.cursorCharAbsolute(rt)}),Ze._parser.registerCsiHandler({final:"H"},function(rt){return Ze.cursorPosition(rt)}),Ze._parser.registerCsiHandler({final:"I"},function(rt){return Ze.cursorForwardTab(rt)}),Ze._parser.registerCsiHandler({final:"J"},function(rt){return Ze.eraseInDisplay(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"J"},function(rt){return Ze.eraseInDisplay(rt)}),Ze._parser.registerCsiHandler({final:"K"},function(rt){return Ze.eraseInLine(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"K"},function(rt){return Ze.eraseInLine(rt)}),Ze._parser.registerCsiHandler({final:"L"},function(rt){return Ze.insertLines(rt)}),Ze._parser.registerCsiHandler({final:"M"},function(rt){return Ze.deleteLines(rt)}),Ze._parser.registerCsiHandler({final:"P"},function(rt){return Ze.deleteChars(rt)}),Ze._parser.registerCsiHandler({final:"S"},function(rt){return Ze.scrollUp(rt)}),Ze._parser.registerCsiHandler({final:"T"},function(rt){return Ze.scrollDown(rt)}),Ze._parser.registerCsiHandler({final:"X"},function(rt){return Ze.eraseChars(rt)}),Ze._parser.registerCsiHandler({final:"Z"},function(rt){return Ze.cursorBackwardTab(rt)}),Ze._parser.registerCsiHandler({final:"`"},function(rt){return Ze.charPosAbsolute(rt)}),Ze._parser.registerCsiHandler({final:"a"},function(rt){return Ze.hPositionRelative(rt)}),Ze._parser.registerCsiHandler({final:"b"},function(rt){return Ze.repeatPrecedingCharacter(rt)}),Ze._parser.registerCsiHandler({final:"c"},function(rt){return Ze.sendDeviceAttributesPrimary(rt)}),Ze._parser.registerCsiHandler({prefix:">",final:"c"},function(rt){return Ze.sendDeviceAttributesSecondary(rt)}),Ze._parser.registerCsiHandler({final:"d"},function(rt){return Ze.linePosAbsolute(rt)}),Ze._parser.registerCsiHandler({final:"e"},function(rt){return Ze.vPositionRelative(rt)}),Ze._parser.registerCsiHandler({final:"f"},function(rt){return Ze.hVPosition(rt)}),Ze._parser.registerCsiHandler({final:"g"},function(rt){return Ze.tabClear(rt)}),Ze._parser.registerCsiHandler({final:"h"},function(rt){return Ze.setMode(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"h"},function(rt){return Ze.setModePrivate(rt)}),Ze._parser.registerCsiHandler({final:"l"},function(rt){return Ze.resetMode(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"l"},function(rt){return Ze.resetModePrivate(rt)}),Ze._parser.registerCsiHandler({final:"m"},function(rt){return Ze.charAttributes(rt)}),Ze._parser.registerCsiHandler({final:"n"},function(rt){return Ze.deviceStatus(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"n"},function(rt){return Ze.deviceStatusPrivate(rt)}),Ze._parser.registerCsiHandler({intermediates:"!",final:"p"},function(rt){return Ze.softReset(rt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"q"},function(rt){return Ze.setCursorStyle(rt)}),Ze._parser.registerCsiHandler({final:"r"},function(rt){return Ze.setScrollRegion(rt)}),Ze._parser.registerCsiHandler({final:"s"},function(rt){return Ze.saveCursor(rt)}),Ze._parser.registerCsiHandler({final:"t"},function(rt){return Ze.windowOptions(rt)}),Ze._parser.registerCsiHandler({final:"u"},function(rt){return Ze.restoreCursor(rt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"}"},function(rt){return Ze.insertColumns(rt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"~"},function(rt){return Ze.deleteColumns(rt)}),Ze._parser.setExecuteHandler(E.C0.BEL,function(){return Ze.bell()}),Ze._parser.setExecuteHandler(E.C0.LF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(E.C0.VT,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(E.C0.FF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(E.C0.CR,function(){return Ze.carriageReturn()}),Ze._parser.setExecuteHandler(E.C0.BS,function(){return Ze.backspace()}),Ze._parser.setExecuteHandler(E.C0.HT,function(){return Ze.tab()}),Ze._parser.setExecuteHandler(E.C0.SO,function(){return Ze.shiftOut()}),Ze._parser.setExecuteHandler(E.C0.SI,function(){return Ze.shiftIn()}),Ze._parser.setExecuteHandler(E.C1.IND,function(){return Ze.index()}),Ze._parser.setExecuteHandler(E.C1.NEL,function(){return Ze.nextLine()}),Ze._parser.setExecuteHandler(E.C1.HTS,function(){return Ze.tabSet()}),Ze._parser.registerOscHandler(0,new N.OscHandler(function(rt){return Ze.setTitle(rt),Ze.setIconName(rt),!0})),Ze._parser.registerOscHandler(1,new N.OscHandler(function(rt){return Ze.setIconName(rt)})),Ze._parser.registerOscHandler(2,new N.OscHandler(function(rt){return Ze.setTitle(rt)})),Ze._parser.registerOscHandler(4,new N.OscHandler(function(rt){return Ze.setOrReportIndexedColor(rt)})),Ze._parser.registerOscHandler(10,new N.OscHandler(function(rt){return Ze.setOrReportFgColor(rt)})),Ze._parser.registerOscHandler(11,new N.OscHandler(function(rt){return Ze.setOrReportBgColor(rt)})),Ze._parser.registerOscHandler(12,new N.OscHandler(function(rt){return Ze.setOrReportCursorColor(rt)})),Ze._parser.registerOscHandler(104,new N.OscHandler(function(rt){return Ze.restoreIndexedColor(rt)})),Ze._parser.registerOscHandler(110,new N.OscHandler(function(rt){return Ze.restoreFgColor(rt)})),Ze._parser.registerOscHandler(111,new N.OscHandler(function(rt){return Ze.restoreBgColor(rt)})),Ze._parser.registerOscHandler(112,new N.OscHandler(function(rt){return Ze.restoreCursorColor(rt)})),Ze._parser.registerEscHandler({final:"7"},function(){return Ze.saveCursor()}),Ze._parser.registerEscHandler({final:"8"},function(){return Ze.restoreCursor()}),Ze._parser.registerEscHandler({final:"D"},function(){return Ze.index()}),Ze._parser.registerEscHandler({final:"E"},function(){return Ze.nextLine()}),Ze._parser.registerEscHandler({final:"H"},function(){return Ze.tabSet()}),Ze._parser.registerEscHandler({final:"M"},function(){return Ze.reverseIndex()}),Ze._parser.registerEscHandler({final:"="},function(){return Ze.keypadApplicationMode()}),Ze._parser.registerEscHandler({final:">"},function(){return Ze.keypadNumericMode()}),Ze._parser.registerEscHandler({final:"c"},function(){return Ze.fullReset()}),Ze._parser.registerEscHandler({final:"n"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"o"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"|"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"}"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"~"},function(){return Ze.setgLevel(1)}),Ze._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Ze.selectDefaultCharset()}),Ze._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Ze.selectDefaultCharset()});var $t=function(Ot){Ft._parser.registerEscHandler({intermediates:"(",final:Ot},function(){return Ze.selectCharset("("+Ot)}),Ft._parser.registerEscHandler({intermediates:")",final:Ot},function(){return Ze.selectCharset(")"+Ot)}),Ft._parser.registerEscHandler({intermediates:"*",final:Ot},function(){return Ze.selectCharset("*"+Ot)}),Ft._parser.registerEscHandler({intermediates:"+",final:Ot},function(){return Ze.selectCharset("+"+Ot)}),Ft._parser.registerEscHandler({intermediates:"-",final:Ot},function(){return Ze.selectCharset("-"+Ot)}),Ft._parser.registerEscHandler({intermediates:".",final:Ot},function(){return Ze.selectCharset("."+Ot)}),Ft._parser.registerEscHandler({intermediates:"/",final:Ot},function(){return Ze.selectCharset("/"+Ot)})},Ft=this;for(var pn in H.CHARSETS)$t(pn);return Ze._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Ze.screenAlignmentPattern()}),Ze._parser.setErrorHandler(function(rt){return Ze._logService.error("Parsing error: ",rt),rt}),Ze._parser.registerDcsHandler({intermediates:"$",final:"q"},new te(Ze._bufferService,Ze._coreService,Ze._logService,Ze._optionsService)),Ze}return P(fe,pe),Object.defineProperty(fe.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),fe.prototype.dispose=function(){pe.prototype.dispose.call(this)},fe.prototype._preserveStack=function(ue,de,ge,He){this._parseStack.paused=!0,this._parseStack.cursorStartX=ue,this._parseStack.cursorStartY=de,this._parseStack.decodedLength=ge,this._parseStack.position=He},fe.prototype._logSlowResolvingAsync=function(ue){this._logService.logLevel<=M.LogLevelEnum.WARN&&Promise.race([ue,new Promise(function(de,ge){return setTimeout(function(){return ge("#SLOW_TIMEOUT")},5e3)})]).catch(function(de){if("#SLOW_TIMEOUT"!==de)throw de;console.warn("async parser handler taking longer than 5000 ms")})},fe.prototype.parse=function(ue,de){var ge,He=this._activeBuffer.x,ot=this._activeBuffer.y,St=0,Tt=this._parseStack.paused;if(Tt){if(ge=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,de))return this._logSlowResolvingAsync(ge),ge;He=this._parseStack.cursorStartX,ot=this._parseStack.cursorStartY,this._parseStack.paused=!1,ue.length>V&&(St=this._parseStack.position+V)}if(this._logService.logLevel<=M.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof ue?' "'+ue+'"':' "'+Array.prototype.map.call(ue,function($t){return String.fromCharCode($t)}).join("")+'"'),"string"==typeof ue?ue.split("").map(function($t){return $t.charCodeAt(0)}):ue),this._parseBuffer.length<ue.length&&this._parseBuffer.length<V&&(this._parseBuffer=new Uint32Array(Math.min(ue.length,V))),Tt||this._dirtyRowService.clearRange(),ue.length>V)for(var Dt=St;Dt<ue.length;Dt+=V){var Rt=Dt+V<ue.length?Dt+V:ue.length,Ze="string"==typeof ue?this._stringDecoder.decode(ue.substring(Dt,Rt),this._parseBuffer):this._utf8Decoder.decode(ue.subarray(Dt,Rt),this._parseBuffer);if(ge=this._parser.parse(this._parseBuffer,Ze))return this._preserveStack(He,ot,Ze,Dt),this._logSlowResolvingAsync(ge),ge}else if(!Tt&&(Ze="string"==typeof ue?this._stringDecoder.decode(ue,this._parseBuffer):this._utf8Decoder.decode(ue,this._parseBuffer),ge=this._parser.parse(this._parseBuffer,Ze)))return this._preserveStack(He,ot,Ze,0),this._logSlowResolvingAsync(ge),ge;this._activeBuffer.x===He&&this._activeBuffer.y===ot||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},fe.prototype.print=function(ue,de,ge){var He,ot,St=this._charsetService.charset,Tt=this._optionsService.rawOptions.screenReaderMode,Dt=this._bufferService.cols,Rt=this._coreService.decPrivateModes.wraparound,Ze=this._coreService.modes.insertMode,$t=this._curAttrData,Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&ge-de>0&&2===Ft.getWidth(this._activeBuffer.x-1)&&Ft.setCellFromCodePoint(this._activeBuffer.x-1,0,1,$t.fg,$t.bg,$t.extended);for(var pn=de;pn<ge;++pn){if(He=ue[pn],ot=this._unicodeService.wcwidth(He),He<127&&St){var rt=St[String.fromCharCode(He)];rt&&(He=rt.charCodeAt(0))}if(Tt&&this._onA11yChar.fire((0,w.stringFromCodePoint)(He)),ot||!this._activeBuffer.x){if(this._activeBuffer.x+ot-1>=Dt)if(Rt){for(;this._activeBuffer.x<Dt;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,1,$t.fg,$t.bg,$t.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=Dt-1,2===ot)continue;if(Ze&&(Ft.insertCells(this._activeBuffer.x,ot,this._activeBuffer.getNullCell($t),$t),2===Ft.getWidth(Dt-1)&&Ft.setCellFromCodePoint(Dt-1,b.NULL_CELL_CODE,b.NULL_CELL_WIDTH,$t.fg,$t.bg,$t.extended)),Ft.setCellFromCodePoint(this._activeBuffer.x++,He,ot,$t.fg,$t.bg,$t.extended),ot>0)for(;--ot;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,0,$t.fg,$t.bg,$t.extended)}else Ft.getWidth(this._activeBuffer.x-1)?Ft.addCodepointToCell(this._activeBuffer.x-1,He):Ft.addCodepointToCell(this._activeBuffer.x-2,He)}ge-de>0&&(Ft.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<Dt&&ge-de>0&&0===Ft.getWidth(this._activeBuffer.x)&&!Ft.hasContent(this._activeBuffer.x)&&Ft.setCellFromCodePoint(this._activeBuffer.x,0,1,$t.fg,$t.bg,$t.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},fe.prototype.registerCsiHandler=function(ue,de){var ge=this;return"t"!==ue.final||ue.prefix||ue.intermediates?this._parser.registerCsiHandler(ue,de):this._parser.registerCsiHandler(ue,function(He){return!Q(He.params[0],ge._optionsService.rawOptions.windowOptions)||de(He)})},fe.prototype.registerDcsHandler=function(ue,de){return this._parser.registerDcsHandler(ue,new F.DcsHandler(de))},fe.prototype.registerEscHandler=function(ue,de){return this._parser.registerEscHandler(ue,de)},fe.prototype.registerOscHandler=function(ue,de){return this._parser.registerOscHandler(ue,new N.OscHandler(de))},fe.prototype.bell=function(){return this._onRequestBell.fire(),!0},fe.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},fe.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},fe.prototype.backspace=function(){var ue;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(ue=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===ue?void 0:ue.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);de.hasWidth(this._activeBuffer.x)&&!de.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},fe.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var ue=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-ue),!0},fe.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},fe.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},fe.prototype._restrictCursor=function(ue){void 0===ue&&(ue=this._bufferService.cols-1),this._activeBuffer.x=Math.min(ue,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},fe.prototype._setCursor=function(ue,de){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=ue,this._activeBuffer.y=this._activeBuffer.scrollTop+de):(this._activeBuffer.x=ue,this._activeBuffer.y=de),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},fe.prototype._moveCursor=function(ue,de){this._restrictCursor(),this._setCursor(this._activeBuffer.x+ue,this._activeBuffer.y+de)},fe.prototype.cursorUp=function(ue){var de=this._activeBuffer.y-this._activeBuffer.scrollTop;return de>=0?this._moveCursor(0,-Math.min(de,ue.params[0]||1)):this._moveCursor(0,-(ue.params[0]||1)),!0},fe.prototype.cursorDown=function(ue){var de=this._activeBuffer.scrollBottom-this._activeBuffer.y;return de>=0?this._moveCursor(0,Math.min(de,ue.params[0]||1)):this._moveCursor(0,ue.params[0]||1),!0},fe.prototype.cursorForward=function(ue){return this._moveCursor(ue.params[0]||1,0),!0},fe.prototype.cursorBackward=function(ue){return this._moveCursor(-(ue.params[0]||1),0),!0},fe.prototype.cursorNextLine=function(ue){return this.cursorDown(ue),this._activeBuffer.x=0,!0},fe.prototype.cursorPrecedingLine=function(ue){return this.cursorUp(ue),this._activeBuffer.x=0,!0},fe.prototype.cursorCharAbsolute=function(ue){return this._setCursor((ue.params[0]||1)-1,this._activeBuffer.y),!0},fe.prototype.cursorPosition=function(ue){return this._setCursor(ue.length>=2?(ue.params[1]||1)-1:0,(ue.params[0]||1)-1),!0},fe.prototype.charPosAbsolute=function(ue){return this._setCursor((ue.params[0]||1)-1,this._activeBuffer.y),!0},fe.prototype.hPositionRelative=function(ue){return this._moveCursor(ue.params[0]||1,0),!0},fe.prototype.linePosAbsolute=function(ue){return this._setCursor(this._activeBuffer.x,(ue.params[0]||1)-1),!0},fe.prototype.vPositionRelative=function(ue){return this._moveCursor(0,ue.params[0]||1),!0},fe.prototype.hVPosition=function(ue){return this.cursorPosition(ue),!0},fe.prototype.tabClear=function(ue){var de=ue.params[0];return 0===de?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===de&&(this._activeBuffer.tabs={}),!0},fe.prototype.cursorForwardTab=function(ue){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var de=ue.params[0]||1;de--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},fe.prototype.cursorBackwardTab=function(ue){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var de=ue.params[0]||1;de--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},fe.prototype._eraseInBufferLine=function(ue,de,ge,He){void 0===He&&(He=!1);var ot=this._activeBuffer.lines.get(this._activeBuffer.ybase+ue);ot.replaceCells(de,ge,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),He&&(ot.isWrapped=!1)},fe.prototype._resetBufferLine=function(ue){var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+ue);de.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+ue),de.isWrapped=!1},fe.prototype.eraseInDisplay=function(ue){var de;switch(this._restrictCursor(this._bufferService.cols),ue.params[0]){case 0:for(de=this._activeBuffer.y,this._dirtyRowService.markDirty(de),this._eraseInBufferLine(de++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);de<this._bufferService.rows;de++)this._resetBufferLine(de);this._dirtyRowService.markDirty(de);break;case 1:for(de=this._activeBuffer.y,this._dirtyRowService.markDirty(de),this._eraseInBufferLine(de,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(de+1).isWrapped=!1);de--;)this._resetBufferLine(de);this._dirtyRowService.markDirty(0);break;case 2:for(de=this._bufferService.rows,this._dirtyRowService.markDirty(de-1);de--;)this._resetBufferLine(de);this._dirtyRowService.markDirty(0);break;case 3:var ge=this._activeBuffer.lines.length-this._bufferService.rows;ge>0&&(this._activeBuffer.lines.trimStart(ge),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-ge,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-ge,0),this._onScroll.fire(0))}return!0},fe.prototype.eraseInLine=function(ue){switch(this._restrictCursor(this._bufferService.cols),ue.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},fe.prototype.insertLines=function(ue){this._restrictCursor();var de=ue.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ge=this._activeBuffer.ybase+this._activeBuffer.y,He=this._bufferService.rows-1-this._activeBuffer.scrollBottom,ot=this._bufferService.rows-1+this._activeBuffer.ybase-He+1;de--;)this._activeBuffer.lines.splice(ot-1,1),this._activeBuffer.lines.splice(ge,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},fe.prototype.deleteLines=function(ue){this._restrictCursor();var de=ue.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var ge,He=this._activeBuffer.ybase+this._activeBuffer.y;for(ge=this._bufferService.rows-1-this._activeBuffer.scrollBottom,ge=this._bufferService.rows-1+this._activeBuffer.ybase-ge;de--;)this._activeBuffer.lines.splice(He,1),this._activeBuffer.lines.splice(ge,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},fe.prototype.insertChars=function(ue){this._restrictCursor();var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return de&&(de.insertCells(this._activeBuffer.x,ue.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},fe.prototype.deleteChars=function(ue){this._restrictCursor();var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return de&&(de.deleteCells(this._activeBuffer.x,ue.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},fe.prototype.scrollUp=function(ue){for(var de=ue.params[0]||1;de--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.scrollDown=function(ue){for(var de=ue.params[0]||1;de--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(Z.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.scrollLeft=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var He=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);He.deleteCells(0,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),He.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.scrollRight=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var He=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);He.insertCells(0,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),He.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.insertColumns=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var He=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);He.insertCells(this._activeBuffer.x,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),He.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.deleteColumns=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var He=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);He.deleteCells(this._activeBuffer.x,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),He.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.eraseChars=function(ue){this._restrictCursor();var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return de&&(de.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(ue.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},fe.prototype.repeatPrecedingCharacter=function(ue){if(!this._parser.precedingCodepoint)return!0;for(var de=ue.params[0]||1,ge=new Uint32Array(de),He=0;He<de;++He)ge[He]=this._parser.precedingCodepoint;return this.print(ge,0,ge.length),!0},fe.prototype.sendDeviceAttributesPrimary=function(ue){return ue.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(E.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(E.C0.ESC+"[?6c")),!0},fe.prototype.sendDeviceAttributesSecondary=function(ue){return ue.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(E.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(E.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ue.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(E.C0.ESC+"[>83;40003;0c")),!0},fe.prototype._is=function(ue){return 0===(this._optionsService.rawOptions.termName+"").indexOf(ue)},fe.prototype.setMode=function(ue){for(var de=0;de<ue.length;de++)4===ue.params[de]&&(this._coreService.modes.insertMode=!0);return!0},fe.prototype.setModePrivate=function(ue){for(var de=0;de<ue.length;de++)switch(ue.params[de]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,H.DEFAULT_CHARSET),this._charsetService.setgCharset(1,H.DEFAULT_CHARSET),this._charsetService.setgCharset(2,H.DEFAULT_CHARSET),this._charsetService.setgCharset(3,H.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},fe.prototype.resetMode=function(ue){for(var de=0;de<ue.length;de++)4===ue.params[de]&&(this._coreService.modes.insertMode=!1);return!0},fe.prototype.resetModePrivate=function(ue){for(var de=0;de<ue.length;de++)switch(ue.params[de]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===ue.params[de]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},fe.prototype._updateAttrColor=function(ue,de,ge,He,ot){return 2===de?(ue|=50331648,ue&=-16777216,ue|=k.AttributeData.fromColorRGB([ge,He,ot])):5===de&&(ue&=-50331904,ue|=33554432|255&ge),ue},fe.prototype._extractColor=function(ue,de,ge){var He=[0,0,-1,0,0,0],ot=0,St=0;do{if(He[St+ot]=ue.params[de+St],ue.hasSubParams(de+St)){var Tt=ue.getSubParams(de+St),Dt=0;do{5===He[1]&&(ot=1),He[St+Dt+1+ot]=Tt[Dt]}while(++Dt<Tt.length&&Dt+St+1+ot<He.length);break}if(5===He[1]&&St+ot>=2||2===He[1]&&St+ot>=5)break;He[1]&&(ot=1)}while(++St+de<ue.length&&St+ot<He.length);for(Dt=2;Dt<He.length;++Dt)-1===He[Dt]&&(He[Dt]=0);switch(He[0]){case 38:ge.fg=this._updateAttrColor(ge.fg,He[1],He[3],He[4],He[5]);break;case 48:ge.bg=this._updateAttrColor(ge.bg,He[1],He[3],He[4],He[5]);break;case 58:ge.extended=ge.extended.clone(),ge.extended.underlineColor=this._updateAttrColor(ge.extended.underlineColor,He[1],He[3],He[4],He[5])}return St},fe.prototype._processUnderline=function(ue,de){de.extended=de.extended.clone(),(!~ue||ue>5)&&(ue=1),de.extended.underlineStyle=ue,de.fg|=268435456,0===ue&&(de.fg&=-268435457),de.updateExtended()},fe.prototype.charAttributes=function(ue){if(1===ue.length&&0===ue.params[0])return this._curAttrData.fg=Z.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=Z.DEFAULT_ATTR_DATA.bg,!0;for(var de,ge=ue.length,He=this._curAttrData,ot=0;ot<ge;ot++)(de=ue.params[ot])>=30&&de<=37?(He.fg&=-50331904,He.fg|=16777216|de-30):de>=40&&de<=47?(He.bg&=-50331904,He.bg|=16777216|de-40):de>=90&&de<=97?(He.fg&=-50331904,He.fg|=16777224|de-90):de>=100&&de<=107?(He.bg&=-50331904,He.bg|=16777224|de-100):0===de?(He.fg=Z.DEFAULT_ATTR_DATA.fg,He.bg=Z.DEFAULT_ATTR_DATA.bg):1===de?He.fg|=134217728:3===de?He.bg|=67108864:4===de?(He.fg|=268435456,this._processUnderline(ue.hasSubParams(ot)?ue.getSubParams(ot)[0]:1,He)):5===de?He.fg|=536870912:7===de?He.fg|=67108864:8===de?He.fg|=1073741824:9===de?He.fg|=2147483648:2===de?He.bg|=134217728:21===de?this._processUnderline(2,He):22===de?(He.fg&=-134217729,He.bg&=-134217729):23===de?He.bg&=-67108865:24===de?He.fg&=-268435457:25===de?He.fg&=-536870913:27===de?He.fg&=-67108865:28===de?He.fg&=-1073741825:29===de?He.fg&=2147483647:39===de?(He.fg&=-67108864,He.fg|=16777215&Z.DEFAULT_ATTR_DATA.fg):49===de?(He.bg&=-67108864,He.bg|=16777215&Z.DEFAULT_ATTR_DATA.bg):38===de||48===de||58===de?ot+=this._extractColor(ue,ot,He):59===de?(He.extended=He.extended.clone(),He.extended.underlineColor=-1,He.updateExtended()):100===de?(He.fg&=-67108864,He.fg|=16777215&Z.DEFAULT_ATTR_DATA.fg,He.bg&=-67108864,He.bg|=16777215&Z.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",de);return!0},fe.prototype.deviceStatus=function(ue){switch(ue.params[0]){case 5:this._coreService.triggerDataEvent(E.C0.ESC+"[0n");break;case 6:var de=this._activeBuffer.y+1,ge=this._activeBuffer.x+1;this._coreService.triggerDataEvent(E.C0.ESC+"["+de+";"+ge+"R")}return!0},fe.prototype.deviceStatusPrivate=function(ue){if(6===ue.params[0]){var de=this._activeBuffer.y+1,ge=this._activeBuffer.x+1;this._coreService.triggerDataEvent(E.C0.ESC+"[?"+de+";"+ge+"R")}return!0},fe.prototype.softReset=function(ue){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=Z.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},fe.prototype.setCursorStyle=function(ue){var de=ue.params[0]||1;switch(de){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var ge=de%2==1;return this._optionsService.options.cursorBlink=ge,!0},fe.prototype.setScrollRegion=function(ue){var de,ge=ue.params[0]||1;return(ue.length<2||(de=ue.params[1])>this._bufferService.rows||0===de)&&(de=this._bufferService.rows),de>ge&&(this._activeBuffer.scrollTop=ge-1,this._activeBuffer.scrollBottom=de-1,this._setCursor(0,0)),!0},fe.prototype.windowOptions=function(ue){if(!Q(ue.params[0],this._optionsService.rawOptions.windowOptions))return!0;var de=ue.length>1?ue.params[1]:0;switch(ue.params[0]){case 14:2!==de&&this._onRequestWindowsOptionsReport.fire(T.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(T.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(E.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==de&&2!==de||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==de&&1!==de||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==de&&2!==de||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==de&&1!==de||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},fe.prototype.saveCursor=function(ue){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},fe.prototype.restoreCursor=function(ue){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},fe.prototype.setTitle=function(ue){return this._windowTitle=ue,this._onTitleChange.fire(ue),!0},fe.prototype.setIconName=function(ue){return this._iconName=ue,!0},fe.prototype.setOrReportIndexedColor=function(ue){for(var de=[],ge=ue.split(";");ge.length>1;){var He=ge.shift(),ot=ge.shift();if(/^\d+$/.exec(He)){var St=parseInt(He);if(0<=St&&St<256)if("?"===ot)de.push({type:0,index:St});else{var Tt=(0,X.parseColor)(ot);Tt&&de.push({type:1,index:St,color:Tt})}}}return de.length&&this._onColor.fire(de),!0},fe.prototype._setOrReportSpecialColor=function(ue,de){for(var ge=ue.split(";"),He=0;He<ge.length&&!(de>=this._specialColors.length);++He,++de)if("?"===ge[He])this._onColor.fire([{type:0,index:this._specialColors[de]}]);else{var ot=(0,X.parseColor)(ge[He]);ot&&this._onColor.fire([{type:1,index:this._specialColors[de],color:ot}])}return!0},fe.prototype.setOrReportFgColor=function(ue){return this._setOrReportSpecialColor(ue,0)},fe.prototype.setOrReportBgColor=function(ue){return this._setOrReportSpecialColor(ue,1)},fe.prototype.setOrReportCursorColor=function(ue){return this._setOrReportSpecialColor(ue,2)},fe.prototype.restoreIndexedColor=function(ue){if(!ue)return this._onColor.fire([{type:2}]),!0;for(var de=[],ge=ue.split(";"),He=0;He<ge.length;++He)if(/^\d+$/.exec(ge[He])){var ot=parseInt(ge[He]);0<=ot&&ot<256&&de.push({type:2,index:ot})}return de.length&&this._onColor.fire(de),!0},fe.prototype.restoreFgColor=function(ue){return this._onColor.fire([{type:2,index:256}]),!0},fe.prototype.restoreBgColor=function(ue){return this._onColor.fire([{type:2,index:257}]),!0},fe.prototype.restoreCursorColor=function(ue){return this._onColor.fire([{type:2,index:258}]),!0},fe.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},fe.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},fe.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},fe.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,H.DEFAULT_CHARSET),!0},fe.prototype.selectCharset=function(ue){return 2!==ue.length?(this.selectDefaultCharset(),!0):("/"===ue[0]||this._charsetService.setgCharset($[ue[0]],H.CHARSETS[ue[1]]||H.DEFAULT_CHARSET),!0)},fe.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},fe.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},fe.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var ue=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,ue,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},fe.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},fe.prototype.reset=function(){this._curAttrData=Z.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=Z.DEFAULT_ATTR_DATA.clone()},fe.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},fe.prototype.setgLevel=function(ue){return this._charsetService.setgLevel(ue),!0},fe.prototype.screenAlignmentPattern=function(){var ue=new S.CellData;ue.content=1<<22|"E".charCodeAt(0),ue.fg=this._curAttrData.fg,ue.bg=this._curAttrData.bg,this._setCursor(0,0);for(var de=0;de<this._bufferService.rows;++de){var ge=this._activeBuffer.ybase+this._activeBuffer.y+de,He=this._activeBuffer.lines.get(ge);He&&(He.fill(ue),He.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},fe}(v.Disposable);A.InputHandler=be},844:function(W,A){var j=this&&this.__values||function(T){var E="function"==typeof Symbol&&Symbol.iterator,H=E&&T[E],R=0;if(H)return H.call(T);if(T&&"number"==typeof T.length)return{next:function(){return T&&R>=T.length&&(T=void 0),{value:T&&T[R++],done:!T}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.getDisposeArrayDisposable=A.disposeArray=A.Disposable=void 0;var I=function(){function T(){this._disposables=[],this._isDisposed=!1}return T.prototype.dispose=function(){var E,H;this._isDisposed=!0;try{for(var R=j(this._disposables),v=R.next();!v.done;v=R.next())v.value.dispose()}catch(x){E={error:x}}finally{try{v&&!v.done&&(H=R.return)&&H.call(R)}finally{if(E)throw E.error}}this._disposables.length=0},T.prototype.register=function(E){return this._disposables.push(E),E},T.prototype.unregister=function(E){var H=this._disposables.indexOf(E);-1!==H&&this._disposables.splice(H,1)},T}();function P(T){var E,H;try{for(var R=j(T),v=R.next();!v.done;v=R.next())v.value.dispose()}catch(x){E={error:x}}finally{try{v&&!v.done&&(H=R.return)&&H.call(R)}finally{if(E)throw E.error}}T.length=0}A.Disposable=I,A.disposeArray=P,A.getDisposeArrayDisposable=function(T){return{dispose:function(){return P(T)}}}},6114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.isLinux=A.isWindows=A.isIphone=A.isIpad=A.isMac=A.isSafari=A.isLegacyEdge=A.isFirefox=void 0;var j="undefined"==typeof navigator,I=j?"node":navigator.userAgent,P=j?"node":navigator.platform;A.isFirefox=I.includes("Firefox"),A.isLegacyEdge=I.includes("Edge"),A.isSafari=/^((?!chrome|android).)*safari/i.test(I),A.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(P),A.isIpad="iPad"===P,A.isIphone="iPhone"===P,A.isWindows=["Windows","Win16","Win32","WinCE"].includes(P),A.isLinux=P.indexOf("Linux")>=0},6106:function(W,A){var j=this&&this.__generator||function(P,T){var E,H,R,v,x={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return v={next:w(0),throw:w(1),return:w(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function w(Z){return function(D){return function(b){if(E)throw new TypeError("Generator is already executing.");for(;x;)try{if(E=1,H&&(R=2&b[0]?H.return:b[0]?H.throw||((R=H.return)&&R.call(H),0):H.next)&&!(R=R.call(H,b[1])).done)return R;switch(H=0,R&&(b=[2&b[0],R.value]),b[0]){case 0:case 1:R=b;break;case 4:return x.label++,{value:b[1],done:!1};case 5:x.label++,H=b[1],b=[0];continue;case 7:b=x.ops.pop(),x.trys.pop();continue;default:if(!((R=(R=x.trys).length>0&&R[R.length-1])||6!==b[0]&&2!==b[0])){x=0;continue}if(3===b[0]&&(!R||b[1]>R[0]&&b[1]<R[3])){x.label=b[1];break}if(6===b[0]&&x.label<R[1]){x.label=R[1],R=b;break}if(R&&x.label<R[2]){x.label=R[2],x.ops.push(b);break}R[2]&&x.ops.pop(),x.trys.pop();continue}b=T.call(P,x)}catch(S){b=[6,S],H=0}finally{E=R=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([Z,D])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.SortedList=void 0;var I=function(){function P(T){this._getKey=T,this._array=[]}return P.prototype.clear=function(){this._array.length=0},P.prototype.insert=function(T){if(0!==this._array.length){var E=this._search(this._getKey(T),0,this._array.length-1);this._array.splice(E,0,T)}else this._array.push(T)},P.prototype.delete=function(T){if(0===this._array.length)return!1;var E=this._getKey(T),H=this._search(E,0,this._array.length-1);if(this._getKey(this._array[H])!==E)return!1;do{if(this._array[H]===T)return this._array.splice(H,1),!0}while(++H<this._array.length&&this._getKey(this._array[H])===E);return!1},P.prototype.getKeyIterator=function(T){var E;return j(this,function(H){switch(H.label){case 0:if(0===this._array.length)return[2];if((E=this._search(T,0,this._array.length-1))<0||E>=this._array.length)return[2];if(this._getKey(this._array[E])!==T)return[2];H.label=1;case 1:return[4,this._array[E]];case 2:H.sent(),H.label=3;case 3:if(++E<this._array.length&&this._getKey(this._array[E])===T)return[3,1];H.label=4;case 4:return[2]}})},P.prototype.values=function(){return this._array.values()},P.prototype._search=function(T,E,H){if(H<E)return E;var R=Math.floor((E+H)/2);if(this._getKey(this._array[R])>T)return this._search(T,E,R-1);if(this._getKey(this._array[R])<T)return this._search(T,R+1,H);for(;R>0&&this._getKey(this._array[R-1])===T;)R--;return R},P}();A.SortedList=I},8273:function(W,A){function j(I,P,T,E){if(void 0===T&&(T=0),void 0===E&&(E=I.length),T>=I.length)return I;T=(I.length+T)%I.length,E=E>=I.length?I.length:(I.length+E)%I.length;for(var H=T;H<E;++H)I[H]=P;return I}Object.defineProperty(A,"__esModule",{value:!0}),A.concat=A.fillFallback=A.fill=void 0,A.fill=function(I,P,T,E){return I.fill?I.fill(P,T,E):j(I,P,T,E)},A.fillFallback=j,A.concat=function(I,P){var T=new I.constructor(I.length+P.length);return T.set(I),T.set(P,I.length),T}},9282:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.updateWindowsModeWrappedState=void 0;var I=j(643);A.updateWindowsModeWrappedState=function(P){var T=P.buffer.lines.get(P.buffer.ybase+P.buffer.y-1),E=null==T?void 0:T.get(P.cols-1),H=P.buffer.lines.get(P.buffer.ybase+P.buffer.y);H&&E&&(H.isWrapped=E[I.CHAR_DATA_CODE_INDEX]!==I.NULL_CELL_CODE&&E[I.CHAR_DATA_CODE_INDEX]!==I.WHITESPACE_CELL_CODE)}},3734:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ExtendedAttrs=A.AttributeData=void 0;var j=function(){function P(){this.fg=0,this.bg=0,this.extended=new I}return P.toColorRGB=function(T){return[T>>>16&255,T>>>8&255,255&T]},P.fromColorRGB=function(T){return(255&T[0])<<16|(255&T[1])<<8|255&T[2]},P.prototype.clone=function(){var T=new P;return T.fg=this.fg,T.bg=this.bg,T.extended=this.extended.clone(),T},P.prototype.isInverse=function(){return 67108864&this.fg},P.prototype.isBold=function(){return 134217728&this.fg},P.prototype.isUnderline=function(){return 268435456&this.fg},P.prototype.isBlink=function(){return 536870912&this.fg},P.prototype.isInvisible=function(){return 1073741824&this.fg},P.prototype.isItalic=function(){return 67108864&this.bg},P.prototype.isDim=function(){return 134217728&this.bg},P.prototype.isStrikethrough=function(){return 2147483648&this.fg},P.prototype.getFgColorMode=function(){return 50331648&this.fg},P.prototype.getBgColorMode=function(){return 50331648&this.bg},P.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},P.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},P.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},P.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},P.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},P.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},P.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},P.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},P.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},P.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},P.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},P.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},P.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},P.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},P.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},P.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},P.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},P}();A.AttributeData=j;var I=function(){function P(T,E){void 0===T&&(T=0),void 0===E&&(E=-1),this.underlineStyle=T,this.underlineColor=E}return P.prototype.clone=function(){return new P(this.underlineStyle,this.underlineColor)},P.prototype.isEmpty=function(){return 0===this.underlineStyle},P}();A.ExtendedAttrs=I},9092:function(W,A,j){var I=this&&this.__read||function(S,k){var M="function"==typeof Symbol&&S[Symbol.iterator];if(!M)return S;var N,F,X=M.call(S),$=[];try{for(;(void 0===k||k-- >0)&&!(N=X.next()).done;)$.push(N.value)}catch(V){F={error:V}}finally{try{N&&!N.done&&(M=X.return)&&M.call(X)}finally{if(F)throw F.error}}return $},P=this&&this.__spreadArray||function(S,k,M){if(M||2===arguments.length)for(var N,F=0,X=k.length;F<X;F++)!N&&F in k||(N||(N=Array.prototype.slice.call(k,0,F)),N[F]=k[F]);return S.concat(N||Array.prototype.slice.call(k))};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferStringIterator=A.Buffer=A.MAX_BUFFER_SIZE=void 0;var T=j(6349),E=j(8437),H=j(511),R=j(643),v=j(4634),x=j(4863),w=j(7116),Z=j(3734);A.MAX_BUFFER_SIZE=4294967295;var D=function(){function S(k,M,N){this._hasScrollback=k,this._optionsService=M,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=E.DEFAULT_ATTR_DATA.clone(),this.savedCharset=w.DEFAULT_CHARSET,this.markers=[],this._nullCell=H.CellData.fromCharData([0,R.NULL_CELL_CHAR,R.NULL_CELL_WIDTH,R.NULL_CELL_CODE]),this._whitespaceCell=H.CellData.fromCharData([0,R.WHITESPACE_CELL_CHAR,R.WHITESPACE_CELL_WIDTH,R.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new T.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return S.prototype.getNullCell=function(k){return k?(this._nullCell.fg=k.fg,this._nullCell.bg=k.bg,this._nullCell.extended=k.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new Z.ExtendedAttrs),this._nullCell},S.prototype.getWhitespaceCell=function(k){return k?(this._whitespaceCell.fg=k.fg,this._whitespaceCell.bg=k.bg,this._whitespaceCell.extended=k.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new Z.ExtendedAttrs),this._whitespaceCell},S.prototype.getBlankLine=function(k,M){return new E.BufferLine(this._bufferService.cols,this.getNullCell(k),M)},Object.defineProperty(S.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isCursorInViewport",{get:function(){var M=this.ybase+this.y-this.ydisp;return M>=0&&M<this._rows},enumerable:!1,configurable:!0}),S.prototype._getCorrectBufferLength=function(k){if(!this._hasScrollback)return k;var M=k+this._optionsService.rawOptions.scrollback;return M>A.MAX_BUFFER_SIZE?A.MAX_BUFFER_SIZE:M},S.prototype.fillViewportRows=function(k){if(0===this.lines.length){void 0===k&&(k=E.DEFAULT_ATTR_DATA);for(var M=this._rows;M--;)this.lines.push(this.getBlankLine(k))}},S.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new T.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},S.prototype.resize=function(k,M){var N=this.getNullCell(E.DEFAULT_ATTR_DATA),F=this._getCorrectBufferLength(M);if(F>this.lines.maxLength&&(this.lines.maxLength=F),this.lines.length>0){if(this._cols<k)for(var X=0;X<this.lines.length;X++)this.lines.get(X).resize(k,N);var $=0;if(this._rows<M)for(var V=this._rows;V<M;V++)this.lines.length<M+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new E.BufferLine(k,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new E.BufferLine(k,N)));else for(V=this._rows;V>M;V--)this.lines.length>M+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(F<this.lines.maxLength){var Q=this.lines.length-F;Q>0&&(this.lines.trimStart(Q),this.ybase=Math.max(this.ybase-Q,0),this.ydisp=Math.max(this.ydisp-Q,0),this.savedY=Math.max(this.savedY-Q,0)),this.lines.maxLength=F}this.x=Math.min(this.x,k-1),this.y=Math.min(this.y,M-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,k-1),this.scrollTop=0}if(this.scrollBottom=M-1,this._isReflowEnabled&&(this._reflow(k,M),this._cols>k))for(X=0;X<this.lines.length;X++)this.lines.get(X).resize(k,N);this._cols=k,this._rows=M},Object.defineProperty(S.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),S.prototype._reflow=function(k,M){this._cols!==k&&(k>this._cols?this._reflowLarger(k,M):this._reflowSmaller(k,M))},S.prototype._reflowLarger=function(k,M){var N=(0,v.reflowLargerGetLinesToRemove)(this.lines,this._cols,k,this.ybase+this.y,this.getNullCell(E.DEFAULT_ATTR_DATA));if(N.length>0){var F=(0,v.reflowLargerCreateNewLayout)(this.lines,N);(0,v.reflowLargerApplyNewLayout)(this.lines,F.layout),this._reflowLargerAdjustViewport(k,M,F.countRemoved)}},S.prototype._reflowLargerAdjustViewport=function(k,M,N){for(var F=this.getNullCell(E.DEFAULT_ATTR_DATA),X=N;X-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<M&&this.lines.push(new E.BufferLine(k,F))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},S.prototype._reflowSmaller=function(k,M){for(var N=this.getNullCell(E.DEFAULT_ATTR_DATA),F=[],X=0,$=this.lines.length-1;$>=0;$--){var V=this.lines.get($);if(!(!V||!V.isWrapped&&V.getTrimmedLength()<=k)){for(var Q=[V];V.isWrapped&&$>0;)V=this.lines.get(--$),Q.unshift(V);var te=this.ybase+this.y;if(!(te>=$&&te<$+Q.length)){var be,pe=Q[Q.length-1].getTrimmedLength(),fe=(0,v.reflowSmallerGetNewLineLengths)(Q,this._cols,k),ue=fe.length-Q.length;be=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ue):Math.max(0,this.lines.length-this.lines.maxLength+ue);for(var de=[],ge=0;ge<ue;ge++){var He=this.getBlankLine(E.DEFAULT_ATTR_DATA,!0);de.push(He)}de.length>0&&(F.push({start:$+Q.length+X,newLines:de}),X+=de.length),Q.push.apply(Q,P([],I(de),!1));var ot=fe.length-1,St=fe[ot];0===St&&(St=fe[--ot]);for(var Tt=Q.length-ue-1,Dt=pe;Tt>=0;){var Rt=Math.min(Dt,St);if(void 0===Q[ot])break;if(Q[ot].copyCellsFrom(Q[Tt],Dt-Rt,St-Rt,Rt,!0),0==(St-=Rt)&&(St=fe[--ot]),0==(Dt-=Rt)){Tt--;var Ze=Math.max(Tt,0);Dt=(0,v.getWrappedLineTrimmedLength)(Q,Ze,this._cols)}}for(ge=0;ge<Q.length;ge++)fe[ge]<k&&Q[ge].setCell(fe[ge],N);for(var $t=ue-be;$t-- >0;)0===this.ybase?this.y<M-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+X)-M&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ue,this.ybase+M-1)}}}if(F.length>0){var Ft=[],pn=[];for(ge=0;ge<this.lines.length;ge++)pn.push(this.lines.get(ge));var rt=this.lines.length,Ot=rt-1,_t=0,Ct=F[_t];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+X);var Ve=0;for(ge=Math.min(this.lines.maxLength-1,rt+X-1);ge>=0;ge--)if(Ct&&Ct.start>Ot+Ve){for(var at=Ct.newLines.length-1;at>=0;at--)this.lines.set(ge--,Ct.newLines[at]);ge++,Ft.push({index:Ot+1,amount:Ct.newLines.length}),Ve+=Ct.newLines.length,Ct=F[++_t]}else this.lines.set(ge,pn[Ot--]);var ht=0;for(ge=Ft.length-1;ge>=0;ge--)Ft[ge].index+=ht,this.lines.onInsertEmitter.fire(Ft[ge]),ht+=Ft[ge].amount;var Ut=Math.max(0,rt+X-this.lines.maxLength);Ut>0&&this.lines.onTrimEmitter.fire(Ut)}},S.prototype.stringIndexToBufferIndex=function(k,M,N){for(void 0===N&&(N=!1);M;){var F=this.lines.get(k);if(!F)return[-1,-1];for(var X=N?F.getTrimmedLength():F.length,$=0;$<X;++$)if(F.get($)[R.CHAR_DATA_WIDTH_INDEX]&&(M-=F.get($)[R.CHAR_DATA_CHAR_INDEX].length||1),M<0)return[k,$];k++}return[k,0]},S.prototype.translateBufferLineToString=function(k,M,N,F){void 0===N&&(N=0);var X=this.lines.get(k);return X?X.translateToString(M,N,F):""},S.prototype.getWrappedRangeForLine=function(k){for(var M=k,N=k;M>0&&this.lines.get(M).isWrapped;)M--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:M,last:N}},S.prototype.setupTabStops=function(k){for(null!=k?this.tabs[k]||(k=this.prevStop(k)):(this.tabs={},k=0);k<this._cols;k+=this._optionsService.rawOptions.tabStopWidth)this.tabs[k]=!0},S.prototype.prevStop=function(k){for(null==k&&(k=this.x);!this.tabs[--k]&&k>0;);return k>=this._cols?this._cols-1:k<0?0:k},S.prototype.nextStop=function(k){for(null==k&&(k=this.x);!this.tabs[++k]&&k<this._cols;);return k>=this._cols?this._cols-1:k<0?0:k},S.prototype.clearMarkers=function(k){this._isClearing=!0;for(var M=0;M<this.markers.length;M++)this.markers[M].line===k&&(this.markers[M].dispose(),this.markers.splice(M--,1));this._isClearing=!1},S.prototype.clearAllMarkers=function(){this._isClearing=!0;for(var k=0;k<this.markers.length;k++)this.markers[k].dispose(),this.markers.splice(k--,1);this._isClearing=!1},S.prototype.addMarker=function(k){var M=this,N=new x.Marker(k);return this.markers.push(N),N.register(this.lines.onTrim(function(F){N.line-=F,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(F){N.line>=F.index&&(N.line+=F.amount)})),N.register(this.lines.onDelete(function(F){N.line>=F.index&&N.line<F.index+F.amount&&N.dispose(),N.line>F.index&&(N.line-=F.amount)})),N.register(N.onDispose(function(){return M._removeMarker(N)})),N},S.prototype._removeMarker=function(k){this._isClearing||this.markers.splice(this.markers.indexOf(k),1)},S.prototype.iterator=function(k,M,N,F,X){return new b(this,k,M,N,F,X)},S}();A.Buffer=D;var b=function(){function S(k,M,N,F,X,$){void 0===N&&(N=0),void 0===F&&(F=k.lines.length),void 0===X&&(X=0),void 0===$&&($=0),this._buffer=k,this._trimRight=M,this._startIndex=N,this._endIndex=F,this._startOverscan=X,this._endOverscan=$,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return S.prototype.hasNext=function(){return this._current<this._endIndex},S.prototype.next=function(){var k=this._buffer.getWrappedRangeForLine(this._current);k.first<this._startIndex-this._startOverscan&&(k.first=this._startIndex-this._startOverscan),k.last>this._endIndex+this._endOverscan&&(k.last=this._endIndex+this._endOverscan),k.first=Math.max(k.first,0),k.last=Math.min(k.last,this._buffer.lines.length);for(var M="",N=k.first;N<=k.last;++N)M+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=k.last+1,{range:k,content:M}},S}();A.BufferStringIterator=b},8437:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLine=A.DEFAULT_ATTR_DATA=void 0;var I=j(482),P=j(643),T=j(511),E=j(3734);A.DEFAULT_ATTR_DATA=Object.freeze(new E.AttributeData);var H=function(){function R(v,x,w){void 0===w&&(w=!1),this.isWrapped=w,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*v);for(var Z=x||T.CellData.fromCharData([0,P.NULL_CELL_CHAR,P.NULL_CELL_WIDTH,P.NULL_CELL_CODE]),D=0;D<v;++D)this.setCell(D,Z);this.length=v}return R.prototype.get=function(v){var x=this._data[3*v+0],w=2097151&x;return[this._data[3*v+1],2097152&x?this._combined[v]:w?(0,I.stringFromCodePoint)(w):"",x>>22,2097152&x?this._combined[v].charCodeAt(this._combined[v].length-1):w]},R.prototype.set=function(v,x){this._data[3*v+1]=x[P.CHAR_DATA_ATTR_INDEX],x[P.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[v]=x[1],this._data[3*v+0]=2097152|v|x[P.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*v+0]=x[P.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|x[P.CHAR_DATA_WIDTH_INDEX]<<22},R.prototype.getWidth=function(v){return this._data[3*v+0]>>22},R.prototype.hasWidth=function(v){return 12582912&this._data[3*v+0]},R.prototype.getFg=function(v){return this._data[3*v+1]},R.prototype.getBg=function(v){return this._data[3*v+2]},R.prototype.hasContent=function(v){return 4194303&this._data[3*v+0]},R.prototype.getCodePoint=function(v){var x=this._data[3*v+0];return 2097152&x?this._combined[v].charCodeAt(this._combined[v].length-1):2097151&x},R.prototype.isCombined=function(v){return 2097152&this._data[3*v+0]},R.prototype.getString=function(v){var x=this._data[3*v+0];return 2097152&x?this._combined[v]:2097151&x?(0,I.stringFromCodePoint)(2097151&x):""},R.prototype.loadCell=function(v,x){var w=3*v;return x.content=this._data[w+0],x.fg=this._data[w+1],x.bg=this._data[w+2],2097152&x.content&&(x.combinedData=this._combined[v]),268435456&x.bg&&(x.extended=this._extendedAttrs[v]),x},R.prototype.setCell=function(v,x){2097152&x.content&&(this._combined[v]=x.combinedData),268435456&x.bg&&(this._extendedAttrs[v]=x.extended),this._data[3*v+0]=x.content,this._data[3*v+1]=x.fg,this._data[3*v+2]=x.bg},R.prototype.setCellFromCodePoint=function(v,x,w,Z,D,b){268435456&D&&(this._extendedAttrs[v]=b),this._data[3*v+0]=x|w<<22,this._data[3*v+1]=Z,this._data[3*v+2]=D},R.prototype.addCodepointToCell=function(v,x){var w=this._data[3*v+0];2097152&w?this._combined[v]+=(0,I.stringFromCodePoint)(x):(2097151&w?(this._combined[v]=(0,I.stringFromCodePoint)(2097151&w)+(0,I.stringFromCodePoint)(x),w&=-2097152,w|=2097152):w=x|1<<22,this._data[3*v+0]=w)},R.prototype.insertCells=function(v,x,w,Z){if((v%=this.length)&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs),x<this.length-v){for(var D=new T.CellData,b=this.length-v-x-1;b>=0;--b)this.setCell(v+x+b,this.loadCell(v+b,D));for(b=0;b<x;++b)this.setCell(v+b,w)}else for(b=v;b<this.length;++b)this.setCell(b,w);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs)},R.prototype.deleteCells=function(v,x,w,Z){if(v%=this.length,x<this.length-v){for(var D=new T.CellData,b=0;b<this.length-v-x;++b)this.setCell(v+b,this.loadCell(v+x+b,D));for(b=this.length-x;b<this.length;++b)this.setCell(b,w)}else for(b=v;b<this.length;++b)this.setCell(b,w);v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs),0!==this.getWidth(v)||this.hasContent(v)||this.setCellFromCodePoint(v,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs)},R.prototype.replaceCells=function(v,x,w,Z){for(v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs),x<this.length&&2===this.getWidth(x-1)&&this.setCellFromCodePoint(x,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs);v<x&&v<this.length;)this.setCell(v++,w)},R.prototype.resize=function(v,x){if(v!==this.length){if(v>this.length){var w=new Uint32Array(3*v);this.length&&(3*v<this._data.length?w.set(this._data.subarray(0,3*v)):w.set(this._data)),this._data=w;for(var Z=this.length;Z<v;++Z)this.setCell(Z,x)}else if(v){(w=new Uint32Array(3*v)).set(this._data.subarray(0,3*v)),this._data=w;var D=Object.keys(this._combined);for(Z=0;Z<D.length;Z++){var b=parseInt(D[Z],10);b>=v&&delete this._combined[b]}}else this._data=new Uint32Array(0),this._combined={};this.length=v}},R.prototype.fill=function(v){this._combined={},this._extendedAttrs={};for(var x=0;x<this.length;++x)this.setCell(x,v)},R.prototype.copyFrom=function(v){for(var x in this.length!==v.length?this._data=new Uint32Array(v._data):this._data.set(v._data),this.length=v.length,this._combined={},v._combined)this._combined[x]=v._combined[x];for(var x in this._extendedAttrs={},v._extendedAttrs)this._extendedAttrs[x]=v._extendedAttrs[x];this.isWrapped=v.isWrapped},R.prototype.clone=function(){var v=new R(0);for(var x in v._data=new Uint32Array(this._data),v.length=this.length,this._combined)v._combined[x]=this._combined[x];for(var x in this._extendedAttrs)v._extendedAttrs[x]=this._extendedAttrs[x];return v.isWrapped=this.isWrapped,v},R.prototype.getTrimmedLength=function(){for(var v=this.length-1;v>=0;--v)if(4194303&this._data[3*v+0])return v+(this._data[3*v+0]>>22);return 0},R.prototype.copyCellsFrom=function(v,x,w,Z,D){var b=v._data;if(D)for(var S=Z-1;S>=0;S--)for(var k=0;k<3;k++)this._data[3*(w+S)+k]=b[3*(x+S)+k];else for(S=0;S<Z;S++)for(k=0;k<3;k++)this._data[3*(w+S)+k]=b[3*(x+S)+k];var M=Object.keys(v._combined);for(k=0;k<M.length;k++){var N=parseInt(M[k],10);N>=x&&(this._combined[N-x+w]=v._combined[N])}},R.prototype.translateToString=function(v,x,w){void 0===v&&(v=!1),void 0===x&&(x=0),void 0===w&&(w=this.length),v&&(w=Math.min(w,this.getTrimmedLength()));for(var Z="";x<w;){var D=this._data[3*x+0],b=2097151&D;Z+=2097152&D?this._combined[x]:b?(0,I.stringFromCodePoint)(b):P.WHITESPACE_CELL_CHAR,x+=D>>22||1}return Z},R}();A.BufferLine=H},4841:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.getRangeLength=void 0,A.getRangeLength=function(j,I){if(j.start.y>j.end.y)throw new Error("Buffer range end ("+j.end.x+", "+j.end.y+") cannot be before start ("+j.start.x+", "+j.start.y+")");return I*(j.end.y-j.start.y)+(j.end.x-j.start.x+1)}},4634:function(W,A){function j(I,P,T){if(P===I.length-1)return I[P].getTrimmedLength();var E=!I[P].hasContent(T-1)&&1===I[P].getWidth(T-1),H=2===I[P+1].getWidth(0);return E&&H?T-1:T}Object.defineProperty(A,"__esModule",{value:!0}),A.getWrappedLineTrimmedLength=A.reflowSmallerGetNewLineLengths=A.reflowLargerApplyNewLayout=A.reflowLargerCreateNewLayout=A.reflowLargerGetLinesToRemove=void 0,A.reflowLargerGetLinesToRemove=function(I,P,T,E,H){for(var R=[],v=0;v<I.length-1;v++){var x=v,w=I.get(++x);if(w.isWrapped){for(var Z=[I.get(v)];x<I.length&&w.isWrapped;)Z.push(w),w=I.get(++x);if(E>=v&&E<x)v+=Z.length-1;else{for(var D=0,b=j(Z,D,P),S=1,k=0;S<Z.length;){var M=j(Z,S,P),N=M-k,F=T-b,X=Math.min(N,F);Z[D].copyCellsFrom(Z[S],k,b,X,!1),(b+=X)===T&&(D++,b=0),(k+=X)===M&&(S++,k=0),0===b&&0!==D&&2===Z[D-1].getWidth(T-1)&&(Z[D].copyCellsFrom(Z[D-1],T-1,b++,1,!1),Z[D-1].setCell(T-1,H))}Z[D].replaceCells(b,T,H);for(var $=0,V=Z.length-1;V>0&&(V>D||0===Z[V].getTrimmedLength());V--)$++;$>0&&(R.push(v+Z.length-$),R.push($)),v+=Z.length-1}}}return R},A.reflowLargerCreateNewLayout=function(I,P){for(var T=[],E=0,H=P[E],R=0,v=0;v<I.length;v++)if(H===v){var x=P[++E];I.onDeleteEmitter.fire({index:v-R,amount:x}),v+=x-1,R+=x,H=P[++E]}else T.push(v);return{layout:T,countRemoved:R}},A.reflowLargerApplyNewLayout=function(I,P){for(var T=[],E=0;E<P.length;E++)T.push(I.get(P[E]));for(E=0;E<T.length;E++)I.set(E,T[E]);I.length=P.length},A.reflowSmallerGetNewLineLengths=function(I,P,T){for(var E=[],H=I.map(function(b,S){return j(I,S,P)}).reduce(function(b,S){return b+S}),R=0,v=0,x=0;x<H;){if(H-x<T){E.push(H-x);break}R+=T;var w=j(I,v,P);R>w&&(R-=w,v++);var Z=2===I[v].getWidth(R-1);Z&&R--;var D=Z?T-1:T;E.push(D),x+=D}return E},A.getWrappedLineTrimmedLength=j},5295:function(W,A,j){var I,P=this&&this.__extends||(I=function(v,x){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,Z){w.__proto__=Z}||function(w,Z){for(var D in Z)Object.prototype.hasOwnProperty.call(Z,D)&&(w[D]=Z[D])})(v,x)},function(R,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function x(){this.constructor=R}I(R,v),R.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(A,"__esModule",{value:!0}),A.BufferSet=void 0;var T=j(9092),E=j(8460),H=function(R){function v(x,w){var Z=R.call(this)||this;return Z._optionsService=x,Z._bufferService=w,Z._onBufferActivate=Z.register(new E.EventEmitter),Z.reset(),Z}return P(v,R),Object.defineProperty(v.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this._normal=new T.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new T.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(v.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),v.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},v.prototype.activateAltBuffer=function(x){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(x),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},v.prototype.resize=function(x,w){this._normal.resize(x,w),this._alt.resize(x,w)},v.prototype.setupTabStops=function(x){this._normal.setupTabStops(x),this._alt.setupTabStops(x)},v}(j(844).Disposable);A.BufferSet=H},511:function(W,A,j){var I,P=this&&this.__extends||(I=function(x,w){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,D){Z.__proto__=D}||function(Z,D){for(var b in D)Object.prototype.hasOwnProperty.call(D,b)&&(Z[b]=D[b])})(x,w)},function(v,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function w(){this.constructor=v}I(v,x),v.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)});Object.defineProperty(A,"__esModule",{value:!0}),A.CellData=void 0;var T=j(482),E=j(643),H=j(3734),R=function(v){function x(){var w=null!==v&&v.apply(this,arguments)||this;return w.content=0,w.fg=0,w.bg=0,w.extended=new H.ExtendedAttrs,w.combinedData="",w}return P(x,v),x.fromCharData=function(w){var Z=new x;return Z.setFromCharData(w),Z},x.prototype.isCombined=function(){return 2097152&this.content},x.prototype.getWidth=function(){return this.content>>22},x.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,T.stringFromCodePoint)(2097151&this.content):""},x.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},x.prototype.setFromCharData=function(w){this.fg=w[E.CHAR_DATA_ATTR_INDEX],this.bg=0;var Z=!1;if(w[E.CHAR_DATA_CHAR_INDEX].length>2)Z=!0;else if(2===w[E.CHAR_DATA_CHAR_INDEX].length){var D=w[E.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=D&&D<=56319){var b=w[E.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=b&&b<=57343?this.content=1024*(D-55296)+b-56320+65536|w[E.CHAR_DATA_WIDTH_INDEX]<<22:Z=!0}else Z=!0}else this.content=w[E.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|w[E.CHAR_DATA_WIDTH_INDEX]<<22;Z&&(this.combinedData=w[E.CHAR_DATA_CHAR_INDEX],this.content=2097152|w[E.CHAR_DATA_WIDTH_INDEX]<<22)},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(H.AttributeData);A.CellData=R},643:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.WHITESPACE_CELL_CODE=A.WHITESPACE_CELL_WIDTH=A.WHITESPACE_CELL_CHAR=A.NULL_CELL_CODE=A.NULL_CELL_WIDTH=A.NULL_CELL_CHAR=A.CHAR_DATA_CODE_INDEX=A.CHAR_DATA_WIDTH_INDEX=A.CHAR_DATA_CHAR_INDEX=A.CHAR_DATA_ATTR_INDEX=A.DEFAULT_ATTR=A.DEFAULT_COLOR=void 0,A.DEFAULT_COLOR=256,A.DEFAULT_ATTR=256|A.DEFAULT_COLOR<<9,A.CHAR_DATA_ATTR_INDEX=0,A.CHAR_DATA_CHAR_INDEX=1,A.CHAR_DATA_WIDTH_INDEX=2,A.CHAR_DATA_CODE_INDEX=3,A.NULL_CELL_CHAR="",A.NULL_CELL_WIDTH=1,A.NULL_CELL_CODE=0,A.WHITESPACE_CELL_CHAR=" ",A.WHITESPACE_CELL_WIDTH=1,A.WHITESPACE_CELL_CODE=32},4863:function(W,A,j){var I,P=this&&this.__extends||(I=function(R,v){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,w){x.__proto__=w}||function(x,w){for(var Z in w)Object.prototype.hasOwnProperty.call(w,Z)&&(x[Z]=w[Z])})(R,v)},function(H,R){if("function"!=typeof R&&null!==R)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function v(){this.constructor=H}I(H,R),H.prototype=null===R?Object.create(R):(v.prototype=R.prototype,new v)});Object.defineProperty(A,"__esModule",{value:!0}),A.Marker=void 0;var T=j(8460),E=function(H){function R(v){var x=H.call(this)||this;return x.line=v,x._id=R._nextId++,x.isDisposed=!1,x._onDispose=new T.EventEmitter,x}return P(R,H),Object.defineProperty(R.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),H.prototype.dispose.call(this))},R._nextId=1,R}(j(844).Disposable);A.Marker=E},7116:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.DEFAULT_CHARSET=A.CHARSETS=void 0,A.CHARSETS={},A.DEFAULT_CHARSET=A.CHARSETS.B,A.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},A.CHARSETS.A={"#":"\xa3"},A.CHARSETS.B=void 0,A.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},A.CHARSETS.C=A.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},A.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},A.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},A.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},A.CHARSETS.E=A.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},A.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},A.CHARSETS.H=A.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(W,A){var j,I,P;Object.defineProperty(A,"__esModule",{value:!0}),A.C1_ESCAPED=A.C1=A.C0=void 0,(P=j=A.C0||(A.C0={})).NUL="\0",P.SOH="\x01",P.STX="\x02",P.ETX="\x03",P.EOT="\x04",P.ENQ="\x05",P.ACK="\x06",P.BEL="\x07",P.BS="\b",P.HT="\t",P.LF="\n",P.VT="\v",P.FF="\f",P.CR="\r",P.SO="\x0e",P.SI="\x0f",P.DLE="\x10",P.DC1="\x11",P.DC2="\x12",P.DC3="\x13",P.DC4="\x14",P.NAK="\x15",P.SYN="\x16",P.ETB="\x17",P.CAN="\x18",P.EM="\x19",P.SUB="\x1a",P.ESC="\x1b",P.FS="\x1c",P.GS="\x1d",P.RS="\x1e",P.US="\x1f",P.SP=" ",P.DEL="\x7f",(I=A.C1||(A.C1={})).PAD="\x80",I.HOP="\x81",I.BPH="\x82",I.NBH="\x83",I.IND="\x84",I.NEL="\x85",I.SSA="\x86",I.ESA="\x87",I.HTS="\x88",I.HTJ="\x89",I.VTS="\x8a",I.PLD="\x8b",I.PLU="\x8c",I.RI="\x8d",I.SS2="\x8e",I.SS3="\x8f",I.DCS="\x90",I.PU1="\x91",I.PU2="\x92",I.STS="\x93",I.CCH="\x94",I.MW="\x95",I.SPA="\x96",I.EPA="\x97",I.SOS="\x98",I.SGCI="\x99",I.SCI="\x9a",I.CSI="\x9b",I.ST="\x9c",I.OSC="\x9d",I.PM="\x9e",I.APC="\x9f",(A.C1_ESCAPED||(A.C1_ESCAPED={})).ST=j.ESC+"\\"},7399:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.evaluateKeyboardEvent=void 0;var I=j(2584),P={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};A.evaluateKeyboardEvent=function(T,E,H,R){var v={type:0,cancel:!1,key:void 0},x=(T.shiftKey?1:0)|(T.altKey?2:0)|(T.ctrlKey?4:0)|(T.metaKey?8:0);switch(T.keyCode){case 0:"UIKeyInputUpArrow"===T.key?v.key=E?I.C0.ESC+"OA":I.C0.ESC+"[A":"UIKeyInputLeftArrow"===T.key?v.key=E?I.C0.ESC+"OD":I.C0.ESC+"[D":"UIKeyInputRightArrow"===T.key?v.key=E?I.C0.ESC+"OC":I.C0.ESC+"[C":"UIKeyInputDownArrow"===T.key&&(v.key=E?I.C0.ESC+"OB":I.C0.ESC+"[B");break;case 8:if(T.shiftKey){v.key=I.C0.BS;break}if(T.altKey){v.key=I.C0.ESC+I.C0.DEL;break}v.key=I.C0.DEL;break;case 9:if(T.shiftKey){v.key=I.C0.ESC+"[Z";break}v.key=I.C0.HT,v.cancel=!0;break;case 13:v.key=T.altKey?I.C0.ESC+I.C0.CR:I.C0.CR,v.cancel=!0;break;case 27:v.key=I.C0.ESC,T.altKey&&(v.key=I.C0.ESC+I.C0.ESC),v.cancel=!0;break;case 37:if(T.metaKey)break;x?(v.key=I.C0.ESC+"[1;"+(x+1)+"D",v.key===I.C0.ESC+"[1;3D"&&(v.key=I.C0.ESC+(H?"b":"[1;5D"))):v.key=E?I.C0.ESC+"OD":I.C0.ESC+"[D";break;case 39:if(T.metaKey)break;x?(v.key=I.C0.ESC+"[1;"+(x+1)+"C",v.key===I.C0.ESC+"[1;3C"&&(v.key=I.C0.ESC+(H?"f":"[1;5C"))):v.key=E?I.C0.ESC+"OC":I.C0.ESC+"[C";break;case 38:if(T.metaKey)break;x?(v.key=I.C0.ESC+"[1;"+(x+1)+"A",H||v.key!==I.C0.ESC+"[1;3A"||(v.key=I.C0.ESC+"[1;5A")):v.key=E?I.C0.ESC+"OA":I.C0.ESC+"[A";break;case 40:if(T.metaKey)break;x?(v.key=I.C0.ESC+"[1;"+(x+1)+"B",H||v.key!==I.C0.ESC+"[1;3B"||(v.key=I.C0.ESC+"[1;5B")):v.key=E?I.C0.ESC+"OB":I.C0.ESC+"[B";break;case 45:T.shiftKey||T.ctrlKey||(v.key=I.C0.ESC+"[2~");break;case 46:v.key=x?I.C0.ESC+"[3;"+(x+1)+"~":I.C0.ESC+"[3~";break;case 36:v.key=x?I.C0.ESC+"[1;"+(x+1)+"H":E?I.C0.ESC+"OH":I.C0.ESC+"[H";break;case 35:v.key=x?I.C0.ESC+"[1;"+(x+1)+"F":E?I.C0.ESC+"OF":I.C0.ESC+"[F";break;case 33:T.shiftKey?v.type=2:T.ctrlKey?v.key=I.C0.ESC+"[5;"+(x+1)+"~":v.key=I.C0.ESC+"[5~";break;case 34:T.shiftKey?v.type=3:T.ctrlKey?v.key=I.C0.ESC+"[6;"+(x+1)+"~":v.key=I.C0.ESC+"[6~";break;case 112:v.key=x?I.C0.ESC+"[1;"+(x+1)+"P":I.C0.ESC+"OP";break;case 113:v.key=x?I.C0.ESC+"[1;"+(x+1)+"Q":I.C0.ESC+"OQ";break;case 114:v.key=x?I.C0.ESC+"[1;"+(x+1)+"R":I.C0.ESC+"OR";break;case 115:v.key=x?I.C0.ESC+"[1;"+(x+1)+"S":I.C0.ESC+"OS";break;case 116:v.key=x?I.C0.ESC+"[15;"+(x+1)+"~":I.C0.ESC+"[15~";break;case 117:v.key=x?I.C0.ESC+"[17;"+(x+1)+"~":I.C0.ESC+"[17~";break;case 118:v.key=x?I.C0.ESC+"[18;"+(x+1)+"~":I.C0.ESC+"[18~";break;case 119:v.key=x?I.C0.ESC+"[19;"+(x+1)+"~":I.C0.ESC+"[19~";break;case 120:v.key=x?I.C0.ESC+"[20;"+(x+1)+"~":I.C0.ESC+"[20~";break;case 121:v.key=x?I.C0.ESC+"[21;"+(x+1)+"~":I.C0.ESC+"[21~";break;case 122:v.key=x?I.C0.ESC+"[23;"+(x+1)+"~":I.C0.ESC+"[23~";break;case 123:v.key=x?I.C0.ESC+"[24;"+(x+1)+"~":I.C0.ESC+"[24~";break;default:if(!T.ctrlKey||T.shiftKey||T.altKey||T.metaKey)if(H&&!R||!T.altKey||T.metaKey)!H||T.altKey||T.ctrlKey||T.shiftKey||!T.metaKey?T.key&&!T.ctrlKey&&!T.altKey&&!T.metaKey&&T.keyCode>=48&&1===T.key.length?v.key=T.key:T.key&&T.ctrlKey&&("_"===T.key&&(v.key=I.C0.US),"@"===T.key&&(v.key=I.C0.NUL)):65===T.keyCode&&(v.type=1);else{var w=P[T.keyCode],Z=null==w?void 0:w[T.shiftKey?1:0];if(Z)v.key=I.C0.ESC+Z;else if(T.keyCode>=65&&T.keyCode<=90){var D=T.ctrlKey?T.keyCode-64:T.keyCode+32,b=String.fromCharCode(D);T.shiftKey&&(b=b.toUpperCase()),v.key=I.C0.ESC+b}else"Dead"===T.key&&T.code.startsWith("Key")&&(b=T.code.slice(3,4),T.shiftKey||(b=b.toLowerCase()),v.key=I.C0.ESC+b,v.cancel=!0)}else T.keyCode>=65&&T.keyCode<=90?v.key=String.fromCharCode(T.keyCode-64):32===T.keyCode?v.key=I.C0.NUL:T.keyCode>=51&&T.keyCode<=55?v.key=String.fromCharCode(T.keyCode-51+27):56===T.keyCode?v.key=I.C0.DEL:219===T.keyCode?v.key=I.C0.ESC:220===T.keyCode?v.key=I.C0.FS:221===T.keyCode&&(v.key=I.C0.GS)}return v}},482:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Utf8ToUtf32=A.StringToUtf32=A.utf32ToString=A.stringFromCodePoint=void 0,A.stringFromCodePoint=function(P){return P>65535?(P-=65536,String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):String.fromCharCode(P)},A.utf32ToString=function(P,T,E){void 0===T&&(T=0),void 0===E&&(E=P.length);for(var H="",R=T;R<E;++R){var v=P[R];v>65535?(v-=65536,H+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):H+=String.fromCharCode(v)}return H};var j=function(){function P(){this._interim=0}return P.prototype.clear=function(){this._interim=0},P.prototype.decode=function(T,E){var H=T.length;if(!H)return 0;var R=0,v=0;this._interim&&(56320<=(Z=T.charCodeAt(v++))&&Z<=57343?E[R++]=1024*(this._interim-55296)+Z-56320+65536:(E[R++]=this._interim,E[R++]=Z),this._interim=0);for(var x=v;x<H;++x){var w=T.charCodeAt(x);if(55296<=w&&w<=56319){if(++x>=H)return this._interim=w,R;var Z;56320<=(Z=T.charCodeAt(x))&&Z<=57343?E[R++]=1024*(w-55296)+Z-56320+65536:(E[R++]=w,E[R++]=Z)}else 65279!==w&&(E[R++]=w)}return R},P}();A.StringToUtf32=j;var I=function(){function P(){this.interim=new Uint8Array(3)}return P.prototype.clear=function(){this.interim.fill(0)},P.prototype.decode=function(T,E){var H=T.length;if(!H)return 0;var R,v,x,w,Z=0,D=0,b=0;if(this.interim[0]){var S=!1,k=this.interim[0];k&=192==(224&k)?31:224==(240&k)?15:7;for(var M=0,N=void 0;(N=63&this.interim[++M])&&M<4;)k<<=6,k|=N;for(var F=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,X=F-M;b<X;){if(b>=H)return 0;if(128!=(192&(N=T[b++]))){b--,S=!0;break}this.interim[M++]=N,k<<=6,k|=63&N}S||(2===F?k<128?b--:E[Z++]=k:3===F?k<2048||k>=55296&&k<=57343||65279===k||(E[Z++]=k):k<65536||k>1114111||(E[Z++]=k)),this.interim.fill(0)}for(var $=H-4,V=b;V<H;){for(;!(!(V<$)||128&(R=T[V])||128&(v=T[V+1])||128&(x=T[V+2])||128&(w=T[V+3]));)E[Z++]=R,E[Z++]=v,E[Z++]=x,E[Z++]=w,V+=4;if((R=T[V++])<128)E[Z++]=R;else if(192==(224&R)){if(V>=H)return this.interim[0]=R,Z;if(128!=(192&(v=T[V++]))){V--;continue}if((D=(31&R)<<6|63&v)<128){V--;continue}E[Z++]=D}else if(224==(240&R)){if(V>=H)return this.interim[0]=R,Z;if(128!=(192&(v=T[V++]))){V--;continue}if(V>=H)return this.interim[0]=R,this.interim[1]=v,Z;if(128!=(192&(x=T[V++]))){V--;continue}if((D=(15&R)<<12|(63&v)<<6|63&x)<2048||D>=55296&&D<=57343||65279===D)continue;E[Z++]=D}else if(240==(248&R)){if(V>=H)return this.interim[0]=R,Z;if(128!=(192&(v=T[V++]))){V--;continue}if(V>=H)return this.interim[0]=R,this.interim[1]=v,Z;if(128!=(192&(x=T[V++]))){V--;continue}if(V>=H)return this.interim[0]=R,this.interim[1]=v,this.interim[2]=x,Z;if(128!=(192&(w=T[V++]))){V--;continue}if((D=(7&R)<<18|(63&v)<<12|(63&x)<<6|63&w)<65536||D>1114111)continue;E[Z++]=D}}return Z},P}();A.Utf8ToUtf32=I},225:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeV6=void 0;var I,P=j(8273),T=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],E=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],H=function(){function R(){if(this.version="6",!I){I=new Uint8Array(65536),(0,P.fill)(I,1),I[0]=0,(0,P.fill)(I,0,1,32),(0,P.fill)(I,0,127,160),(0,P.fill)(I,2,4352,4448),I[9001]=2,I[9002]=2,(0,P.fill)(I,2,11904,42192),I[12351]=1,(0,P.fill)(I,2,44032,55204),(0,P.fill)(I,2,63744,64256),(0,P.fill)(I,2,65040,65050),(0,P.fill)(I,2,65072,65136),(0,P.fill)(I,2,65280,65377),(0,P.fill)(I,2,65504,65511);for(var v=0;v<T.length;++v)(0,P.fill)(I,0,T[v][0],T[v][1]+1)}}return R.prototype.wcwidth=function(v){return v<32?0:v<127?1:v<65536?I[v]:function(x,w){var Z,D=0,b=w.length-1;if(x<w[0][0]||x>w[b][1])return!1;for(;b>=D;)if(x>w[Z=D+b>>1][1])D=Z+1;else{if(!(x<w[Z][0]))return!0;b=Z-1}return!1}(v,E)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1},R}();A.UnicodeV6=H},5981:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.WriteBuffer=void 0;var I=j(8460),P="undefined"==typeof queueMicrotask?function(E){Promise.resolve().then(E)}:queueMicrotask,T=function(){function E(H){this._action=H,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new I.EventEmitter}return Object.defineProperty(E.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),E.prototype.writeSync=function(H,R){if(void 0!==R&&this._syncCalls>R)this._syncCalls=0;else if(this._pendingData+=H.length,this._writeBuffer.push(H),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);var x=this._callbacks.shift();x&&x()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},E.prototype.write=function(H,R){var v=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return v._innerWrite()})),this._pendingData+=H.length,this._writeBuffer.push(H),this._callbacks.push(R)},E.prototype._innerWrite=function(H,R){var v=this;void 0===H&&(H=0),void 0===R&&(R=!0);for(var x=H||Date.now();this._writeBuffer.length>this._bufferOffset;){var w=this._writeBuffer[this._bufferOffset],Z=this._action(w,R);if(Z)return void Z.catch(function(b){return P(function(){throw b}),Promise.resolve(!1)}).then(function(b){return Date.now()-x>=12?setTimeout(function(){return v._innerWrite(0,b)}):v._innerWrite(x,b)});var D=this._callbacks[this._bufferOffset];if(D&&D(),this._bufferOffset++,this._pendingData-=w.length,Date.now()-x>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return v._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},E}();A.WriteBuffer=T},5941:function(W,A){var j=this&&this.__read||function(E,H){var R="function"==typeof Symbol&&E[Symbol.iterator];if(!R)return E;var v,x,w=R.call(E),Z=[];try{for(;(void 0===H||H-- >0)&&!(v=w.next()).done;)Z.push(v.value)}catch(D){x={error:D}}finally{try{v&&!v.done&&(R=w.return)&&R.call(w)}finally{if(x)throw x.error}}return Z};Object.defineProperty(A,"__esModule",{value:!0}),A.toRgbString=A.parseColor=void 0;var I=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,P=/^[\da-f]+$/;function T(E,H){var R=E.toString(16),v=R.length<2?"0"+R:R;switch(H){case 4:return R[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}A.parseColor=function(E){if(E){var H=E.toLowerCase();if(0===H.indexOf("rgb:")){H=H.slice(4);var R=I.exec(H);if(R){var v=R[1]?15:R[4]?255:R[7]?4095:65535;return[Math.round(parseInt(R[1]||R[4]||R[7]||R[10],16)/v*255),Math.round(parseInt(R[2]||R[5]||R[8]||R[11],16)/v*255),Math.round(parseInt(R[3]||R[6]||R[9]||R[12],16)/v*255)]}}else if(0===H.indexOf("#")&&(H=H.slice(1),P.exec(H)&&[3,6,9,12].includes(H.length))){for(var x=H.length/3,w=[0,0,0],Z=0;Z<3;++Z){var D=parseInt(H.slice(x*Z,x*Z+x),16);w[Z]=1===x?D<<4:2===x?D:3===x?D>>4:D>>8}return w}}},A.toRgbString=function(E,H){void 0===H&&(H=16);var R=j(E,3),v=R[0],x=R[1],w=R[2];return"rgb:"+T(v,H)+"/"+T(x,H)+"/"+T(w,H)}},5770:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.PAYLOAD_LIMIT=void 0,A.PAYLOAD_LIMIT=1e7},6351:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.DcsHandler=A.DcsParser=void 0;var I=j(482),P=j(8742),T=j(5770),E=[],H=function(){function x(){this._handlers=Object.create(null),this._active=E,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return x.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=E},x.prototype.registerHandler=function(w,Z){void 0===this._handlers[w]&&(this._handlers[w]=[]);var D=this._handlers[w];return D.push(Z),{dispose:function(){var S=D.indexOf(Z);-1!==S&&D.splice(S,1)}}},x.prototype.clearHandler=function(w){this._handlers[w]&&delete this._handlers[w]},x.prototype.setHandlerFallback=function(w){this._handlerFb=w},x.prototype.reset=function(){if(this._active.length)for(var w=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;w>=0;--w)this._active[w].unhook(!1);this._stack.paused=!1,this._active=E,this._ident=0},x.prototype.hook=function(w,Z){if(this.reset(),this._ident=w,this._active=this._handlers[w]||E,this._active.length)for(var D=this._active.length-1;D>=0;D--)this._active[D].hook(Z);else this._handlerFb(this._ident,"HOOK",Z)},x.prototype.put=function(w,Z,D){if(this._active.length)for(var b=this._active.length-1;b>=0;b--)this._active[b].put(w,Z,D);else this._handlerFb(this._ident,"PUT",(0,I.utf32ToString)(w,Z,D))},x.prototype.unhook=function(w,Z){if(void 0===Z&&(Z=!0),this._active.length){var D=!1,b=this._active.length-1,S=!1;if(this._stack.paused&&(b=this._stack.loopPosition-1,D=Z,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===D){for(;b>=0&&!0!==(D=this._active[b].unhook(w));b--)if(D instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=b,this._stack.fallThrough=!1,D;b--}for(;b>=0;b--)if((D=this._active[b].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=b,this._stack.fallThrough=!0,D}else this._handlerFb(this._ident,"UNHOOK",w);this._active=E,this._ident=0},x}();A.DcsParser=H;var R=new P.Params;R.addParam(0);var v=function(){function x(w){this._handler=w,this._data="",this._params=R,this._hitLimit=!1}return x.prototype.hook=function(w){this._params=w.length>1||w.params[0]?w.clone():R,this._data="",this._hitLimit=!1},x.prototype.put=function(w,Z,D){this._hitLimit||(this._data+=(0,I.utf32ToString)(w,Z,D),this._data.length>T.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},x.prototype.unhook=function(w){var Z=this,D=!1;if(this._hitLimit)D=!1;else if(w&&(D=this._handler(this._data,this._params))instanceof Promise)return D.then(function(b){return Z._params=R,Z._data="",Z._hitLimit=!1,b});return this._params=R,this._data="",this._hitLimit=!1,D},x}();A.DcsHandler=v},2015:function(W,A,j){var I,P=this&&this.__extends||(I=function(b,S){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}I(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)});Object.defineProperty(A,"__esModule",{value:!0}),A.EscapeSequenceParser=A.VT500_TRANSITION_TABLE=A.TransitionTable=void 0;var T=j(844),E=j(8273),H=j(8742),R=j(6242),v=j(6351),x=function(){function D(b){this.table=new Uint8Array(b)}return D.prototype.setDefault=function(b,S){(0,E.fill)(this.table,b<<4|S)},D.prototype.add=function(b,S,k,M){this.table[S<<8|b]=k<<4|M},D.prototype.addMany=function(b,S,k,M){for(var N=0;N<b.length;N++)this.table[S<<8|b[N]]=k<<4|M},D}();A.TransitionTable=x;var w=160;A.VT500_TRANSITION_TABLE=function(){var D=new x(4095),b=Array.apply(null,Array(256)).map(function(X,$){return $}),S=function($,V){return b.slice($,V)},k=S(32,127),M=S(0,24);M.push(25),M.push.apply(M,S(28,32));var N,F=S(0,14);for(N in D.setDefault(1,0),D.addMany(k,0,2,0),F)D.addMany([24,26,153,154],N,3,0),D.addMany(S(128,144),N,3,0),D.addMany(S(144,152),N,3,0),D.add(156,N,0,0),D.add(27,N,11,1),D.add(157,N,4,8),D.addMany([152,158,159],N,0,7),D.add(155,N,11,3),D.add(144,N,11,9);return D.addMany(M,0,3,0),D.addMany(M,1,3,1),D.add(127,1,0,1),D.addMany(M,8,0,8),D.addMany(M,3,3,3),D.add(127,3,0,3),D.addMany(M,4,3,4),D.add(127,4,0,4),D.addMany(M,6,3,6),D.addMany(M,5,3,5),D.add(127,5,0,5),D.addMany(M,2,3,2),D.add(127,2,0,2),D.add(93,1,4,8),D.addMany(k,8,5,8),D.add(127,8,5,8),D.addMany([156,27,24,26,7],8,6,0),D.addMany(S(28,32),8,0,8),D.addMany([88,94,95],1,0,7),D.addMany(k,7,0,7),D.addMany(M,7,0,7),D.add(156,7,0,0),D.add(127,7,0,7),D.add(91,1,11,3),D.addMany(S(64,127),3,7,0),D.addMany(S(48,60),3,8,4),D.addMany([60,61,62,63],3,9,4),D.addMany(S(48,60),4,8,4),D.addMany(S(64,127),4,7,0),D.addMany([60,61,62,63],4,0,6),D.addMany(S(32,64),6,0,6),D.add(127,6,0,6),D.addMany(S(64,127),6,0,0),D.addMany(S(32,48),3,9,5),D.addMany(S(32,48),5,9,5),D.addMany(S(48,64),5,0,6),D.addMany(S(64,127),5,7,0),D.addMany(S(32,48),4,9,5),D.addMany(S(32,48),1,9,2),D.addMany(S(32,48),2,9,2),D.addMany(S(48,127),2,10,0),D.addMany(S(48,80),1,10,0),D.addMany(S(81,88),1,10,0),D.addMany([89,90,92],1,10,0),D.addMany(S(96,127),1,10,0),D.add(80,1,11,9),D.addMany(M,9,0,9),D.add(127,9,0,9),D.addMany(S(28,32),9,0,9),D.addMany(S(32,48),9,9,12),D.addMany(S(48,60),9,8,10),D.addMany([60,61,62,63],9,9,10),D.addMany(M,11,0,11),D.addMany(S(32,128),11,0,11),D.addMany(S(28,32),11,0,11),D.addMany(M,10,0,10),D.add(127,10,0,10),D.addMany(S(28,32),10,0,10),D.addMany(S(48,60),10,8,10),D.addMany([60,61,62,63],10,0,11),D.addMany(S(32,48),10,9,12),D.addMany(M,12,0,12),D.add(127,12,0,12),D.addMany(S(28,32),12,0,12),D.addMany(S(32,48),12,9,12),D.addMany(S(48,64),12,0,11),D.addMany(S(64,127),12,12,13),D.addMany(S(64,127),10,12,13),D.addMany(S(64,127),9,12,13),D.addMany(M,13,13,13),D.addMany(k,13,13,13),D.add(127,13,0,13),D.addMany([27,156,24,26],13,14,0),D.add(w,0,2,0),D.add(w,8,5,8),D.add(w,6,0,6),D.add(w,11,0,11),D.add(w,13,13,13),D}();var Z=function(D){function b(S){void 0===S&&(S=A.VT500_TRANSITION_TABLE);var k=D.call(this)||this;return k._transitions=S,k._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},k.initialState=0,k.currentState=k.initialState,k._params=new H.Params,k._params.addParam(0),k._collect=0,k.precedingCodepoint=0,k._printHandlerFb=function(M,N,F){},k._executeHandlerFb=function(M){},k._csiHandlerFb=function(M,N){},k._escHandlerFb=function(M){},k._errorHandlerFb=function(M){return M},k._printHandler=k._printHandlerFb,k._executeHandlers=Object.create(null),k._csiHandlers=Object.create(null),k._escHandlers=Object.create(null),k._oscParser=new R.OscParser,k._dcsParser=new v.DcsParser,k._errorHandler=k._errorHandlerFb,k.registerEscHandler({final:"\\"},function(){return!0}),k}return P(b,D),b.prototype._identifier=function(S,k){void 0===k&&(k=[64,126]);var M=0;if(S.prefix){if(S.prefix.length>1)throw new Error("only one byte as prefix supported");if((M=S.prefix.charCodeAt(0))&&60>M||M>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var N=0;N<S.intermediates.length;++N){var F=S.intermediates.charCodeAt(N);if(32>F||F>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");M<<=8,M|=F}}if(1!==S.final.length)throw new Error("final must be a single byte");var X=S.final.charCodeAt(0);if(k[0]>X||X>k[1])throw new Error("final must be in range "+k[0]+" .. "+k[1]);return(M<<=8)|X},b.prototype.identToString=function(S){for(var k=[];S;)k.push(String.fromCharCode(255&S)),S>>=8;return k.reverse().join("")},b.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},b.prototype.setPrintHandler=function(S){this._printHandler=S},b.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},b.prototype.registerEscHandler=function(S,k){var M=this._identifier(S,[48,126]);void 0===this._escHandlers[M]&&(this._escHandlers[M]=[]);var N=this._escHandlers[M];return N.push(k),{dispose:function(){var X=N.indexOf(k);-1!==X&&N.splice(X,1)}}},b.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},b.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},b.prototype.setExecuteHandler=function(S,k){this._executeHandlers[S.charCodeAt(0)]=k},b.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},b.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},b.prototype.registerCsiHandler=function(S,k){var M=this._identifier(S);void 0===this._csiHandlers[M]&&(this._csiHandlers[M]=[]);var N=this._csiHandlers[M];return N.push(k),{dispose:function(){var X=N.indexOf(k);-1!==X&&N.splice(X,1)}}},b.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},b.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},b.prototype.registerDcsHandler=function(S,k){return this._dcsParser.registerHandler(this._identifier(S),k)},b.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},b.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},b.prototype.registerOscHandler=function(S,k){return this._oscParser.registerHandler(S,k)},b.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},b.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},b.prototype.setErrorHandler=function(S){this._errorHandler=S},b.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},b.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},b.prototype._preserveStack=function(S,k,M,N,F){this._parseStack.state=S,this._parseStack.handlers=k,this._parseStack.handlerPos=M,this._parseStack.transition=N,this._parseStack.chunkPos=F},b.prototype.parse=function(S,k,M){var N,F=0,X=0,$=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,$=this._parseStack.chunkPos+1;else{if(void 0===M||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var V=this._parseStack.handlers,Q=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===M&&Q>-1)for(;Q>=0&&!0!==(N=V[Q](this._params));Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 4:if(!1===M&&Q>-1)for(;Q>=0&&!0!==(N=V[Q]());Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 6:if(F=S[this._parseStack.chunkPos],N=this._dcsParser.unhook(24!==F&&26!==F,M))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(F=S[this._parseStack.chunkPos],N=this._oscParser.end(24!==F&&26!==F,M))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,$=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var te=$;te<k;++te){switch(F=S[te],(X=this._transitions.table[this.currentState<<8|(F<160?F:w)])>>4){case 2:for(var be=te+1;;++be){if(be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}if(++be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}if(++be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}if(++be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}}break;case 3:this._executeHandlers[F]?this._executeHandlers[F]():this._executeHandlerFb(F),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:te,code:F,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var pe=(V=this._csiHandlers[this._collect<<8|F])?V.length-1:-1;pe>=0&&!0!==(N=V[pe](this._params));pe--)if(N instanceof Promise)return this._preserveStack(3,V,pe,X,te),N;pe<0&&this._csiHandlerFb(this._collect<<8|F,this._params),this.precedingCodepoint=0;break;case 8:do{switch(F){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(F-48)}}while(++te<k&&(F=S[te])>47&&F<60);te--;break;case 9:this._collect<<=8,this._collect|=F;break;case 10:for(var fe=this._escHandlers[this._collect<<8|F],ue=fe?fe.length-1:-1;ue>=0&&!0!==(N=fe[ue]());ue--)if(N instanceof Promise)return this._preserveStack(4,fe,ue,X,te),N;ue<0&&this._escHandlerFb(this._collect<<8|F),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|F,this._params);break;case 13:for(var de=te+1;;++de)if(de>=k||24===(F=S[de])||26===F||27===F||F>127&&F<w){this._dcsParser.put(S,te,de),te=de-1;break}break;case 14:if(N=this._dcsParser.unhook(24!==F&&26!==F))return this._preserveStack(6,[],0,X,te),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var ge=te+1;;ge++)if(ge>=k||(F=S[ge])<32||F>127&&F<w){this._oscParser.put(S,te,ge),te=ge-1;break}break;case 6:if(N=this._oscParser.end(24!==F&&26!==F))return this._preserveStack(5,[],0,X,te),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&X}},b}(T.Disposable);A.EscapeSequenceParser=Z},6242:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.OscHandler=A.OscParser=void 0;var I=j(5770),P=j(482),T=[],E=function(){function R(){this._state=0,this._active=T,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return R.prototype.registerHandler=function(v,x){void 0===this._handlers[v]&&(this._handlers[v]=[]);var w=this._handlers[v];return w.push(x),{dispose:function(){var D=w.indexOf(x);-1!==D&&w.splice(D,1)}}},R.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},R.prototype.setHandlerFallback=function(v){this._handlerFb=v},R.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=T},R.prototype.reset=function(){if(2===this._state)for(var v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].end(!1);this._stack.paused=!1,this._active=T,this._id=-1,this._state=0},R.prototype._start=function(){if(this._active=this._handlers[this._id]||T,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")},R.prototype._put=function(v,x,w){if(this._active.length)for(var Z=this._active.length-1;Z>=0;Z--)this._active[Z].put(v,x,w);else this._handlerFb(this._id,"PUT",(0,P.utf32ToString)(v,x,w))},R.prototype.start=function(){this.reset(),this._state=1},R.prototype.put=function(v,x,w){if(3!==this._state){if(1===this._state)for(;x<w;){var Z=v[x++];if(59===Z){this._state=2,this._start();break}if(Z<48||57<Z)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+Z-48}2===this._state&&w-x>0&&this._put(v,x,w)}},R.prototype.end=function(v,x){if(void 0===x&&(x=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var w=!1,Z=this._active.length-1,D=!1;if(this._stack.paused&&(Z=this._stack.loopPosition-1,w=x,D=this._stack.fallThrough,this._stack.paused=!1),!D&&!1===w){for(;Z>=0&&!0!==(w=this._active[Z].end(v));Z--)if(w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=Z,this._stack.fallThrough=!1,w;Z--}for(;Z>=0;Z--)if((w=this._active[Z].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=Z,this._stack.fallThrough=!0,w}else this._handlerFb(this._id,"END",v);this._active=T,this._id=-1,this._state=0}},R}();A.OscParser=E;var H=function(){function R(v){this._handler=v,this._data="",this._hitLimit=!1}return R.prototype.start=function(){this._data="",this._hitLimit=!1},R.prototype.put=function(v,x,w){this._hitLimit||(this._data+=(0,P.utf32ToString)(v,x,w),this._data.length>I.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},R.prototype.end=function(v){var x=this,w=!1;if(this._hitLimit)w=!1;else if(v&&(w=this._handler(this._data))instanceof Promise)return w.then(function(Z){return x._data="",x._hitLimit=!1,Z});return this._data="",this._hitLimit=!1,w},R}();A.OscHandler=H},8742:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Params=void 0;var j=2147483647,I=function(){function P(T,E){if(void 0===T&&(T=32),void 0===E&&(E=32),this.maxLength=T,this.maxSubParamsLength=E,E>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(T),this.length=0,this._subParams=new Int32Array(E),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(T),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return P.fromArray=function(T){var E=new P;if(!T.length)return E;for(var H=Array.isArray(T[0])?1:0;H<T.length;++H){var R=T[H];if(Array.isArray(R))for(var v=0;v<R.length;++v)E.addSubParam(R[v]);else E.addParam(R)}return E},P.prototype.clone=function(){var T=new P(this.maxLength,this.maxSubParamsLength);return T.params.set(this.params),T.length=this.length,T._subParams.set(this._subParams),T._subParamsLength=this._subParamsLength,T._subParamsIdx.set(this._subParamsIdx),T._rejectDigits=this._rejectDigits,T._rejectSubDigits=this._rejectSubDigits,T._digitIsSub=this._digitIsSub,T},P.prototype.toArray=function(){for(var T=[],E=0;E<this.length;++E){T.push(this.params[E]);var H=this._subParamsIdx[E]>>8,R=255&this._subParamsIdx[E];R-H>0&&T.push(Array.prototype.slice.call(this._subParams,H,R))}return T},P.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},P.prototype.addParam=function(T){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(T<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=T>j?j:T}},P.prototype.addSubParam=function(T){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(T<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=T>j?j:T,this._subParamsIdx[this.length-1]++}},P.prototype.hasSubParams=function(T){return(255&this._subParamsIdx[T])-(this._subParamsIdx[T]>>8)>0},P.prototype.getSubParams=function(T){var E=this._subParamsIdx[T]>>8,H=255&this._subParamsIdx[T];return H-E>0?this._subParams.subarray(E,H):null},P.prototype.getSubParamsAll=function(){for(var T={},E=0;E<this.length;++E){var H=this._subParamsIdx[E]>>8,R=255&this._subParamsIdx[E];R-H>0&&(T[E]=this._subParams.slice(H,R))}return T},P.prototype.addDigit=function(T){var E;if(!(this._rejectDigits||!(E=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var H=this._digitIsSub?this._subParams:this.params,R=H[E-1];H[E-1]=~R?Math.min(10*R+T,j):T}},P}();A.Params=I},5741:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.AddonManager=void 0;var j=function(){function I(){this._addons=[]}return I.prototype.dispose=function(){for(var P=this._addons.length-1;P>=0;P--)this._addons[P].instance.dispose()},I.prototype.loadAddon=function(P,T){var E=this,H={instance:T,dispose:T.dispose,isDisposed:!1};this._addons.push(H),T.dispose=function(){return E._wrappedAddonDispose(H)},T.activate(P)},I.prototype._wrappedAddonDispose=function(P){if(!P.isDisposed){for(var T=-1,E=0;E<this._addons.length;E++)if(this._addons[E]===P){T=E;break}if(-1===T)throw new Error("Could not dispose an addon that has not been loaded");P.isDisposed=!0,P.dispose.apply(P.instance),this._addons.splice(T,1)}},I}();A.AddonManager=j},8771:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferApiView=void 0;var I=j(3785),P=j(511),T=function(){function E(H,R){this._buffer=H,this.type=R}return E.prototype.init=function(H){return this._buffer=H,this},Object.defineProperty(E.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),E.prototype.getLine=function(H){var R=this._buffer.lines.get(H);if(R)return new I.BufferLineApiView(R)},E.prototype.getNullCell=function(){return new P.CellData},E}();A.BufferApiView=T},3785:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLineApiView=void 0;var I=j(511),P=function(){function T(E){this._line=E}return Object.defineProperty(T.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),T.prototype.getCell=function(E,H){if(!(E<0||E>=this._line.length))return H?(this._line.loadCell(E,H),H):this._line.loadCell(E,new I.CellData)},T.prototype.translateToString=function(E,H,R){return this._line.translateToString(E,H,R)},T}();A.BufferLineApiView=P},8285:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferNamespaceApi=void 0;var I=j(8771),P=j(8460),T=function(){function E(H){var R=this;this._core=H,this._onBufferChange=new P.EventEmitter,this._normal=new I.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new I.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return R._onBufferChange.fire(R.active)})}return Object.defineProperty(E.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),E}();A.BufferNamespaceApi=T},7975:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ParserApi=void 0;var j=function(){function I(P){this._core=P}return I.prototype.registerCsiHandler=function(P,T){return this._core.registerCsiHandler(P,function(E){return T(E.toArray())})},I.prototype.addCsiHandler=function(P,T){return this.registerCsiHandler(P,T)},I.prototype.registerDcsHandler=function(P,T){return this._core.registerDcsHandler(P,function(E,H){return T(E,H.toArray())})},I.prototype.addDcsHandler=function(P,T){return this.registerDcsHandler(P,T)},I.prototype.registerEscHandler=function(P,T){return this._core.registerEscHandler(P,T)},I.prototype.addEscHandler=function(P,T){return this.registerEscHandler(P,T)},I.prototype.registerOscHandler=function(P,T){return this._core.registerOscHandler(P,T)},I.prototype.addOscHandler=function(P,T){return this.registerOscHandler(P,T)},I}();A.ParserApi=j},7090:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeApi=void 0;var j=function(){function I(P){this._core=P}return I.prototype.register=function(P){this._core.unicodeService.register(P)},Object.defineProperty(I.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(T){this._core.unicodeService.activeVersion=T},enumerable:!1,configurable:!0}),I}();A.UnicodeApi=j},744:function(W,A,j){var I,P=this&&this.__extends||(I=function(D,b){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}I(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferService=A.MINIMUM_ROWS=A.MINIMUM_COLS=void 0;var H=j(2585),R=j(5295),v=j(8460),x=j(844);A.MINIMUM_COLS=2,A.MINIMUM_ROWS=1;var w=function(Z){function D(b){var S=Z.call(this)||this;return S._optionsService=b,S.isUserScrolling=!1,S._onResize=new v.EventEmitter,S._onScroll=new v.EventEmitter,S.cols=Math.max(b.rawOptions.cols||0,A.MINIMUM_COLS),S.rows=Math.max(b.rawOptions.rows||0,A.MINIMUM_ROWS),S.buffers=new R.BufferSet(b,S),S}return P(D,Z),Object.defineProperty(D.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),D.prototype.dispose=function(){Z.prototype.dispose.call(this),this.buffers.dispose()},D.prototype.resize=function(b,S){this.cols=b,this.rows=S,this.buffers.resize(b,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:b,rows:S})},D.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},D.prototype.scroll=function(b,S){void 0===S&&(S=!1);var k,M=this.buffer;(k=this._cachedBlankLine)&&k.length===this.cols&&k.getFg(0)===b.fg&&k.getBg(0)===b.bg||(k=M.getBlankLine(b,S),this._cachedBlankLine=k),k.isWrapped=S;var N=M.ybase+M.scrollTop,F=M.ybase+M.scrollBottom;if(0===M.scrollTop){var X=M.lines.isFull;F===M.lines.length-1?X?M.lines.recycle().copyFrom(k):M.lines.push(k.clone()):M.lines.splice(F+1,0,k.clone()),X?this.isUserScrolling&&(M.ydisp=Math.max(M.ydisp-1,0)):(M.ybase++,this.isUserScrolling||M.ydisp++)}else{var $=F-N+1;M.lines.shiftElements(N+1,$-1,-1),M.lines.set(F,k.clone())}this.isUserScrolling||(M.ydisp=M.ybase),this._onScroll.fire(M.ydisp)},D.prototype.scrollLines=function(b,S,k){var M=this.buffer;if(b<0){if(0===M.ydisp)return;this.isUserScrolling=!0}else b+M.ydisp>=M.ybase&&(this.isUserScrolling=!1);var N=M.ydisp;M.ydisp=Math.max(Math.min(M.ydisp+b,M.ybase),0),N!==M.ydisp&&(S||this._onScroll.fire(M.ydisp))},D.prototype.scrollPages=function(b){this.scrollLines(b*(this.rows-1))},D.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},D.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},D.prototype.scrollToLine=function(b){var S=b-this.buffer.ydisp;0!==S&&this.scrollLines(S)},T([E(0,H.IOptionsService)],D)}(x.Disposable);A.BufferService=w},7994:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CharsetService=void 0;var j=function(){function I(){this.glevel=0,this._charsets=[]}return I.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},I.prototype.setgLevel=function(P){this.glevel=P,this.charset=this._charsets[P]},I.prototype.setgCharset=function(P,T){this._charsets[P]=T,this.glevel===P&&(this.charset=T)},I}();A.CharsetService=j},1753:function(W,A,j){var I=this&&this.__decorate||function(D,b,S,k){var M,N=arguments.length,F=N<3?b:null===k?k=Object.getOwnPropertyDescriptor(b,S):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(D,b,S,k);else for(var X=D.length-1;X>=0;X--)(M=D[X])&&(F=(N<3?M(F):N>3?M(b,S,F):M(b,S))||F);return N>3&&F&&Object.defineProperty(b,S,F),F},P=this&&this.__param||function(D,b){return function(S,k){b(S,k,D)}},T=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreMouseService=void 0;var E=j(2585),H=j(8460),R={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(b){return 4!==b.button&&1===b.action&&(b.ctrl=!1,b.alt=!1,b.shift=!1,!0)}},VT200:{events:19,restrict:function(b){return 32!==b.action}},DRAG:{events:23,restrict:function(b){return 32!==b.action||3!==b.button}},ANY:{events:31,restrict:function(b){return!0}}};function v(D,b){var S=(D.ctrl?16:0)|(D.shift?4:0)|(D.alt?8:0);return 4===D.button?(S|=64,S|=D.action):(S|=3&D.button,4&D.button&&(S|=64),8&D.button&&(S|=128),32===D.action?S|=32:0!==D.action||b||(S|=3)),S}var x=String.fromCharCode,w={DEFAULT:function(b){var S=[v(b,!1)+32,b.col+32,b.row+32];return S[0]>255||S[1]>255||S[2]>255?"":"\x1b[M"+x(S[0])+x(S[1])+x(S[2])},SGR:function(b){var S=0===b.action&&4!==b.button?"m":"M";return"\x1b[<"+v(b,!0)+";"+b.col+";"+b.row+S}},Z=function(){function D(b,S){var k,M,N,F;this._bufferService=b,this._coreService=S,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new H.EventEmitter,this._lastEvent=null;try{for(var X=T(Object.keys(R)),$=X.next();!$.done;$=X.next()){var V=$.value;this.addProtocol(V,R[V])}}catch(pe){k={error:pe}}finally{try{$&&!$.done&&(M=X.return)&&M.call(X)}finally{if(k)throw k.error}}try{for(var Q=T(Object.keys(w)),te=Q.next();!te.done;te=Q.next()){var be=te.value;this.addEncoding(be,w[be])}}catch(pe){N={error:pe}}finally{try{te&&!te.done&&(F=Q.return)&&F.call(Q)}finally{if(N)throw N.error}}this.reset()}return D.prototype.addProtocol=function(b,S){this._protocols[b]=S},D.prototype.addEncoding=function(b,S){this._encodings[b]=S},Object.defineProperty(D.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(S){if(!this._protocols[S])throw new Error('unknown protocol "'+S+'"');this._activeProtocol=S,this._onProtocolChange.fire(this._protocols[S].events)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(S){if(!this._encodings[S])throw new Error('unknown encoding "'+S+'"');this._activeEncoding=S},enumerable:!1,configurable:!0}),D.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(D.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),D.prototype.triggerMouseEvent=function(b){if(b.col<0||b.col>=this._bufferService.cols||b.row<0||b.row>=this._bufferService.rows||4===b.button&&32===b.action||3===b.button&&32!==b.action||4!==b.button&&(2===b.action||3===b.action)||(b.col++,b.row++,32===b.action&&this._lastEvent&&this._compareEvents(this._lastEvent,b))||!this._protocols[this._activeProtocol].restrict(b))return!1;var S=this._encodings[this._activeEncoding](b);return S&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(S):this._coreService.triggerDataEvent(S,!0)),this._lastEvent=b,!0},D.prototype.explainEvents=function(b){return{down:!!(1&b),up:!!(2&b),drag:!!(4&b),move:!!(8&b),wheel:!!(16&b)}},D.prototype._compareEvents=function(b,S){return b.col===S.col&&b.row===S.row&&b.button===S.button&&b.action===S.action&&b.ctrl===S.ctrl&&b.alt===S.alt&&b.shift===S.shift},I([P(0,E.IBufferService),P(1,E.ICoreService)],D)}();A.CoreMouseService=Z},6975:function(W,A,j){var I,P=this&&this.__extends||(I=function(S,k){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(M[F]=N[F])})(S,k)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=b}I(b,S),b.prototype=null===S?Object.create(S):(k.prototype=S.prototype,new k)}),T=this&&this.__decorate||function(b,S,k,M){var N,F=arguments.length,X=F<3?S:null===M?M=Object.getOwnPropertyDescriptor(S,k):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(b,S,k,M);else for(var $=b.length-1;$>=0;$--)(N=b[$])&&(X=(F<3?N(X):F>3?N(S,k,X):N(S,k))||X);return F>3&&X&&Object.defineProperty(S,k,X),X},E=this&&this.__param||function(b,S){return function(k,M){S(k,M,b)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreService=void 0;var H=j(2585),R=j(8460),v=j(1439),x=j(844),w=Object.freeze({insertMode:!1}),Z=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),D=function(b){function S(k,M,N,F){var X=b.call(this)||this;return X._bufferService=M,X._logService=N,X._optionsService=F,X.isCursorInitialized=!1,X.isCursorHidden=!1,X._onData=X.register(new R.EventEmitter),X._onUserInput=X.register(new R.EventEmitter),X._onBinary=X.register(new R.EventEmitter),X._scrollToBottom=k,X.register({dispose:function(){return X._scrollToBottom=void 0}}),X.modes=(0,v.clone)(w),X.decPrivateModes=(0,v.clone)(Z),X}return P(S,b),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=(0,v.clone)(w),this.decPrivateModes=(0,v.clone)(Z)},S.prototype.triggerDataEvent=function(k,M){if(void 0===M&&(M=!1),!this._optionsService.rawOptions.disableStdin){var N=this._bufferService.buffer;N.ybase!==N.ydisp&&this._scrollToBottom(),M&&this._onUserInput.fire(),this._logService.debug('sending data "'+k+'"',function(){return k.split("").map(function(F){return F.charCodeAt(0)})}),this._onData.fire(k)}},S.prototype.triggerBinaryEvent=function(k){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+k+'"',function(){return k.split("").map(function(M){return M.charCodeAt(0)})}),this._onBinary.fire(k))},T([E(1,H.IBufferService),E(2,H.ILogService),E(3,H.IOptionsService)],S)}(x.Disposable);A.CoreService=D},9074:function(W,A,j){var I,P=this&&this.__extends||(I=function(b,S){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}I(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)}),T=this&&this.__generator||function(D,b){var S,k,M,N,F={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return N={next:X(0),throw:X(1),return:X(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function X($){return function(V){return function(Q){if(S)throw new TypeError("Generator is already executing.");for(;F;)try{if(S=1,k&&(M=2&Q[0]?k.return:Q[0]?k.throw||((M=k.return)&&M.call(k),0):k.next)&&!(M=M.call(k,Q[1])).done)return M;switch(k=0,M&&(Q=[2&Q[0],M.value]),Q[0]){case 0:case 1:M=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,k=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((M=(M=F.trys).length>0&&M[M.length-1])||6!==Q[0]&&2!==Q[0])){F=0;continue}if(3===Q[0]&&(!M||Q[1]>M[0]&&Q[1]<M[3])){F.label=Q[1];break}if(6===Q[0]&&F.label<M[1]){F.label=M[1],M=Q;break}if(M&&F.label<M[2]){F.label=M[2],F.ops.push(Q);break}M[2]&&F.ops.pop(),F.trys.pop();continue}Q=b.call(D,F)}catch(te){Q=[6,te],k=0}finally{S=M=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([$,V])}}},E=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DecorationService=void 0;var H=j(8055),R=j(8460),v=j(844),x=j(6106),w=function(D){function b(){var S=D.call(this)||this;return S._decorations=new x.SortedList(function(k){return k.marker.line}),S._onDecorationRegistered=S.register(new R.EventEmitter),S._onDecorationRemoved=S.register(new R.EventEmitter),S}return P(b,D),Object.defineProperty(b.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),b.prototype.registerDecoration=function(S){var k=this;if(!S.marker.isDisposed){var M=new Z(S);if(M){var N=M.marker.onDispose(function(){return M.dispose()});M.onDispose(function(){M&&(k._decorations.delete(M)&&k._onDecorationRemoved.fire(M),N.dispose())}),this._decorations.insert(M),this._onDecorationRegistered.fire(M)}return M}},b.prototype.reset=function(){var S,k;try{for(var M=E(this._decorations.values()),N=M.next();!N.done;N=M.next())N.value.dispose()}catch(F){S={error:F}}finally{try{N&&!N.done&&(k=M.return)&&k.call(M)}finally{if(S)throw S.error}}this._decorations.clear()},b.prototype.getDecorationsAtLine=function(S){return T(this,function(k){return[2,this._decorations.getKeyIterator(S)]})},b.prototype.getDecorationsAtCell=function(S,k,M){var N,F,X,$,V,Q,te,be,pe,fe,ue;return T(this,function(de){switch(de.label){case 0:N=0,F=0,de.label=1;case 1:de.trys.push([1,6,7,8]),X=E(this._decorations.getKeyIterator(k)),$=X.next(),de.label=2;case 2:return $.done?[3,5]:(V=$.value,N=null!==(pe=V.options.x)&&void 0!==pe?pe:0,F=N+(null!==(fe=V.options.width)&&void 0!==fe?fe:1),!(S>=N&&S<F)||M&&(null!==(ue=V.options.layer)&&void 0!==ue?ue:"bottom")!==M?[3,4]:[4,V]);case 3:de.sent(),de.label=4;case 4:return $=X.next(),[3,2];case 5:return[3,8];case 6:return Q=de.sent(),te={error:Q},[3,8];case 7:try{$&&!$.done&&(be=X.return)&&be.call(X)}finally{if(te)throw te.error}return[7];case 8:return[2]}})},b.prototype.dispose=function(){var S,k;try{for(var M=E(this._decorations.values()),N=M.next();!N.done;N=M.next()){var F=N.value;this._onDecorationRemoved.fire(F)}}catch(X){S={error:X}}finally{try{N&&!N.done&&(k=M.return)&&k.call(M)}finally{if(S)throw S.error}}this.reset()},b}(v.Disposable);A.DecorationService=w;var Z=function(D){function b(S){var k=D.call(this)||this;return k.options=S,k.isDisposed=!1,k.onRenderEmitter=k.register(new R.EventEmitter),k.onRender=k.onRenderEmitter.event,k._onDispose=k.register(new R.EventEmitter),k.onDispose=k._onDispose.event,k._cachedBg=null,k._cachedFg=null,k.marker=S.marker,k.options.overviewRulerOptions&&!k.options.overviewRulerOptions.position&&(k.options.overviewRulerOptions.position="full"),k}return P(b,D),Object.defineProperty(b.prototype,"backgroundColorRGB",{get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=H.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"foregroundColorRGB",{get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=H.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),D.prototype.dispose.call(this))},b}(v.Disposable)},3730:function(W,A,j){var I=this&&this.__decorate||function(H,R,v,x){var w,Z=arguments.length,D=Z<3?R:null===x?x=Object.getOwnPropertyDescriptor(R,v):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)D=Reflect.decorate(H,R,v,x);else for(var b=H.length-1;b>=0;b--)(w=H[b])&&(D=(Z<3?w(D):Z>3?w(R,v,D):w(R,v))||D);return Z>3&&D&&Object.defineProperty(R,v,D),D},P=this&&this.__param||function(H,R){return function(v,x){R(v,x,H)}};Object.defineProperty(A,"__esModule",{value:!0}),A.DirtyRowService=void 0;var T=j(2585),E=function(){function H(R){this._bufferService=R,this.clearRange()}return Object.defineProperty(H.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(H.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),H.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},H.prototype.markDirty=function(R){R<this._start?this._start=R:R>this._end&&(this._end=R)},H.prototype.markRangeDirty=function(R,v){if(R>v){var x=R;R=v,v=x}R<this._start&&(this._start=R),v>this._end&&(this._end=v)},H.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},I([P(0,T.IBufferService)],H)}();A.DirtyRowService=E},4348:function(W,A,j){var I=this&&this.__values||function(x){var w="function"==typeof Symbol&&Symbol.iterator,Z=w&&x[w],D=0;if(Z)return Z.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&D>=x.length&&(x=void 0),{value:x&&x[D++],done:!x}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},P=this&&this.__read||function(x,w){var Z="function"==typeof Symbol&&x[Symbol.iterator];if(!Z)return x;var D,b,S=Z.call(x),k=[];try{for(;(void 0===w||w-- >0)&&!(D=S.next()).done;)k.push(D.value)}catch(M){b={error:M}}finally{try{D&&!D.done&&(Z=S.return)&&Z.call(S)}finally{if(b)throw b.error}}return k},T=this&&this.__spreadArray||function(x,w,Z){if(Z||2===arguments.length)for(var D,b=0,S=w.length;b<S;b++)!D&&b in w||(D||(D=Array.prototype.slice.call(w,0,b)),D[b]=w[b]);return x.concat(D||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.InstantiationService=A.ServiceCollection=void 0;var E=j(2585),H=j(8343),R=function(){function x(){for(var w,Z,D=[],b=0;b<arguments.length;b++)D[b]=arguments[b];this._entries=new Map;try{for(var S=I(D),k=S.next();!k.done;k=S.next()){var M=P(k.value,2),N=M[0],F=M[1];this.set(N,F)}}catch(X){w={error:X}}finally{try{k&&!k.done&&(Z=S.return)&&Z.call(S)}finally{if(w)throw w.error}}}return x.prototype.set=function(w,Z){var D=this._entries.get(w);return this._entries.set(w,Z),D},x.prototype.forEach=function(w){this._entries.forEach(function(Z,D){return w(D,Z)})},x.prototype.has=function(w){return this._entries.has(w)},x.prototype.get=function(w){return this._entries.get(w)},x}();A.ServiceCollection=R;var v=function(){function x(){this._services=new R,this._services.set(E.IInstantiationService,this)}return x.prototype.setService=function(w,Z){this._services.set(w,Z)},x.prototype.getService=function(w){return this._services.get(w)},x.prototype.createInstance=function(w){for(var Z,D,b=[],S=1;S<arguments.length;S++)b[S-1]=arguments[S];var k=(0,H.getServiceDependencies)(w).sort(function(Q,te){return Q.index-te.index}),M=[];try{for(var N=I(k),F=N.next();!F.done;F=N.next()){var X=F.value,$=this._services.get(X.id);if(!$)throw new Error("[createInstance] "+w.name+" depends on UNKNOWN service "+X.id+".");M.push($)}}catch(Q){Z={error:Q}}finally{try{F&&!F.done&&(D=N.return)&&D.call(N)}finally{if(Z)throw Z.error}}var V=k.length>0?k[0].index:b.length;if(b.length!==V)throw new Error("[createInstance] First service dependency of "+w.name+" at position "+(V+1)+" conflicts with "+b.length+" static arguments");return new(w.bind.apply(w,T([void 0],P(T(T([],P(b),!1),P(M),!1)),!1)))},x}();A.InstantiationService=v},7866:function(W,A,j){var I=this&&this.__decorate||function(x,w,Z,D){var b,S=arguments.length,k=S<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,Z):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(x,w,Z,D);else for(var M=x.length-1;M>=0;M--)(b=x[M])&&(k=(S<3?b(k):S>3?b(w,Z,k):b(w,Z))||k);return S>3&&k&&Object.defineProperty(w,Z,k),k},P=this&&this.__param||function(x,w){return function(Z,D){w(Z,D,x)}},T=this&&this.__read||function(x,w){var Z="function"==typeof Symbol&&x[Symbol.iterator];if(!Z)return x;var D,b,S=Z.call(x),k=[];try{for(;(void 0===w||w-- >0)&&!(D=S.next()).done;)k.push(D.value)}catch(M){b={error:M}}finally{try{D&&!D.done&&(Z=S.return)&&Z.call(S)}finally{if(b)throw b.error}}return k},E=this&&this.__spreadArray||function(x,w,Z){if(Z||2===arguments.length)for(var D,b=0,S=w.length;b<S;b++)!D&&b in w||(D||(D=Array.prototype.slice.call(w,0,b)),D[b]=w[b]);return x.concat(D||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.LogService=void 0;var H=j(2585),R={debug:H.LogLevelEnum.DEBUG,info:H.LogLevelEnum.INFO,warn:H.LogLevelEnum.WARN,error:H.LogLevelEnum.ERROR,off:H.LogLevelEnum.OFF},v=function(){function x(w){var Z=this;this._optionsService=w,this.logLevel=H.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(D){"logLevel"===D&&Z._updateLogLevel()})}return x.prototype._updateLogLevel=function(){this.logLevel=R[this._optionsService.rawOptions.logLevel]},x.prototype._evalLazyOptionalParams=function(w){for(var Z=0;Z<w.length;Z++)"function"==typeof w[Z]&&(w[Z]=w[Z]())},x.prototype._log=function(w,Z,D){this._evalLazyOptionalParams(D),w.call.apply(w,E([console,"xterm.js: "+Z],T(D),!1))},x.prototype.debug=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=H.LogLevelEnum.DEBUG&&this._log(console.log,w,Z)},x.prototype.info=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=H.LogLevelEnum.INFO&&this._log(console.info,w,Z)},x.prototype.warn=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=H.LogLevelEnum.WARN&&this._log(console.warn,w,Z)},x.prototype.error=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=H.LogLevelEnum.ERROR&&this._log(console.error,w,Z)},I([P(0,H.IOptionsService)],x)}();A.LogService=v},7302:function(W,A,j){var I=this&&this.__assign||function(){return I=Object.assign||function(R){for(var v,x=1,w=arguments.length;x<w;x++)for(var Z in v=arguments[x])Object.prototype.hasOwnProperty.call(v,Z)&&(R[Z]=v[Z]);return R},I.apply(this,arguments)};Object.defineProperty(A,"__esModule",{value:!0}),A.OptionsService=A.DEFAULT_OPTIONS=A.DEFAULT_BELL_SOUND=void 0;var P=j(8460),T=j(6114);A.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",A.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:A.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:T.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:void 0};var E=["normal","bold","100","200","300","400","500","600","700","800","900"],H=function(){function R(v){this._onOptionChange=new P.EventEmitter;var x=I({},A.DEFAULT_OPTIONS);for(var w in v)if(w in x)try{var Z=v[w];x[w]=this._sanitizeAndValidateOption(w,Z)}catch(D){console.error(D)}this.rawOptions=x,this.options=I({},x),this._setupOptions()}return Object.defineProperty(R.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),R.prototype._setupOptions=function(){var v=this,x=function(S){if(!(S in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+S+'"');return v.rawOptions[S]},w=function(S,k){if(!(S in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+S+'"');k=v._sanitizeAndValidateOption(S,k),v.rawOptions[S]!==k&&(v.rawOptions[S]=k,v._onOptionChange.fire(S))};for(var Z in this.rawOptions){var D={get:x.bind(this,Z),set:w.bind(this,Z)};Object.defineProperty(this.options,Z,D)}},R.prototype.setOption=function(v,x){this.options[v]=x},R.prototype._sanitizeAndValidateOption=function(v,x){switch(v){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":x||(x=A.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof x&&1<=x&&x<=1e3)break;x=E.includes(x)?x:A.DEFAULT_OPTIONS[v];break;case"cursorWidth":x=Math.floor(x);case"lineHeight":case"tabStopWidth":if(x<1)throw new Error(v+" cannot be less than 1, value: "+x);break;case"minimumContrastRatio":x=Math.max(1,Math.min(21,Math.round(10*x)/10));break;case"scrollback":if((x=Math.min(x,4294967295))<0)throw new Error(v+" cannot be less than 0, value: "+x);break;case"fastScrollSensitivity":case"scrollSensitivity":if(x<=0)throw new Error(v+" cannot be less than or equal to 0, value: "+x);case"rows":case"cols":if(!x&&0!==x)throw new Error(v+" must be numeric, value: "+x)}return x},R.prototype.getOption=function(v){return this.options[v]},R}();A.OptionsService=H},8343:function(W,A){function j(I,P,T){P.di$target===P?P.di$dependencies.push({id:I,index:T}):(P.di$dependencies=[{id:I,index:T}],P.di$target=P)}Object.defineProperty(A,"__esModule",{value:!0}),A.createDecorator=A.getServiceDependencies=A.serviceRegistry=void 0,A.serviceRegistry=new Map,A.getServiceDependencies=function(I){return I.di$dependencies||[]},A.createDecorator=function(I){if(A.serviceRegistry.has(I))return A.serviceRegistry.get(I);var P=function T(E,H,R){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");j(T,E,R)};return P.toString=function(){return I},A.serviceRegistry.set(I,P),P}},2585:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.IDecorationService=A.IUnicodeService=A.IOptionsService=A.ILogService=A.LogLevelEnum=A.IInstantiationService=A.IDirtyRowService=A.ICharsetService=A.ICoreService=A.ICoreMouseService=A.IBufferService=void 0;var I,P=j(8343);A.IBufferService=(0,P.createDecorator)("BufferService"),A.ICoreMouseService=(0,P.createDecorator)("CoreMouseService"),A.ICoreService=(0,P.createDecorator)("CoreService"),A.ICharsetService=(0,P.createDecorator)("CharsetService"),A.IDirtyRowService=(0,P.createDecorator)("DirtyRowService"),A.IInstantiationService=(0,P.createDecorator)("InstantiationService"),(I=A.LogLevelEnum||(A.LogLevelEnum={}))[I.DEBUG=0]="DEBUG",I[I.INFO=1]="INFO",I[I.WARN=2]="WARN",I[I.ERROR=3]="ERROR",I[I.OFF=4]="OFF",A.ILogService=(0,P.createDecorator)("LogService"),A.IOptionsService=(0,P.createDecorator)("OptionsService"),A.IUnicodeService=(0,P.createDecorator)("UnicodeService"),A.IDecorationService=(0,P.createDecorator)("DecorationService")},1480:function(W,A,j){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeService=void 0;var I=j(8460),P=j(225),T=function(){function E(){this._providers=Object.create(null),this._active="",this._onChange=new I.EventEmitter;var H=new P.UnicodeV6;this.register(H),this._active=H.version,this._activeProvider=H}return Object.defineProperty(E.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"activeVersion",{get:function(){return this._active},set:function(R){if(!this._providers[R])throw new Error('unknown Unicode version "'+R+'"');this._active=R,this._activeProvider=this._providers[R],this._onChange.fire(R)},enumerable:!1,configurable:!0}),E.prototype.register=function(H){this._providers[H.version]=H},E.prototype.wcwidth=function(H){return this._activeProvider.wcwidth(H)},E.prototype.getStringCellWidth=function(H){for(var R=0,v=H.length,x=0;x<v;++x){var w=H.charCodeAt(x);if(55296<=w&&w<=56319){if(++x>=v)return R+this.wcwidth(w);var Z=H.charCodeAt(x);56320<=Z&&Z<=57343?w=1024*(w-55296)+Z-56320+65536:R+=this.wcwidth(Z)}R+=this.wcwidth(w)}return R},E}();A.UnicodeService=T}},m={};return function G(W){var A=m[W];if(void 0!==A)return A.exports;var j=m[W]={exports:{}};return K[W].call(j.exports,j,j.exports,G),j.exports}(4389)}()},1777:function(Ae,K,m){"use strict";m.d(K,{F4:function(){return x},IO:function(){return S},LC:function(){return j},SB:function(){return v},X$:function(){return P},ZE:function(){return F},ZN:function(){return N},_j:function(){return A},eR:function(){return w},jt:function(){return T},k1:function(){return X},l3:function(){return I},oB:function(){return R},pV:function(){return D},ru:function(){return E},vP:function(){return H}});var G=m(3144),W=m(5671),A=(0,G.Z)(function $(){(0,W.Z)(this,$)}),j=(0,G.Z)(function $(){(0,W.Z)(this,$)}),I="*";function P($,V){return{type:7,name:$,definitions:V,options:{}}}function T($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:V,timings:$}}function E($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:$,options:V}}function H($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:$,options:V}}function R($){return{type:6,styles:$,offset:null}}function v($,V,Q){return{type:0,name:$,styles:V,options:Q}}function x($){return{type:5,steps:$}}function w($,V){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:$,animation:V,options:Q}}function D(){var $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:$}}function S($,V){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:$,animation:V,options:Q}}function M($){Promise.resolve().then($)}var N=function(){function $(){var V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=V+Q}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"onStart",value:function(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var Q=this;M(function(){return Q._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"setPosition",value:function(Q){this._position=this.totalTime?Q*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(Q){var te="start"==Q?this._onStartFns:this._onDoneFns;te.forEach(function(be){return be()}),te.length=0}}]),$}(),F=function(){function $(V){var Q=this;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=V;var te=0,be=0,pe=0,fe=this.players.length;0==fe?M(function(){return Q._onFinish()}):this.players.forEach(function(ue){ue.onDone(function(){++te==fe&&Q._onFinish()}),ue.onDestroy(function(){++be==fe&&Q._onDestroy()}),ue.onStart(function(){++pe==fe&&Q._onStart()})}),this.totalTime=this.players.reduce(function(ue,de){return Math.max(ue,de.totalTime)},0)}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(Q){return Q.init()})}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[])}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(Q){return Q.play()})}},{key:"pause",value:function(){this.players.forEach(function(Q){return Q.pause()})}},{key:"restart",value:function(){this.players.forEach(function(Q){return Q.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(Q){return Q.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(Q){return Q.destroy()}),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(Q){return Q.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(Q){var te=Q*this.totalTime;this.players.forEach(function(be){var pe=be.totalTime?Math.min(1,te/be.totalTime):1;be.setPosition(pe)})}},{key:"getPosition",value:function(){var Q=this.players.reduce(function(te,be){return null===te||be.totalTime>te.totalTime?be:te},null);return null!=Q?Q.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(Q){Q.beforeDestroy&&Q.beforeDestroy()})}},{key:"triggerCallback",value:function(Q){var te="start"==Q?this._onStartFns:this._onDoneFns;te.forEach(function(be){return be()}),te.length=0}}]),$}(),X="!"},5664:function(Ae,K,m){"use strict";m.d(K,{$s:function(){return Tt},Em:function(){return Ft},Kd:function(){return Ht},X6:function(){return Jt},ic:function(){return rt},kH:function(){return hn},qV:function(){return t},qm:function(){return tt},rt:function(){return Et},s1:function(){return $t},tE:function(){return Sn},yG:function(){return Qe}});var G=m(7685),W=m(7326),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(5671),E=m(3144),H=m(9808),R=m(5e3),v=m(925),x=m(8929),w=m(4096),Z=m(591),D=m(1086),b=m(1159),S=m(2994),k=m(13),M=m(9664),N=m(4850),F=m(2986),X=m(1307),$=m(5778),V=m(7625),Q=m(3191),te=m(7144),be=m(5113);function de(We,Ye){return(We.getAttribute(Ye)||"").match(/\S+/g)||[]}var He="cdk-describedby-message",ot="cdk-describedby-host",St=0,Tt=function(){function We(Ye,Re){(0,T.Z)(this,We),this._platform=Re,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(St++),this._document=Ye,this._id=(0,R.f3M)(R.AFp)+"-"+St++}return(0,E.Z)(We,[{key:"describe",value:function(Re,Je,vt){if(this._canBeDescribed(Re,Je)){var fn=Dt(Je,vt);"string"!=typeof Je?(Rt(Je,this._id),this._messageRegistry.set(fn,{messageElement:Je,referenceCount:0})):this._messageRegistry.has(fn)||this._createMessageElement(Je,vt),this._isElementDescribedByMessage(Re,fn)||this._addMessageReference(Re,fn)}}},{key:"removeDescription",value:function(Re,Je,vt){var fn;if(Je&&this._isElementNode(Re)){var Un=Dt(Je,vt);if(this._isElementDescribedByMessage(Re,Un)&&this._removeMessageReference(Re,Un),"string"==typeof Je){var Kt=this._messageRegistry.get(Un);Kt&&0===Kt.referenceCount&&this._deleteMessageElement(Un)}0===(null===(fn=this._messagesContainer)||void 0===fn?void 0:fn.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var Re,Je=this._document.querySelectorAll("[".concat(ot,'="').concat(this._id,'"]')),vt=0;vt<Je.length;vt++)this._removeCdkDescribedByReferenceIds(Je[vt]),Je[vt].removeAttribute(ot);null===(Re=this._messagesContainer)||void 0===Re||Re.remove(),this._messagesContainer=null,this._messageRegistry.clear()}},{key:"_createMessageElement",value:function(Re,Je){var vt=this._document.createElement("div");Rt(vt,this._id),vt.textContent=Re,Je&&vt.setAttribute("role",Je),this._createMessagesContainer(),this._messagesContainer.appendChild(vt),this._messageRegistry.set(Dt(Re,Je),{messageElement:vt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Re){var Je,vt;null===(vt=null===(Je=this._messageRegistry.get(Re))||void 0===Je?void 0:Je.messageElement)||void 0===vt||vt.remove(),this._messageRegistry.delete(Re)}},{key:"_createMessagesContainer",value:function(){if(!this._messagesContainer){for(var Re="cdk-describedby-message-container",Je=this._document.querySelectorAll(".".concat(Re,'[platform="server"]')),vt=0;vt<Je.length;vt++)Je[vt].remove();var fn=this._document.createElement("div");fn.style.visibility="hidden",fn.classList.add(Re),fn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&fn.setAttribute("platform","server"),this._document.body.appendChild(fn),this._messagesContainer=fn}}},{key:"_removeCdkDescribedByReferenceIds",value:function(Re){var Je=de(Re,"aria-describedby").filter(function(vt){return 0!=vt.indexOf(He)});Re.setAttribute("aria-describedby",Je.join(" "))}},{key:"_addMessageReference",value:function(Re,Je){var vt=this._messageRegistry.get(Je);(function fe(We,Ye,Re){var Je=de(We,Ye);Je.some(function(vt){return vt.trim()==Re.trim()})||(Je.push(Re.trim()),We.setAttribute(Ye,Je.join(" ")))})(Re,"aria-describedby",vt.messageElement.id),Re.setAttribute(ot,this._id),vt.referenceCount++}},{key:"_removeMessageReference",value:function(Re,Je){var vt=this._messageRegistry.get(Je);vt.referenceCount--,function ue(We,Ye,Re){var vt=de(We,Ye).filter(function(fn){return fn!=Re.trim()});vt.length?We.setAttribute(Ye,vt.join(" ")):We.removeAttribute(Ye)}(Re,"aria-describedby",vt.messageElement.id),Re.removeAttribute(ot)}},{key:"_isElementDescribedByMessage",value:function(Re,Je){var vt=de(Re,"aria-describedby"),fn=this._messageRegistry.get(Je),Un=fn&&fn.messageElement.id;return!!Un&&-1!=vt.indexOf(Un)}},{key:"_canBeDescribed",value:function(Re,Je){if(!this._isElementNode(Re))return!1;if(Je&&"object"==typeof Je)return!0;var vt=null==Je?"":"".concat(Je).trim(),fn=Re.getAttribute("aria-label");return!!vt&&(!fn||fn.trim()!==vt)}},{key:"_isElementNode",value:function(Re){return Re.nodeType===this._document.ELEMENT_NODE}}]),We}();function Dt(We,Ye){return"string"==typeof We?"".concat(Ye||"","/").concat(We):We}function Rt(We,Ye){We.id||(We.id="".concat(He,"-").concat(Ye,"-").concat(St++))}Tt.\u0275fac=function(Ye){return new(Ye||Tt)(R.LFG(H.K0),R.LFG(v.t4))},Tt.\u0275prov=R.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"});var Ze=function(){function We(Ye){var Re=this;(0,T.Z)(this,We),this._items=Ye,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x.xQ,this._typeaheadSubscription=w.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(Je){return Je.disabled},this._pressedLetters=[],this.tabOut=new x.xQ,this.change=new x.xQ,Ye instanceof R.n_E&&Ye.changes.subscribe(function(Je){if(Re._activeItem){var fn=Je.toArray().indexOf(Re._activeItem);fn>-1&&fn!==Re._activeItemIndex&&(Re._activeItemIndex=fn)}})}return(0,E.Z)(We,[{key:"skipPredicate",value:function(Re){return this._skipPredicateFn=Re,this}},{key:"withWrap",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Re,this}},{key:"withVerticalOrientation",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Re,this}},{key:"withHorizontalOrientation",value:function(Re){return this._horizontal=Re,this}},{key:"withAllowedModifierKeys",value:function(Re){return this._allowedModifierKeys=Re,this}},{key:"withTypeAhead",value:function(){var Re=this,Je=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(function(vt){return Re._pressedLetters.push(vt)}),(0,k.b)(Je),(0,M.h)(function(){return Re._pressedLetters.length>0}),(0,N.U)(function(){return Re._pressedLetters.join("")})).subscribe(function(vt){for(var fn=Re._getItemsArray(),Un=1;Un<fn.length+1;Un++){var Kt=(Re._activeItemIndex+Un)%fn.length,yt=fn[Kt];if(!Re._skipPredicateFn(yt)&&0===yt.getLabel().toUpperCase().trim().indexOf(vt)){Re.setActiveItem(Kt);break}}Re._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Re,this}},{key:"setActiveItem",value:function(Re){var Je=this._activeItem;this.updateActiveItem(Re),this._activeItem!==Je&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Re){var Je=this,vt=Re.keyCode,Un=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Kt){return!Re[Kt]||Je._allowedModifierKeys.indexOf(Kt)>-1});switch(vt){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&Un){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&Un){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&Un){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&Un){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&Un){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&Un){this.setLastItemActive();break}return;default:return void((Un||(0,b.Vb)(Re,"shiftKey"))&&(Re.key&&1===Re.key.length?this._letterKeyStream.next(Re.key.toLocaleUpperCase()):(vt>=b.A&&vt<=b.Z||vt>=b.xE&&vt<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(vt))))}this._pressedLetters=[],Re.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(Re){var Je=this._getItemsArray(),vt="number"==typeof Re?Re:Je.indexOf(Re),fn=Je[vt];this._activeItem=null==fn?null:fn,this._activeItemIndex=vt}},{key:"_setActiveItemByDelta",value:function(Re){this._wrap?this._setActiveInWrapMode(Re):this._setActiveInDefaultMode(Re)}},{key:"_setActiveInWrapMode",value:function(Re){for(var Je=this._getItemsArray(),vt=1;vt<=Je.length;vt++){var fn=(this._activeItemIndex+Re*vt+Je.length)%Je.length,Un=Je[fn];if(!this._skipPredicateFn(Un))return void this.setActiveItem(fn)}}},{key:"_setActiveInDefaultMode",value:function(Re){this._setActiveItemByIndex(this._activeItemIndex+Re,Re)}},{key:"_setActiveItemByIndex",value:function(Re,Je){var vt=this._getItemsArray();if(vt[Re]){for(;this._skipPredicateFn(vt[Re]);)if(!vt[Re+=Je])return;this.setActiveItem(Re)}}},{key:"_getItemsArray",value:function(){return this._items instanceof R.n_E?this._items.toArray():this._items}}]),We}(),$t=function(We){(0,I.Z)(Re,We);var Ye=(0,P.Z)(Re);function Re(){return(0,T.Z)(this,Re),Ye.apply(this,arguments)}return(0,E.Z)(Re,[{key:"setActiveItem",value:function(vt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,A.Z)((0,j.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Re}(Ze),Ft=function(We){(0,I.Z)(Re,We);var Ye=(0,P.Z)(Re);function Re(){var Je;return(0,T.Z)(this,Re),(Je=Ye.apply(this,arguments))._origin="program",Je}return(0,E.Z)(Re,[{key:"setFocusOrigin",value:function(vt){return this._origin=vt,this}},{key:"setActiveItem",value:function(vt){(0,A.Z)((0,j.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Re}(Ze),rt=function(){function We(Ye){(0,T.Z)(this,We),this._platform=Ye}return(0,E.Z)(We,[{key:"isDisabled",value:function(Re){return Re.hasAttribute("disabled")}},{key:"isVisible",value:function(Re){return function _t(We){return!!(We.offsetWidth||We.offsetHeight||"function"==typeof We.getClientRects&&We.getClientRects().length)}(Re)&&"visible"===getComputedStyle(Re).visibility}},{key:"isTabbable",value:function(Re){if(!this._platform.isBrowser)return!1;var Je=function Ot(We){try{return We.frameElement}catch(Ye){return null}}(function Be(We){return We.ownerDocument&&We.ownerDocument.defaultView||window}(Re));if(Je&&(-1===U(Je)||!this.isVisible(Je)))return!1;var vt=Re.nodeName.toLowerCase(),fn=U(Re);return Re.hasAttribute("contenteditable")?-1!==fn:!("iframe"===vt||"object"===vt||this._platform.WEBKIT&&this._platform.IOS&&!function B(We){var Ye=We.nodeName.toLowerCase(),Re="input"===Ye&&We.type;return"text"===Re||"password"===Re||"select"===Ye||"textarea"===Ye}(Re))&&("audio"===vt?!!Re.hasAttribute("controls")&&-1!==fn:"video"===vt?-1!==fn&&(null!==fn||(this._platform.FIREFOX||Re.hasAttribute("controls"))):Re.tabIndex>=0)}},{key:"isFocusable",value:function(Re,Je){return function qe(We){return!function Ve(We){return function ht(We){return"input"==We.nodeName.toLowerCase()}(We)&&"hidden"==We.type}(We)&&(function Ct(We){var Ye=We.nodeName.toLowerCase();return"input"===Ye||"select"===Ye||"button"===Ye||"textarea"===Ye}(We)||function at(We){return function Ut(We){return"a"==We.nodeName.toLowerCase()}(We)&&We.hasAttribute("href")}(We)||We.hasAttribute("contenteditable")||Wt(We))}(Re)&&!this.isDisabled(Re)&&((null==Je?void 0:Je.ignoreVisibility)||this.isVisible(Re))}}]),We}();function Wt(We){if(!We.hasAttribute("tabindex")||void 0===We.tabIndex)return!1;var Ye=We.getAttribute("tabindex");return!(!Ye||isNaN(parseInt(Ye,10)))}function U(We){if(!Wt(We))return null;var Ye=parseInt(We.getAttribute("tabindex")||"",10);return isNaN(Ye)?-1:Ye}rt.\u0275fac=function(Ye){return new(Ye||rt)(R.LFG(v.t4))},rt.\u0275prov=R.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"});var se=function(){function We(Ye,Re,Je,vt){var fn=this,Un=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,T.Z)(this,We),this._element=Ye,this._checker=Re,this._ngZone=Je,this._document=vt,this._hasAttached=!1,this.startAnchorListener=function(){return fn.focusLastTabbableElement()},this.endAnchorListener=function(){return fn.focusFirstTabbableElement()},this._enabled=!0,Un||this.attachAnchors()}return(0,E.Z)(We,[{key:"enabled",get:function(){return this._enabled},set:function(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"destroy",value:function(){var Re=this._startAnchor,Je=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),Je&&(Je.removeEventListener("focus",this.endAnchorListener),Je.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Re=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Re._startAnchor||(Re._startAnchor=Re._createAnchor(),Re._startAnchor.addEventListener("focus",Re.startAnchorListener)),Re._endAnchor||(Re._endAnchor=Re._createAnchor(),Re._endAnchor.addEventListener("focus",Re.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(Re){var Je=this;return new Promise(function(vt){Je._executeOnStable(function(){return vt(Je.focusInitialElement(Re))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Re){var Je=this;return new Promise(function(vt){Je._executeOnStable(function(){return vt(Je.focusFirstTabbableElement(Re))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Re){var Je=this;return new Promise(function(vt){Je._executeOnStable(function(){return vt(Je.focusLastTabbableElement(Re))})})}},{key:"_getRegionBoundary",value:function(Re){var Je=this._element.querySelectorAll("[cdk-focus-region-".concat(Re,"], ")+"[cdkFocusRegion".concat(Re,"], ")+"[cdk-focus-".concat(Re,"]"));return"start"==Re?Je.length?Je[0]:this._getFirstTabbableElement(this._element):Je.length?Je[Je.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Re){var Je=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Je){if(!this._checker.isFocusable(Je)){var vt=this._getFirstTabbableElement(Je);return null==vt||vt.focus(Re),!!vt}return Je.focus(Re),!0}return this.focusFirstTabbableElement(Re)}},{key:"focusFirstTabbableElement",value:function(Re){var Je=this._getRegionBoundary("start");return Je&&Je.focus(Re),!!Je}},{key:"focusLastTabbableElement",value:function(Re){var Je=this._getRegionBoundary("end");return Je&&Je.focus(Re),!!Je}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var Je=Re.children,vt=0;vt<Je.length;vt++){var fn=Je[vt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Je[vt]):null;if(fn)return fn}return null}},{key:"_getLastTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var Je=Re.children,vt=Je.length-1;vt>=0;vt--){var fn=Je[vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Je[vt]):null;if(fn)return fn}return null}},{key:"_createAnchor",value:function(){var Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}},{key:"_toggleAnchorTabIndex",value:function(Re,Je){Re?Je.setAttribute("tabindex","0"):Je.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"_executeOnStable",value:function(Re){this._ngZone.isStable?Re():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(Re)}}]),We}(),t=function(){function We(Ye,Re,Je){(0,T.Z)(this,We),this._checker=Ye,this._ngZone=Re,this._document=Je}return(0,E.Z)(We,[{key:"create",value:function(Re){var Je=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new se(Re,this._checker,this._ngZone,this._document,Je)}}]),We}();t.\u0275fac=function(Ye){return new(Ye||t)(R.LFG(rt),R.LFG(R.R0b),R.LFG(H.K0))},t.\u0275prov=R.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"});var Lt=function(){function We(Ye,Re,Je){(0,T.Z)(this,We),this._elementRef=Ye,this._focusTrapFactory=Re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,E.Z)(We,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(Re){this.focusTrap.enabled=(0,Q.Ig)(Re)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(Re){this._autoCapture=(0,Q.Ig)(Re)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(Re){var Je=Re.autoCapture;Je&&!Je.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),We}();Lt.\u0275fac=function(Ye){return new(Ye||Lt)(R.Y36(R.SBq),R.Y36(t),R.Y36(H.K0))},Lt.\u0275dir=R.lG2({type:Lt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[R.TTD]});var zt=function(We){(0,I.Z)(Re,We);var Ye=(0,P.Z)(Re);function Re(Je,vt,fn,Un,Kt,yt,et){var gt;return(0,T.Z)(this,Re),(gt=Ye.call(this,Je,vt,fn,Un,et.defer))._focusTrapManager=Kt,gt._inertStrategy=yt,gt._focusTrapManager.register((0,W.Z)(gt)),gt}return(0,E.Z)(Re,[{key:"enabled",get:function(){return this._enabled},set:function(vt){this._enabled=vt,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),(0,A.Z)((0,j.Z)(Re.prototype),"destroy",this).call(this)}},{key:"_enable",value:function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}},{key:"_disable",value:function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}]),Re}(se),an=new R.OlP("FOCUS_TRAP_INERT_STRATEGY"),Qt=function(){function We(){(0,T.Z)(this,We),this._listener=null}return(0,E.Z)(We,[{key:"preventFocus",value:function(Re){var Je=this;this._listener&&Re._document.removeEventListener("focus",this._listener,!0),this._listener=function(vt){return Je._trapFocus(Re,vt)},Re._ngZone.runOutsideAngular(function(){Re._document.addEventListener("focus",Je._listener,!0)})}},{key:"allowFocus",value:function(Re){!this._listener||(Re._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(Re,Je){var vt,fn=Je.target,Un=Re._element;fn&&!Un.contains(fn)&&(null===(vt=fn.closest)||void 0===vt||!vt.call(fn,"div.cdk-overlay-pane"))&&setTimeout(function(){Re.enabled&&!Un.contains(Re._document.activeElement)&&Re.focusFirstTabbableElement()})}}]),We}(),vn=function(){function We(){(0,T.Z)(this,We),this._focusTrapStack=[]}return(0,E.Z)(We,[{key:"register",value:function(Re){this._focusTrapStack=this._focusTrapStack.filter(function(vt){return vt!==Re});var Je=this._focusTrapStack;Je.length&&Je[Je.length-1]._disable(),Je.push(Re),Re._enable()}},{key:"deregister",value:function(Re){Re._disable();var Je=this._focusTrapStack,vt=Je.indexOf(Re);-1!==vt&&(Je.splice(vt,1),Je.length&&Je[Je.length-1]._enable())}}]),We}();vn.\u0275fac=function(Ye){return new(Ye||vn)},vn.\u0275prov=R.Yz7({token:vn,factory:vn.\u0275fac,providedIn:"root"});var Vt=function(){function We(Ye,Re,Je,vt,fn){(0,T.Z)(this,We),this._checker=Ye,this._ngZone=Re,this._focusTrapManager=Je,this._document=vt,this._inertStrategy=fn||new Qt}return(0,E.Z)(We,[{key:"create",value:function(Re){var vt,Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defer:!1};return vt="boolean"==typeof Je?{defer:Je}:Je,new zt(Re,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,vt)}}]),We}();function Jt(We){return 0===We.buttons||0===We.offsetX&&0===We.offsetY}function Qe(We){var Ye=We.touches&&We.touches[0]||We.changedTouches&&We.changedTouches[0];return!(!Ye||-1!==Ye.identifier||null!=Ye.radiusX&&1!==Ye.radiusX||null!=Ye.radiusY&&1!==Ye.radiusY)}Vt.\u0275fac=function(Ye){return new(Ye||Vt)(R.LFG(rt),R.LFG(R.R0b),R.LFG(vn),R.LFG(H.K0),R.LFG(an,8))},Vt.\u0275prov=R.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"});var Fe=new R.OlP("cdk-input-modality-detector-options"),ne={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},he=(0,v.i$)({passive:!0,capture:!0}),Le=function(){function We(Ye,Re,Je,vt){var fn=this;(0,T.Z)(this,We),this._platform=Ye,this._mostRecentTarget=null,this._modality=new Z.X(null),this._lastTouchMs=0,this._onKeydown=function(Un){var Kt,yt;null!==(yt=null===(Kt=fn._options)||void 0===Kt?void 0:Kt.ignoreKeys)&&void 0!==yt&&yt.some(function(et){return et===Un.keyCode})||(fn._modality.next("keyboard"),fn._mostRecentTarget=(0,v.sA)(Un))},this._onMousedown=function(Un){Date.now()-fn._lastTouchMs<650||(fn._modality.next(Jt(Un)?"keyboard":"mouse"),fn._mostRecentTarget=(0,v.sA)(Un))},this._onTouchstart=function(Un){Qe(Un)?fn._modality.next("keyboard"):(fn._lastTouchMs=Date.now(),fn._modality.next("touch"),fn._mostRecentTarget=(0,v.sA)(Un))},this._options=Object.assign(Object.assign({},ne),vt),this.modalityDetected=this._modality.pipe((0,X.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),Ye.isBrowser&&Re.runOutsideAngular(function(){Je.addEventListener("keydown",fn._onKeydown,he),Je.addEventListener("mousedown",fn._onMousedown,he),Je.addEventListener("touchstart",fn._onTouchstart,he)})}return(0,E.Z)(We,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,he),document.removeEventListener("mousedown",this._onMousedown,he),document.removeEventListener("touchstart",this._onTouchstart,he))}}]),We}();Le.\u0275fac=function(Ye){return new(Ye||Le)(R.LFG(v.t4),R.LFG(R.R0b),R.LFG(H.K0),R.LFG(Fe,8))},Le.\u0275prov=R.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"});var lt=new R.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ut(){return null}});var Nt=new R.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ht=function(){function We(Ye,Re,Je,vt){(0,T.Z)(this,We),this._ngZone=Re,this._defaultOptions=vt,this._document=Je,this._liveElement=Ye||this._createLiveElement()}return(0,E.Z)(We,[{key:"announce",value:function(Re){for(var fn,Un,Je=this,vt=this._defaultOptions,Kt=arguments.length,yt=new Array(Kt>1?Kt-1:0),et=1;et<Kt;et++)yt[et-1]=arguments[et];return 1===yt.length&&"number"==typeof yt[0]?Un=yt[0]:(fn=yt[0],Un=yt[1]),this.clear(),clearTimeout(this._previousTimeout),fn||(fn=vt&&vt.politeness?vt.politeness:"polite"),null==Un&&vt&&(Un=vt.duration),this._liveElement.setAttribute("aria-live",fn),this._ngZone.runOutsideAngular(function(){return Je._currentPromise||(Je._currentPromise=new Promise(function(gt){return Je._currentResolve=gt})),clearTimeout(Je._previousTimeout),Je._previousTimeout=setTimeout(function(){Je._liveElement.textContent=Re,"number"==typeof Un&&(Je._previousTimeout=setTimeout(function(){return Je.clear()},Un)),Je._currentResolve(),Je._currentPromise=Je._currentResolve=void 0},100),Je._currentPromise})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){var Re,Je;clearTimeout(this._previousTimeout),null===(Re=this._liveElement)||void 0===Re||Re.remove(),this._liveElement=null,null===(Je=this._currentResolve)||void 0===Je||Je.call(this),this._currentPromise=this._currentResolve=void 0}},{key:"_createLiveElement",value:function(){for(var Re="cdk-live-announcer-element",Je=this._document.getElementsByClassName(Re),vt=this._document.createElement("div"),fn=0;fn<Je.length;fn++)Je[fn].remove();return vt.classList.add(Re),vt.classList.add("cdk-visually-hidden"),vt.setAttribute("aria-atomic","true"),vt.setAttribute("aria-live","polite"),this._document.body.appendChild(vt),vt}}]),We}();Ht.\u0275fac=function(Ye){return new(Ye||Ht)(R.LFG(lt,8),R.LFG(R.R0b),R.LFG(H.K0),R.LFG(Nt,8))},Ht.\u0275prov=R.Yz7({token:Ht,factory:Ht.\u0275fac,providedIn:"root"});var sn=function(){function We(Ye,Re,Je,vt){(0,T.Z)(this,We),this._elementRef=Ye,this._liveAnnouncer=Re,this._contentObserver=Je,this._ngZone=vt,this._politeness="polite"}return(0,E.Z)(We,[{key:"politeness",get:function(){return this._politeness},set:function(Re){var Je=this;this._politeness="off"===Re||"assertive"===Re?Re:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(function(){return Je._contentObserver.observe(Je._elementRef).subscribe(function(){var vt=Je._elementRef.nativeElement.textContent;vt!==Je._previousAnnouncedText&&(Je._liveAnnouncer.announce(vt,Je._politeness,Je.duration),Je._previousAnnouncedText=vt)})}))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}]),We}();sn.\u0275fac=function(Ye){return new(Ye||sn)(R.Y36(R.SBq),R.Y36(Ht),R.Y36(te.yq),R.Y36(R.R0b))},sn.\u0275dir=R.lG2({type:sn,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"],duration:["cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]});var yn=new R.OlP("cdk-focus-monitor-default-options"),ln=(0,v.i$)({passive:!0,capture:!0}),Sn=function(){function We(Ye,Re,Je,vt,fn){var Un=this;(0,T.Z)(this,We),this._ngZone=Ye,this._platform=Re,this._inputModalityDetector=Je,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){Un._windowFocused=!0,Un._windowFocusTimeoutId=window.setTimeout(function(){return Un._windowFocused=!1})},this._stopInputModalityDetector=new x.xQ,this._rootNodeFocusAndBlurListener=function(Kt){for(var et=(0,v.sA)(Kt);et;et=et.parentElement)"focus"===Kt.type?Un._onFocus(Kt,et):Un._onBlur(Kt,et)},this._document=vt,this._detectionMode=(null==fn?void 0:fn.detectionMode)||0}return(0,E.Z)(We,[{key:"monitor",value:function(Re){var Je=arguments.length>1&&void 0!==arguments[1]&&arguments[1],vt=(0,Q.fI)(Re);if(!this._platform.isBrowser||1!==vt.nodeType)return(0,D.of)(null);var fn=(0,v.kV)(vt)||this._getDocument(),Un=this._elementInfo.get(vt);if(Un)return Je&&(Un.checkChildren=!0),Un.subject;var Kt={checkChildren:Je,subject:new x.xQ,rootNode:fn};return this._elementInfo.set(vt,Kt),this._registerGlobalListeners(Kt),Kt.subject}},{key:"stopMonitoring",value:function(Re){var Je=(0,Q.fI)(Re),vt=this._elementInfo.get(Je);vt&&(vt.subject.complete(),this._setClasses(Je),this._elementInfo.delete(Je),this._removeGlobalListeners(vt))}},{key:"focusVia",value:function(Re,Je,vt){var fn=this,Un=(0,Q.fI)(Re);Un===this._getDocument().activeElement?this._getClosestElementsInfo(Un).forEach(function(yt){var et=(0,G.Z)(yt,2),gt=et[0],wt=et[1];return fn._originChanged(gt,Je,wt)}):(this._setOrigin(Je),"function"==typeof Un.focus&&Un.focus(vt))}},{key:"ngOnDestroy",value:function(){var Re=this;this._elementInfo.forEach(function(Je,vt){return Re.stopMonitoring(vt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(Re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Re&&this._isLastInteractionFromInputLabel(Re)?"mouse":"program"}},{key:"_shouldBeAttributedToTouch",value:function(Re){return 1===this._detectionMode||!(null==Re||!Re.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Re,Je){Re.classList.toggle("cdk-focused",!!Je),Re.classList.toggle("cdk-touch-focused","touch"===Je),Re.classList.toggle("cdk-keyboard-focused","keyboard"===Je),Re.classList.toggle("cdk-mouse-focused","mouse"===Je),Re.classList.toggle("cdk-program-focused","program"===Je)}},{key:"_setOrigin",value:function(Re){var Je=this,vt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){if(Je._origin=Re,Je._originFromTouchInteraction="touch"===Re&&vt,0===Je._detectionMode){clearTimeout(Je._originTimeoutId);var fn=Je._originFromTouchInteraction?650:1;Je._originTimeoutId=setTimeout(function(){return Je._origin=null},fn)}})}},{key:"_onFocus",value:function(Re,Je){var vt=this._elementInfo.get(Je),fn=(0,v.sA)(Re);!vt||!vt.checkChildren&&Je!==fn||this._originChanged(Je,this._getFocusOrigin(fn),vt)}},{key:"_onBlur",value:function(Re,Je){var vt=this._elementInfo.get(Je);!vt||vt.checkChildren&&Re.relatedTarget instanceof Node&&Je.contains(Re.relatedTarget)||(this._setClasses(Je),this._emitOrigin(vt,null))}},{key:"_emitOrigin",value:function(Re,Je){Re.subject.observers.length&&this._ngZone.run(function(){return Re.subject.next(Je)})}},{key:"_registerGlobalListeners",value:function(Re){var Je=this;if(this._platform.isBrowser){var vt=Re.rootNode,fn=this._rootNodeFocusListenerCount.get(vt)||0;fn||this._ngZone.runOutsideAngular(function(){vt.addEventListener("focus",Je._rootNodeFocusAndBlurListener,ln),vt.addEventListener("blur",Je._rootNodeFocusAndBlurListener,ln)}),this._rootNodeFocusListenerCount.set(vt,fn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){Je._getWindow().addEventListener("focus",Je._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,V.R)(this._stopInputModalityDetector)).subscribe(function(Un){Je._setOrigin(Un,!0)}))}}},{key:"_removeGlobalListeners",value:function(Re){var Je=Re.rootNode;if(this._rootNodeFocusListenerCount.has(Je)){var vt=this._rootNodeFocusListenerCount.get(Je);vt>1?this._rootNodeFocusListenerCount.set(Je,vt-1):(Je.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ln),Je.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ln),this._rootNodeFocusListenerCount.delete(Je))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Re,Je,vt){this._setClasses(Re,Je),this._emitOrigin(vt,Je),this._lastFocusOrigin=Je}},{key:"_getClosestElementsInfo",value:function(Re){var Je=[];return this._elementInfo.forEach(function(vt,fn){(fn===Re||vt.checkChildren&&fn.contains(Re))&&Je.push([fn,vt])}),Je}},{key:"_isLastInteractionFromInputLabel",value:function(Re){var Je=this._inputModalityDetector,vt=Je._mostRecentTarget;if("mouse"!==Je.mostRecentModality||!vt||vt===Re||"INPUT"!==Re.nodeName&&"TEXTAREA"!==Re.nodeName||Re.disabled)return!1;var Un=Re.labels;if(Un)for(var Kt=0;Kt<Un.length;Kt++)if(Un[Kt].contains(vt))return!0;return!1}}]),We}();Sn.\u0275fac=function(Ye){return new(Ye||Sn)(R.LFG(R.R0b),R.LFG(v.t4),R.LFG(Le),R.LFG(H.K0,8),R.LFG(yn,8))},Sn.\u0275prov=R.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"});var hn=function(){function We(Ye,Re){(0,T.Z)(this,We),this._elementRef=Ye,this._focusMonitor=Re,this._focusOrigin=null,this.cdkFocusChange=new R.vpe}return(0,E.Z)(We,[{key:"focusOrigin",get:function(){return this._focusOrigin}},{key:"ngAfterViewInit",value:function(){var Re=this,Je=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Je,1===Je.nodeType&&Je.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(vt){Re._focusOrigin=vt,Re.cdkFocusChange.emit(vt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),We}();hn.\u0275fac=function(Ye){return new(Ye||hn)(R.Y36(R.SBq),R.Y36(Sn))},hn.\u0275dir=R.lG2({type:hn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var mn="cdk-high-contrast-black-on-white",At="cdk-high-contrast-white-on-black",xt="cdk-high-contrast-active",tt=function(){function We(Ye,Re){var Je=this;(0,T.Z)(this,We),this._platform=Ye,this._document=Re,this._breakpointSubscription=(0,R.f3M)(be.Yg).observe("(forced-colors: active)").subscribe(function(){Je._hasCheckedHighContrastMode&&(Je._hasCheckedHighContrastMode=!1,Je._applyBodyHighContrastModeCssClasses())})}return(0,E.Z)(We,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Re=this._document.createElement("div");Re.style.backgroundColor="rgb(1,2,3)",Re.style.position="absolute",this._document.body.appendChild(Re);var Je=this._document.defaultView||window,vt=Je&&Je.getComputedStyle?Je.getComputedStyle(Re):null,fn=(vt&&vt.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),fn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe()}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Re=this._document.body.classList;Re.remove(xt,mn,At),this._hasCheckedHighContrastMode=!0;var Je=this.getHighContrastMode();1===Je?Re.add(xt,mn):2===Je&&Re.add(xt,At)}}}]),We}();tt.\u0275fac=function(Ye){return new(Ye||tt)(R.LFG(v.t4),R.LFG(H.K0))},tt.\u0275prov=R.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"});var Et=(0,E.Z)(function We(Ye){(0,T.Z)(this,We),Ye._applyBodyHighContrastModeCssClasses()});Et.\u0275fac=function(Ye){return new(Ye||Et)(R.LFG(tt))},Et.\u0275mod=R.oAB({type:Et}),Et.\u0275inj=R.cJS({imports:[te.Q8]})},226:function(Ae,K,m){"use strict";m.d(K,{Is:function(){return H},vT:function(){return v}});var G=m(5671),W=m(3144),A=m(5e3),j=m(9808),I=new A.OlP("cdk-dir-doc",{providedIn:"root",factory:function P(){return(0,A.f3M)(j.K0)}});var T=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function E(x){var w=(null==x?void 0:x.toLowerCase())||"";return"auto"===w&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?T.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}var H=function(){function x(w){if((0,G.Z)(this,x),this.value="ltr",this.change=new A.vpe,w){var Z=w.body?w.body.dir:null,D=w.documentElement?w.documentElement.dir:null;this.value=E(Z||D||"ltr")}}return(0,W.Z)(x,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),x}();H.\u0275fac=function(w){return new(w||H)(A.LFG(I,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"});var R=function(){function x(){(0,G.Z)(this,x),this._dir="ltr",this._isInitialized=!1,this.change=new A.vpe}return(0,W.Z)(x,[{key:"dir",get:function(){return this._dir},set:function(Z){var D=this._dir;this._dir=E(Z),this._rawDir=Z,D!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}}]),x}();R.\u0275fac=function(w){return new(w||R)},R.\u0275dir=A.lG2({type:R,selectors:[["","dir",""]],hostVars:1,hostBindings:function(w,Z){2&w&&A.uIk("dir",Z._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[A._Bn([{provide:H,useExisting:R}])]});var v=(0,W.Z)(function x(){(0,G.Z)(this,x)});v.\u0275fac=function(w){return new(w||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({})},3191:function(Ae,K,m){"use strict";m.d(K,{Eq:function(){return P},HM:function(){return T},Ig:function(){return A},du:function(){return H},fI:function(){return E},su:function(){return j},t6:function(){return I}});var G=m(7762),W=m(5e3);function A(R){return null!=R&&"false"!=="".concat(R)}function j(R){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return I(R)?Number(R):v}function I(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function P(R){return Array.isArray(R)?R:[R]}function T(R){return null==R?"":"string"==typeof R?R:"".concat(R,"px")}function E(R){return R instanceof W.SBq?R.nativeElement:R}function H(R){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,x=[];if(null!=R){var D,w=Array.isArray(R)?R:"".concat(R).split(v),Z=(0,G.Z)(w);try{for(Z.s();!(D=Z.n()).done;){var b=D.value,S="".concat(b).trim();S&&x.push(S)}}catch(k){Z.e(k)}finally{Z.f()}}return x}},449:function(Ae,K,m){"use strict";m.d(K,{A8:function(){return k},Ov:function(){return b},P3:function(){return w},Z9:function(){return x},eX:function(){return D},k:function(){return M},o2:function(){return v},yy:function(){return Z}});var G=m(7762),W=m(136),A=m(9388),j=m(3144),I=m(5671),P=m(1762),T=m(4715),E=m(1086),H=m(8929),R=m(5e3),v=(0,j.Z)(function N(){(0,I.Z)(this,N)});function x(N){return N&&"function"==typeof N.connect&&!(N instanceof P.c)}var w=function(N){(0,W.Z)(X,N);var F=(0,A.Z)(X);function X($){var V;return(0,I.Z)(this,X),(V=F.call(this))._data=$,V}return(0,j.Z)(X,[{key:"connect",value:function(){return(0,T.b)(this._data)?this._data:(0,E.of)(this._data)}},{key:"disconnect",value:function(){}}]),X}(v),Z=function(){function N(){(0,I.Z)(this,N)}return(0,j.Z)(N,[{key:"applyChanges",value:function(X,$,V,Q,te){X.forEachOperation(function(be,pe,fe){var ue,de;if(null==be.previousIndex){var ge=V(be,pe,fe);ue=$.createEmbeddedView(ge.templateRef,ge.context,ge.index),de=1}else null==fe?($.remove(pe),de=3):(ue=$.get(pe),$.move(ue,fe),de=2);te&&te({context:null==ue?void 0:ue.context,operation:de,record:be})})}},{key:"detach",value:function(){}}]),N}(),D=function(){function N(){(0,I.Z)(this,N),this.viewCacheSize=20,this._viewCache=[]}return(0,j.Z)(N,[{key:"applyChanges",value:function(X,$,V,Q,te){var be=this;X.forEachOperation(function(pe,fe,ue){var de,ge;if(null==pe.previousIndex){ge=(de=be._insertView(function(){return V(pe,fe,ue)},ue,$,Q(pe)))?1:0}else null==ue?(be._detachAndCacheView(fe,$),ge=3):(de=be._moveView(fe,ue,$,Q(pe)),ge=2);te&&te({context:null==de?void 0:de.context,operation:ge,record:pe})})}},{key:"detach",value:function(){var $,X=(0,G.Z)(this._viewCache);try{for(X.s();!($=X.n()).done;){$.value.destroy()}}catch(Q){X.e(Q)}finally{X.f()}this._viewCache=[]}},{key:"_insertView",value:function(X,$,V,Q){var te=this._insertViewFromCache($,V);if(!te){var be=X();return V.createEmbeddedView(be.templateRef,be.context,be.index)}te.context.$implicit=Q}},{key:"_detachAndCacheView",value:function(X,$){var V=$.detach(X);this._maybeCacheView(V,$)}},{key:"_moveView",value:function(X,$,V,Q){var te=V.get(X);return V.move(te,$),te.context.$implicit=Q,te}},{key:"_maybeCacheView",value:function(X,$){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(X);else{var V=$.indexOf(X);-1===V?X.destroy():$.remove(V)}}},{key:"_insertViewFromCache",value:function(X,$){var V=this._viewCache.pop();return V&&$.insert(V,X),V||null}}]),N}(),b=function(){function N(){var F=this,X=arguments.length>0&&void 0!==arguments[0]&&arguments[0],$=arguments.length>1?arguments[1]:void 0,V=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],Q=arguments.length>3?arguments[3]:void 0;(0,I.Z)(this,N),this._multiple=X,this._emitChanges=V,this.compareWith=Q,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new H.xQ,$&&$.length&&(X?$.forEach(function(te){return F._markSelected(te)}):this._markSelected($[0]),this._selectedToEmit.length=0)}return(0,j.Z)(N,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var X=this,$=arguments.length,V=new Array($),Q=0;Q<$;Q++)V[Q]=arguments[Q];this._verifyValueAssignment(V),V.forEach(function(be){return X._markSelected(be)});var te=this._hasQueuedChanges();return this._emitChangeEvent(),te}},{key:"deselect",value:function(){for(var X=this,$=arguments.length,V=new Array($),Q=0;Q<$;Q++)V[Q]=arguments[Q];this._verifyValueAssignment(V),V.forEach(function(be){return X._unmarkSelected(be)});var te=this._hasQueuedChanges();return this._emitChangeEvent(),te}},{key:"setSelection",value:function(){for(var X=this,$=arguments.length,V=new Array($),Q=0;Q<$;Q++)V[Q]=arguments[Q];this._verifyValueAssignment(V);var te=this.selected,be=new Set(V);V.forEach(function(fe){return X._markSelected(fe)}),te.filter(function(fe){return!be.has(fe)}).forEach(function(fe){return X._unmarkSelected(fe)});var pe=this._hasQueuedChanges();return this._emitChangeEvent(),pe}},{key:"toggle",value:function(X){return this.isSelected(X)?this.deselect(X):this.select(X)}},{key:"clear",value:function(){var X=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._unmarkAll();var $=this._hasQueuedChanges();return X&&this._emitChangeEvent(),$}},{key:"isSelected",value:function(X){if(this.compareWith){var V,$=(0,G.Z)(this._selection);try{for($.s();!(V=$.n()).done;){var Q=V.value;if(this.compareWith(Q,X))return!0}}catch(te){$.e(te)}finally{$.f()}return!1}return this._selection.has(X)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(X){this._multiple&&this.selected&&this._selected.sort(X)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this.isSelected(X)||this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}},{key:"_unmarkSelected",value:function(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}},{key:"_unmarkAll",value:function(){var X=this;this.isEmpty()||this._selection.forEach(function($){return X._unmarkSelected($)})}},{key:"_verifyValueAssignment",value:function(X){X.length>1&&this._multiple}},{key:"_hasQueuedChanges",value:function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}]),N}();var k=function(){function N(){(0,I.Z)(this,N),this._listeners=[]}return(0,j.Z)(N,[{key:"notify",value:function(X,$){var Q,V=(0,G.Z)(this._listeners);try{for(V.s();!(Q=V.n()).done;){(0,Q.value)(X,$)}}catch(be){V.e(be)}finally{V.f()}}},{key:"listen",value:function(X){var $=this;return this._listeners.push(X),function(){$._listeners=$._listeners.filter(function(V){return X!==V})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),N}();k.\u0275fac=function(F){return new(F||k)},k.\u0275prov=R.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"});var M=new R.OlP("_ViewRepeater")},1159:function(Ae,K,m){"use strict";m.d(K,{A:function(){return Ze},JH:function(){return N},JU:function(){return P},K5:function(){return I},LH:function(){return k},L_:function(){return x},MW:function(){return Qe},Mf:function(){return A},SV:function(){return M},Sd:function(){return b},Vb:function(){return ii},Z:function(){return Jt},ZH:function(){return W},aO:function(){return ot},b2:function(){return Ko},hY:function(){return v},jx:function(){return T},oh:function(){return S},uR:function(){return D},xE:function(){return Q},yY:function(){return V},zL:function(){return E}});var W=8,A=9,I=13,P=16,T=17,E=18,v=27,x=32,D=35,b=36,S=37,k=38,M=39,N=40,V=46,Q=48,ot=57,Ze=65,Jt=90,Qe=91,Ko=224;function ii(So){for(var so=arguments.length,xr=new Array(so>1?so-1:0),Yi=1;Yi<so;Yi++)xr[Yi-1]=arguments[Yi];return xr.length?xr.some(function(Eo){return So[Eo]}):So.altKey||So.shiftKey||So.ctrlKey||So.metaKey}},5113:function(Ae,K,m){"use strict";m.d(K,{Yg:function(){return X},u3:function(){return V}});var G=m(3144),W=m(5671),A=m(5e3),j=m(3191),I=m(8929),P=m(6053),T=m(1961),E=m(7451),H=m(2986),R=m(1307),v=m(13),x=m(4850),w=m(1059),Z=m(7625),D=m(925),b=(0,G.Z)(function Q(){(0,W.Z)(this,Q)});b.\u0275fac=function(te){return new(te||b)},b.\u0275mod=A.oAB({type:b}),b.\u0275inj=A.cJS({});var k,S=new Set,M=function(){function Q(te){(0,W.Z)(this,Q),this._platform=te,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}return(0,G.Z)(Q,[{key:"matchMedia",value:function(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function N(Q){if(!S.has(Q))try{k||((k=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(k)),k.sheet&&(k.sheet.insertRule("@media ".concat(Q," {body{ }}"),0),S.add(Q))}catch(te){console.error(te)}}(be),this._matchMedia(be)}}]),Q}();function F(Q){return{matches:"all"===Q||""===Q,media:Q,addListener:function(){},removeListener:function(){}}}M.\u0275fac=function(te){return new(te||M)(A.LFG(D.t4))},M.\u0275prov=A.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});var X=function(){function Q(te,be){(0,W.Z)(this,Q),this._mediaMatcher=te,this._zone=be,this._queries=new Map,this._destroySubject=new I.xQ}return(0,G.Z)(Q,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(be){var pe=this;return $((0,j.Eq)(be)).some(function(ue){return pe._registerQuery(ue).mql.matches})}},{key:"observe",value:function(be){var pe=this,ue=$((0,j.Eq)(be)).map(function(ge){return pe._registerQuery(ge).observable}),de=(0,P.aj)(ue);return(de=(0,T.z)(de.pipe((0,H.q)(1)),de.pipe((0,R.T)(1),(0,v.b)(0)))).pipe((0,x.U)(function(ge){var He={matches:!1,breakpoints:{}};return ge.forEach(function(ot){var St=ot.matches,Tt=ot.query;He.matches=He.matches||St,He.breakpoints[Tt]=St}),He}))}},{key:"_registerQuery",value:function(be){var pe=this;if(this._queries.has(be))return this._queries.get(be);var fe=this._mediaMatcher.matchMedia(be),de={observable:new E.y(function(ge){var He=function(St){return pe._zone.run(function(){return ge.next(St)})};return fe.addListener(He),function(){fe.removeListener(He)}}).pipe((0,w.O)(fe),(0,x.U)(function(ge){var He=ge.matches;return{query:be,matches:He}}),(0,Z.R)(this._destroySubject)),mql:fe};return this._queries.set(be,de),de}}]),Q}();function $(Q){return Q.map(function(te){return te.split(",")}).reduce(function(te,be){return te.concat(be)}).map(function(te){return te.trim()})}X.\u0275fac=function(te){return new(te||X)(A.LFG(M),A.LFG(A.R0b))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"});var V={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:function(Ae,K,m){"use strict";m.d(K,{Q8:function(){return v},wD:function(){return R},yq:function(){return H}});var G=m(5671),W=m(3144),A=m(3191),j=m(5e3),I=m(7451),P=m(8929),T=m(13),E=function(){function x(){(0,G.Z)(this,x)}return(0,W.Z)(x,[{key:"create",value:function(Z){return"undefined"==typeof MutationObserver?null:new MutationObserver(Z)}}]),x}();E.\u0275fac=function(w){return new(w||E)},E.\u0275prov=j.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"});var H=function(){function x(w){(0,G.Z)(this,x),this._mutationObserverFactory=w,this._observedElements=new Map}return(0,W.Z)(x,[{key:"ngOnDestroy",value:function(){var Z=this;this._observedElements.forEach(function(D,b){return Z._cleanupObserver(b)})}},{key:"observe",value:function(Z){var D=this,b=(0,A.fI)(Z);return new I.y(function(S){var M=D._observeElement(b).subscribe(S);return function(){M.unsubscribe(),D._unobserveElement(b)}})}},{key:"_observeElement",value:function(Z){if(this._observedElements.has(Z))this._observedElements.get(Z).count++;else{var D=new P.xQ,b=this._mutationObserverFactory.create(function(S){return D.next(S)});b&&b.observe(Z,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(Z,{observer:b,stream:D,count:1})}return this._observedElements.get(Z).stream}},{key:"_unobserveElement",value:function(Z){this._observedElements.has(Z)&&(this._observedElements.get(Z).count--,this._observedElements.get(Z).count||this._cleanupObserver(Z))}},{key:"_cleanupObserver",value:function(Z){if(this._observedElements.has(Z)){var D=this._observedElements.get(Z),b=D.observer,S=D.stream;b&&b.disconnect(),S.complete(),this._observedElements.delete(Z)}}}]),x}();H.\u0275fac=function(w){return new(w||H)(j.LFG(E))},H.\u0275prov=j.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"});var R=function(){function x(w,Z,D){(0,G.Z)(this,x),this._contentObserver=w,this._elementRef=Z,this._ngZone=D,this.event=new j.vpe,this._disabled=!1,this._currentSubscription=null}return(0,W.Z)(x,[{key:"disabled",get:function(){return this._disabled},set:function(Z){this._disabled=(0,A.Ig)(Z),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(Z){this._debounce=(0,A.su)(Z),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var Z=this;this._unsubscribe();var D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){Z._currentSubscription=(Z.debounce?D.pipe((0,T.b)(Z.debounce)):D).subscribe(Z.event)})}},{key:"_unsubscribe",value:function(){var Z;null===(Z=this._currentSubscription)||void 0===Z||Z.unsubscribe()}}]),x}();R.\u0275fac=function(w){return new(w||R)(j.Y36(H),j.Y36(j.SBq),j.Y36(j.R0b))},R.\u0275dir=j.lG2({type:R,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var v=(0,W.Z)(function x(){(0,G.Z)(this,x)});v.\u0275fac=function(w){return new(w||v)},v.\u0275mod=j.oAB({type:v}),v.\u0275inj=j.cJS({providers:[E]})},1314:function(Ae,K,m){"use strict";m.d(K,{Iu:function(){return Ze},U8:function(){return Vt},X_:function(){return He},Xj:function(){return $t},aV:function(){return se},pI:function(){return an},xu:function(){return zt}});var G=m(3237),W=m(1120),A=m(136),j=m(9388),I=m(7685),P=m(7762),T=m(4902),E=m(5671),H=m(3144),R=m(9071),v=m(9808),x=m(5e3),w=m(3191),Z=m(925),D=m(226),b=m(7429),S=m(8929),k=m(4096),M=m(6787),N=m(2986),F=m(7625),X=m(4290),$=m(1159),V=(0,Z.Mq)(),Q=function(){function Qe(Fe,ne){(0,E.Z)(this,Qe),this._viewportRuler=Fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ne}return(0,H.Z)(Qe,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var ne=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ne.style.left||"",this._previousHTMLStyles.top=ne.style.top||"",ne.style.left=(0,w.HM)(-this._previousScrollPosition.left),ne.style.top=(0,w.HM)(-this._previousScrollPosition.top),ne.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var ne=this._document.documentElement,ye=this._document.body,he=ne.style,Le=ye.style,lt=he.scrollBehavior||"",ut=Le.scrollBehavior||"";this._isEnabled=!1,he.left=this._previousHTMLStyles.left,he.top=this._previousHTMLStyles.top,ne.classList.remove("cdk-global-scrollblock"),V&&(he.scrollBehavior=Le.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),V&&(he.scrollBehavior=lt,Le.scrollBehavior=ut)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var ye=this._document.body,he=this._viewportRuler.getViewportSize();return ye.scrollHeight>he.height||ye.scrollWidth>he.width}}]),Qe}();var be=function(){function Qe(Fe,ne,ye,he){var Le=this;(0,E.Z)(this,Qe),this._scrollDispatcher=Fe,this._ngZone=ne,this._viewportRuler=ye,this._config=he,this._scrollSubscription=null,this._detach=function(){Le.disable(),Le._overlayRef.hasAttached()&&Le._ngZone.run(function(){return Le._overlayRef.detach()})}}return(0,H.Z)(Qe,[{key:"attach",value:function(ne){this._overlayRef,this._overlayRef=ne}},{key:"enable",value:function(){var ne=this;if(!this._scrollSubscription){var ye=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(function(){var he=ne._viewportRuler.getViewportScrollPosition().top;Math.abs(he-ne._initialScrollPosition)>ne._config.threshold?ne._detach():ne._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Qe}(),pe=function(){function Qe(){(0,E.Z)(this,Qe)}return(0,H.Z)(Qe,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),Qe}();function fe(Qe,Fe){return Fe.some(function(ne){var ye=Qe.bottom<ne.top,he=Qe.top>ne.bottom,Le=Qe.right<ne.left,lt=Qe.left>ne.right;return ye||he||Le||lt})}function ue(Qe,Fe){return Fe.some(function(ne){var ye=Qe.top<ne.top,he=Qe.bottom>ne.bottom,Le=Qe.left<ne.left,lt=Qe.right>ne.right;return ye||he||Le||lt})}var de=function(){function Qe(Fe,ne,ye,he){(0,E.Z)(this,Qe),this._scrollDispatcher=Fe,this._viewportRuler=ne,this._ngZone=ye,this._config=he,this._scrollSubscription=null}return(0,H.Z)(Qe,[{key:"attach",value:function(ne){this._overlayRef,this._overlayRef=ne}},{key:"enable",value:function(){var ne=this;if(!this._scrollSubscription){var ye=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(ye).subscribe(function(){if(ne._overlayRef.updatePosition(),ne._config&&ne._config.autoClose){var he=ne._overlayRef.overlayElement.getBoundingClientRect(),Le=ne._viewportRuler.getViewportSize(),lt=Le.width,ut=Le.height;fe(he,[{width:lt,height:ut,bottom:ut,right:lt,top:0,left:0}])&&(ne.disable(),ne._ngZone.run(function(){return ne._overlayRef.detach()}))}})}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Qe}(),ge=(0,H.Z)(function Qe(Fe,ne,ye,he){var Le=this;(0,E.Z)(this,Qe),this._scrollDispatcher=Fe,this._viewportRuler=ne,this._ngZone=ye,this.noop=function(){return new pe},this.close=function(lt){return new be(Le._scrollDispatcher,Le._ngZone,Le._viewportRuler,lt)},this.block=function(){return new Q(Le._viewportRuler,Le._document)},this.reposition=function(lt){return new de(Le._scrollDispatcher,Le._viewportRuler,Le._ngZone,lt)},this._document=he});ge.\u0275fac=function(Fe){return new(Fe||ge)(x.LFG(R.mF),x.LFG(R.rL),x.LFG(x.R0b),x.LFG(v.K0))},ge.\u0275prov=x.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"});var He=(0,H.Z)(function Qe(Fe){if((0,E.Z)(this,Qe),this.scrollStrategy=new pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Fe)for(var ye=0,he=Object.keys(Fe);ye<he.length;ye++){var Le=he[ye];void 0!==Fe[Le]&&(this[Le]=Fe[Le])}}),Tt=(0,H.Z)(function Qe(Fe,ne){(0,E.Z)(this,Qe),this.connectionPair=Fe,this.scrollableViewProperties=ne});var Ze=function(){function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,Ht){var sn=this,yn=arguments.length>9&&void 0!==arguments[9]&&arguments[9];(0,E.Z)(this,Qe),this._portalOutlet=Fe,this._host=ne,this._pane=ye,this._config=he,this._ngZone=Le,this._keyboardDispatcher=lt,this._document=ut,this._location=Nt,this._outsideClickDispatcher=Ht,this._animationsDisabled=yn,this._backdropElement=null,this._backdropClick=new S.xQ,this._attachments=new S.xQ,this._detachments=new S.xQ,this._locationChanges=k.w.EMPTY,this._backdropClickHandler=function(ln){return sn._backdropClick.next(ln)},this._backdropTransitionendHandler=function(ln){sn._disposeBackdrop(ln.target)},this._keydownEvents=new S.xQ,this._outsidePointerEvents=new S.xQ,he.scrollStrategy&&(this._scrollStrategy=he.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=he.positionStrategy}return(0,H.Z)(Qe,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(ne){var ye=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);var he=this._portalOutlet.attach(ne);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(function(){ye.hasAttached()&&ye.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return ye.dispose()})),this._outsideClickDispatcher.add(this),"function"==typeof(null==he?void 0:he.onDestroy)&&he.onDestroy(function(){ye.hasAttached()&&ye._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return ye.detach()})})}),he}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var ne=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ne}}},{key:"dispose",value:function(){var ne,ye=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(ne=this._host)||void 0===ne||ne.remove(),this._previousHostParent=this._pane=this._host=null,ye&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(ne){ne!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ne,this.hasAttached()&&(ne.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(ne){this._config=Object.assign(Object.assign({},this._config),ne),this._updateElementSize()}},{key:"setDirection",value:function(ne){this._config=Object.assign(Object.assign({},this._config),{direction:ne}),this._updateElementDirection()}},{key:"addPanelClass",value:function(ne){this._pane&&this._toggleClasses(this._pane,ne,!0)}},{key:"removePanelClass",value:function(ne){this._pane&&this._toggleClasses(this._pane,ne,!1)}},{key:"getDirection",value:function(){var ne=this._config.direction;return ne?"string"==typeof ne?ne:ne.value:"ltr"}},{key:"updateScrollStrategy",value:function(ne){ne!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ne,this.hasAttached()&&(ne.attach(this),ne.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var ne=this._pane.style;ne.width=(0,w.HM)(this._config.width),ne.height=(0,w.HM)(this._config.height),ne.minWidth=(0,w.HM)(this._config.minWidth),ne.minHeight=(0,w.HM)(this._config.minHeight),ne.maxWidth=(0,w.HM)(this._config.maxWidth),ne.maxHeight=(0,w.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(ne){this._pane.style.pointerEvents=ne?"":"none"}},{key:"_attachBackdrop",value:function(){var ne=this,ye="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(ye):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){ne._backdropElement&&ne._backdropElement.classList.add(ye)})})}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var ne=this,ye=this._backdropElement;if(ye){if(this._animationsDisabled)return void this._disposeBackdrop(ye);ye.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){ye.addEventListener("transitionend",ne._backdropTransitionendHandler)}),ye.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){ne._disposeBackdrop(ye)},500)})}}},{key:"_toggleClasses",value:function(ne,ye,he){var lt,ut,Le=(0,w.Eq)(ye||[]).filter(function(Nt){return!!Nt});Le.length&&(he?(lt=ne.classList).add.apply(lt,(0,T.Z)(Le)):(ut=ne.classList).remove.apply(ut,(0,T.Z)(Le)))}},{key:"_detachContentWhenStable",value:function(){var ne=this;this._ngZone.runOutsideAngular(function(){var ye=ne._ngZone.onStable.pipe((0,F.R)((0,M.T)(ne._attachments,ne._detachments))).subscribe(function(){(!ne._pane||!ne._host||0===ne._pane.children.length)&&(ne._pane&&ne._config.panelClass&&ne._toggleClasses(ne._pane,ne._config.panelClass,!1),ne._host&&ne._host.parentElement&&(ne._previousHostParent=ne._host.parentElement,ne._host.remove()),ye.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var ne=this._scrollStrategy;ne&&(ne.disable(),ne.detach&&ne.detach())}},{key:"_disposeBackdrop",value:function(ne){ne&&(ne.removeEventListener("click",this._backdropClickHandler),ne.removeEventListener("transitionend",this._backdropTransitionendHandler),ne.remove(),this._backdropElement===ne&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),Qe}(),$t=function(){function Qe(Fe,ne){(0,E.Z)(this,Qe),this._platform=ne,this._document=Fe}return(0,H.Z)(Qe,[{key:"ngOnDestroy",value:function(){var ne;null===(ne=this._containerElement)||void 0===ne||ne.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var ne="cdk-overlay-container";if(this._platform.isBrowser||(0,Z.Oy)())for(var ye=this._document.querySelectorAll(".".concat(ne,'[platform="server"], ')+".".concat(ne,'[platform="test"]')),he=0;he<ye.length;he++)ye[he].remove();var Le=this._document.createElement("div");Le.classList.add(ne),(0,Z.Oy)()?Le.setAttribute("platform","test"):this._platform.isBrowser||Le.setAttribute("platform","server"),this._document.body.appendChild(Le),this._containerElement=Le}}]),Qe}();$t.\u0275fac=function(Fe){return new(Fe||$t)(x.LFG(v.K0),x.LFG(Z.t4))},$t.\u0275prov=x.Yz7({token:$t,factory:$t.\u0275fac,providedIn:"root"});var Ft="cdk-overlay-connected-position-bounding-box",pn=/([A-Za-z%]+)$/,rt=function(){function Qe(Fe,ne,ye,he,Le){(0,E.Z)(this,Qe),this._viewportRuler=ne,this._document=ye,this._platform=he,this._overlayContainer=Le,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new S.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Fe)}return(0,H.Z)(Qe,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(ne){var ye=this;this._overlayRef&&this._overlayRef,this._validatePositions(),ne.hostElement.classList.add(Ft),this._overlayRef=ne,this._boundingBox=ne.hostElement,this._pane=ne.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){ye._isInitialRender=!0,ye.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ut,Ht,ne=this._originRect,ye=this._overlayRect,he=this._viewportRect,Le=this._containerRect,lt=[],Nt=(0,P.Z)(this._preferredPositions);try{for(Nt.s();!(Ht=Nt.n()).done;){var sn=Ht.value,yn=this._getOriginPoint(ne,Le,sn),ln=this._getOverlayPoint(yn,ye,sn),Sn=this._getOverlayFit(ln,ye,he,sn);if(Sn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(sn,yn);this._canFitWithFlexibleDimensions(Sn,ln,he)?lt.push({position:sn,origin:yn,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(yn,sn)}):(!ut||ut.overlayFit.visibleArea<Sn.visibleArea)&&(ut={overlayFit:Sn,overlayPoint:ln,originPoint:yn,position:sn,overlayRect:ye})}}catch(We){Nt.e(We)}finally{Nt.f()}if(lt.length){var xt,hn=null,mn=-1,At=(0,P.Z)(lt);try{for(At.s();!(xt=At.n()).done;){var tt=xt.value,Et=tt.boundingBoxRect.width*tt.boundingBoxRect.height*(tt.position.weight||1);Et>mn&&(mn=Et,hn=tt)}}catch(We){At.e(We)}finally{At.f()}return this._isPushed=!1,void this._applyPosition(hn.position,hn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ut.position,ut.originPoint);this._applyPosition(ut.position,ut.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ot(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ft),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var ne=this._lastPosition;if(ne){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ye=this._getOriginPoint(this._originRect,this._containerRect,ne);this._applyPosition(ne,ye)}else this.apply()}}},{key:"withScrollableContainers",value:function(ne){return this._scrollables=ne,this}},{key:"withPositions",value:function(ne){return this._preferredPositions=ne,-1===ne.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(ne){return this._viewportMargin=ne,this}},{key:"withFlexibleDimensions",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=ne,this}},{key:"withGrowAfterOpen",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=ne,this}},{key:"withPush",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=ne,this}},{key:"withLockedPosition",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=ne,this}},{key:"setOrigin",value:function(ne){return this._origin=ne,this}},{key:"withDefaultOffsetX",value:function(ne){return this._offsetX=ne,this}},{key:"withDefaultOffsetY",value:function(ne){return this._offsetY=ne,this}},{key:"withTransformOriginOn",value:function(ne){return this._transformOriginSelector=ne,this}},{key:"_getOriginPoint",value:function(ne,ye,he){var Le,Nt;if("center"==he.originX)Le=ne.left+ne.width/2;else{var lt=this._isRtl()?ne.right:ne.left,ut=this._isRtl()?ne.left:ne.right;Le="start"==he.originX?lt:ut}return ye.left<0&&(Le-=ye.left),Nt="center"==he.originY?ne.top+ne.height/2:"top"==he.originY?ne.top:ne.bottom,ye.top<0&&(Nt-=ye.top),{x:Le,y:Nt}}},{key:"_getOverlayPoint",value:function(ne,ye,he){var Le,lt;return Le="center"==he.overlayX?-ye.width/2:"start"===he.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,lt="center"==he.overlayY?-ye.height/2:"top"==he.overlayY?0:-ye.height,{x:ne.x+Le,y:ne.y+lt}}},{key:"_getOverlayFit",value:function(ne,ye,he,Le){var lt=Ct(ye),ut=ne.x,Nt=ne.y,Ht=this._getOffset(Le,"x"),sn=this._getOffset(Le,"y");Ht&&(ut+=Ht),sn&&(Nt+=sn);var yn=0-ut,ln=ut+lt.width-he.width,Sn=0-Nt,hn=Nt+lt.height-he.height,mn=this._subtractOverflows(lt.width,yn,ln),At=this._subtractOverflows(lt.height,Sn,hn),xt=mn*At;return{visibleArea:xt,isCompletelyWithinViewport:lt.width*lt.height===xt,fitsInViewportVertically:At===lt.height,fitsInViewportHorizontally:mn==lt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(ne,ye,he){if(this._hasFlexibleDimensions){var Le=he.bottom-ye.y,lt=he.right-ye.x,ut=_t(this._overlayRef.getConfig().minHeight),Nt=_t(this._overlayRef.getConfig().minWidth),Ht=ne.fitsInViewportVertically||null!=ut&&ut<=Le,sn=ne.fitsInViewportHorizontally||null!=Nt&&Nt<=lt;return Ht&&sn}return!1}},{key:"_pushOverlayOnScreen",value:function(ne,ye,he){if(this._previousPushAmount&&this._positionLocked)return{x:ne.x+this._previousPushAmount.x,y:ne.y+this._previousPushAmount.y};var Le=Ct(ye),lt=this._viewportRect,ut=Math.max(ne.x+Le.width-lt.width,0),Nt=Math.max(ne.y+Le.height-lt.height,0),Ht=Math.max(lt.top-he.top-ne.y,0),sn=Math.max(lt.left-he.left-ne.x,0),yn=0,ln=0;return yn=Le.width<=lt.width?sn||-ut:ne.x<this._viewportMargin?lt.left-he.left-ne.x:0,ln=Le.height<=lt.height?Ht||-Nt:ne.y<this._viewportMargin?lt.top-he.top-ne.y:0,this._previousPushAmount={x:yn,y:ln},{x:ne.x+yn,y:ne.y+ln}}},{key:"_applyPosition",value:function(ne,ye){if(this._setTransformOrigin(ne),this._setOverlayElementStyles(ye,ne),this._setBoundingBoxStyles(ye,ne),ne.panelClass&&this._addPanelClasses(ne.panelClass),this._lastPosition=ne,this._positionChanges.observers.length){var he=this._getScrollVisibility(),Le=new Tt(ne,he);this._positionChanges.next(Le)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(ne){if(this._transformOriginSelector){var he,ye=this._boundingBox.querySelectorAll(this._transformOriginSelector),Le=ne.overlayY;he="center"===ne.overlayX?"center":this._isRtl()?"start"===ne.overlayX?"right":"left":"start"===ne.overlayX?"left":"right";for(var lt=0;lt<ye.length;lt++)ye[lt].style.transformOrigin="".concat(he," ").concat(Le)}}},{key:"_calculateBoundingBoxRect",value:function(ne,ye){var lt,ut,Nt,he=this._viewportRect,Le=this._isRtl();if("top"===ye.overlayY)ut=ne.y,lt=he.height-ut+this._viewportMargin;else if("bottom"===ye.overlayY)Nt=he.height-ne.y+2*this._viewportMargin,lt=he.height-Nt+this._viewportMargin;else{var Ht=Math.min(he.bottom-ne.y+he.top,ne.y),sn=this._lastBoundingBoxSize.height;lt=2*Ht,ut=ne.y-Ht,lt>sn&&!this._isInitialRender&&!this._growAfterOpen&&(ut=ne.y-sn/2)}var Sn,hn,mn,yn="start"===ye.overlayX&&!Le||"end"===ye.overlayX&&Le;if("end"===ye.overlayX&&!Le||"start"===ye.overlayX&&Le)mn=he.width-ne.x+this._viewportMargin,Sn=ne.x-this._viewportMargin;else if(yn)hn=ne.x,Sn=he.right-ne.x;else{var At=Math.min(he.right-ne.x+he.left,ne.x),xt=this._lastBoundingBoxSize.width;Sn=2*At,hn=ne.x-At,Sn>xt&&!this._isInitialRender&&!this._growAfterOpen&&(hn=ne.x-xt/2)}return{top:ut,left:hn,bottom:Nt,right:mn,width:Sn,height:lt}}},{key:"_setBoundingBoxStyles",value:function(ne,ye){var he=this._calculateBoundingBoxRect(ne,ye);!this._isInitialRender&&!this._growAfterOpen&&(he.height=Math.min(he.height,this._lastBoundingBoxSize.height),he.width=Math.min(he.width,this._lastBoundingBoxSize.width));var Le={};if(this._hasExactPosition())Le.top=Le.left="0",Le.bottom=Le.right=Le.maxHeight=Le.maxWidth="",Le.width=Le.height="100%";else{var lt=this._overlayRef.getConfig().maxHeight,ut=this._overlayRef.getConfig().maxWidth;Le.height=(0,w.HM)(he.height),Le.top=(0,w.HM)(he.top),Le.bottom=(0,w.HM)(he.bottom),Le.width=(0,w.HM)(he.width),Le.left=(0,w.HM)(he.left),Le.right=(0,w.HM)(he.right),"center"===ye.overlayX?Le.alignItems="center":Le.alignItems="end"===ye.overlayX?"flex-end":"flex-start","center"===ye.overlayY?Le.justifyContent="center":Le.justifyContent="bottom"===ye.overlayY?"flex-end":"flex-start",lt&&(Le.maxHeight=(0,w.HM)(lt)),ut&&(Le.maxWidth=(0,w.HM)(ut))}this._lastBoundingBoxSize=he,Ot(this._boundingBox.style,Le)}},{key:"_resetBoundingBoxStyles",value:function(){Ot(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ot(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(ne,ye){var he={},Le=this._hasExactPosition(),lt=this._hasFlexibleDimensions,ut=this._overlayRef.getConfig();if(Le){var Nt=this._viewportRuler.getViewportScrollPosition();Ot(he,this._getExactOverlayY(ye,ne,Nt)),Ot(he,this._getExactOverlayX(ye,ne,Nt))}else he.position="static";var Ht="",sn=this._getOffset(ye,"x"),yn=this._getOffset(ye,"y");sn&&(Ht+="translateX(".concat(sn,"px) ")),yn&&(Ht+="translateY(".concat(yn,"px)")),he.transform=Ht.trim(),ut.maxHeight&&(Le?he.maxHeight=(0,w.HM)(ut.maxHeight):lt&&(he.maxHeight="")),ut.maxWidth&&(Le?he.maxWidth=(0,w.HM)(ut.maxWidth):lt&&(he.maxWidth="")),Ot(this._pane.style,he)}},{key:"_getExactOverlayY",value:function(ne,ye,he){var Le={top:"",bottom:""},lt=this._getOverlayPoint(ye,this._overlayRect,ne);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,he)),"bottom"===ne.overlayY){var ut=this._document.documentElement.clientHeight;Le.bottom="".concat(ut-(lt.y+this._overlayRect.height),"px")}else Le.top=(0,w.HM)(lt.y);return Le}},{key:"_getExactOverlayX",value:function(ne,ye,he){var Le={left:"",right:""},lt=this._getOverlayPoint(ye,this._overlayRect,ne);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,he)),"right"===(this._isRtl()?"end"===ne.overlayX?"left":"right":"end"===ne.overlayX?"right":"left")){var Nt=this._document.documentElement.clientWidth;Le.right="".concat(Nt-(lt.x+this._overlayRect.width),"px")}else Le.left=(0,w.HM)(lt.x);return Le}},{key:"_getScrollVisibility",value:function(){var ne=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),he=this._scrollables.map(function(Le){return Le.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:ue(ne,he),isOriginOutsideView:fe(ne,he),isOverlayClipped:ue(ye,he),isOverlayOutsideView:fe(ye,he)}}},{key:"_subtractOverflows",value:function(ne){for(var ye=arguments.length,he=new Array(ye>1?ye-1:0),Le=1;Le<ye;Le++)he[Le-1]=arguments[Le];return he.reduce(function(lt,ut){return lt-Math.max(ut,0)},ne)}},{key:"_getNarrowedViewportRect",value:function(){var ne=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,he=this._viewportRuler.getViewportScrollPosition();return{top:he.top+this._viewportMargin,left:he.left+this._viewportMargin,right:he.left+ne-this._viewportMargin,bottom:he.top+ye-this._viewportMargin,width:ne-2*this._viewportMargin,height:ye-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(ne,ye){return"x"===ye?null==ne.offsetX?this._offsetX:ne.offsetX:null==ne.offsetY?this._offsetY:ne.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(ne){var ye=this;this._pane&&(0,w.Eq)(ne).forEach(function(he){""!==he&&-1===ye._appliedPanelClasses.indexOf(he)&&(ye._appliedPanelClasses.push(he),ye._pane.classList.add(he))})}},{key:"_clearPanelClasses",value:function(){var ne=this;this._pane&&(this._appliedPanelClasses.forEach(function(ye){ne._pane.classList.remove(ye)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var ne=this._origin;if(ne instanceof x.SBq)return ne.nativeElement.getBoundingClientRect();if(ne instanceof Element)return ne.getBoundingClientRect();var ye=ne.width||0,he=ne.height||0;return{top:ne.y,bottom:ne.y+he,left:ne.x,right:ne.x+ye,height:he,width:ye}}}]),Qe}();function Ot(Qe,Fe){for(var ne in Fe)Fe.hasOwnProperty(ne)&&(Qe[ne]=Fe[ne]);return Qe}function _t(Qe){if("number"!=typeof Qe&&null!=Qe){var Fe=Qe.split(pn),ne=(0,I.Z)(Fe,2),ye=ne[0],he=ne[1];return he&&"px"!==he?null:parseFloat(ye)}return Qe||null}function Ct(Qe){return{top:Math.floor(Qe.top),right:Math.floor(Qe.right),bottom:Math.floor(Qe.bottom),left:Math.floor(Qe.left),width:Math.floor(Qe.width),height:Math.floor(Qe.height)}}var ht="cdk-global-overlay-wrapper",Ut=function(){function Qe(){(0,E.Z)(this,Qe),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}return(0,H.Z)(Qe,[{key:"attach",value:function(ne){var ye=ne.getConfig();this._overlayRef=ne,this._width&&!ye.width&&ne.updateSize({width:this._width}),this._height&&!ye.height&&ne.updateSize({height:this._height}),ne.hostElement.classList.add(ht),this._isDisposed=!1}},{key:"top",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=ne,this._alignItems="flex-start",this}},{key:"left",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="left",this}},{key:"bottom",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=ne,this._alignItems="flex-end",this}},{key:"right",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="right",this}},{key:"start",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="start",this}},{key:"end",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="end",this}},{key:"width",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:ne}):this._width=ne,this}},{key:"height",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:ne}):this._height=ne,this}},{key:"centerHorizontally",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(ne),this._xPosition="center",this}},{key:"centerVertically",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(ne),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var ne=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,he=this._overlayRef.getConfig(),Le=he.width,lt=he.height,ut=he.maxWidth,Nt=he.maxHeight,Ht=!("100%"!==Le&&"100vw"!==Le||ut&&"100%"!==ut&&"100vw"!==ut),sn=!("100%"!==lt&&"100vh"!==lt||Nt&&"100%"!==Nt&&"100vh"!==Nt),yn=this._xPosition,ln=this._xOffset,Sn="rtl"===this._overlayRef.getConfig().direction,hn="",mn="",At="";Ht?At="flex-start":"center"===yn?(At="center",Sn?mn=ln:hn=ln):Sn?"left"===yn||"end"===yn?(At="flex-end",hn=ln):("right"===yn||"start"===yn)&&(At="flex-start",mn=ln):"left"===yn||"start"===yn?(At="flex-start",hn=ln):("right"===yn||"end"===yn)&&(At="flex-end",mn=ln),ne.position=this._cssPosition,ne.marginLeft=Ht?"0":hn,ne.marginTop=sn?"0":this._topOffset,ne.marginBottom=this._bottomOffset,ne.marginRight=Ht?"0":mn,ye.justifyContent=At,ye.alignItems=sn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var ne=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,he=ye.style;ye.classList.remove(ht),he.justifyContent=he.alignItems=ne.marginTop=ne.marginBottom=ne.marginLeft=ne.marginRight=ne.position="",this._overlayRef=null,this._isDisposed=!0}}}]),Qe}(),Wt=function(){function Qe(Fe,ne,ye,he){(0,E.Z)(this,Qe),this._viewportRuler=Fe,this._document=ne,this._platform=ye,this._overlayContainer=he}return(0,H.Z)(Qe,[{key:"global",value:function(){return new Ut}},{key:"flexibleConnectedTo",value:function(ne){return new rt(ne,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Qe}();Wt.\u0275fac=function(Fe){return new(Fe||Wt)(x.LFG(R.rL),x.LFG(v.K0),x.LFG(Z.t4),x.LFG($t))},Wt.\u0275prov=x.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"});var U=function(){function Qe(Fe){(0,E.Z)(this,Qe),this._attachedOverlays=[],this._document=Fe}return(0,H.Z)(Qe,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(ne){this.remove(ne),this._attachedOverlays.push(ne)}},{key:"remove",value:function(ne){var ye=this._attachedOverlays.indexOf(ne);ye>-1&&this._attachedOverlays.splice(ye,1),0===this._attachedOverlays.length&&this.detach()}}]),Qe}();U.\u0275fac=function(Fe){return new(Fe||U)(x.LFG(v.K0))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"});var B=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,j.Z)(ne);function ne(ye,he){var Le;return(0,E.Z)(this,ne),(Le=Fe.call(this,ye))._ngZone=he,Le._keydownListener=function(lt){for(var ut=Le._attachedOverlays,Nt=function(){if(ut[Ht]._keydownEvents.observers.length>0){var yn=ut[Ht]._keydownEvents;return Le._ngZone?Le._ngZone.run(function(){return yn.next(lt)}):yn.next(lt),1}},Ht=ut.length-1;Ht>-1&&!Nt();Ht--);},Le}return(0,H.Z)(ne,[{key:"add",value:function(he){var Le=this;(0,G.Z)((0,W.Z)(ne.prototype),"add",this).call(this,he),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return Le._document.body.addEventListener("keydown",Le._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),ne}(U);B.\u0275fac=function(Fe){return new(Fe||B)(x.LFG(v.K0),x.LFG(x.R0b,8))},B.\u0275prov=x.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"});var qe=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,j.Z)(ne);function ne(ye,he,Le){var lt;return(0,E.Z)(this,ne),(lt=Fe.call(this,ye))._platform=he,lt._ngZone=Le,lt._cursorStyleIsSet=!1,lt._pointerDownListener=function(ut){lt._pointerDownEventTarget=(0,Z.sA)(ut)},lt._clickListener=function(ut){var Nt=(0,Z.sA)(ut),Ht="click"===ut.type&<._pointerDownEventTarget?lt._pointerDownEventTarget:Nt;lt._pointerDownEventTarget=null;for(var ln,sn=lt._attachedOverlays.slice(),yn=function(){var mn=sn[Sn];if(mn._outsidePointerEvents.observers.length<1||!mn.hasAttached())return 0;if(mn.overlayElement.contains(Nt)||mn.overlayElement.contains(Ht))return 1;var At=mn._outsidePointerEvents;lt._ngZone?lt._ngZone.run(function(){return At.next(ut)}):At.next(ut)},Sn=sn.length-1;Sn>-1&&(0===(ln=yn())||1!==ln);Sn--);},lt}return(0,H.Z)(ne,[{key:"add",value:function(he){var Le=this;if((0,G.Z)((0,W.Z)(ne.prototype),"add",this).call(this,he),!this._isAttached){var lt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return Le._addEventListeners(lt)}):this._addEventListeners(lt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=lt.style.cursor,lt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var he=this._document.body;he.removeEventListener("pointerdown",this._pointerDownListener,!0),he.removeEventListener("click",this._clickListener,!0),he.removeEventListener("auxclick",this._clickListener,!0),he.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(he.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(he){he.addEventListener("pointerdown",this._pointerDownListener,!0),he.addEventListener("click",this._clickListener,!0),he.addEventListener("auxclick",this._clickListener,!0),he.addEventListener("contextmenu",this._clickListener,!0)}}]),ne}(U);qe.\u0275fac=function(Fe){return new(Fe||qe)(x.LFG(v.K0),x.LFG(Z.t4),x.LFG(x.R0b,8))},qe.\u0275prov=x.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"});var Be=0,se=function(){function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,Ht,sn,yn,ln){(0,E.Z)(this,Qe),this.scrollStrategies=Fe,this._overlayContainer=ne,this._componentFactoryResolver=ye,this._positionBuilder=he,this._keyboardDispatcher=Le,this._injector=lt,this._ngZone=ut,this._document=Nt,this._directionality=Ht,this._location=sn,this._outsideClickDispatcher=yn,this._animationsModuleType=ln}return(0,H.Z)(Qe,[{key:"create",value:function(ne){var ye=this._createHostElement(),he=this._createPaneElement(ye),Le=this._createPortalOutlet(he),lt=new He(ne);return lt.direction=lt.direction||this._directionality.value,new Ze(Le,ye,he,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(ne){var ye=this._document.createElement("div");return ye.id="cdk-overlay-".concat(Be++),ye.classList.add("cdk-overlay-pane"),ne.appendChild(ye),ye}},{key:"_createHostElement",value:function(){var ne=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ne),ne}},{key:"_createPortalOutlet",value:function(ne){return this._appRef||(this._appRef=this._injector.get(x.z2F)),new b.u0(ne,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Qe}();se.\u0275fac=function(Fe){return new(Fe||se)(x.LFG(ge),x.LFG($t),x.LFG(x._Vd),x.LFG(Wt),x.LFG(B),x.LFG(x.zs3),x.LFG(x.R0b),x.LFG(v.K0),x.LFG(D.Is),x.LFG(v.Ye),x.LFG(qe),x.LFG(x.QbO,8))},se.\u0275prov=x.Yz7({token:se,factory:se.\u0275fac});var t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Lt=new x.OlP("cdk-connected-overlay-scroll-strategy"),zt=(0,H.Z)(function Qe(Fe){(0,E.Z)(this,Qe),this.elementRef=Fe});zt.\u0275fac=function(Fe){return new(Fe||zt)(x.Y36(x.SBq))},zt.\u0275dir=x.lG2({type:zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var an=function(){function Qe(Fe,ne,ye,he,Le){(0,E.Z)(this,Qe),this._overlay=Fe,this._dir=Le,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new x.vpe,this.positionChange=new x.vpe,this.attach=new x.vpe,this.detach=new x.vpe,this.overlayKeydown=new x.vpe,this.overlayOutsideClick=new x.vpe,this._templatePortal=new b.UE(ne,ye),this._scrollStrategyFactory=he,this.scrollStrategy=this._scrollStrategyFactory()}return(0,H.Z)(Qe,[{key:"offsetX",get:function(){return this._offsetX},set:function(ne){this._offsetX=ne,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(ne){this._offsetY=ne,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(ne){this._hasBackdrop=(0,w.Ig)(ne)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(ne){this._lockPosition=(0,w.Ig)(ne)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(ne){this._flexibleDimensions=(0,w.Ig)(ne)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(ne){this._growAfterOpen=(0,w.Ig)(ne)}},{key:"push",get:function(){return this._push},set:function(ne){this._push=(0,w.Ig)(ne)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(ne){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ne.origin&&this.open&&this._position.apply()),ne.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var ne=this;(!this.positions||!this.positions.length)&&(this.positions=t);var ye=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ye.attachments().subscribe(function(){return ne.attach.emit()}),this._detachSubscription=ye.detachments().subscribe(function(){return ne.detach.emit()}),ye.keydownEvents().subscribe(function(he){ne.overlayKeydown.next(he),he.keyCode===$.hY&&!ne.disableClose&&!(0,$.Vb)(he)&&(he.preventDefault(),ne._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(he){ne.overlayOutsideClick.next(he)})}},{key:"_buildConfig",value:function(){var ne=this._position=this.positionStrategy||this._createPositionStrategy(),ye=new He({direction:this._dir,positionStrategy:ne,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ye.width=this.width),(this.height||0===this.height)&&(ye.height=this.height),(this.minWidth||0===this.minWidth)&&(ye.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ye.minHeight=this.minHeight),this.backdropClass&&(ye.backdropClass=this.backdropClass),this.panelClass&&(ye.panelClass=this.panelClass),ye}},{key:"_updatePositionStrategy",value:function(ne){var ye=this,he=this.positions.map(function(Le){return{originX:Le.originX,originY:Le.originY,overlayX:Le.overlayX,overlayY:Le.overlayY,offsetX:Le.offsetX||ye.offsetX,offsetY:Le.offsetY||ye.offsetY,panelClass:Le.panelClass||void 0}});return ne.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(he).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var ne=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ne),ne}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof zt?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var ne=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(ye){ne.backdropClick.emit(ye)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,X.o)(function(){return ne.positionChange.observers.length>0})).subscribe(function(ye){ne.positionChange.emit(ye),0===ne.positionChange.observers.length&&ne._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Qe}();an.\u0275fac=function(Fe){return new(Fe||an)(x.Y36(se),x.Y36(x.Rgc),x.Y36(x.s_b),x.Y36(Lt),x.Y36(D.Is,8))},an.\u0275dir=x.lG2({type:an,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[x.TTD]});var vn={provide:Lt,deps:[se],useFactory:function Qt(Qe){return function(){return Qe.scrollStrategies.reposition()}}},Vt=(0,H.Z)(function Qe(){(0,E.Z)(this,Qe)});Vt.\u0275fac=function(Fe){return new(Fe||Vt)},Vt.\u0275mod=x.oAB({type:Vt}),Vt.\u0275inj=x.cJS({providers:[se,vn],imports:[D.vT,b.eL,R.Cl,R.Cl]});var Jt=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,j.Z)(ne);function ne(ye,he){return(0,E.Z)(this,ne),Fe.call(this,ye,he)}return(0,H.Z)(ne,[{key:"ngOnDestroy",value:function(){(0,G.Z)((0,W.Z)(ne.prototype),"ngOnDestroy",this).call(this),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}},{key:"_createContainer",value:function(){var he=this;(0,G.Z)((0,W.Z)(ne.prototype),"_createContainer",this).call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return he._adjustParentForFullscreenChange()})}},{key:"_adjustParentForFullscreenChange",value:function(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}},{key:"_addFullscreenChangeListener",value:function(he){var Le=this._getEventName();Le&&(this._fullScreenListener&&this._document.removeEventListener(Le,this._fullScreenListener),this._document.addEventListener(Le,he),this._fullScreenListener=he)}},{key:"_getEventName",value:function(){if(!this._fullScreenEventName){var he=this._document;he.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":he.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":he.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":he.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}},{key:"getFullscreenElement",value:function(){var he=this._document;return he.fullscreenElement||he.webkitFullscreenElement||he.mozFullScreenElement||he.msFullscreenElement||null}}]),ne}($t);Jt.\u0275fac=function(Fe){return new(Fe||Jt)(x.LFG(v.K0),x.LFG(Z.t4))},Jt.\u0275prov=x.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})},925:function(Ae,K,m){"use strict";m.d(K,{Mq:function(){return b},Oy:function(){return $},_i:function(){return S},ht:function(){return F},i$:function(){return w},kV:function(){return N},qK:function(){return R},sA:function(){return X},t4:function(){return P}});var I,G=m(3144),W=m(5671),A=m(5e3),j=m(9808);try{I="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V){I=!1}var P=(0,G.Z)(function V(Q){(0,W.Z)(this,V),this._platformId=Q,this.isBrowser=this._platformId?(0,j.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!I)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});P.\u0275fac=function(Q){return new(Q||P)(A.LFG(A.Lbi))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"});var T=(0,G.Z)(function V(){(0,W.Z)(this,V)});T.\u0275fac=function(Q){return new(Q||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({});var E,v,Z,D,k,H=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(E)return E;if("object"!=typeof document||!document)return E=new Set(H);var V=document.createElement("input");return E=new Set(H.filter(function(Q){return V.setAttribute("type",Q),V.type===Q}))}function w(V){return function x(){if(null==v&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return v=!0}}))}finally{v=v||!1}return v}()?V:!!V.capture}function b(){if(null==D){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return D=!1;if("scrollBehavior"in document.documentElement.style)D=!0;else{var V=Element.prototype.scrollTo;D=!!V&&!/\{\s*\[native code\]\s*\}/.test(V.toString())}}return D}function S(){if("object"!=typeof document||!document)return 0;if(null==Z){var V=document.createElement("div"),Q=V.style;V.dir="rtl",Q.width="1px",Q.overflow="auto",Q.visibility="hidden",Q.pointerEvents="none",Q.position="absolute";var te=document.createElement("div"),be=te.style;be.width="2px",be.height="1px",V.appendChild(te),document.body.appendChild(V),Z=0,0===V.scrollLeft&&(V.scrollLeft=1,Z=0===V.scrollLeft?1:2),V.remove()}return Z}function N(V){if(function M(){if(null==k){var V="undefined"!=typeof document?document.head:null;k=!(!V||!V.createShadowRoot&&!V.attachShadow)}return k}()){var Q=V.getRootNode?V.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function F(){for(var V="undefined"!=typeof document&&document?document.activeElement:null;V&&V.shadowRoot;){var Q=V.shadowRoot.activeElement;if(Q===V)break;V=Q}return V}function X(V){return V.composedPath?V.composedPath()[0]:V.target}function $(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:function(Ae,K,m){"use strict";m.d(K,{C5:function(){return S},Pl:function(){return te},UE:function(){return k},eL:function(){return pe},en:function(){return N},ig:function(){return V},u0:function(){return X}});var G=m(7326),W=m(3237),A=m(1120),j=m(136),I=m(9388),P=m(5671),T=m(3144),E=m(5e3),H=m(9808);var b=function(){function ue(){(0,P.Z)(this,ue)}return(0,T.Z)(ue,[{key:"attach",value:function(ge){return this._attachedHost=ge,ge.attach(this)}},{key:"detach",value:function(){var ge=this._attachedHost;null!=ge&&(this._attachedHost=null,ge.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(ge){this._attachedHost=ge}}]),ue}(),S=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(He,ot,St,Tt){var Dt;return(0,P.Z)(this,ge),(Dt=de.call(this)).component=He,Dt.viewContainerRef=ot,Dt.injector=St,Dt.componentFactoryResolver=Tt,Dt}return(0,T.Z)(ge)}(b),k=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(He,ot,St,Tt){var Dt;return(0,P.Z)(this,ge),(Dt=de.call(this)).templateRef=He,Dt.viewContainerRef=ot,Dt.context=St,Dt.injector=Tt,Dt}return(0,T.Z)(ge,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(ot){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=St,(0,W.Z)((0,A.Z)(ge.prototype),"attach",this).call(this,ot)}},{key:"detach",value:function(){return this.context=void 0,(0,W.Z)((0,A.Z)(ge.prototype),"detach",this).call(this)}}]),ge}(b),M=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(He){var ot;return(0,P.Z)(this,ge),(ot=de.call(this)).element=He instanceof E.SBq?He.nativeElement:He,ot}return(0,T.Z)(ge)}(b),N=function(){function ue(){(0,P.Z)(this,ue),this._isDisposed=!1,this.attachDomPortal=null}return(0,T.Z)(ue,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(ge){return ge instanceof S?(this._attachedPortal=ge,this.attachComponentPortal(ge)):ge instanceof k?(this._attachedPortal=ge,this.attachTemplatePortal(ge)):this.attachDomPortal&&ge instanceof M?(this._attachedPortal=ge,this.attachDomPortal(ge)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(ge){this._disposeFn=ge}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),ue}(),X=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(He,ot,St,Tt,Dt){var Rt,Ze;return(0,P.Z)(this,ge),(Ze=de.call(this)).outletElement=He,Ze._componentFactoryResolver=ot,Ze._appRef=St,Ze._defaultInjector=Tt,Ze.attachDomPortal=function($t){Ze._document;var Ft=$t.element;Ft.parentNode;var pn=Ze._document.createComment("dom-portal");Ft.parentNode.insertBefore(pn,Ft),Ze.outletElement.appendChild(Ft),Ze._attachedPortal=$t,(0,W.Z)((Rt=(0,G.Z)(Ze),(0,A.Z)(ge.prototype)),"setDisposeFn",Rt).call(Rt,function(){pn.parentNode&&pn.parentNode.replaceChild(Ft,pn)})},Ze._document=Dt,Ze}return(0,T.Z)(ge,[{key:"attachComponentPortal",value:function(ot){var Rt,St=this,Dt=(ot.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ot.component);return ot.viewContainerRef?(Rt=ot.viewContainerRef.createComponent(Dt,ot.viewContainerRef.length,ot.injector||ot.viewContainerRef.injector),this.setDisposeFn(function(){return Rt.destroy()})):(Rt=Dt.create(ot.injector||this._defaultInjector||E.zs3.NULL),this._appRef.attachView(Rt.hostView),this.setDisposeFn(function(){St._appRef.viewCount>0&&St._appRef.detachView(Rt.hostView),Rt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Rt)),this._attachedPortal=ot,Rt}},{key:"attachTemplatePortal",value:function(ot){var St=this,Tt=ot.viewContainerRef,Dt=Tt.createEmbeddedView(ot.templateRef,ot.context,{injector:ot.injector});return Dt.rootNodes.forEach(function(Rt){return St.outletElement.appendChild(Rt)}),Dt.detectChanges(),this.setDisposeFn(function(){var Rt=Tt.indexOf(Dt);-1!==Rt&&Tt.remove(Rt)}),this._attachedPortal=ot,Dt}},{key:"dispose",value:function(){(0,W.Z)((0,A.Z)(ge.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(ot){return ot.hostView.rootNodes[0]}}]),ge}(N),V=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(He,ot){return(0,P.Z)(this,ge),de.call(this,He,ot)}return(0,T.Z)(ge)}(k);V.\u0275fac=function(de){return new(de||V)(E.Y36(E.Rgc),E.Y36(E.s_b))},V.\u0275dir=E.lG2({type:V,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[E.qOj]});var Q=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(){return(0,P.Z)(this,ge),de.apply(this,arguments)}return(0,T.Z)(ge)}(V);Q.\u0275fac=function(){var ue;return function(ge){return(ue||(ue=E.n5z(Q)))(ge||Q)}}(),Q.\u0275dir=E.lG2({type:Q,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[E._Bn([{provide:V,useExisting:Q}]),E.qOj]});var te=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(He,ot,St){var Tt,Dt;return(0,P.Z)(this,ge),(Dt=de.call(this))._componentFactoryResolver=He,Dt._viewContainerRef=ot,Dt._isInitialized=!1,Dt.attached=new E.vpe,Dt.attachDomPortal=function(Rt){Dt._document;var Ze=Rt.element;Ze.parentNode;var $t=Dt._document.createComment("dom-portal");Rt.setAttachedHost((0,G.Z)(Dt)),Ze.parentNode.insertBefore($t,Ze),Dt._getRootNode().appendChild(Ze),Dt._attachedPortal=Rt,(0,W.Z)((Tt=(0,G.Z)(Dt),(0,A.Z)(ge.prototype)),"setDisposeFn",Tt).call(Tt,function(){$t.parentNode&&$t.parentNode.replaceChild(Ze,$t)})},Dt._document=St,Dt}return(0,T.Z)(ge,[{key:"portal",get:function(){return this._attachedPortal},set:function(ot){this.hasAttached()&&!ot&&!this._isInitialized||(this.hasAttached()&&(0,W.Z)((0,A.Z)(ge.prototype),"detach",this).call(this),ot&&(0,W.Z)((0,A.Z)(ge.prototype),"attach",this).call(this,ot),this._attachedPortal=ot||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,W.Z)((0,A.Z)(ge.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(ot){ot.setAttachedHost(this);var St=null!=ot.viewContainerRef?ot.viewContainerRef:this._viewContainerRef,Dt=(ot.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ot.component),Rt=St.createComponent(Dt,St.length,ot.injector||St.injector);return St!==this._viewContainerRef&&this._getRootNode().appendChild(Rt.hostView.rootNodes[0]),(0,W.Z)((0,A.Z)(ge.prototype),"setDisposeFn",this).call(this,function(){return Rt.destroy()}),this._attachedPortal=ot,this._attachedRef=Rt,this.attached.emit(Rt),Rt}},{key:"attachTemplatePortal",value:function(ot){var St=this;ot.setAttachedHost(this);var Tt=this._viewContainerRef.createEmbeddedView(ot.templateRef,ot.context,{injector:ot.injector});return(0,W.Z)((0,A.Z)(ge.prototype),"setDisposeFn",this).call(this,function(){return St._viewContainerRef.clear()}),this._attachedPortal=ot,this._attachedRef=Tt,this.attached.emit(Tt),Tt}},{key:"_getRootNode",value:function(){var ot=this._viewContainerRef.element.nativeElement;return ot.nodeType===ot.ELEMENT_NODE?ot:ot.parentNode}}]),ge}(N);te.\u0275fac=function(de){return new(de||te)(E.Y36(E._Vd),E.Y36(E.s_b),E.Y36(H.K0))},te.\u0275dir=E.lG2({type:te,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[E.qOj]});var be=function(ue){(0,j.Z)(ge,ue);var de=(0,I.Z)(ge);function ge(){return(0,P.Z)(this,ge),de.apply(this,arguments)}return(0,T.Z)(ge)}(te);be.\u0275fac=function(){var ue;return function(ge){return(ue||(ue=E.n5z(be)))(ge||be)}}(),be.\u0275dir=E.lG2({type:be,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[E._Bn([{provide:te,useExisting:be}]),E.qOj]});var pe=(0,T.Z)(function ue(){(0,P.Z)(this,ue)});pe.\u0275fac=function(de){return new(de||pe)},pe.\u0275mod=E.oAB({type:pe}),pe.\u0275inj=E.cJS({})},9071:function(Ae,K,m){"use strict";m.d(K,{Cl:function(){return B},PQ:function(){return $t},ZD:function(){return U},mF:function(){return Ze},rL:function(){return Ot}});var G=m(7685),W=m(7762),A=m(7326),j=m(3237),I=m(1120),P=m(136),T=m(9388),E=m(5671),H=m(3144),R=m(3191),v=m(5e3),x=m(8929),w=m(1086),Z=m(7451),D=m(3753),b=m(352),S=m(9931),k=m(4096),M=m(4715),N=m(5778),F=m(7568),X=m(9664),$=m(7625),V=m(1059),Q=m(519),te=m(7545),be=m(5154),pe=m(9808),fe=m(925),ue=m(226),de=m(449),ge=["contentWrapper"],ot=new v.OlP("VIRTUAL_SCROLL_STRATEGY"),St=function(){function qe(Be,se,t){(0,E.Z)(this,qe),this._scrolledIndexChange=new x.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,N.x)()),this._viewport=null,this._itemSize=Be,this._minBufferPx=se,this._maxBufferPx=t}return(0,H.Z)(qe,[{key:"attach",value:function(se){this._viewport=se,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(se,t,Lt){this._itemSize=se,this._minBufferPx=t,this._maxBufferPx=Lt,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(se,t){this._viewport&&this._viewport.scrollToOffset(se*this._itemSize,t)}},{key:"_updateTotalContentSize",value:function(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var se=this._viewport.getRenderedRange(),t={start:se.start,end:se.end},Lt=this._viewport.getViewportSize(),zt=this._viewport.getDataLength(),an=this._viewport.measureScrollOffset(),Qt=this._itemSize>0?an/this._itemSize:0;if(t.end>zt){var vn=Math.ceil(Lt/this._itemSize),Vt=Math.max(0,Math.min(Qt,zt-vn));Qt!=Vt&&(Qt=Vt,an=Vt*this._itemSize,t.start=Math.floor(Qt)),t.end=Math.max(0,Math.min(zt,t.start+vn))}var Jt=an-t.start*this._itemSize;if(Jt<this._minBufferPx&&0!=t.start){var Qe=Math.ceil((this._maxBufferPx-Jt)/this._itemSize);t.start=Math.max(0,t.start-Qe),t.end=Math.min(zt,Math.ceil(Qt+(Lt+this._minBufferPx)/this._itemSize))}else{var Fe=t.end*this._itemSize-(an+Lt);if(Fe<this._minBufferPx&&t.end!=zt){var ne=Math.ceil((this._maxBufferPx-Fe)/this._itemSize);ne>0&&(t.end=Math.min(zt,t.end+ne),t.start=Math.max(0,Math.floor(Qt-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(this._itemSize*t.start),this._scrolledIndexChange.next(Math.floor(Qt))}}}]),qe}();var Dt=function(){function qe(){(0,E.Z)(this,qe),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new St(this.itemSize,this.minBufferPx,this.maxBufferPx)}return(0,H.Z)(qe,[{key:"itemSize",get:function(){return this._itemSize},set:function(se){this._itemSize=(0,R.su)(se)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(se){this._minBufferPx=(0,R.su)(se)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(se){this._maxBufferPx=(0,R.su)(se)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),qe}();Dt.\u0275fac=function(Be){return new(Be||Dt)},Dt.\u0275dir=v.lG2({type:Dt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[v._Bn([{provide:ot,useFactory:function Tt(qe){return qe._scrollStrategy},deps:[(0,v.Gpc)(function(){return Dt})]}]),v.TTD]});var Ze=function(){function qe(Be,se,t){(0,E.Z)(this,qe),this._ngZone=Be,this._platform=se,this._scrolled=new x.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=t}return(0,H.Z)(qe,[{key:"register",value:function(se){var t=this;this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(function(){return t._scrolled.next(se)}))}},{key:"deregister",value:function(se){var t=this.scrollContainers.get(se);t&&(t.unsubscribe(),this.scrollContainers.delete(se))}},{key:"scrolled",value:function(){var se=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Z.y(function(Lt){se._globalSubscription||se._addGlobalListener();var zt=t>0?se._scrolled.pipe((0,F.e)(t)).subscribe(Lt):se._scrolled.subscribe(Lt);return se._scrolledCount++,function(){zt.unsubscribe(),se._scrolledCount--,se._scrolledCount||se._removeGlobalListener()}}):(0,w.of)()}},{key:"ngOnDestroy",value:function(){var se=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,Lt){return se.deregister(Lt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(se,t){var Lt=this.getAncestorScrollContainers(se);return this.scrolled(t).pipe((0,X.h)(function(zt){return!zt||Lt.indexOf(zt)>-1}))}},{key:"getAncestorScrollContainers",value:function(se){var t=this,Lt=[];return this.scrollContainers.forEach(function(zt,an){t._scrollableContainsElement(an,se)&&Lt.push(an)}),Lt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(se,t){var Lt=(0,R.fI)(t),zt=se.getElementRef().nativeElement;do{if(Lt==zt)return!0}while(Lt=Lt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var se=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=se._getWindow();return(0,D.R)(t.document,"scroll").subscribe(function(){return se._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),qe}();Ze.\u0275fac=function(Be){return new(Be||Ze)(v.LFG(v.R0b),v.LFG(fe.t4),v.LFG(pe.K0,8))},Ze.\u0275prov=v.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"});var $t=function(){function qe(Be,se,t,Lt){var zt=this;(0,E.Z)(this,qe),this.elementRef=Be,this.scrollDispatcher=se,this.ngZone=t,this.dir=Lt,this._destroyed=new x.xQ,this._elementScrolled=new Z.y(function(an){return zt.ngZone.runOutsideAngular(function(){return(0,D.R)(zt.elementRef.nativeElement,"scroll").pipe((0,$.R)(zt._destroyed)).subscribe(an)})})}return(0,H.Z)(qe,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(se){var t=this.elementRef.nativeElement,Lt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Lt?se.end:se.start),null==se.right&&(se.right=Lt?se.start:se.end),null!=se.bottom&&(se.top=t.scrollHeight-t.clientHeight-se.bottom),Lt&&0!=(0,fe._i)()?(null!=se.left&&(se.right=t.scrollWidth-t.clientWidth-se.left),2==(0,fe._i)()?se.left=se.right:1==(0,fe._i)()&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=t.scrollWidth-t.clientWidth-se.right),this._applyScrollToOptions(se)}},{key:"_applyScrollToOptions",value:function(se){var t=this.elementRef.nativeElement;(0,fe.Mq)()?t.scrollTo(se):(null!=se.top&&(t.scrollTop=se.top),null!=se.left&&(t.scrollLeft=se.left))}},{key:"measureScrollOffset",value:function(se){var t="left",zt=this.elementRef.nativeElement;if("top"==se)return zt.scrollTop;if("bottom"==se)return zt.scrollHeight-zt.clientHeight-zt.scrollTop;var an=this.dir&&"rtl"==this.dir.value;return"start"==se?se=an?"right":t:"end"==se&&(se=an?t:"right"),an&&2==(0,fe._i)()?se==t?zt.scrollWidth-zt.clientWidth-zt.scrollLeft:zt.scrollLeft:an&&1==(0,fe._i)()?se==t?zt.scrollLeft+zt.scrollWidth-zt.clientWidth:-zt.scrollLeft:se==t?zt.scrollLeft:zt.scrollWidth-zt.clientWidth-zt.scrollLeft}}]),qe}();$t.\u0275fac=function(Be){return new(Be||$t)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},$t.\u0275dir=v.lG2({type:$t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var Ft=new v.OlP("VIRTUAL_SCROLLABLE"),pn=function(qe){(0,P.Z)(se,qe);var Be=(0,T.Z)(se);function se(t,Lt,zt,an){return(0,E.Z)(this,se),Be.call(this,t,Lt,zt,an)}return(0,H.Z)(se,[{key:"measureViewportSize",value:function(Lt){var zt=this.elementRef.nativeElement;return"horizontal"===Lt?zt.clientWidth:zt.clientHeight}}]),se}($t);pn.\u0275fac=function(Be){return new(Be||pn)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},pn.\u0275dir=v.lG2({type:pn,features:[v.qOj]});var Ot=function(){function qe(Be,se,t){var Lt=this;(0,E.Z)(this,qe),this._platform=Be,this._change=new x.xQ,this._changeListener=function(zt){Lt._change.next(zt)},this._document=t,se.runOutsideAngular(function(){if(Be.isBrowser){var zt=Lt._getWindow();zt.addEventListener("resize",Lt._changeListener),zt.addEventListener("orientationchange",Lt._changeListener)}Lt.change().subscribe(function(){return Lt._viewportSize=null})})}return(0,H.Z)(qe,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}},{key:"getViewportRect",value:function(){var se=this.getViewportScrollPosition(),t=this.getViewportSize(),Lt=t.width,zt=t.height;return{top:se.top,left:se.left,bottom:se.top+zt,right:se.left+Lt,height:zt,width:Lt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var se=this._document,t=this._getWindow(),Lt=se.documentElement,zt=Lt.getBoundingClientRect();return{top:-zt.top||se.body.scrollTop||t.scrollY||Lt.scrollTop||0,left:-zt.left||se.body.scrollLeft||t.scrollX||Lt.scrollLeft||0}}},{key:"change",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return se>0?this._change.pipe((0,F.e)(se)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}}]),qe}();Ot.\u0275fac=function(Be){return new(Be||Ot)(v.LFG(fe.t4),v.LFG(v.R0b),v.LFG(pe.K0,8))},Ot.\u0275prov=v.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"});var Ct="undefined"!=typeof requestAnimationFrame?b.Z:S.E,Ve=function(qe){(0,P.Z)(se,qe);var Be=(0,T.Z)(se);function se(t,Lt,zt,an,Qt,vn,Vt,Jt){var Qe;return(0,E.Z)(this,se),(Qe=Be.call(this,t,vn,zt,Qt)).elementRef=t,Qe._changeDetectorRef=Lt,Qe._scrollStrategy=an,Qe.scrollable=Jt,Qe._platform=(0,v.f3M)(fe.t4),Qe._detachedSubject=new x.xQ,Qe._renderedRangeSubject=new x.xQ,Qe._orientation="vertical",Qe._appendOnly=!1,Qe.scrolledIndexChange=new Z.y(function(Fe){return Qe._scrollStrategy.scrolledIndexChange.subscribe(function(ne){return Promise.resolve().then(function(){return Qe.ngZone.run(function(){return Fe.next(ne)})})})}),Qe.renderedRangeStream=Qe._renderedRangeSubject,Qe._totalContentSize=0,Qe._totalContentWidth="",Qe._totalContentHeight="",Qe._renderedRange={start:0,end:0},Qe._dataLength=0,Qe._viewportSize=0,Qe._renderedContentOffset=0,Qe._renderedContentOffsetNeedsRewrite=!1,Qe._isChangeDetectionPending=!1,Qe._runAfterChangeDetection=[],Qe._viewportChanges=k.w.EMPTY,Qe._viewportChanges=Vt.change().subscribe(function(){Qe.checkViewportSize()}),Qe.scrollable||(Qe.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),Qe.scrollable=(0,A.Z)(Qe)),Qe}return(0,H.Z)(se,[{key:"orientation",get:function(){return this._orientation},set:function(Lt){this._orientation!==Lt&&(this._orientation=Lt,this._calculateSpacerSize())}},{key:"appendOnly",get:function(){return this._appendOnly},set:function(Lt){this._appendOnly=(0,R.Ig)(Lt)}},{key:"ngOnInit",value:function(){var Lt=this;!this._platform.isBrowser||(this.scrollable===this&&(0,j.Z)((0,I.Z)(se.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){Lt._measureViewportSize(),Lt._scrollStrategy.attach(Lt),Lt.scrollable.elementScrolled().pipe((0,V.O)(null),(0,F.e)(0,Ct)).subscribe(function(){return Lt._scrollStrategy.onContentScrolled()}),Lt._markChangeDetectionNeeded()})}))}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),(0,j.Z)((0,I.Z)(se.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(Lt){var zt=this;this._forOf,this.ngZone.runOutsideAngular(function(){zt._forOf=Lt,zt._forOf.dataStream.pipe((0,$.R)(zt._detachedSubject)).subscribe(function(an){var Qt=an.length;Qt!==zt._dataLength&&(zt._dataLength=Qt,zt._scrollStrategy.onDataLengthChanged()),zt._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]}},{key:"setTotalContentSize",value:function(Lt){this._totalContentSize!==Lt&&(this._totalContentSize=Lt,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(Lt){var zt=this;(function _t(qe,Be){return qe.start==Be.start&&qe.end==Be.end})(this._renderedRange,Lt)||(this.appendOnly&&(Lt={start:0,end:Math.max(this._renderedRange.end,Lt.end)}),this._renderedRangeSubject.next(this._renderedRange=Lt),this._markChangeDetectionNeeded(function(){return zt._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(Lt){var zt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start";Lt=this.appendOnly&&"to-start"===an?0:Lt;var Qt=this.dir&&"rtl"==this.dir.value,vn="horizontal"==this.orientation,Vt=vn?"X":"Y",Jt=vn&&Qt?-1:1,Qe="translate".concat(Vt,"(").concat(Number(Jt*Lt),"px)");this._renderedContentOffset=Lt,"to-end"===an&&(Qe+=" translate".concat(Vt,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Qe&&(this._renderedContentTransform=Qe,this._markChangeDetectionNeeded(function(){zt._renderedContentOffsetNeedsRewrite?(zt._renderedContentOffset-=zt.measureRenderedContentSize(),zt._renderedContentOffsetNeedsRewrite=!1,zt.setRenderedContentOffset(zt._renderedContentOffset)):zt._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(Lt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",an={behavior:zt};"horizontal"===this.orientation?an.start=Lt:an.top=Lt,this.scrollable.scrollTo(an)}},{key:"scrollToIndex",value:function(Lt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(Lt,zt)}},{key:"measureScrollOffset",value:function(Lt){var an,zt=this;return an=this.scrollable==this?function(vn){return(0,j.Z)((0,I.Z)(se.prototype),"measureScrollOffset",zt).call(zt,vn)}:function(vn){return zt.scrollable.measureScrollOffset(vn)},Math.max(0,an(null!=Lt?Lt:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}},{key:"measureViewportOffset",value:function(Lt){var zt,an,Vt="rtl"==(null===(zt=this.dir)||void 0===zt?void 0:zt.value);an="start"==Lt?Vt?"right":"left":"end"==Lt?Vt?"left":"right":Lt||("horizontal"===this.orientation?"left":"top");var Jt=this.scrollable.measureBoundingClientRectWithScrollOffset(an);return this.elementRef.nativeElement.getBoundingClientRect()[an]-Jt}},{key:"measureRenderedContentSize",value:function(){var Lt=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Lt.offsetWidth:Lt.offsetHeight}},{key:"measureRangeSize",value:function(Lt){return this._forOf?this._forOf.measureRangeSize(Lt,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}},{key:"_markChangeDetectionNeeded",value:function(Lt){var zt=this;Lt&&this._runAfterChangeDetection.push(Lt),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){zt._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var Lt=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return Lt._changeDetectorRef.markForCheck()});var zt=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var Qt,an=(0,W.Z)(zt);try{for(an.s();!(Qt=an.n()).done;){(0,Qt.value)()}}catch(Vt){an.e(Vt)}finally{an.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),se}(pn);function at(qe,Be,se){var t=se;if(!t.getBoundingClientRect)return 0;var Lt=t.getBoundingClientRect();return"horizontal"===qe?"start"===Be?Lt.left:Lt.right:"start"===Be?Lt.top:Lt.bottom}Ve.\u0275fac=function(Be){return new(Be||Ve)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(ot,8),v.Y36(ue.Is,8),v.Y36(Ze),v.Y36(Ot),v.Y36(Ft,8))},Ve.\u0275cmp=v.Xpm({type:Ve,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Be,se){var t;(1&Be&&v.Gf(ge,7),2&Be)&&(v.iGM(t=v.CRH())&&(se._contentWrapper=t.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Be,se){2&Be&&v.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===se.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==se.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[v._Bn([{provide:$t,useFactory:function(Be,se){return Be||se},deps:[[new v.FiY,new v.tBr(Ft)],Ve]}]),v.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Be,se){1&Be&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA(),v._UZ(3,"div",2)),2&Be&&(v.xp6(3),v.Udp("width",se._totalContentWidth)("height",se._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});var ht=function(){function qe(Be,se,t,Lt,zt,an){var Qt=this;(0,E.Z)(this,qe),this._viewContainerRef=Be,this._template=se,this._differs=t,this._viewRepeater=Lt,this._viewport=zt,this.viewChange=new x.xQ,this._dataSourceChanges=new x.xQ,this.dataStream=this._dataSourceChanges.pipe((0,V.O)(null),(0,Q.G)(),(0,te.w)(function(vn){var Vt=(0,G.Z)(vn,2),Jt=Vt[0],Qe=Vt[1];return Qt._changeDataSource(Jt,Qe)}),(0,be.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new x.xQ,this.dataStream.subscribe(function(vn){Qt._data=vn,Qt._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,$.R)(this._destroyed)).subscribe(function(vn){Qt._renderedRange=vn,Qt.viewChange.observers.length&&an.run(function(){return Qt.viewChange.next(Qt._renderedRange)}),Qt._onRenderedDataChange()}),this._viewport.attach(this)}return(0,H.Z)(qe,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(se){this._cdkVirtualForOf=se,(0,de.Z9)(se)?this._dataSourceChanges.next(se):this._dataSourceChanges.next(new de.P3((0,M.b)(se)?se:Array.from(se||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(se){var t=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=se?function(Lt,zt){return se(Lt+(t._renderedRange?t._renderedRange.start:0),zt)}:void 0}},{key:"cdkVirtualForTemplate",set:function(se){se&&(this._needsUpdate=!0,this._template=se)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(se){this._viewRepeater.viewCacheSize=(0,R.su)(se)}},{key:"measureRangeSize",value:function(se,t){if(se.start>=se.end)return 0;se.start<this._renderedRange.start||(se.end,this._renderedRange.end);for(var an,Qt,Lt=se.start-this._renderedRange.start,zt=se.end-se.start,vn=0;vn<zt;vn++){var Vt=this._viewContainerRef.get(vn+Lt);if(Vt&&Vt.rootNodes.length){an=Qt=Vt.rootNodes[0];break}}for(var Jt=zt-1;Jt>-1;Jt--){var Qe=this._viewContainerRef.get(Jt+Lt);if(Qe&&Qe.rootNodes.length){Qt=Qe.rootNodes[Qe.rootNodes.length-1];break}}return an&&Qt?at(t,"end",Qt)-at(t,"start",an):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var se=this._differ.diff(this._renderedItems);se?this._applyChanges(se):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var se=this;!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(t,Lt){return se.cdkVirtualForTrackBy?se.cdkVirtualForTrackBy(t,Lt):Lt})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(se,t){return se&&se.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,w.of)()}},{key:"_updateContext",value:function(){for(var se=this._data.length,t=this._viewContainerRef.length;t--;){var Lt=this._viewContainerRef.get(t);Lt.context.index=this._renderedRange.start+t,Lt.context.count=se,this._updateComputedContextProperties(Lt.context),Lt.detectChanges()}}},{key:"_applyChanges",value:function(se){var t=this;this._viewRepeater.applyChanges(se,this._viewContainerRef,function(Qt,vn,Vt){return t._getEmbeddedViewArgs(Qt,Vt)},function(Qt){return Qt.item}),se.forEachIdentityChange(function(Qt){t._viewContainerRef.get(Qt.currentIndex).context.$implicit=Qt.item});for(var Lt=this._data.length,zt=this._viewContainerRef.length;zt--;){var an=this._viewContainerRef.get(zt);an.context.index=this._renderedRange.start+zt,an.context.count=Lt,this._updateComputedContextProperties(an.context)}}},{key:"_updateComputedContextProperties",value:function(se){se.first=0===se.index,se.last=se.index===se.count-1,se.even=se.index%2==0,se.odd=!se.even}},{key:"_getEmbeddedViewArgs",value:function(se,t){return{templateRef:this._template,context:{$implicit:se.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}]),qe}();ht.\u0275fac=function(Be){return new(Be||ht)(v.Y36(v.s_b),v.Y36(v.Rgc),v.Y36(v.ZZ4),v.Y36(de.k),v.Y36(Ve,4),v.Y36(v.R0b))},ht.\u0275dir=v.lG2({type:ht,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[v._Bn([{provide:de.k,useClass:de.eX}])]});var Ut=function(qe){(0,P.Z)(se,qe);var Be=(0,T.Z)(se);function se(t,Lt,zt,an){return(0,E.Z)(this,se),Be.call(this,t,Lt,zt,an)}return(0,H.Z)(se,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]-this.measureScrollOffset(Lt)}}]),se}(pn);Ut.\u0275fac=function(Be){return new(Be||Ut)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","cdkVirtualScrollingElement",""]],hostAttrs:[1,"cdk-virtual-scrollable"],features:[v._Bn([{provide:Ft,useExisting:Ut}]),v.qOj]});var Wt=function(qe){(0,P.Z)(se,qe);var Be=(0,T.Z)(se);function se(t,Lt,zt){var an;return(0,E.Z)(this,se),(an=Be.call(this,new v.SBq(document.documentElement),t,Lt,zt))._elementScrolled=new Z.y(function(Qt){return an.ngZone.runOutsideAngular(function(){return(0,D.R)(document,"scroll").pipe((0,$.R)(an._destroyed)).subscribe(Qt)})}),an}return(0,H.Z)(se,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]}}]),se}(pn);Wt.\u0275fac=function(Be){return new(Be||Wt)(v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},Wt.\u0275dir=v.lG2({type:Wt,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],features:[v._Bn([{provide:Ft,useExisting:Wt}]),v.qOj]});var U=(0,H.Z)(function qe(){(0,E.Z)(this,qe)});U.\u0275fac=function(Be){return new(Be||U)},U.\u0275mod=v.oAB({type:U}),U.\u0275inj=v.cJS({});var B=(0,H.Z)(function qe(){(0,E.Z)(this,qe)});B.\u0275fac=function(Be){return new(Be||B)},B.\u0275mod=v.oAB({type:B}),B.\u0275inj=v.cJS({imports:[ue.vT,U,ue.vT,U]})},9808:function(Ae,K,m){"use strict";m.d(K,{Do:function(){return te},ED:function(){return qs},EM:function(){return xc},HT:function(){return v},JF:function(){return _l},K0:function(){return w},Mx:function(){return ki},NF:function(){return qa},O5:function(){return ra},Ov:function(){return qi},PC:function(){return to},RF:function(){return uo},S$:function(){return $},V_:function(){return b},Ye:function(){return be},b0:function(){return Q},bD:function(){return fo},ez:function(){return go},mk:function(){return Ko},n9:function(){return Ui},q:function(){return H},sg:function(){return Yi},tP:function(){return Ai},w_:function(){return x}});var G=m(7762),W=m(7685),A=m(136),j=m(9388),I=m(3144),P=m(5671),T=m(5e3),E=null;function H(){return E}function v(ie){E||(E=ie)}var x=(0,I.Z)(function ie(){(0,P.Z)(this,ie)}),w=new T.OlP("DocumentToken"),Z=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"historyGo",value:function(me){throw new Error("Not implemented")}}]),ie}();Z.\u0275fac=function(ce){return new(ce||Z)},Z.\u0275prov=T.Yz7({token:Z,factory:function(){return function D(){return(0,T.LFG)(S)}()},providedIn:"platform"});var b=new T.OlP("Location Initialized"),S=function(ie){(0,A.Z)(me,ie);var ce=(0,j.Z)(me);function me(Ue){var Xe;return(0,P.Z)(this,me),(Xe=ce.call(this))._doc=Ue,Xe._init(),Xe}return(0,I.Z)(me,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return H().getBaseHref(this._doc)}},{key:"onPopState",value:function(Xe){var Pt=H().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("popstate",Xe,!1),function(){return Pt.removeEventListener("popstate",Xe)}}},{key:"onHashChange",value:function(Xe){var Pt=H().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("hashchange",Xe,!1),function(){return Pt.removeEventListener("hashchange",Xe)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(Xe){this.location.pathname=Xe}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(Xe,Pt,rn){k()?this._history.pushState(Xe,Pt,rn):this.location.hash=rn}},{key:"replaceState",value:function(Xe,Pt,rn){k()?this._history.replaceState(Xe,Pt,rn):this.location.hash=rn}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(Xe)}},{key:"getState",value:function(){return this._history.state}}]),me}(Z);function k(){return!!window.history.pushState}function N(ie,ce){if(0==ie.length)return ce;if(0==ce.length)return ie;var me=0;return ie.endsWith("/")&&me++,ce.startsWith("/")&&me++,2==me?ie+ce.substring(1):1==me?ie+ce:ie+"/"+ce}function F(ie){var ce=ie.match(/#|\?|$/),me=ce&&ce.index||ie.length,Ue=me-("/"===ie[me-1]?1:0);return ie.slice(0,Ue)+ie.slice(me)}function X(ie){return ie&&"?"!==ie[0]?"?"+ie:ie}S.\u0275fac=function(ce){return new(ce||S)(T.LFG(w))},S.\u0275prov=T.Yz7({token:S,factory:function(){return function M(){return new S((0,T.LFG)(w))}()},providedIn:"platform"});var $=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"historyGo",value:function(me){throw new Error("Not implemented")}}]),ie}();$.\u0275fac=function(ce){return new(ce||$)},$.\u0275prov=T.Yz7({token:$,factory:function(){return(0,T.f3M)(Q)},providedIn:"root"});var V=new T.OlP("appBaseHref"),Q=function(ie){(0,A.Z)(me,ie);var ce=(0,j.Z)(me);function me(Ue,Xe){var Pt,rn,Bn,lr;return(0,P.Z)(this,me),(Pt=ce.call(this))._platformLocation=Ue,Pt._removeListenerFns=[],Pt._baseHref=null!==(lr=null!==(rn=null!=Xe?Xe:Pt._platformLocation.getBaseHrefFromDOM())&&void 0!==rn?rn:null===(Bn=(0,T.f3M)(w).location)||void 0===Bn?void 0:Bn.origin)&&void 0!==lr?lr:"",Pt}return(0,I.Z)(me,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Xe){this._removeListenerFns.push(this._platformLocation.onPopState(Xe),this._platformLocation.onHashChange(Xe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(Xe){return N(this._baseHref,Xe)}},{key:"path",value:function(){var Xe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Pt=this._platformLocation.pathname+X(this._platformLocation.search),rn=this._platformLocation.hash;return rn&&Xe?"".concat(Pt).concat(rn):Pt}},{key:"pushState",value:function(Xe,Pt,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));this._platformLocation.pushState(Xe,Pt,lr)}},{key:"replaceState",value:function(Xe,Pt,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));this._platformLocation.replaceState(Xe,Pt,lr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var Pt,rn,Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(rn=(Pt=this._platformLocation).historyGo)||void 0===rn||rn.call(Pt,Xe)}}]),me}($);Q.\u0275fac=function(ce){return new(ce||Q)(T.LFG(Z),T.LFG(V,8))},Q.\u0275prov=T.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"});var te=function(ie){(0,A.Z)(me,ie);var ce=(0,j.Z)(me);function me(Ue,Xe){var Pt;return(0,P.Z)(this,me),(Pt=ce.call(this))._platformLocation=Ue,Pt._baseHref="",Pt._removeListenerFns=[],null!=Xe&&(Pt._baseHref=Xe),Pt}return(0,I.Z)(me,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Xe){this._removeListenerFns.push(this._platformLocation.onPopState(Xe),this._platformLocation.onHashChange(Xe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var Pt=this._platformLocation.hash;return null==Pt&&(Pt="#"),Pt.length>0?Pt.substring(1):Pt}},{key:"prepareExternalUrl",value:function(Xe){var Pt=N(this._baseHref,Xe);return Pt.length>0?"#"+Pt:Pt}},{key:"pushState",value:function(Xe,Pt,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));0==lr.length&&(lr=this._platformLocation.pathname),this._platformLocation.pushState(Xe,Pt,lr)}},{key:"replaceState",value:function(Xe,Pt,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));0==lr.length&&(lr=this._platformLocation.pathname),this._platformLocation.replaceState(Xe,Pt,lr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var Pt,rn,Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(rn=(Pt=this._platformLocation).historyGo)||void 0===rn||rn.call(Pt,Xe)}}]),me}($);te.\u0275fac=function(ce){return new(ce||te)(T.LFG(Z),T.LFG(V,8))},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac});var be=function(){function ie(ce){var me=this;(0,P.Z)(this,ie),this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ce;var Ue=this._locationStrategy.getBaseHref();this._baseHref=F(ue(Ue)),this._locationStrategy.onPopState(function(Xe){me._subject.emit({url:me.path(!0),pop:!0,state:Xe.state,type:Xe.type})})}return(0,I.Z)(ie,[{key:"ngOnDestroy",value:function(){var me;null===(me=this._urlChangeSubscription)||void 0===me||me.unsubscribe(),this._urlChangeListeners=[]}},{key:"path",value:function(){var me=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._locationStrategy.path(me))}},{key:"getState",value:function(){return this._locationStrategy.getState()}},{key:"isCurrentPathEqualTo",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(me+X(Ue))}},{key:"normalize",value:function(me){return ie.stripTrailingSlash(function fe(ie,ce){return ie&&ce.startsWith(ie)?ce.substring(ie.length):ce}(this._baseHref,ue(me)))}},{key:"prepareExternalUrl",value:function(me){return me&&"/"!==me[0]&&(me="/"+me),this._locationStrategy.prepareExternalUrl(me)}},{key:"go",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.pushState(Xe,"",me,Ue),this._notifyUrlChangeListeners(this.prepareExternalUrl(me+X(Ue)),Xe)}},{key:"replaceState",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.replaceState(Xe,"",me,Ue),this._notifyUrlChangeListeners(this.prepareExternalUrl(me+X(Ue)),Xe)}},{key:"forward",value:function(){this._locationStrategy.forward()}},{key:"back",value:function(){this._locationStrategy.back()}},{key:"historyGo",value:function(){var Ue,Xe,me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Xe=(Ue=this._locationStrategy).historyGo)||void 0===Xe||Xe.call(Ue,me)}},{key:"onUrlChange",value:function(me){var Ue=this;return this._urlChangeListeners.push(me),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(Xe){Ue._notifyUrlChangeListeners(Xe.url,Xe.state)})),function(){var Xe,Pt=Ue._urlChangeListeners.indexOf(me);Ue._urlChangeListeners.splice(Pt,1),0===Ue._urlChangeListeners.length&&(null===(Xe=Ue._urlChangeSubscription)||void 0===Xe||Xe.unsubscribe(),Ue._urlChangeSubscription=null)}}},{key:"_notifyUrlChangeListeners",value:function(){var me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Ue=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(Xe){return Xe(me,Ue)})}},{key:"subscribe",value:function(me,Ue,Xe){return this._subject.subscribe({next:me,error:Ue,complete:Xe})}}]),ie}();function ue(ie){return ie.replace(/\/index.html$/,"")}be.normalizeQueryParams=X,be.joinWithSlash=N,be.stripTrailingSlash=F,be.\u0275fac=function(ce){return new(ce||be)(T.LFG($))},be.\u0275prov=T.Yz7({token:be,factory:function(){return function pe(){return new be((0,T.LFG)($))}()},providedIn:"root"});var ge,ie,He,ot,St,Tt,Dt,Rt,de={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};function Ct(ie,ce){return an((0,T.cg1)(ie)[T.wAp.DateFormat],ce)}function Ve(ie,ce){return an((0,T.cg1)(ie)[T.wAp.TimeFormat],ce)}function at(ie,ce){return an((0,T.cg1)(ie)[T.wAp.DateTimeFormat],ce)}function ht(ie,ce){var me=(0,T.cg1)(ie),Ue=me[T.wAp.NumberSymbols][ce];if(void 0===Ue){if(ce===Dt.CurrencyDecimal)return me[T.wAp.NumberSymbols][Dt.Decimal];if(ce===Dt.CurrencyGroup)return me[T.wAp.NumberSymbols][Dt.Group]}return Ue}function Ut(ie,ce){return(0,T.cg1)(ie)[T.wAp.NumberFormats][ce]}function qe(ie){return(0,T.cg1)(ie)[T.wAp.Currencies]}(ie=ge||(ge={}))[ie.Decimal=0]="Decimal",ie[ie.Percent=1]="Percent",ie[ie.Currency=2]="Currency",ie[ie.Scientific=3]="Scientific",function(ie){ie[ie.Zero=0]="Zero",ie[ie.One=1]="One",ie[ie.Two=2]="Two",ie[ie.Few=3]="Few",ie[ie.Many=4]="Many",ie[ie.Other=5]="Other"}(He||(He={})),function(ie){ie[ie.Format=0]="Format",ie[ie.Standalone=1]="Standalone"}(ot||(ot={})),function(ie){ie[ie.Narrow=0]="Narrow",ie[ie.Abbreviated=1]="Abbreviated",ie[ie.Wide=2]="Wide",ie[ie.Short=3]="Short"}(St||(St={})),function(ie){ie[ie.Short=0]="Short",ie[ie.Medium=1]="Medium",ie[ie.Long=2]="Long",ie[ie.Full=3]="Full"}(Tt||(Tt={})),function(ie){ie[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup"}(Dt||(Dt={})),function(ie){ie[ie.Sunday=0]="Sunday",ie[ie.Monday=1]="Monday",ie[ie.Tuesday=2]="Tuesday",ie[ie.Wednesday=3]="Wednesday",ie[ie.Thursday=4]="Thursday",ie[ie.Friday=5]="Friday",ie[ie.Saturday=6]="Saturday"}(Rt||(Rt={}));var Be=T.kL8;function se(ie){if(!ie[T.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ie[T.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function an(ie,ce){for(var me=ce;me>-1;me--)if(void 0!==ie[me])return ie[me];throw new Error("Locale data API: locale data undefined")}function Qt(ie){var ce=ie.split(":"),me=(0,W.Z)(ce,2);return{hours:+me[0],minutes:+me[1]}}function vn(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",Ue=qe(me)[ie]||de[ie]||[],Xe=Ue[1];return"narrow"===ce&&"string"==typeof Xe?Xe:Ue[0]||ie}var ye,he,Le,Qe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fe={},ne=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function lt(ie,ce,me,Ue){var Xe=function yt(ie){if(gt(ie))return ie;if("number"==typeof ie&&!isNaN(ie))return new Date(ie);if("string"==typeof ie){if(ie=ie.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ie)){var ce=ie.split("-").map(function(Qr){return+Qr}),me=(0,W.Z)(ce,3),Ue=me[0],Xe=me[1],Pt=void 0===Xe?1:Xe,rn=me[2];return ut(Ue,Pt-1,void 0===rn?1:rn)}var wr,lr=parseFloat(ie);if(!isNaN(ie-lr))return new Date(lr);if(wr=ie.match(Qe))return function et(ie){var ce=new Date(0),me=0,Ue=0,Xe=ie[8]?ce.setUTCFullYear:ce.setFullYear,Pt=ie[8]?ce.setUTCHours:ce.setHours;ie[9]&&(me=Number(ie[9]+ie[10]),Ue=Number(ie[9]+ie[11])),Xe.call(ce,Number(ie[1]),Number(ie[2])-1,Number(ie[3]));var rn=Number(ie[4]||0)-me,Bn=Number(ie[5]||0)-Ue,lr=Number(ie[6]||0),wr=Math.floor(1e3*parseFloat("0."+(ie[7]||0)));return Pt.call(ce,rn,Bn,lr,wr),ce}(wr)}var ui=new Date(ie);if(!gt(ui))throw new Error('Unable to convert "'.concat(ie,'" into a date'));return ui}(ie);ce=Nt(me,ce)||ce;for(var Bn,rn=[];ce;){if(!(Bn=ne.exec(ce))){rn.push(ce);break}var lr=(rn=rn.concat(Bn.slice(1))).pop();if(!lr)break;ce=lr}var wr=Xe.getTimezoneOffset();Ue&&(wr=fn(Ue,wr),Xe=function Kt(ie,ce,me){var Ue=me?-1:1,Xe=ie.getTimezoneOffset(),Pt=fn(ce,Xe);return function Un(ie,ce){return(ie=new Date(ie.getTime())).setMinutes(ie.getMinutes()+ce),ie}(ie,Ue*(Pt-Xe))}(Xe,Ue,!0));var ui="";return rn.forEach(function(Qr){var Do=function vt(ie){if(Je[ie])return Je[ie];var ce;switch(ie){case"G":case"GG":case"GGG":ce=hn(Le.Eras,St.Abbreviated);break;case"GGGG":ce=hn(Le.Eras,St.Wide);break;case"GGGGG":ce=hn(Le.Eras,St.Narrow);break;case"y":ce=ln(he.FullYear,1,0,!1,!0);break;case"yy":ce=ln(he.FullYear,2,0,!0,!0);break;case"yyy":ce=ln(he.FullYear,3,0,!1,!0);break;case"yyyy":ce=ln(he.FullYear,4,0,!1,!0);break;case"Y":ce=Re(1);break;case"YY":ce=Re(2,!0);break;case"YYY":ce=Re(3);break;case"YYYY":ce=Re(4);break;case"M":case"L":ce=ln(he.Month,1,1);break;case"MM":case"LL":ce=ln(he.Month,2,1);break;case"MMM":ce=hn(Le.Months,St.Abbreviated);break;case"MMMM":ce=hn(Le.Months,St.Wide);break;case"MMMMM":ce=hn(Le.Months,St.Narrow);break;case"LLL":ce=hn(Le.Months,St.Abbreviated,ot.Standalone);break;case"LLLL":ce=hn(Le.Months,St.Wide,ot.Standalone);break;case"LLLLL":ce=hn(Le.Months,St.Narrow,ot.Standalone);break;case"w":ce=Ye(1);break;case"ww":ce=Ye(2);break;case"W":ce=Ye(1,!0);break;case"d":ce=ln(he.Date,1);break;case"dd":ce=ln(he.Date,2);break;case"c":case"cc":ce=ln(he.Day,1);break;case"ccc":ce=hn(Le.Days,St.Abbreviated,ot.Standalone);break;case"cccc":ce=hn(Le.Days,St.Wide,ot.Standalone);break;case"ccccc":ce=hn(Le.Days,St.Narrow,ot.Standalone);break;case"cccccc":ce=hn(Le.Days,St.Short,ot.Standalone);break;case"E":case"EE":case"EEE":ce=hn(Le.Days,St.Abbreviated);break;case"EEEE":ce=hn(Le.Days,St.Wide);break;case"EEEEE":ce=hn(Le.Days,St.Narrow);break;case"EEEEEE":ce=hn(Le.Days,St.Short);break;case"a":case"aa":case"aaa":ce=hn(Le.DayPeriods,St.Abbreviated);break;case"aaaa":ce=hn(Le.DayPeriods,St.Wide);break;case"aaaaa":ce=hn(Le.DayPeriods,St.Narrow);break;case"b":case"bb":case"bbb":ce=hn(Le.DayPeriods,St.Abbreviated,ot.Standalone,!0);break;case"bbbb":ce=hn(Le.DayPeriods,St.Wide,ot.Standalone,!0);break;case"bbbbb":ce=hn(Le.DayPeriods,St.Narrow,ot.Standalone,!0);break;case"B":case"BB":case"BBB":ce=hn(Le.DayPeriods,St.Abbreviated,ot.Format,!0);break;case"BBBB":ce=hn(Le.DayPeriods,St.Wide,ot.Format,!0);break;case"BBBBB":ce=hn(Le.DayPeriods,St.Narrow,ot.Format,!0);break;case"h":ce=ln(he.Hours,1,-12);break;case"hh":ce=ln(he.Hours,2,-12);break;case"H":ce=ln(he.Hours,1);break;case"HH":ce=ln(he.Hours,2);break;case"m":ce=ln(he.Minutes,1);break;case"mm":ce=ln(he.Minutes,2);break;case"s":ce=ln(he.Seconds,1);break;case"ss":ce=ln(he.Seconds,2);break;case"S":ce=ln(he.FractionalSeconds,1);break;case"SS":ce=ln(he.FractionalSeconds,2);break;case"SSS":ce=ln(he.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ce=At(ye.Short);break;case"ZZZZZ":ce=At(ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ce=At(ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ce=At(ye.Long);break;default:return null}return Je[ie]=ce,ce}(Qr);ui+=Do?Do(Xe,me,wr):"''"===Qr?"'":Qr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ui}function ut(ie,ce,me){var Ue=new Date(0);return Ue.setFullYear(ie,ce,me),Ue.setHours(0,0,0),Ue}function Nt(ie,ce){var me=function Ze(ie){return(0,T.cg1)(ie)[T.wAp.LocaleId]}(ie);if(Fe[me]=Fe[me]||{},Fe[me][ce])return Fe[me][ce];var Ue="";switch(ce){case"shortDate":Ue=Ct(ie,Tt.Short);break;case"mediumDate":Ue=Ct(ie,Tt.Medium);break;case"longDate":Ue=Ct(ie,Tt.Long);break;case"fullDate":Ue=Ct(ie,Tt.Full);break;case"shortTime":Ue=Ve(ie,Tt.Short);break;case"mediumTime":Ue=Ve(ie,Tt.Medium);break;case"longTime":Ue=Ve(ie,Tt.Long);break;case"fullTime":Ue=Ve(ie,Tt.Full);break;case"short":var Xe=Nt(ie,"shortTime"),Pt=Nt(ie,"shortDate");Ue=Ht(at(ie,Tt.Short),[Xe,Pt]);break;case"medium":var rn=Nt(ie,"mediumTime"),Bn=Nt(ie,"mediumDate");Ue=Ht(at(ie,Tt.Medium),[rn,Bn]);break;case"long":var lr=Nt(ie,"longTime"),wr=Nt(ie,"longDate");Ue=Ht(at(ie,Tt.Long),[lr,wr]);break;case"full":var ui=Nt(ie,"fullTime"),Qr=Nt(ie,"fullDate");Ue=Ht(at(ie,Tt.Full),[ui,Qr])}return Ue&&(Fe[me][ce]=Ue),Ue}function Ht(ie,ce){return ce&&(ie=ie.replace(/\{([^}]+)}/g,function(me,Ue){return null!=ce&&Ue in ce?ce[Ue]:me})),ie}function sn(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",Ue=arguments.length>3?arguments[3]:void 0,Xe=arguments.length>4?arguments[4]:void 0,Pt="";(ie<0||Xe&&ie<=0)&&(Xe?ie=1-ie:(ie=-ie,Pt=me));for(var rn=String(ie);rn.length<ce;)rn="0"+rn;return Ue&&(rn=rn.slice(rn.length-ce)),Pt+rn}function yn(ie,ce){return sn(ie,3).substring(0,ce)}function ln(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Ue=arguments.length>3&&void 0!==arguments[3]&&arguments[3],Xe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(Pt,rn){var Bn=Sn(ie,Pt);if((me>0||Bn>-me)&&(Bn+=me),ie===he.Hours)0===Bn&&-12===me&&(Bn=12);else if(ie===he.FractionalSeconds)return yn(Bn,ce);var lr=ht(rn,Dt.MinusSign);return sn(Bn,ce,lr,Ue,Xe)}}function Sn(ie,ce){switch(ie){case he.FullYear:return ce.getFullYear();case he.Month:return ce.getMonth();case he.Date:return ce.getDate();case he.Hours:return ce.getHours();case he.Minutes:return ce.getMinutes();case he.Seconds:return ce.getSeconds();case he.FractionalSeconds:return ce.getMilliseconds();case he.Day:return ce.getDay();default:throw new Error('Unknown DateType value "'.concat(ie,'".'))}}function hn(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot.Format,Ue=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(Xe,Pt){return mn(Xe,Pt,ie,ce,me,Ue)}}function mn(ie,ce,me,Ue,Xe,Pt){switch(me){case Le.Months:return function pn(ie,ce,me){var Ue=(0,T.cg1)(ie),Pt=an([Ue[T.wAp.MonthsFormat],Ue[T.wAp.MonthsStandalone]],ce);return an(Pt,me)}(ce,Xe,Ue)[ie.getMonth()];case Le.Days:return function Ft(ie,ce,me){var Ue=(0,T.cg1)(ie),Pt=an([Ue[T.wAp.DaysFormat],Ue[T.wAp.DaysStandalone]],ce);return an(Pt,me)}(ce,Xe,Ue)[ie.getDay()];case Le.DayPeriods:var rn=ie.getHours(),Bn=ie.getMinutes();if(Pt){var lr=function t(ie){var ce=(0,T.cg1)(ie);return se(ce),(ce[T.wAp.ExtraData][2]||[]).map(function(Ue){return"string"==typeof Ue?Qt(Ue):[Qt(Ue[0]),Qt(Ue[1])]})}(ce),wr=function Lt(ie,ce,me){var Ue=(0,T.cg1)(ie);se(Ue);var Pt=an([Ue[T.wAp.ExtraData][0],Ue[T.wAp.ExtraData][1]],ce)||[];return an(Pt,me)||[]}(ce,Xe,Ue),ui=lr.findIndex(function(Do){if(Array.isArray(Do)){var Ra=(0,W.Z)(Do,2),ds=Ra[0],ha=Ra[1],fs=rn>=ds.hours&&Bn>=ds.minutes,Ii=rn<ha.hours||rn===ha.hours&&Bn<ha.minutes;if(ds.hours<ha.hours){if(fs&&Ii)return!0}else if(fs||Ii)return!0}else if(Do.hours===rn&&Do.minutes===Bn)return!0;return!1});if(-1!==ui)return wr[ui]}return function $t(ie,ce,me){var Ue=(0,T.cg1)(ie),Pt=an([Ue[T.wAp.DayPeriodsFormat],Ue[T.wAp.DayPeriodsStandalone]],ce);return an(Pt,me)}(ce,Xe,Ue)[rn<12?0:1];case Le.Eras:return function rt(ie,ce){return an((0,T.cg1)(ie)[T.wAp.Eras],ce)}(ce,Ue)[ie.getFullYear()<=0?0:1];default:var Qr=me;throw new Error("unexpected translation type ".concat(Qr))}}function At(ie){return function(ce,me,Ue){var Xe=-1*Ue,Pt=ht(me,Dt.MinusSign),rn=Xe>0?Math.floor(Xe/60):Math.ceil(Xe/60);switch(ie){case ye.Short:return(Xe>=0?"+":"")+sn(rn,2,Pt)+sn(Math.abs(Xe%60),2,Pt);case ye.ShortGMT:return"GMT"+(Xe>=0?"+":"")+sn(rn,1,Pt);case ye.Long:return"GMT"+(Xe>=0?"+":"")+sn(rn,2,Pt)+":"+sn(Math.abs(Xe%60),2,Pt);case ye.Extended:return 0===Ue?"Z":(Xe>=0?"+":"")+sn(rn,2,Pt)+":"+sn(Math.abs(Xe%60),2,Pt);default:throw new Error('Unknown zone width "'.concat(ie,'"'))}}}!function(ie){ie[ie.Short=0]="Short",ie[ie.ShortGMT=1]="ShortGMT",ie[ie.Long=2]="Long",ie[ie.Extended=3]="Extended"}(ye||(ye={})),function(ie){ie[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day"}(he||(he={})),function(ie){ie[ie.DayPeriods=0]="DayPeriods",ie[ie.Days=1]="Days",ie[ie.Months=2]="Months",ie[ie.Eras=3]="Eras"}(Le||(Le={}));function Et(ie){var ce=ut(ie,0,1).getDay();return ut(ie,0,1+(ce<=4?4:11)-ce)}function We(ie){return ut(ie.getFullYear(),ie.getMonth(),ie.getDate()+(4-ie.getDay()))}function Ye(ie){var ce=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(me,Ue){var Xe;if(ce){var Pt=new Date(me.getFullYear(),me.getMonth(),1).getDay()-1,rn=me.getDate();Xe=1+Math.floor((rn+Pt)/7)}else{var Bn=We(me),lr=Et(Bn.getFullYear()),wr=Bn.getTime()-lr.getTime();Xe=1+Math.round(wr/6048e5)}return sn(Xe,ie,ht(Ue,Dt.MinusSign))}}function Re(ie){var ce=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(me,Ue){return sn(We(me).getFullYear(),ie,ht(Ue,Dt.MinusSign),ce)}}var Je={};function fn(ie,ce){ie=ie.replace(/:/g,"");var me=Date.parse("Jan 01, 1970 00:00:00 "+ie)/6e4;return isNaN(me)?ce:me}function gt(ie){return ie instanceof Date&&!isNaN(ie.valueOf())}var wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Wn="0";function Va(ie,ce,me,Ue,Xe,Pt){var rn=arguments.length>6&&void 0!==arguments[6]&&arguments[6],Bn="",lr=!1;if(isFinite(ie)){var wr=na(ie);rn&&(wr=Di(wr));var ui=ce.minInt,Qr=ce.minFrac,Do=ce.maxFrac;if(Pt){var Ra=Pt.match(wt);if(null===Ra)throw new Error("".concat(Pt," is not a valid digit info"));var ds=Ra[1],ha=Ra[3],fs=Ra[5];null!=ds&&(ui=Gn(ds)),null!=ha&&(Qr=Gn(ha)),null!=fs?Do=Gn(fs):null!=ha&&Qr>Do&&(Do=Qr)}_o(wr,Qr,Do);var Ii=wr.digits,ic=wr.integerLen,Cu=wr.exponent,ma=[];for(lr=Ii.every(function(Iv){return!Iv});ic<ui;ic++)Ii.unshift(0);for(;ic<0;ic++)Ii.unshift(0);ic>0?ma=Ii.splice(ic,Ii.length):(ma=Ii,Ii=[0]);var wu=[];for(Ii.length>=ce.lgSize&&wu.unshift(Ii.splice(-ce.lgSize,Ii.length).join(""));Ii.length>ce.gSize;)wu.unshift(Ii.splice(-ce.gSize,Ii.length).join(""));Ii.length&&wu.unshift(Ii.join("")),Bn=wu.join(ht(me,Ue)),ma.length&&(Bn+=ht(me,Xe)+ma.join("")),Cu&&(Bn+=ht(me,Dt.Exponential)+"+"+Cu)}else Bn=ht(me,Dt.Infinity);return Bn=ie<0&&!lr?ce.negPre+Bn+ce.negSuf:ce.posPre+Bn+ce.posSuf}function Ca(ie,ce,me,Ue,Xe){var rn=ta(Ut(ce,ge.Currency),ht(ce,Dt.MinusSign));return rn.minFrac=function Jt(ie){var ce,me=de[ie];return me&&(ce=me[2]),"number"==typeof ce?ce:2}(Ue),rn.maxFrac=rn.minFrac,Va(ie,rn,ce,Dt.CurrencyGroup,Dt.CurrencyDecimal,Xe).replace("\xa4",me).replace("\xa4","").trim()}function ta(ie){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",me={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ue=ie.split(";"),Xe=Ue[0],Pt=Ue[1],rn=-1!==Xe.indexOf(".")?Xe.split("."):[Xe.substring(0,Xe.lastIndexOf(Wn)+1),Xe.substring(Xe.lastIndexOf(Wn)+1)],Bn=rn[0],lr=rn[1]||"";me.posPre=Bn.substring(0,Bn.indexOf("#"));for(var wr=0;wr<lr.length;wr++){var ui=lr.charAt(wr);ui===Wn?me.minFrac=me.maxFrac=wr+1:"#"===ui?me.maxFrac=wr+1:me.posSuf+=ui}var Qr=Bn.split(",");if(me.gSize=Qr[1]?Qr[1].length:0,me.lgSize=Qr[2]||Qr[1]?(Qr[2]||Qr[1]).length:0,Pt){var Do=Xe.length-me.posPre.length-me.posSuf.length,Ra=Pt.indexOf("#");me.negPre=Pt.substring(0,Ra).replace(/'/g,""),me.negSuf=Pt.slice(Ra+Do).replace(/'/g,"")}else me.negPre=ce+me.posPre,me.negSuf=me.posSuf;return me}function Di(ie){if(0===ie.digits[0])return ie;var ce=ie.digits.length-ie.integerLen;return ie.exponent?ie.exponent+=2:(0===ce?ie.digits.push(0,0):1===ce&&ie.digits.push(0),ie.integerLen+=2),ie}function na(ie){var Ue,Xe,Pt,rn,Bn,ce=Math.abs(ie)+"",me=0;for((Xe=ce.indexOf("."))>-1&&(ce=ce.replace(".","")),(Pt=ce.search(/e/i))>0?(Xe<0&&(Xe=Pt),Xe+=+ce.slice(Pt+1),ce=ce.substring(0,Pt)):Xe<0&&(Xe=ce.length),Pt=0;ce.charAt(Pt)===Wn;Pt++);if(Pt===(Bn=ce.length))Ue=[0],Xe=1;else{for(Bn--;ce.charAt(Bn)===Wn;)Bn--;for(Xe-=Pt,Ue=[],rn=0;Pt<=Bn;Pt++,rn++)Ue[rn]=Number(ce.charAt(Pt))}return Xe>22&&(Ue=Ue.splice(0,21),me=Xe-1,Xe=1),{digits:Ue,exponent:me,integerLen:Xe}}function _o(ie,ce,me){if(ce>me)throw new Error("The minimum number of digits after fraction (".concat(ce,") is higher than the maximum (").concat(me,")."));var Ue=ie.digits,Xe=Ue.length-ie.integerLen,Pt=Math.min(Math.max(ce,Xe),me),rn=Pt+ie.integerLen,Bn=Ue[rn];if(rn>0){Ue.splice(Math.max(ie.integerLen,rn));for(var lr=rn;lr<Ue.length;lr++)Ue[lr]=0}else{Xe=Math.max(0,Xe),ie.integerLen=1,Ue.length=Math.max(1,rn=Pt+1),Ue[0]=0;for(var wr=1;wr<rn;wr++)Ue[wr]=0}if(Bn>=5)if(rn-1<0){for(var ui=0;ui>rn;ui--)Ue.unshift(0),ie.integerLen++;Ue.unshift(1),ie.integerLen++}else Ue[rn-1]++;for(;Xe<Math.max(0,Pt);Xe++)Ue.push(0);var Qr=0!==Pt,Do=ce+ie.integerLen,Ra=Ue.reduceRight(function(ds,ha,fs,Ii){return ha+=ds,Ii[fs]=ha<10?ha:ha-10,Qr&&(0===Ii[fs]&&fs>=Do?Ii.pop():Qr=!1),ha>=10?1:0},0);Ra&&(Ue.unshift(Ra),ie.integerLen++)}function Gn(ie){var ce=parseInt(ie);if(isNaN(ce))throw new Error("Invalid integer literal when parsing "+ie);return ce}var vr=(0,I.Z)(function ie(){(0,P.Z)(this,ie)});function fi(ie,ce,me,Ue){var Xe="=".concat(ie);if(ce.indexOf(Xe)>-1||(Xe=me.getPluralCategory(ie,Ue),ce.indexOf(Xe)>-1))return Xe;if(ce.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(ie,'"'))}vr.\u0275fac=function(ce){return new(ce||vr)},vr.\u0275prov=T.Yz7({token:vr,factory:function(ce){var Ue,me=null;return ce?me=new ce:(Ue=T.LFG(T.soG),me=new ni(Ue)),me},providedIn:"root"});var ni=function(ie){(0,A.Z)(me,ie);var ce=(0,j.Z)(me);function me(Ue){var Xe;return(0,P.Z)(this,me),(Xe=ce.call(this)).locale=Ue,Xe}return(0,I.Z)(me,[{key:"getPluralCategory",value:function(Xe,Pt){switch(Be(Pt||this.locale)(Xe)){case He.Zero:return"zero";case He.One:return"one";case He.Two:return"two";case He.Few:return"few";case He.Many:return"many";default:return"other"}}}]),me}(vr);function ki(ie,ce){ce=encodeURIComponent(ce);var Ue,me=(0,G.Z)(ie.split(";"));try{for(me.s();!(Ue=me.n()).done;){var Xe=Ue.value,Pt=Xe.indexOf("="),rn=-1==Pt?[Xe,""]:[Xe.slice(0,Pt),Xe.slice(Pt+1)],Bn=(0,W.Z)(rn,2),lr=Bn[0],wr=Bn[1];if(lr.trim()===ce)return decodeURIComponent(wr)}}catch(ui){me.e(ui)}finally{me.f()}return null}ni.\u0275fac=function(ce){return new(ce||ni)(T.LFG(T.soG))},ni.\u0275prov=T.Yz7({token:ni,factory:ni.\u0275fac});var Ko=function(){function ie(ce,me,Ue,Xe){(0,P.Z)(this,ie),this._iterableDiffers=ce,this._keyValueDiffers=me,this._ngEl=Ue,this._renderer=Xe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,I.Z)(ie,[{key:"klass",set:function(me){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof me?me.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(me){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof me?me.split(/\s+/):me,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var me=this._iterableDiffer.diff(this._rawClass);me&&this._applyIterableChanges(me)}else if(this._keyValueDiffer){var Ue=this._keyValueDiffer.diff(this._rawClass);Ue&&this._applyKeyValueChanges(Ue)}}},{key:"_applyKeyValueChanges",value:function(me){var Ue=this;me.forEachAddedItem(function(Xe){return Ue._toggleClass(Xe.key,Xe.currentValue)}),me.forEachChangedItem(function(Xe){return Ue._toggleClass(Xe.key,Xe.currentValue)}),me.forEachRemovedItem(function(Xe){Xe.previousValue&&Ue._toggleClass(Xe.key,!1)})}},{key:"_applyIterableChanges",value:function(me){var Ue=this;me.forEachAddedItem(function(Xe){if("string"!=typeof Xe.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,T.AaK)(Xe.item)));Ue._toggleClass(Xe.item,!0)}),me.forEachRemovedItem(function(Xe){return Ue._toggleClass(Xe.item,!1)})}},{key:"_applyClasses",value:function(me){var Ue=this;me&&(Array.isArray(me)||me instanceof Set?me.forEach(function(Xe){return Ue._toggleClass(Xe,!0)}):Object.keys(me).forEach(function(Xe){return Ue._toggleClass(Xe,!!me[Xe])}))}},{key:"_removeClasses",value:function(me){var Ue=this;me&&(Array.isArray(me)||me instanceof Set?me.forEach(function(Xe){return Ue._toggleClass(Xe,!1)}):Object.keys(me).forEach(function(Xe){return Ue._toggleClass(Xe,!1)}))}},{key:"_toggleClass",value:function(me,Ue){var Xe=this;(me=me.trim())&&me.split(/\s+/g).forEach(function(Pt){Ue?Xe._renderer.addClass(Xe._ngEl.nativeElement,Pt):Xe._renderer.removeClass(Xe._ngEl.nativeElement,Pt)})}}]),ie}();Ko.\u0275fac=function(ce){return new(ce||Ko)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},Ko.\u0275dir=T.lG2({type:Ko,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});var ii=function(){function ie(ce){(0,P.Z)(this,ie),this._viewContainerRef=ce,this.ngComponentOutlet=null}return(0,I.Z)(ie,[{key:"ngOnChanges",value:function(me){var Ue=this._viewContainerRef,Xe=this.ngComponentOutletNgModule,Pt=this.ngComponentOutletNgModuleFactory;if(Ue.clear(),this._componentRef=void 0,this.ngComponentOutlet){var rn=this.ngComponentOutletInjector||Ue.parentInjector;(me.ngComponentOutletNgModule||me.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Xe?(0,T.Lck)(Xe,So(rn)):Pt?Pt.create(So(rn)):void 0),this._componentRef=Ue.createComponent(this.ngComponentOutlet,{index:Ue.length,injector:rn,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),ie}();function So(ie){return ie.get(T.h0i).injector}ii.\u0275fac=function(ce){return new(ce||ii)(T.Y36(T.s_b))},ii.\u0275dir=T.lG2({type:ii,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[T.TTD]});var xr=function(){function ie(ce,me,Ue,Xe){(0,P.Z)(this,ie),this.$implicit=ce,this.ngForOf=me,this.index=Ue,this.count=Xe}return(0,I.Z)(ie,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),ie}(),Yi=function(){function ie(ce,me,Ue){(0,P.Z)(this,ie),this._viewContainer=ce,this._template=me,this._differs=Ue,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,I.Z)(ie,[{key:"ngForOf",set:function(me){this._ngForOf=me,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(me){this._trackByFn=me}},{key:"ngForTemplate",set:function(me){me&&(this._template=me)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var me=this._ngForOf;if(!this._differ&&me)this._differ=this._differs.find(me).create(this.ngForTrackBy)}if(this._differ){var Xe=this._differ.diff(this._ngForOf);Xe&&this._applyChanges(Xe)}}},{key:"_applyChanges",value:function(me){var Ue=this,Xe=this._viewContainer;me.forEachOperation(function(wr,ui,Qr){if(null==wr.previousIndex)Xe.createEmbeddedView(Ue._template,new xr(wr.item,Ue._ngForOf,-1,-1),null===Qr?void 0:Qr);else if(null==Qr)Xe.remove(null===ui?void 0:ui);else if(null!==ui){var Do=Xe.get(ui);Xe.move(Do,Qr),Eo(Do,wr)}});for(var Pt=0,rn=Xe.length;Pt<rn;Pt++){var lr=Xe.get(Pt).context;lr.index=Pt,lr.count=rn,lr.ngForOf=this._ngForOf}me.forEachIdentityChange(function(wr){Eo(Xe.get(wr.currentIndex),wr)})}}],[{key:"ngTemplateContextGuard",value:function(me,Ue){return!0}}]),ie}();function Eo(ie,ce){ie.context.$implicit=ce.item}Yi.\u0275fac=function(ce){return new(ce||Yi)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},Yi.\u0275dir=T.lG2({type:Yi,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});var ra=function(){function ie(ce,me){(0,P.Z)(this,ie),this._viewContainer=ce,this._context=new lo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=me}return(0,I.Z)(ie,[{key:"ngIf",set:function(me){this._context.$implicit=this._context.ngIf=me,this._updateView()}},{key:"ngIfThen",set:function(me){da("ngIfThen",me),this._thenTemplateRef=me,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(me){da("ngIfElse",me),this._elseTemplateRef=me,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(me,Ue){return!0}}]),ie}();ra.\u0275fac=function(ce){return new(ce||ra)(T.Y36(T.s_b),T.Y36(T.Rgc))},ra.\u0275dir=T.lG2({type:ra,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var lo=(0,I.Z)(function ie(){(0,P.Z)(this,ie),this.$implicit=null,this.ngIf=null});function da(ie,ce){if(!!(ce&&!ce.createEmbeddedView))throw new Error("".concat(ie," must be a TemplateRef, but received '").concat((0,T.AaK)(ce),"'."))}var Ya=function(){function ie(ce,me){(0,P.Z)(this,ie),this._viewContainerRef=ce,this._templateRef=me,this._created=!1}return(0,I.Z)(ie,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}]),ie}(),uo=function(){function ie(){(0,P.Z)(this,ie),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,I.Z)(ie,[{key:"ngSwitch",set:function(me){this._ngSwitch=me,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(me){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(me)}},{key:"_matchCase",value:function(me){var Ue=me==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ue,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ue}},{key:"_updateDefaultCases",value:function(me){if(this._defaultViews&&me!==this._defaultUsed){this._defaultUsed=me;for(var Ue=0;Ue<this._defaultViews.length;Ue++){this._defaultViews[Ue].enforceState(me)}}}}]),ie}();uo.\u0275fac=function(ce){return new(ce||uo)},uo.\u0275dir=T.lG2({type:uo,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var Ui=function(){function ie(ce,me,Ue){(0,P.Z)(this,ie),this.ngSwitch=Ue,Ue._addCase(),this._view=new Ya(ce,me)}return(0,I.Z)(ie,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ie}();Ui.\u0275fac=function(ce){return new(ce||Ui)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(uo,9))},Ui.\u0275dir=T.lG2({type:Ui,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});var qs=(0,I.Z)(function ie(ce,me,Ue){(0,P.Z)(this,ie),Ue._addDefault(new Ya(ce,me))});qs.\u0275fac=function(ce){return new(ce||qs)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(uo,9))},qs.\u0275dir=T.lG2({type:qs,selectors:[["","ngSwitchDefault",""]],standalone:!0});var qo=function(){function ie(ce){(0,P.Z)(this,ie),this._localization=ce,this._caseViews={}}return(0,I.Z)(ie,[{key:"ngPlural",set:function(me){this._switchValue=me,this._updateView()}},{key:"addCase",value:function(me,Ue){this._caseViews[me]=Ue}},{key:"_updateView",value:function(){this._clearViews();var me=Object.keys(this._caseViews),Ue=fi(this._switchValue,me,this._localization);this._activateView(this._caseViews[Ue])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(me){me&&(this._activeView=me,this._activeView.create())}}]),ie}();qo.\u0275fac=function(ce){return new(ce||qo)(T.Y36(vr))},qo.\u0275dir=T.lG2({type:qo,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});var $u=(0,I.Z)(function ie(ce,me,Ue,Xe){(0,P.Z)(this,ie),this.value=ce;var Pt=!isNaN(Number(ce));Xe.addCase(Pt?"=".concat(ce):ce,new Ya(Ue,me))});$u.\u0275fac=function(ce){return new(ce||$u)(T.$8M("ngPluralCase"),T.Y36(T.Rgc),T.Y36(T.s_b),T.Y36(qo,1))},$u.\u0275dir=T.lG2({type:$u,selectors:[["","ngPluralCase",""]],standalone:!0});var to=function(){function ie(ce,me,Ue){(0,P.Z)(this,ie),this._ngEl=ce,this._differs=me,this._renderer=Ue,this._ngStyle=null,this._differ=null}return(0,I.Z)(ie,[{key:"ngStyle",set:function(me){this._ngStyle=me,!this._differ&&me&&(this._differ=this._differs.find(me).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var me=this._differ.diff(this._ngStyle);me&&this._applyChanges(me)}}},{key:"_setStyle",value:function(me,Ue){var Xe=me.split("."),Pt=(0,W.Z)(Xe,2),rn=Pt[0],Bn=Pt[1],lr=-1===rn.indexOf("-")?void 0:T.JOm.DashCase;null!=Ue?this._renderer.setStyle(this._ngEl.nativeElement,rn,Bn?"".concat(Ue).concat(Bn):Ue,lr):this._renderer.removeStyle(this._ngEl.nativeElement,rn,lr)}},{key:"_applyChanges",value:function(me){var Ue=this;me.forEachRemovedItem(function(Xe){return Ue._setStyle(Xe.key,null)}),me.forEachAddedItem(function(Xe){return Ue._setStyle(Xe.key,Xe.currentValue)}),me.forEachChangedItem(function(Xe){return Ue._setStyle(Xe.key,Xe.currentValue)})}}]),ie}();to.\u0275fac=function(ce){return new(ce||to)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},to.\u0275dir=T.lG2({type:to,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});var Ai=function(){function ie(ce){(0,P.Z)(this,ie),this._viewContainerRef=ce,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}return(0,I.Z)(ie,[{key:"ngOnChanges",value:function(me){if(me.ngTemplateOutlet||me.ngTemplateOutletInjector){var Ue=this._viewContainerRef;if(this._viewRef&&Ue.remove(Ue.indexOf(this._viewRef)),this.ngTemplateOutlet){var Xe=this.ngTemplateOutlet,Pt=this.ngTemplateOutletContext,rn=this.ngTemplateOutletInjector;this._viewRef=Ue.createEmbeddedView(Xe,Pt,rn?{injector:rn}:void 0)}else this._viewRef=null}else this._viewRef&&me.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),ie}();Ai.\u0275fac=function(ce){return new(ce||Ai)(T.Y36(T.s_b))},Ai.\u0275dir=T.lG2({type:Ai,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[T.TTD]});function Ki(ie,ce){return new T.vHH(2100,!1)}var tn=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"createSubscription",value:function(me,Ue){return me.subscribe({next:Ue,error:function(Pt){throw Pt}})}},{key:"dispose",value:function(me){me.unsubscribe()}}]),ie}(),en=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"createSubscription",value:function(me,Ue){return me.then(Ue,function(Xe){throw Xe})}},{key:"dispose",value:function(me){}}]),ie}(),Dr=new en,no=new tn,qi=function(){function ie(ce){(0,P.Z)(this,ie),this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ce}return(0,I.Z)(ie,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose(),this._ref=null}},{key:"transform",value:function(me){return this._obj?me!==this._obj?(this._dispose(),this.transform(me)):this._latestValue:(me&&this._subscribe(me),this._latestValue)}},{key:"_subscribe",value:function(me){var Ue=this;this._obj=me,this._strategy=this._selectStrategy(me),this._subscription=this._strategy.createSubscription(me,function(Xe){return Ue._updateLatestValue(me,Xe)})}},{key:"_selectStrategy",value:function(me){if((0,T.QGY)(me))return Dr;if((0,T.F4k)(me))return no;throw Ki()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(me,Ue){me===this._obj&&(this._latestValue=Ue,this._ref.markForCheck())}}]),ie}();qi.\u0275fac=function(ce){return new(ce||qi)(T.Y36(T.sBO,16))},qi.\u0275pipe=T.Yjl({name:"async",type:qi,pure:!1,standalone:!0});var Jo=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Ki();return me.toLowerCase()}}]),ie}();Jo.\u0275fac=function(ce){return new(ce||Jo)},Jo.\u0275pipe=T.Yjl({name:"lowercase",type:Jo,pure:!0,standalone:!0});var Ti=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,ro=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Ki();return me.replace(Ti,function(Ue){return Ue[0].toUpperCase()+Ue.slice(1).toLowerCase()})}}]),ie}();ro.\u0275fac=function(ce){return new(ce||ro)},ro.\u0275pipe=T.Yjl({name:"titlecase",type:ro,pure:!0,standalone:!0});var Rn=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Ki();return me.toUpperCase()}}]),ie}();Rn.\u0275fac=function(ce){return new(ce||Rn)},Rn.\u0275pipe=T.Yjl({name:"uppercase",type:Rn,pure:!0,standalone:!0});var mu=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Jr=function(){function ie(ce,me){(0,P.Z)(this,ie),this.locale=ce,this.defaultTimezone=me}return(0,I.Z)(ie,[{key:"transform",value:function(me){var rn,Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",Xe=arguments.length>2?arguments[2]:void 0,Pt=arguments.length>3?arguments[3]:void 0;if(null==me||""===me||me!=me)return null;try{return lt(me,Ue,Pt||this.locale,null!==(rn=null!=Xe?Xe:this.defaultTimezone)&&void 0!==rn?rn:void 0)}catch(Bn){throw Ki(0,Bn.message)}}}]),ie}();Jr.\u0275fac=function(ce){return new(ce||Jr)(T.Y36(T.soG,16),T.Y36(mu,24))},Jr.\u0275pipe=T.Yjl({name:"date",type:Jr,pure:!0,standalone:!0});var Yn=/#/g,An=function(){function ie(ce){(0,P.Z)(this,ie),this._localization=ce}return(0,I.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(null==me)return"";if("object"!=typeof Ue||null===Ue)throw Ki();return Ue[fi(me,Object.keys(Ue),this._localization,Xe)].replace(Yn,me.toString())}}]),ie}();An.\u0275fac=function(ce){return new(ce||An)(T.Y36(vr,16))},An.\u0275pipe=T.Yjl({name:"i18nPlural",type:An,pure:!0,standalone:!0});var cn=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"transform",value:function(me,Ue){if(null==me)return"";if("object"!=typeof Ue||"string"!=typeof me)throw Ki();return Ue.hasOwnProperty(me)?Ue[me]:Ue.hasOwnProperty("other")?Ue.other:""}}]),ie}();cn.\u0275fac=function(ce){return new(ce||cn)},cn.\u0275pipe=T.Yjl({name:"i18nSelect",type:cn,pure:!0,standalone:!0});var Ji=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"transform",value:function(me){return JSON.stringify(me,null,2)}}]),ie}();function Oi(ie,ce){return{key:ie,value:ce}}Ji.\u0275fac=function(ce){return new(ce||Ji)},Ji.\u0275pipe=T.Yjl({name:"json",type:Ji,pure:!1,standalone:!0});var Qi=function(){function ie(ce){(0,P.Z)(this,ie),this.differs=ce,this.keyValues=[],this.compareFn=Pi}return(0,I.Z)(ie,[{key:"transform",value:function(me){var Ue=this,Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pi;if(!me||!(me instanceof Map)&&"object"!=typeof me)return null;this.differ||(this.differ=this.differs.find(me).create());var Pt=this.differ.diff(me),rn=Xe!==this.compareFn;return Pt&&(this.keyValues=[],Pt.forEachItem(function(Bn){Ue.keyValues.push(Oi(Bn.key,Bn.currentValue))})),(Pt||rn)&&(this.keyValues.sort(Xe),this.compareFn=Xe),this.keyValues}}]),ie}();function Pi(ie,ce){var me=ie.key,Ue=ce.key;if(me===Ue)return 0;if(void 0===me)return 1;if(void 0===Ue)return-1;if(null===me)return 1;if(null===Ue)return-1;if("string"==typeof me&&"string"==typeof Ue)return me<Ue?-1:1;if("number"==typeof me&&"number"==typeof Ue)return me-Ue;if("boolean"==typeof me&&"boolean"==typeof Ue)return me<Ue?-1:1;var Xe=String(me),Pt=String(Ue);return Xe==Pt?0:Xe<Pt?-1:1}Qi.\u0275fac=function(ce){return new(ce||Qi)(T.Y36(T.aQg,16))},Qi.\u0275pipe=T.Yjl({name:"keyvalue",type:Qi,pure:!1,standalone:!0});var ai=function(){function ie(ce){(0,P.Z)(this,ie),this._locale=ce}return(0,I.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(!hr(me))return null;Xe=Xe||this._locale;try{return function ls(ie,ce,me){return Va(ie,ta(Ut(ce,ge.Decimal),ht(ce,Dt.MinusSign)),ce,Dt.Group,Dt.Decimal,me)}(co(me),Xe,Ue)}catch(rn){throw Ki(0,rn.message)}}}]),ie}();ai.\u0275fac=function(ce){return new(ce||ai)(T.Y36(T.soG,16))},ai.\u0275pipe=T.Yjl({name:"number",type:ai,pure:!0,standalone:!0});var Mi=function(){function ie(ce){(0,P.Z)(this,ie),this._locale=ce}return(0,I.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(!hr(me))return null;Xe=Xe||this._locale;try{return function wa(ie,ce,me){return Va(ie,ta(Ut(ce,ge.Percent),ht(ce,Dt.MinusSign)),ce,Dt.Group,Dt.Decimal,me,!0).replace(new RegExp("%","g"),ht(ce,Dt.PercentSign))}(co(me),Xe,Ue)}catch(rn){throw Ki(0,rn.message)}}}]),ie}();Mi.\u0275fac=function(ce){return new(ce||Mi)(T.Y36(T.soG,16))},Mi.\u0275pipe=T.Yjl({name:"percent",type:Mi,pure:!0,standalone:!0});var ji=function(){function ie(ce){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";(0,P.Z)(this,ie),this._locale=ce,this._defaultCurrencyCode=me}return(0,I.Z)(ie,[{key:"transform",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,Xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",Pt=arguments.length>3?arguments[3]:void 0,rn=arguments.length>4?arguments[4]:void 0;if(!hr(me))return null;rn=rn||this._locale,"boolean"==typeof Xe&&(Xe=Xe?"symbol":"code");var Bn=Ue||this._defaultCurrencyCode;"code"!==Xe&&(Bn="symbol"===Xe||"symbol-narrow"===Xe?vn(Bn,"symbol"===Xe?"wide":"narrow",rn):Xe);try{var lr=co(me);return Ca(lr,rn,Bn,Ue,Pt)}catch(wr){throw Ki(0,wr.message)}}}]),ie}();function hr(ie){return!(null==ie||""===ie||ie!=ie)}function co(ie){if("string"==typeof ie&&!isNaN(Number(ie)-parseFloat(ie)))return Number(ie);if("number"!=typeof ie)throw new Error("".concat(ie," is not a number"));return ie}ji.\u0275fac=function(ce){return new(ce||ji)(T.Y36(T.soG,16),T.Y36(T.EJc,16))},ji.\u0275pipe=T.Yjl({name:"currency",type:ji,pure:!0,standalone:!0});var fa=function(){function ie(){(0,P.Z)(this,ie)}return(0,I.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(null==me)return null;if(!this.supports(me))throw Ki();return me.slice(Ue,Xe)}},{key:"supports",value:function(me){return"string"==typeof me||Array.isArray(me)}}]),ie}();fa.\u0275fac=function(ce){return new(ce||fa)},fa.\u0275pipe=T.Yjl({name:"slice",type:fa,pure:!1,standalone:!0});var go=(0,I.Z)(function ie(){(0,P.Z)(this,ie)});go.\u0275fac=function(ce){return new(ce||go)},go.\u0275mod=T.oAB({type:go}),go.\u0275inj=T.cJS({});var fo="browser";function qa(ie){return ie===fo}new T.GfV("14.3.0");var xc=(0,I.Z)(function ie(){(0,P.Z)(this,ie)});xc.\u0275prov=(0,T.Yz7)({token:xc,providedIn:"root",factory:function(){return new Br((0,T.LFG)(w),window)}});var Br=function(){function ie(ce,me){(0,P.Z)(this,ie),this.document=ce,this.window=me,this.offset=function(){return[0,0]}}return(0,I.Z)(ie,[{key:"setOffset",value:function(me){Array.isArray(me)?this.offset=function(){return me}:this.offset=me}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}},{key:"scrollToAnchor",value:function(me){if(this.supportsScrolling()){var Ue=function ml(ie,ce){var me=ie.getElementById(ce)||ie.getElementsByName(ce)[0];if(me)return me;if("function"==typeof ie.createTreeWalker&&ie.body&&(ie.body.createShadowRoot||ie.body.attachShadow))for(var Ue=ie.createTreeWalker(ie.body,NodeFilter.SHOW_ELEMENT),Xe=Ue.currentNode;Xe;){var Pt=Xe.shadowRoot;if(Pt){var rn=Pt.getElementById(ce)||Pt.querySelector('[name="'.concat(ce,'"]'));if(rn)return rn}Xe=Ue.nextNode()}return null}(this.document,me);Ue&&(this.scrollToElement(Ue),Ue.focus())}}},{key:"setHistoryScrollRestoration",value:function(me){if(this.supportScrollRestoration()){var Ue=this.window.history;Ue&&Ue.scrollRestoration&&(Ue.scrollRestoration=me)}}},{key:"scrollToElement",value:function(me){var Ue=me.getBoundingClientRect(),Xe=Ue.left+this.window.pageXOffset,Pt=Ue.top+this.window.pageYOffset,rn=this.offset();this.window.scrollTo(Xe-rn[0],Pt-rn[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var me=gu(this.window.history)||gu(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch(Ue){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(me){return!1}}}]),ie}();function gu(ie){return Object.getOwnPropertyDescriptor(ie,"scrollRestoration")}var _l=(0,I.Z)(function ie(){(0,P.Z)(this,ie)});function vu(ie,ce){return po(ie)?new URL(ie):new URL(ie,ce.location.href)}function po(ie){return/^https?:\/\//.test(ie)}function ks(ie){return po(ie)?new URL(ie).hostname:ie}function xo(ie){return ie.startsWith("/")?ie.slice(1):ie}var yu=function(ce){return ce.src},Js=new T.OlP("ImageLoader",{providedIn:"root",factory:function(){return yu}});function pa(ie,ce){return function(Ue){(function Ul(ie){if("string"!=typeof ie||""===ie.trim())return!1;try{return new URL(ie),!0}catch(Ue){return!1}})(Ue)||function Ho(ie,ce){throw new T.vHH(2959,!1)}(),Ue=function Dc(ie){return ie.endsWith("/")?ie.slice(0,-1):ie}(Ue);return[{provide:Js,useValue:function(Bn){return po(Bn.src)&&function bd(ie,ce){throw new T.vHH(2959,!1)}(0,Bn.src),ie(Ue,Object.assign(Object.assign({},Bn),{src:xo(Bn.src)}))}}]}}pa(function Xm(ie,ce){var me="format=auto";return ce.width&&(me+=",width=".concat(ce.width)),"".concat(ie,"/cdn-cgi/image/").concat(me,"/").concat(ce.src)});pa(function us(ie,ce){var me="f_auto,q_auto";return ce.width&&(me+=",w_".concat(ce.width)),"".concat(ie,"/image/upload/").concat(me,"/").concat(ce.src)});pa(function Ss(ie,ce){var me="tr:q-auto";return ce.width&&(me+=",w-".concat(ce.width)),"".concat(ie,"/").concat(me,"/").concat(ce.src)});pa(function ke(ie,ce){var me=new URL("".concat(ie,"/").concat(ce.src));return me.searchParams.set("auto","format"),ce.width&&me.searchParams.set("w",ce.width.toString()),me.href});function le(ie){var ce=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],me=ce?'(activated on an <img> element with the `ngSrc="'.concat(ie,'"`) '):"";return"The NgOptimizedImage directive ".concat(me,"has detected that")}function Me(ie){throw new T.vHH(2958,"Unexpected invocation of the ".concat(ie," in the prod mode. ")+"Please make sure that the prod mode is enabled for production builds.")}var Oe=function(){function ie(){(0,P.Z)(this,ie),this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,Me("LCP checker");var ce=(0,T.f3M)(w).defaultView;void 0!==ce&&"undefined"!=typeof PerformanceObserver&&(this.window=ce,this.observer=this.initPerformanceObserver())}return(0,I.Z)(ie,[{key:"initPerformanceObserver",value:function(){var me=this,Ue=new PerformanceObserver(function(Xe){var Pt,rn,Bn=Xe.getEntries();if(0!==Bn.length){var wr=null!==(rn=null===(Pt=Bn[Bn.length-1].element)||void 0===Pt?void 0:Pt.src)&&void 0!==rn?rn:"";if(!wr.startsWith("data:")&&!wr.startsWith("blob:"))me.images.get(wr)&&!me.alreadyWarned.has(wr)&&(me.alreadyWarned.add(wr),function pt(ie){var ce=le(ie);console.warn((0,T.kuF)(2955,"".concat(ce," this image is the Largest Contentful Paint (LCP) ")+'element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.'))}(wr))}});return Ue.observe({type:"largest-contentful-paint",buffered:!0}),Ue}},{key:"registerImage",value:function(me,Ue){!this.observer||this.images.set(vu(me,this.window).href,Ue)}},{key:"unregisterImage",value:function(me){!this.observer||this.images.delete(vu(me,this.window).href)}},{key:"ngOnDestroy",value:function(){!this.observer||(this.observer.disconnect(),this.images.clear(),this.alreadyWarned.clear())}}]),ie}();Oe.\u0275fac=function(ce){return new(ce||Oe)},Oe.\u0275prov=T.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"});var Yt=new Set(["localhost","127.0.0.1","0.0.0.0"]),In=new T.OlP("PRECONNECT_CHECK_BLOCKLIST"),Qn=function(){function ie(){(0,P.Z)(this,ie),this.document=(0,T.f3M)(w),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(Yt),Me("preconnect link checker");var ce=this.document.defaultView;void 0!==ce&&(this.window=ce);var me=(0,T.f3M)(In,{optional:!0});me&&this.populateBlocklist(me)}return(0,I.Z)(ie,[{key:"populateBlocklist",value:function(me){var Ue=this;Array.isArray(me)?Qs(me,function(Xe){Ue.blocklist.add(ks(Xe))}):this.blocklist.add(ks(me))}},{key:"assertPreconnect",value:function(me,Ue){if(this.window){var Xe=vu(me,this.window);this.blocklist.has(Xe.hostname)||this.alreadySeen.has(Xe.origin)||(this.alreadySeen.add(Xe.origin),this.preconnectLinks||(this.preconnectLinks=this.queryPreconnectLinks()),this.preconnectLinks.has(Xe.origin)||console.warn((0,T.kuF)(2956,"".concat(le(Ue)," there is no preconnect tag present for this ")+"image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the <head> of the document:\n"+' <link rel="preconnect" href="'.concat(Xe.origin,'">'))))}}},{key:"queryPreconnectLinks",value:function(){for(var me=new Set,Pt=0,rn=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));Pt<rn.length;Pt++){var lr=vu(rn[Pt].href,this.window);me.add(lr.origin)}return me}},{key:"ngOnDestroy",value:function(){var me;null===(me=this.preconnectLinks)||void 0===me||me.clear(),this.alreadySeen.clear()}}]),ie}();function Qs(ie,ce){var Ue,me=(0,G.Z)(ie);try{for(me.s();!(Ue=me.n()).done;){var Xe=Ue.value;Array.isArray(Xe)?Qs(Xe,ce):ce(Xe)}}catch(Pt){me.e(Pt)}finally{me.f()}}Qn.\u0275fac=function(ce){return new(ce||Qn)},Qn.\u0275prov=T.Yz7({token:Qn,factory:Qn.\u0275fac,providedIn:"root"});var Go=new T.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}}),Xs=function(){function ie(){(0,P.Z)(this,ie),this.preloadedImages=(0,T.f3M)(Go),this.document=(0,T.f3M)(w)}return(0,I.Z)(ie,[{key:"createPreloadLinkTag",value:function(me,Ue,Xe,Pt){if(!this.preloadedImages.has(Ue)){this.preloadedImages.add(Ue);var rn=me.createElement("link");me.setAttribute(rn,"as","image"),me.setAttribute(rn,"href",Ue),me.setAttribute(rn,"rel","preload"),me.setAttribute(rn,"fetchpriority","high"),Pt&&me.setAttribute(rn,"imageSizes",Pt),Xe&&me.setAttribute(rn,"imageSrcset",Xe),me.appendChild(this.document.head,rn)}}}]),ie}();Xs.\u0275fac=function(ce){return new(ce||Xs)},Xs.\u0275prov=T.Yz7({token:Xs,factory:Xs.\u0275fac,providedIn:"root"});var Qa=/^((\s*\d+w\s*(,|$)){1,})$/,$m=[1,2],xs={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},gl=new T.OlP("ImageConfig",{providedIn:"root",factory:function(){return xs}}),Cd=function(){function ie(){(0,P.Z)(this,ie),this.imageLoader=(0,T.f3M)(Js),this.config=function Ma(ie){var ce={};return ie.breakpoints&&(ce.breakpoints=ie.breakpoints.sort(function(me,Ue){return me-Ue})),Object.assign({},xs,ie,ce)}((0,T.f3M)(gl)),this.renderer=(0,T.f3M)(T.Qsj),this.imgElement=(0,T.f3M)(T.SBq).nativeElement,this.injector=(0,T.f3M)(T.zs3),this.isServer=function Qo(ie){return"server"===ie}((0,T.f3M)(T.Lbi)),this.preloadLinkChecker=(0,T.f3M)(Xs),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}return(0,I.Z)(ie,[{key:"width",get:function(){return this._width},set:function(me){this._width=wd(me)}},{key:"height",get:function(){return this._height},set:function(me){this._height=wd(me)}},{key:"priority",get:function(){return this._priority},set:function(me){this._priority=vl(me)}},{key:"disableOptimizedSrcset",get:function(){return this._disableOptimizedSrcset},set:function(me){this._disableOptimizedSrcset=vl(me)}},{key:"fill",get:function(){return this._fill},set:function(me){this._fill=vl(me)}},{key:"ngOnInit",value:function(){this.setHostAttributes()}},{key:"setHostAttributes",value:function(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");var me=this.getRewrittenSrc();this.setHostAttribute("src",me);var Ue=void 0;this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?Ue=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(Ue=this.getAutomaticSrcset()),Ue&&this.setHostAttribute("srcset",Ue),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,me,Ue,this.sizes)}},{key:"ngOnChanges",value:function(me){}},{key:"callImageLoader",value:function(me){var Ue=me;return this.loaderParams&&(Ue.loaderParams=this.loaderParams),this.imageLoader(Ue)}},{key:"getLoadingBehavior",value:function(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}},{key:"getFetchPriority",value:function(){return this.priority?"high":"auto"}},{key:"getRewrittenSrc",value:function(){if(!this._renderedSrc){var me={src:this.ngSrc};this._renderedSrc=this.callImageLoader(me)}return this._renderedSrc}},{key:"getRewrittenSrcset",value:function(){var me=this,Ue=Qa.test(this.ngSrcset);return this.ngSrcset.split(",").filter(function(Pt){return""!==Pt}).map(function(Pt){Pt=Pt.trim();var rn=Ue?parseFloat(Pt):parseFloat(Pt)*me.width;return"".concat(me.callImageLoader({src:me.ngSrc,width:rn})," ").concat(Pt)}).join(", ")}},{key:"getAutomaticSrcset",value:function(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}},{key:"getResponsiveSrcset",value:function(){var Ue,me=this,Xe=this.config.breakpoints,Pt=Xe;return"100vw"===(null===(Ue=this.sizes)||void 0===Ue?void 0:Ue.trim())&&(Pt=Xe.filter(function(Bn){return Bn>=640})),Pt.map(function(Bn){return"".concat(me.callImageLoader({src:me.ngSrc,width:Bn})," ").concat(Bn,"w")}).join(", ")}},{key:"getFixedSrcset",value:function(){var me=this;return $m.map(function(Xe){var Pt=me.callImageLoader({src:me.ngSrc,width:me.width*Xe});return"".concat(Pt," ").concat(Xe,"x")}).join(", ")}},{key:"shouldGenerateAutomaticSrcset",value:function(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==yu&&!(this.width>1920||this.height>1080)}},{key:"ngOnDestroy",value:function(){}},{key:"setHostAttribute",value:function(me,Ue){this.renderer.setAttribute(this.imgElement,me,Ue)}}]),ie}();function wd(ie){return"string"==typeof ie?parseInt(ie,10):ie}function vl(ie){return null!=ie&&"false"!=="".concat(ie)}Cd.\u0275fac=function(ce){return new(ce||Cd)},Cd.\u0275dir=T.lG2({type:Cd,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(ce,me){2&ce&&T.Udp("position",me.fill?"absolute":null)("width",me.fill?"100%":null)("height",me.fill?"100%":null)("inset",me.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",loaderParams:"loaderParams",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[T.TTD]})},520:function(Ae,K,m){"use strict";m.d(K,{JF:function(){return Jt},LE:function(){return V},TP:function(){return Ft},UA:function(){return Dt},WM:function(){return b},eN:function(){return Ze}});var G=m(136),W=m(9388),A=m(7685),j=m(4902),I=m(3144),P=m(5671),T=m(9808),E=m(5e3),H=m(1086),R=m(7451),v=m(1406),x=m(9664),w=m(4850),Z=(0,I.Z)(function ne(){(0,P.Z)(this,ne)}),D=(0,I.Z)(function ne(){(0,P.Z)(this,ne)}),b=function(){function ne(ye){var he=this;(0,P.Z)(this,ne),this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?function(){he.headers=new Map,ye.split("\n").forEach(function(Le){var lt=Le.indexOf(":");if(lt>0){var ut=Le.slice(0,lt),Nt=ut.toLowerCase(),Ht=Le.slice(lt+1).trim();he.maybeSetNormalizedName(ut,Nt),he.headers.has(Nt)?he.headers.get(Nt).push(Ht):he.headers.set(Nt,[Ht])}})}:function(){he.headers=new Map,Object.keys(ye).forEach(function(Le){var lt=ye[Le],ut=Le.toLowerCase();"string"==typeof lt&&(lt=[lt]),lt.length>0&&(he.headers.set(ut,lt),he.maybeSetNormalizedName(Le,ut))})}:this.headers=new Map}return(0,I.Z)(ne,[{key:"has",value:function(he){return this.init(),this.headers.has(he.toLowerCase())}},{key:"get",value:function(he){this.init();var Le=this.headers.get(he.toLowerCase());return Le&&Le.length>0?Le[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(he){return this.init(),this.headers.get(he.toLowerCase())||null}},{key:"append",value:function(he,Le){return this.clone({name:he,value:Le,op:"a"})}},{key:"set",value:function(he,Le){return this.clone({name:he,value:Le,op:"s"})}},{key:"delete",value:function(he,Le){return this.clone({name:he,value:Le,op:"d"})}},{key:"maybeSetNormalizedName",value:function(he,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,he)}},{key:"init",value:function(){var he=this;this.lazyInit&&(this.lazyInit instanceof ne?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(Le){return he.applyUpdate(Le)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(he){var Le=this;he.init(),Array.from(he.headers.keys()).forEach(function(lt){Le.headers.set(lt,he.headers.get(lt)),Le.normalizedNames.set(lt,he.normalizedNames.get(lt))})}},{key:"clone",value:function(he){var Le=new ne;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof ne?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([he]),Le}},{key:"applyUpdate",value:function(he){var Le=he.name.toLowerCase();switch(he.op){case"a":case"s":var lt=he.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(he.name,Le);var ut=("a"===he.op?this.headers.get(Le):void 0)||[];ut.push.apply(ut,(0,j.Z)(lt)),this.headers.set(Le,ut);break;case"d":var Nt=he.value;if(Nt){var Ht=this.headers.get(Le);if(!Ht)return;0===(Ht=Ht.filter(function(sn){return-1===Nt.indexOf(sn)})).length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,Ht)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}},{key:"forEach",value:function(he){var Le=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(lt){return he(Le.normalizedNames.get(lt),Le.headers.get(lt))})}}]),ne}();var k=function(){function ne(){(0,P.Z)(this,ne)}return(0,I.Z)(ne,[{key:"encodeKey",value:function(he){return X(he)}},{key:"encodeValue",value:function(he){return X(he)}},{key:"decodeKey",value:function(he){return decodeURIComponent(he)}},{key:"decodeValue",value:function(he){return decodeURIComponent(he)}}]),ne}();function M(ne,ye){var he=new Map;ne.length>0&&ne.replace(/^\?/,"").split("&").forEach(function(lt){var ut=lt.indexOf("="),Nt=-1==ut?[ye.decodeKey(lt),""]:[ye.decodeKey(lt.slice(0,ut)),ye.decodeValue(lt.slice(ut+1))],Ht=(0,A.Z)(Nt,2),sn=Ht[0],yn=Ht[1],ln=he.get(sn)||[];ln.push(yn),he.set(sn,ln)});return he}var N=/%(\d[a-f0-9])/gi,F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X(ne){return encodeURIComponent(ne).replace(N,function(ye,he){var Le;return null!==(Le=F[he])&&void 0!==Le?Le:ye})}function $(ne){return"".concat(ne)}var V=function(){function ne(){var ye=this,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,P.Z)(this,ne),this.updates=null,this.cloneFrom=null,this.encoder=he.encoder||new k,he.fromString){if(he.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=M(he.fromString,this.encoder)}else he.fromObject?(this.map=new Map,Object.keys(he.fromObject).forEach(function(Le){var lt=he.fromObject[Le],ut=Array.isArray(lt)?lt.map($):[$(lt)];ye.map.set(Le,ut)})):this.map=null}return(0,I.Z)(ne,[{key:"has",value:function(he){return this.init(),this.map.has(he)}},{key:"get",value:function(he){this.init();var Le=this.map.get(he);return Le?Le[0]:null}},{key:"getAll",value:function(he){return this.init(),this.map.get(he)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(he,Le){return this.clone({param:he,value:Le,op:"a"})}},{key:"appendAll",value:function(he){var Le=[];return Object.keys(he).forEach(function(lt){var ut=he[lt];Array.isArray(ut)?ut.forEach(function(Nt){Le.push({param:lt,value:Nt,op:"a"})}):Le.push({param:lt,value:ut,op:"a"})}),this.clone(Le)}},{key:"set",value:function(he,Le){return this.clone({param:he,value:Le,op:"s"})}},{key:"delete",value:function(he,Le){return this.clone({param:he,value:Le,op:"d"})}},{key:"toString",value:function(){var he=this;return this.init(),this.keys().map(function(Le){var lt=he.encoder.encodeKey(Le);return he.map.get(Le).map(function(ut){return lt+"="+he.encoder.encodeValue(ut)}).join("&")}).filter(function(Le){return""!==Le}).join("&")}},{key:"clone",value:function(he){var Le=new ne({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(he),Le}},{key:"init",value:function(){var he=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(Le){return he.map.set(Le,he.cloneFrom.map.get(Le))}),this.updates.forEach(function(Le){switch(Le.op){case"a":case"s":var lt=("a"===Le.op?he.map.get(Le.param):void 0)||[];lt.push($(Le.value)),he.map.set(Le.param,lt);break;case"d":if(void 0===Le.value){he.map.delete(Le.param);break}var ut=he.map.get(Le.param)||[],Nt=ut.indexOf($(Le.value));-1!==Nt&&ut.splice(Nt,1),ut.length>0?he.map.set(Le.param,ut):he.map.delete(Le.param)}}),this.cloneFrom=this.updates=null)}}]),ne}(),te=function(){function ne(){(0,P.Z)(this,ne),this.map=new Map}return(0,I.Z)(ne,[{key:"set",value:function(he,Le){return this.map.set(he,Le),this}},{key:"get",value:function(he){return this.map.has(he)||this.map.set(he,he.defaultValue()),this.map.get(he)}},{key:"delete",value:function(he){return this.map.delete(he),this}},{key:"has",value:function(he){return this.map.has(he)}},{key:"keys",value:function(){return this.map.keys()}}]),ne}();function pe(ne){return"undefined"!=typeof ArrayBuffer&&ne instanceof ArrayBuffer}function fe(ne){return"undefined"!=typeof Blob&&ne instanceof Blob}function ue(ne){return"undefined"!=typeof FormData&&ne instanceof FormData}var He,ne,ge=function(){function ne(ye,he,Le,lt){var ut;if((0,P.Z)(this,ne),this.url=he,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function be(ne){switch(ne){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Le?Le:null,ut=lt):ut=Le,ut&&(this.reportProgress=!!ut.reportProgress,this.withCredentials=!!ut.withCredentials,ut.responseType&&(this.responseType=ut.responseType),ut.headers&&(this.headers=ut.headers),ut.context&&(this.context=ut.context),ut.params&&(this.params=ut.params)),this.headers||(this.headers=new b),this.context||(this.context=new te),this.params){var Nt=this.params.toString();if(0===Nt.length)this.urlWithParams=he;else{var Ht=he.indexOf("?"),sn=-1===Ht?"?":Ht<he.length-1?"&":"";this.urlWithParams=he+sn+Nt}}else this.params=new V,this.urlWithParams=he}return(0,I.Z)(ne,[{key:"serializeBody",value:function(){return null===this.body?null:pe(this.body)||fe(this.body)||ue(this.body)||function de(ne){return"undefined"!=typeof URLSearchParams&&ne instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof V?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||ue(this.body)?null:fe(this.body)?this.body.type||null:pe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof V?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var Le,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},lt=he.method||this.method,ut=he.url||this.url,Nt=he.responseType||this.responseType,Ht=void 0!==he.body?he.body:this.body,sn=void 0!==he.withCredentials?he.withCredentials:this.withCredentials,yn=void 0!==he.reportProgress?he.reportProgress:this.reportProgress,ln=he.headers||this.headers,Sn=he.params||this.params,hn=null!==(Le=he.context)&&void 0!==Le?Le:this.context;return void 0!==he.setHeaders&&(ln=Object.keys(he.setHeaders).reduce(function(mn,At){return mn.set(At,he.setHeaders[At])},ln)),he.setParams&&(Sn=Object.keys(he.setParams).reduce(function(mn,At){return mn.set(At,he.setParams[At])},Sn)),new ne(lt,ut,Ht,{params:Sn,headers:ln,context:hn,reportProgress:yn,responseType:Nt,withCredentials:sn})}}]),ne}();(ne=He||(He={}))[ne.Sent=0]="Sent",ne[ne.UploadProgress=1]="UploadProgress",ne[ne.ResponseHeader=2]="ResponseHeader",ne[ne.DownloadProgress=3]="DownloadProgress",ne[ne.Response=4]="Response",ne[ne.User=5]="User";var ot=(0,I.Z)(function ne(ye){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,P.Z)(this,ne),this.headers=ye.headers||new b,this.status=void 0!==ye.status?ye.status:he,this.statusText=ye.statusText||Le,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}),St=function(ne){(0,G.Z)(he,ne);var ye=(0,W.Z)(he);function he(){var Le,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,he),(Le=ye.call(this,lt)).type=He.ResponseHeader,Le}return(0,I.Z)(he,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new he({headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}]),he}(ot),Tt=function(ne){(0,G.Z)(he,ne);var ye=(0,W.Z)(he);function he(){var Le,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,he),(Le=ye.call(this,lt)).type=He.Response,Le.body=void 0!==lt.body?lt.body:null,Le}return(0,I.Z)(he,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new he({body:void 0!==lt.body?lt.body:this.body,headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}]),he}(ot),Dt=function(ne){(0,G.Z)(he,ne);var ye=(0,W.Z)(he);function he(Le){var lt;return(0,P.Z)(this,he),(lt=ye.call(this,Le,0,"Unknown Error")).name="HttpErrorResponse",lt.ok=!1,lt.status>=200&<.status<300?lt.message="Http failure during parsing for ".concat(Le.url||"(unknown url)"):lt.message="Http failure response for ".concat(Le.url||"(unknown url)",": ").concat(Le.status," ").concat(Le.statusText),lt.error=Le.error||null,lt}return(0,I.Z)(he)}(ot);function Rt(ne,ye){return{body:ye,headers:ne.headers,context:ne.context,observe:ne.observe,params:ne.params,reportProgress:ne.reportProgress,responseType:ne.responseType,withCredentials:ne.withCredentials}}var Ze=function(){function ne(ye){(0,P.Z)(this,ne),this.handler=ye}return(0,I.Z)(ne,[{key:"request",value:function(he,Le){var Nt,lt=this,ut=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(he instanceof ge)Nt=he;else{var Ht=void 0;Ht=ut.headers instanceof b?ut.headers:new b(ut.headers);var sn=void 0;ut.params&&(sn=ut.params instanceof V?ut.params:new V({fromObject:ut.params})),Nt=new ge(he,Le,void 0!==ut.body?ut.body:null,{headers:Ht,context:ut.context,params:sn,reportProgress:ut.reportProgress,responseType:ut.responseType||"json",withCredentials:ut.withCredentials})}var yn=(0,H.of)(Nt).pipe((0,v.b)(function(Sn){return lt.handler.handle(Sn)}));if(he instanceof ge||"events"===ut.observe)return yn;var ln=yn.pipe((0,x.h)(function(Sn){return Sn instanceof Tt}));switch(ut.observe||"body"){case"body":switch(Nt.responseType){case"arraybuffer":return ln.pipe((0,w.U)(function(Sn){if(null!==Sn.body&&!(Sn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Sn.body}));case"blob":return ln.pipe((0,w.U)(function(Sn){if(null!==Sn.body&&!(Sn.body instanceof Blob))throw new Error("Response is not a Blob.");return Sn.body}));case"text":return ln.pipe((0,w.U)(function(Sn){if(null!==Sn.body&&"string"!=typeof Sn.body)throw new Error("Response is not a string.");return Sn.body}));default:return ln.pipe((0,w.U)(function(Sn){return Sn.body}))}case"response":return ln;default:throw new Error("Unreachable: unhandled observe type ".concat(ut.observe,"}"))}}},{key:"delete",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",he,Le)}},{key:"get",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",he,Le)}},{key:"head",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",he,Le)}},{key:"jsonp",value:function(he,Le){return this.request("JSONP",he,{params:(new V).append(Le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",he,Le)}},{key:"patch",value:function(he,Le){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",he,Rt(lt,Le))}},{key:"post",value:function(he,Le){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",he,Rt(lt,Le))}},{key:"put",value:function(he,Le){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",he,Rt(lt,Le))}}]),ne}();Ze.\u0275fac=function(ye){return new(ye||Ze)(E.LFG(Z))},Ze.\u0275prov=E.Yz7({token:Ze,factory:Ze.\u0275fac});var $t=function(){function ne(ye,he){(0,P.Z)(this,ne),this.next=ye,this.interceptor=he}return(0,I.Z)(ne,[{key:"handle",value:function(he){return this.interceptor.intercept(he,this.next)}}]),ne}(),Ft=new E.OlP("HTTP_INTERCEPTORS"),pn=function(){function ne(){(0,P.Z)(this,ne)}return(0,I.Z)(ne,[{key:"intercept",value:function(he,Le){return Le.handle(he)}}]),ne}();pn.\u0275fac=function(ye){return new(ye||pn)},pn.\u0275prov=E.Yz7({token:pn,factory:pn.\u0275fac});var Ot,rt=0,ht=(0,I.Z)(function ne(){(0,P.Z)(this,ne)}),Ut=function(){function ne(ye,he){(0,P.Z)(this,ne),this.callbackMap=ye,this.document=he,this.resolvedPromise=Promise.resolve()}return(0,I.Z)(ne,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(rt++)}},{key:"handle",value:function(he){var Le=this;if("JSONP"!==he.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==he.responseType)throw new Error("JSONP requests must use Json response type.");if(he.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new R.y(function(lt){var ut=Le.nextCallback(),Nt=he.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(ut,"$1")),Ht=Le.document.createElement("script");Ht.src=Nt;var sn=null,yn=!1;Le.callbackMap[ut]=function(mn){delete Le.callbackMap[ut],sn=mn,yn=!0};var ln=function(){Ht.parentNode&&Ht.parentNode.removeChild(Ht),delete Le.callbackMap[ut]};return Ht.addEventListener("load",function(At){Le.resolvedPromise.then(function(){ln(),yn?(lt.next(new Tt({body:sn,status:200,statusText:"OK",url:Nt})),lt.complete()):lt.error(new Dt({url:Nt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Ht.addEventListener("error",function(At){ln(),lt.error(new Dt({error:At,status:0,statusText:"JSONP Error",url:Nt}))}),Le.document.body.appendChild(Ht),lt.next({type:He.Sent}),function(){yn||Le.removeListeners(Ht),ln()}})}},{key:"removeListeners",value:function(he){Ot||(Ot=this.document.implementation.createHTMLDocument()),Ot.adoptNode(he)}}]),ne}();Ut.\u0275fac=function(ye){return new(ye||Ut)(E.LFG(ht),E.LFG(T.K0))},Ut.\u0275prov=E.Yz7({token:Ut,factory:Ut.\u0275fac});var Wt=function(){function ne(ye){(0,P.Z)(this,ne),this.jsonp=ye}return(0,I.Z)(ne,[{key:"intercept",value:function(he,Le){return"JSONP"===he.method?this.jsonp.handle(he):Le.handle(he)}}]),ne}();Wt.\u0275fac=function(ye){return new(ye||Wt)(E.LFG(Ut))},Wt.\u0275prov=E.Yz7({token:Wt,factory:Wt.\u0275fac});var U=/^\)\]\}',?\n/;var qe=function(){function ne(ye){(0,P.Z)(this,ne),this.xhrFactory=ye}return(0,I.Z)(ne,[{key:"handle",value:function(he){var Le=this;if("JSONP"===he.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new R.y(function(lt){var ut=Le.xhrFactory.build();if(ut.open(he.method,he.urlWithParams),he.withCredentials&&(ut.withCredentials=!0),he.headers.forEach(function(tt,Et){return ut.setRequestHeader(tt,Et.join(","))}),he.headers.has("Accept")||ut.setRequestHeader("Accept","application/json, text/plain, */*"),!he.headers.has("Content-Type")){var Nt=he.detectContentTypeHeader();null!==Nt&&ut.setRequestHeader("Content-Type",Nt)}if(he.responseType){var Ht=he.responseType.toLowerCase();ut.responseType="json"!==Ht?Ht:"text"}var sn=he.serializeBody(),yn=null,ln=function(){if(null!==yn)return yn;var Et=ut.statusText||"OK",We=new b(ut.getAllResponseHeaders()),Ye=function B(ne){return"responseURL"in ne&&ne.responseURL?ne.responseURL:/^X-Request-URL:/m.test(ne.getAllResponseHeaders())?ne.getResponseHeader("X-Request-URL"):null}(ut)||he.url;return yn=new St({headers:We,status:ut.status,statusText:Et,url:Ye})},Sn=function(){var Et=ln(),We=Et.headers,Ye=Et.status,Re=Et.statusText,Je=Et.url,vt=null;204!==Ye&&(vt=void 0===ut.response?ut.responseText:ut.response),0===Ye&&(Ye=vt?200:0);var fn=Ye>=200&&Ye<300;if("json"===he.responseType&&"string"==typeof vt){var Un=vt;vt=vt.replace(U,"");try{vt=""!==vt?JSON.parse(vt):null}catch(Kt){vt=Un,fn&&(fn=!1,vt={error:Kt,text:vt})}}fn?(lt.next(new Tt({body:vt,headers:We,status:Ye,statusText:Re,url:Je||void 0})),lt.complete()):lt.error(new Dt({error:vt,headers:We,status:Ye,statusText:Re,url:Je||void 0}))},hn=function(Et){var Ye=ln().url,Re=new Dt({error:Et,status:ut.status||0,statusText:ut.statusText||"Unknown Error",url:Ye||void 0});lt.error(Re)},mn=!1,At=function(Et){mn||(lt.next(ln()),mn=!0);var We={type:He.DownloadProgress,loaded:Et.loaded};Et.lengthComputable&&(We.total=Et.total),"text"===he.responseType&&!!ut.responseText&&(We.partialText=ut.responseText),lt.next(We)},xt=function(Et){var We={type:He.UploadProgress,loaded:Et.loaded};Et.lengthComputable&&(We.total=Et.total),lt.next(We)};return ut.addEventListener("load",Sn),ut.addEventListener("error",hn),ut.addEventListener("timeout",hn),ut.addEventListener("abort",hn),he.reportProgress&&(ut.addEventListener("progress",At),null!==sn&&ut.upload&&ut.upload.addEventListener("progress",xt)),ut.send(sn),lt.next({type:He.Sent}),function(){ut.removeEventListener("error",hn),ut.removeEventListener("abort",hn),ut.removeEventListener("load",Sn),ut.removeEventListener("timeout",hn),he.reportProgress&&(ut.removeEventListener("progress",At),null!==sn&&ut.upload&&ut.upload.removeEventListener("progress",xt)),ut.readyState!==ut.DONE&&ut.abort()}})}}]),ne}();qe.\u0275fac=function(ye){return new(ye||qe)(E.LFG(T.JF))},qe.\u0275prov=E.Yz7({token:qe,factory:qe.\u0275fac});var Be=new E.OlP("XSRF_COOKIE_NAME"),se=new E.OlP("XSRF_HEADER_NAME"),t=(0,I.Z)(function ne(){(0,P.Z)(this,ne)}),Lt=function(){function ne(ye,he,Le){(0,P.Z)(this,ne),this.doc=ye,this.platform=he,this.cookieName=Le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,I.Z)(ne,[{key:"getToken",value:function(){if("server"===this.platform)return null;var he=this.doc.cookie||"";return he!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(he,this.cookieName),this.lastCookieString=he),this.lastToken}}]),ne}();Lt.\u0275fac=function(ye){return new(ye||Lt)(E.LFG(T.K0),E.LFG(E.Lbi),E.LFG(Be))},Lt.\u0275prov=E.Yz7({token:Lt,factory:Lt.\u0275fac});var zt=function(){function ne(ye,he){(0,P.Z)(this,ne),this.tokenService=ye,this.headerName=he}return(0,I.Z)(ne,[{key:"intercept",value:function(he,Le){var lt=he.url.toLowerCase();if("GET"===he.method||"HEAD"===he.method||lt.startsWith("http://")||lt.startsWith("https://"))return Le.handle(he);var ut=this.tokenService.getToken();return null!==ut&&!he.headers.has(this.headerName)&&(he=he.clone({headers:he.headers.set(this.headerName,ut)})),Le.handle(he)}}]),ne}();zt.\u0275fac=function(ye){return new(ye||zt)(E.LFG(t),E.LFG(se))},zt.\u0275prov=E.Yz7({token:zt,factory:zt.\u0275fac});var an=function(){function ne(ye,he){(0,P.Z)(this,ne),this.backend=ye,this.injector=he,this.chain=null}return(0,I.Z)(ne,[{key:"handle",value:function(he){if(null===this.chain){var Le=this.injector.get(Ft,[]);this.chain=Le.reduceRight(function(lt,ut){return new $t(lt,ut)},this.backend)}return this.chain.handle(he)}}]),ne}();an.\u0275fac=function(ye){return new(ye||an)(E.LFG(D),E.LFG(E.zs3))},an.\u0275prov=E.Yz7({token:an,factory:an.\u0275fac});var Vt=function(){function ne(){(0,P.Z)(this,ne)}return(0,I.Z)(ne,null,[{key:"disable",value:function(){return{ngModule:ne,providers:[{provide:zt,useClass:pn}]}}},{key:"withOptions",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:ne,providers:[he.cookieName?{provide:Be,useValue:he.cookieName}:[],he.headerName?{provide:se,useValue:he.headerName}:[]]}}}]),ne}();Vt.\u0275fac=function(ye){return new(ye||Vt)},Vt.\u0275mod=E.oAB({type:Vt}),Vt.\u0275inj=E.cJS({providers:[zt,{provide:Ft,useExisting:zt,multi:!0},{provide:t,useClass:Lt},{provide:Be,useValue:"XSRF-TOKEN"},{provide:se,useValue:"X-XSRF-TOKEN"}]});var Jt=(0,I.Z)(function ne(){(0,P.Z)(this,ne)});Jt.\u0275fac=function(ye){return new(ye||Jt)},Jt.\u0275mod=E.oAB({type:Jt}),Jt.\u0275inj=E.cJS({providers:[Ze,{provide:Z,useClass:an},qe,{provide:D,useExisting:qe}],imports:[Vt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]});var Qe=(0,I.Z)(function ne(){(0,P.Z)(this,ne)});Qe.\u0275fac=function(ye){return new(ye||Qe)},Qe.\u0275mod=E.oAB({type:Qe}),Qe.\u0275inj=E.cJS({providers:[Ut,{provide:ht,useFactory:function vn(){return"object"==typeof window?window:{}}},{provide:Ft,useClass:Wt,multi:!0}]});T.JF},5e3:function(Ae,K,m){"use strict";m.d(K,{$8M:function(){return As},$Z:function(){return q3},AA_:function(){return ZI},AFp:function(){return tL},ALo:function(){return Wf},AaK:function(){return X},AcB:function(){return SI},Akn:function(){return Ns},AsE:function(){return eR},B6R:function(){return Kt},BQk:function(){return Cy},CHM:function(){return ke},CRH:function(){return fc},CZH:function(){return Nd},Ckj:function(){return g3},CqO:function(){return ZS},D6c:function(){return c7},DdM:function(){return Ny},Dn7:function(){return Vf},DyG:function(){return Lv},E6H:function(){return NU},EJc:function(){return SE},EiD:function(){return _3},EpF:function(){return B6},F$t:function(){return jS},F4k:function(){return F6},FYo:function(){return eS},FiY:function(){return u_},G48:function(){return H1},GSi:function(){return h4},Gf:function(){return wU},GfV:function(){return T3},GkF:function(){return LS},Gpc:function(){return Q},Gre:function(){return O8},HOy:function(){return nR},Hsn:function(){return G6},IIB:function(){return BU},Ikx:function(){return iR},JOm:function(){return CC},JVY:function(){return Rf},Jf7:function(){return Dh},KtG:function(){return le},L6J:function(){return jU},L6k:function(){return f3},LAX:function(){return p3},LFG:function(){return Ea},LSH:function(){return Mh},LVF:function(){return HU},Lbi:function(){return ME},Lck:function(){return uU},MAs:function(){return PS},MGl:function(){return h1},MMx:function(){return Ly},NdJ:function(){return NS},O4$:function(){return wn},OlP:function(){return io},Oqu:function(){return eE},PXZ:function(){return lL},PiD:function(){return hh},Q6J:function(){return U_},QGY:function(){return p1},QP$:function(){return yi},QbO:function(){return nL},Qsj:function(){return k3},R0b:function(){return Wc},RDi:function(){return Qv},Rgc:function(){return Jl},SBq:function(){return E_},Sil:function(){return og},Suo:function(){return Qf},TTD:function(){return ia},TgZ:function(){return d1},Tol:function(){return XS},Udp:function(){return QS},VKq:function(){return qn},W1O:function(){return x1},WFA:function(){return BS},WLB:function(){return IR},XFs:function(){return ye},Xek:function(){return $R},Xpm:function(){return Un},Xts:function(){return ey},Y36:function(){return A_},YKP:function(){return pE},YNc:function(){return N6},Yjl:function(){return Wn},Yz7:function(){return Be},Z0I:function(){return zt},ZZ4:function(){return Yy},_Bn:function(){return DR},_UZ:function(){return IS},_Vd:function(){return Bf},_c5:function(){return u7},_uU:function(){return $6},a5r:function(){return $U},aQ5:function(){return EI},aQg:function(){return Ky},ahi:function(){return mC},c2e:function(){return np},cJS:function(){return t},cg1:function(){return aR},d8E:function(){return oR},dDg:function(){return Yh},dqk:function(){return hn},eBb:function(){return Rc},eFA:function(){return dL},ekj:function(){return g1},eoX:function(){return Kh},evT:function(){return ly},f3M:function(){return LI},g9A:function(){return R1},h0i:function(){return Uh},hGG:function(){return op},hYB:function(){return GS},hij:function(){return tE},i9L:function(){return xI},iGM:function(){return Wh},ifc:function(){return Sn},ip1:function(){return eL},jDz:function(){return Y_},kL8:function(){return H8},kYT:function(){return wt},kcU:function(){return si},kuF:function(){return ue},lG2:function(){return jn},lcZ:function(){return yE},lnq:function(){return tR},lqb:function(){return Is},lri:function(){return sL},mCW:function(){return y_},n4l:function(){return sn},n5z:function(){return MI},n_E:function(){return Hc},oAB:function(){return gt},oJD:function(){return YM},oxw:function(){return US},pB0:function(){return iV},pfw:function(){return UU},q3G:function(){return Ad},qLn:function(){return xh},qOj:function(){return SS},qZA:function(){return f1},qzn:function(){return wh},rWj:function(){return lg},r_U:function(){return FU},s9C:function(){return HS},sBO:function(){return G1},sIi:function(){return yy},s_b:function(){return Pu},soG:function(){return Uy},tBr:function(){return Uv},tb:function(){return L1},tp0:function(){return Sd},uIk:function(){return l1},vHH:function(){return fe},vR:function(){return c5},vpe:function(){return jc},wA2:function(){return ZU},wAp:function(){return H_},xi3:function(){return E1},xp6:function(){return I3},ynx:function(){return Bh},z2F:function(){return ip},z3N:function(){return Ic},zSh:function(){return T_},zWS:function(){return DS},zlt:function(){return Wi},zs3:function(){return bl}});var G=m(3237),W=m(1120),A=m(7685),P=(m(4942),m(4506),m(7326)),T=m(7762),E=m(4902),H=m(5647),R=m(3144),v=m(5671),x=m(136),w=m(9388),Z=m(5724),D=m(4096),b=m(8929),S=m(7451),k=m(6787),M=m(8117);function N(c){for(var f in c)if(c[f]===N)return f;throw Error("Could not find renamed property on target object.")}function F(c,f){for(var p in f)f.hasOwnProperty(p)&&!c.hasOwnProperty(p)&&(c[p]=f[p])}function X(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(X).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return"".concat(c.overriddenName);if(c.name)return"".concat(c.name);var f=c.toString();if(null==f)return""+f;var p=f.indexOf("\n");return-1===p?f:f.substring(0,p)}function $(c,f){return null==c||""===c?null===f?"":f:null==f||""===f?c:c+" "+f}var V=N({__forward_ref__:N});function Q(c){return c.__forward_ref__=Q,c.toString=function(){return X(this())},c}function te(c){return be(c)?c():c}function be(c){return"function"==typeof c&&c.hasOwnProperty(V)&&c.__forward_ref__===Q}var fe=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C){var O;return(0,v.Z)(this,p),(O=f.call(this,ue(_,C))).code=_,O}return(0,R.Z)(p)}((0,Z.Z)(Error));function ue(c,f){var p="NG0".concat(Math.abs(c));return"".concat(p).concat(f?": "+f.trim():"")}function de(c){return"string"==typeof c?c:null==c?"":String(c)}function ge(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():de(c)}function Tt(c,f){f&&" in ".concat(f);throw new fe(-201,!1)}function Ft(c,f,p){c!=f&&Wt(p,c,f,"==")}function Ut(c,f){null==c&&Wt(f,c,null,"!=")}function Wt(c,f,p,_){throw new Error("ASSERTION ERROR: ".concat(c)+(null==_?"":" [Expected=> ".concat(p," ").concat(_," ").concat(f," <=Actual]")))}function Be(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function t(c){return{providers:c.providers||[],imports:c.imports||[]}}function Lt(c){return an(c,Jt)||an(c,Fe)}function zt(c){return null!==Lt(c)}function an(c,f){return c.hasOwnProperty(f)?c[f]:null}function Vt(c){return c&&(c.hasOwnProperty(Qe)||c.hasOwnProperty(ne))?c[Qe]:null}var ye,c,he,sn,yn,Sn,Jt=N({"\u0275prov":N}),Qe=N({"\u0275inj":N}),Fe=N({ngInjectableDef:N}),ne=N({ngInjectorDef:N});function Le(){return he}function lt(c){var f=he;return he=c,f}function ut(c,f,p){var _=Lt(c);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:p&ye.Optional?null:void 0!==f?f:void Tt(X(c),"Injector")}function Ht(c){return{toString:c}.toString()}(c=ye||(ye={}))[c.Default=0]="Default",c[c.Host=1]="Host",c[c.Self=2]="Self",c[c.SkipSelf=4]="SkipSelf",c[c.Optional=8]="Optional",function(c){c[c.OnPush=0]="OnPush",c[c.Default=1]="Default"}(sn||(sn={})),function(c){c[c.CheckOnce=0]="CheckOnce",c[c.Checked=1]="Checked",c[c.CheckAlways=2]="CheckAlways",c[c.Detached=3]="Detached",c[c.Errored=4]="Errored",c[c.Destroyed=5]="Destroyed"}(yn||(yn={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(Sn||(Sn={}));var hn=function(){return"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var xt={},tt=[],Et=N({"\u0275cmp":N}),We=N({"\u0275dir":N}),Ye=N({"\u0275pipe":N}),Re=N({"\u0275mod":N}),Je=N({"\u0275fac":N}),vt=N({__NG_ELEMENT_ID__:N}),fn=0;function Un(c){return Ht(function(){var f=c.type,p=!0===c.standalone,_={},C={type:f,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===sn.OnPush,directiveDefs:null,pipeDefs:null,standalone:p,dependencies:p&&c.dependencies||null,getStandaloneInjector:null,selectors:c.selectors||tt,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||Sn.Emulated,id:"c".concat(fn++),styles:c.styles||tt,_:null,setInput:null,schemas:c.schemas||null,tView:null},O=c.dependencies,Y=c.features;return C.inputs=nn(c.inputs,_),C.outputs=nn(c.outputs),Y&&Y.forEach(function(ee){return ee(C)}),C.directiveDefs=O?function(){return("function"==typeof O?O():O).map(yt).filter(et)}:null,C.pipeDefs=O?function(){return("function"==typeof O?O():O).map(Ir).filter(et)}:null,C})}function Kt(c,f,p){var _=c.\u0275cmp;_.directiveDefs=function(){return("function"==typeof f?f():f).map(yt)},_.pipeDefs=function(){return("function"==typeof p?p():p).map(Ir)}}function yt(c){return Vn(c)||ir(c)}function et(c){return null!==c}function gt(c){return Ht(function(){return{type:c.type,bootstrap:c.bootstrap||tt,declarations:c.declarations||tt,imports:c.imports||tt,exports:c.exports||tt,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null}})}function wt(c,f){return Ht(function(){var p=zi(c,!0);p.declarations=f.declarations||tt,p.imports=f.imports||tt,p.exports=f.exports||tt})}function nn(c,f){if(null==c)return xt;var p={};for(var _ in c)if(c.hasOwnProperty(_)){var C=c[_],O=C;Array.isArray(C)&&(O=C[1],C=C[0]),p[C]=_,f&&(f[C]=O)}return p}var jn=Un;function Wn(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,standalone:!0===c.standalone,onDestroy:c.type.prototype.ngOnDestroy||null}}function Vn(c){return c[Et]||null}function ir(c){return c[We]||null}function Ir(c){return c[Ye]||null}function yi(c){var f=Vn(c)||ir(c)||Ir(c);return null!==f&&f.standalone}function zi(c,f){var p=c[Re]||null;if(!p&&!0===f)throw new Error("Type ".concat(X(c)," does not have '\u0275mod' property."));return p}function to(c){return Array.isArray(c)&&"object"==typeof c[1]}function Ai(c){return Array.isArray(c)&&!0===c[1]}function hu(c){return 0!=(8&c.flags)}function Ki(c){return 2==(2&c.flags)}function tn(c){return 1==(1&c.flags)}function en(c){return null!==c.template}function Dr(c){return 0!=(256&c[2])}function go(c,f){return c.hasOwnProperty(Je)?c[Je]:null}var fo=function(){function c(f,p,_){(0,v.Z)(this,c),this.previousValue=f,this.currentValue=p,this.firstChange=_}return(0,R.Z)(c,[{key:"isFirstChange",value:function(){return this.firstChange}}]),c}();function ia(){return hl}function hl(c){return c.type.prototype.ngOnChanges&&(c.setInput=qa),Ka}function Ka(){var c=Xo(this),f=null==c?void 0:c.current;if(f){var p=c.previous;if(p===xt)c.previous=f;else for(var _ in f)p[_]=f[_];c.current=null,this.ngOnChanges(f)}}function qa(c,f,p,_){var C=Xo(c)||function _u(c,f){return c[Qo]=f}(c,{previous:xt,current:null}),O=C.current||(C.current={}),Y=C.previous,ee=this.declaredInputs[p],oe=Y[ee];O[ee]=new fo(oe&&oe.currentValue,f,Y===xt),c[_]=f}ia.ngInherit=!0;var Qo="__ngSimpleChanges__";function Xo(c){return c[Qo]||null}var ec=null,Br=function(f,p,_){null!=ec&&ec(f,p,_)},mf="math";function po(c){for(;Array.isArray(c);)c=c[0];return c}function Dc(c,f){return po(f[c])}function xo(c,f){return po(f[c.index])}function Js(c,f){return c.data[f]}function pa(c,f){return c[f]}function Ho(c,f){var p=f[c];return to(p)?p:p[0]}function Ts(c){return 64==(64&c[2])}function Ja(c,f){return null==f?null:c[f]}function nh(c){c[18]=0}function Ms(c,f){c[5]+=f;for(var p=c,_=c[3];null!==_&&(1===f&&1===p[5]||-1===f&&0===p[5]);)_[5]+=f,p=_,_=_[3]}var Cr={lFrame:Ma(null),bindingsEnabled:!0};function Ss(){return Cr.bindingsEnabled}function bu(){Cr.bindingsEnabled=!0}function jl(){Cr.bindingsEnabled=!1}function xn(){return Cr.lFrame.lView}function we(){return Cr.lFrame.tView}function ke(c){return Cr.lFrame.contextLView=c,c[8]}function le(c){return Cr.lFrame.contextLView=null,c}function Me(){for(var c=Oe();null!==c&&64===c.type;)c=c.parent;return c}function Oe(){return Cr.lFrame.currentTNode}function pt(){var c=Cr.lFrame,f=c.currentTNode;return c.isParent?f:f.parent}function Yt(c,f){var p=Cr.lFrame;p.currentTNode=c,p.isParent=f}function In(){return Cr.lFrame.isParent}function Qn(){Cr.lFrame.isParent=!1}function $o(){var c=Cr.lFrame,f=c.bindingRootIndex;return-1===f&&(f=c.bindingRootIndex=c.tView.bindingStartIndex),f}function Qa(){return Cr.lFrame.bindingIndex}function nc(c){return Cr.lFrame.bindingIndex=c}function Ta(){return Cr.lFrame.bindingIndex++}function cs(c){var f=Cr.lFrame,p=f.bindingIndex;return f.bindingIndex=f.bindingIndex+c,p}function e_(c){Cr.lFrame.inI18n=c}function oh(c,f){var p=Cr.lFrame;p.bindingIndex=p.bindingRootIndex=c,Ac(f)}function Ac(c){Cr.lFrame.currentDirectiveIndex=c}function rc(c){var f=Cr.lFrame.currentDirectiveIndex;return-1===f?null:c[f]}function Es(){return Cr.lFrame.currentQueryIndex}function xs(c){Cr.lFrame.currentQueryIndex=c}function gl(c){var f=c[1];return 2===f.type?f.declTNode:1===f.type?c[6]:null}function Cd(c,f,p){if(p&ye.SkipSelf){for(var _=f,C=c;null===(_=_.parent)&&!(p&ye.Host)&&!(null===(_=gl(C))||(C=C[15],10&_.type)););if(null===_)return!1;f=_,c=C}var O=Cr.lFrame=vl();return O.currentTNode=f,O.lView=c,!0}function wd(c){var f=vl(),p=c[1];Cr.lFrame=f,f.currentTNode=p.firstChild,f.lView=c,f.tView=p,f.contextLView=c,f.bindingIndex=p.bindingStartIndex,f.inI18n=!1}function vl(){var c=Cr.lFrame,f=null===c?null:c.child;return null===f?Ma(c):f}function Ma(c){var f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:c,child:null,inI18n:!1};return null!==c&&(c.child=f),f}function Pe(){var c=Cr.lFrame;return Cr.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}var Ge=Pe;function _e(){var c=Pe();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function xe(c){var f=Cr.lFrame.contextLView=function Te(c,f){for(;c>0;)f=f[15],c--;return f}(c,Cr.lFrame.contextLView);return f[8]}function ze(){return Cr.lFrame.selectedIndex}function mt(c){Cr.lFrame.selectedIndex=c}function Mt(){var c=Cr.lFrame;return Js(c.tView,c.selectedIndex)}function wn(){Cr.lFrame.currentNamespace="svg"}function Rr(){Cr.lFrame.currentNamespace=mf}function si(){!function li(){Cr.lFrame.currentNamespace=null}()}function Ar(c,f){for(var p=f.directiveStart,_=f.directiveEnd;p<_;p++){var O=c.data[p].type.prototype,Y=O.ngAfterContentInit,ee=O.ngAfterContentChecked,oe=O.ngAfterViewInit,ve=O.ngAfterViewChecked,je=O.ngOnDestroy;Y&&(c.contentHooks||(c.contentHooks=[])).push(-p,Y),ee&&((c.contentHooks||(c.contentHooks=[])).push(p,ee),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(p,ee)),oe&&(c.viewHooks||(c.viewHooks=[])).push(-p,oe),ve&&((c.viewHooks||(c.viewHooks=[])).push(p,ve),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(p,ve)),null!=je&&(c.destroyHooks||(c.destroyHooks=[])).push(p,je)}}function vf(c,f,p){ah(c,f,3,p)}function n_(c,f,p,_){(3&c[2])===p&&ah(c,f,p,_)}function Pv(c,f){var p=c[2];(3&p)===f&&(p&=2047,p+=1,c[2]=p)}function ah(c,f,p,_){for(var C=void 0!==_?65535&c[18]:0,O=null!=_?_:-1,Y=f.length-1,ee=0,oe=C;oe<Y;oe++){if("number"==typeof f[oe+1]){if(ee=f[oe],null!=_&&ee>=_)break}else f[oe]<0&&(c[18]+=65536),(ee<O||-1==O)&&(ie(c,p,f,oe),c[18]=(4294901760&c[18])+oe+2),oe++}}function ie(c,f,p,_){var C=p[_]<0,O=p[_+1],ee=c[C?-p[_]:p[_]];if(C){if(c[2]>>11<c[18]>>16&&(3&c[2])===f){c[2]+=2048,Br(4,ee,O);try{O.call(ee)}finally{Br(5,ee,O)}}}else{Br(4,ee,O);try{O.call(ee)}finally{Br(5,ee,O)}}}var me=(0,R.Z)(function c(f,p,_){(0,v.Z)(this,c),this.factory=f,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=_});function Qr(c,f,p){for(var _=0;_<p.length;){var C=p[_];if("number"==typeof C){if(0!==C)break;_++;var O=p[_++],Y=p[_++],ee=p[_++];c.setAttribute(f,Y,ee,O)}else{var oe=C,ve=p[++_];Ra(oe)?c.setProperty(f,oe,ve):c.setAttribute(f,oe,ve),_++}}return _}function Do(c){return 3===c||4===c||6===c}function Ra(c){return 64===c.charCodeAt(0)}function ds(c,f){if(null!==f&&0!==f.length)if(null===c||0===c.length)c=f.slice();else for(var p=-1,_=0;_<f.length;_++){var C=f[_];"number"==typeof C?p=C:0===p||ha(c,p,C,null,-1===p||2===p?f[++_]:null)}return c}function ha(c,f,p,_,C){var O=0,Y=c.length;if(-1===f)Y=-1;else for(;O<c.length;){var ee=c[O++];if("number"==typeof ee){if(ee===f){Y=-1;break}if(ee>f){Y=O-1;break}}}for(;O<c.length;){var oe=c[O];if("number"==typeof oe)break;if(oe===p){if(null===_)return void(null!==C&&(c[O+1]=C));if(_===c[O+1])return void(c[O+2]=C)}O++,null!==_&&O++,null!==C&&O++}-1!==Y&&(c.splice(Y,0,f),O=Y+1),c.splice(O++,0,p),null!==_&&c.splice(O++,0,_),null!==C&&c.splice(O++,0,C)}function fs(c){return-1!==c}function Ii(c){return 32767&c}function Cu(c,f){for(var p=function ic(c){return c>>16}(c),_=f;p>0;)_=_[15],p--;return _}var ma=!0;function wu(c){var f=ma;return ma=c,f}var kI=0,Hl={};function sh(c,f){var p=r_(c,f);if(-1!==p)return p;var _=f[1];_.firstCreatePass&&(c.injectorIndex=f.length,dM(_.data,c),dM(f,null),dM(_.blueprint,null));var C=yf(c,f),O=c.injectorIndex;if(fs(C))for(var Y=Ii(C),ee=Cu(C,f),oe=ee[1].data,ve=0;ve<8;ve++)f[O+ve]=ee[Y+ve]|oe[Y+ve];return f[O+8]=C,O}function dM(c,f){c.push(0,0,0,0,0,0,0,0,f)}function r_(c,f){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===f[c.injectorIndex+8]?-1:c.injectorIndex}function yf(c,f){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;for(var p=0,_=null,C=f;null!==C;){if(null===(_=pi(C)))return-1;if(p++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|p<<16}return-1}function Ds(c,f,p){!function cM(c,f,p){var _;"string"==typeof p?_=p.charCodeAt(0)||0:p.hasOwnProperty(vt)&&(_=p[vt]),null==_&&(_=p[vt]=kI++);var C=255&_,O=1<<C;f.data[c+(C>>5)]|=O}(c,f,p)}function pC(c,f,p){if(p&ye.Optional||void 0!==c)return c;Tt(0,"NodeInjector")}function lh(c,f,p,_){if(p&ye.Optional&&void 0===_&&(_=null),0==(p&(ye.Self|ye.Host))){var C=c[9],O=lt(void 0);try{return C?C.get(f,_,p&ye.Optional):ut(f,_,p&ye.Optional)}finally{lt(O)}}return pC(_,0,p)}function bf(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye.Default,C=arguments.length>4?arguments[4]:void 0;if(null!==c){if(1024&f[2]){var O=hC(c,f,p,_,Hl);if(O!==Hl)return O}var Y=pM(c,f,p,_,Hl);if(Y!==Hl)return Y}return lh(f,p,_,C)}function pM(c,f,p,_,C){var O=function l5(c){if("string"==typeof c)return c.charCodeAt(0)||0;var f=c.hasOwnProperty(vt)?c[vt]:void 0;return"number"==typeof f?f>=0?255&f:Xn:f}(p);if("function"==typeof O){if(!Cd(f,c,_))return _&ye.Host?pC(C,0,_):lh(f,p,_,C);try{var Y=O(_);if(null!=Y||_&ye.Optional)return Y;Tt()}finally{Ge()}}else if("number"==typeof O){var ee=null,oe=r_(c,f),ve=-1,je=_&ye.Host?f[16][6]:null;for((-1===oe||_&ye.SkipSelf)&&(-1!==(ve=-1===oe?yf(c,f):f[oe+8])&&hM(_,!1)?(ee=f[1],oe=Ii(ve),f=Cu(ve,f)):oe=-1);-1!==oe;){var nt=f[1];if(TI(O,oe,nt.data)){var dt=uh(oe,f,p,ee,_,je);if(dt!==Hl)return dt}-1!==(ve=f[oe+8])&&hM(_,f[1].data[oe+8]===je)&&TI(O,oe,f)?(ee=nt,oe=Ii(ve),f=Cu(ve,f)):oe=-1}}return C}function uh(c,f,p,_,C,O){var Y=f[1],ee=Y.data[c+8],je=Sa(ee,Y,p,null==_?Ki(ee)&&ma:_!=Y&&0!=(3&ee.type),C&ye.Host&&O===ee);return null!==je?i_(f,Y,je,ee):Hl}function Sa(c,f,p,_,C){for(var O=c.providerIndexes,Y=f.data,ee=1048575&O,oe=c.directiveStart,ve=c.directiveEnd,je=O>>20,dt=C?ee+je:ve,kt=_?ee:ee+je;kt<dt;kt++){var Xt=Y[kt];if(kt<oe&&p===Xt||kt>=oe&&Xt.type===p)return kt}if(C){var _n=Y[oe];if(_n&&en(_n)&&_n.type===p)return oe}return null}function i_(c,f,p,_){var C=c[p],O=f.data;if(function Ue(c){return c instanceof me}(C)){var Y=C;Y.resolving&&function He(c,f){var p=f?". Dependency path: ".concat(f.join(" > ")," > ").concat(c):"";throw new fe(-200,"Circular dependency in DI detected for ".concat(c).concat(p))}(ge(O[p]));var ee=wu(Y.canSeeViewProviders);Y.resolving=!0;var oe=Y.injectImpl?lt(Y.injectImpl):null;Cd(c,_,ye.Default);try{C=c[p]=Y.factory(void 0,O,c,_),f.firstCreatePass&&p>=_.directiveStart&&function gf(c,f,p){var _=f.type.prototype,C=_.ngOnChanges,O=_.ngOnInit,Y=_.ngDoCheck;if(C){var ee=hl(f);(p.preOrderHooks||(p.preOrderHooks=[])).push(c,ee),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,ee)}O&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-c,O),Y&&((p.preOrderHooks||(p.preOrderHooks=[])).push(c,Y),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,Y))}(p,O[p],f)}finally{null!==oe&<(oe),wu(ee),Y.resolving=!1,Ge()}}return C}function TI(c,f,p){var _=1<<c;return!!(p[f+(c>>5)]&_)}function hM(c,f){return!(c&ye.Self||c&ye.Host&&f)}var qr=function(){function c(f,p){(0,v.Z)(this,c),this._tNode=f,this._lView=p}return(0,R.Z)(c,[{key:"get",value:function(p,_,C){return bf(this._tNode,this._lView,p,C,_)}}]),c}();function Xn(){return new qr(Me(),xn())}function MI(c){return Ht(function(){for(var f=c.prototype.constructor,p=f[Je]||ps(f),_=Object.prototype,C=Object.getPrototypeOf(c.prototype).constructor;C&&C!==_;){var O=C[Je]||ps(C);if(O&&O!==p)return O;C=Object.getPrototypeOf(C)}return function(Y){return new Y}})}function ps(c){return be(c)?function(){var f=ps(te(c));return f&&f()}:go(c)}function hC(c,f,p,_,C){for(var O=c,Y=f;null!==O&&null!==Y&&1024&Y[2]&&!(256&Y[2]);){var ee=pM(O,Y,p,_|ye.Self,Hl);if(ee!==Hl)return ee;var oe=O.parent;if(!oe){var ve=Y[21];if(ve){var je=ve.get(p,Hl,_);if(je!==Hl)return je}oe=pi(Y),Y=Y[15]}O=oe}return C}function pi(c){var f=c[1],p=f.type;return 2===p?f.declTNode:1===p?c[6]:null}function As(c){return function fM(c,f){if("class"===f)return c.classes;if("style"===f)return c.styles;var p=c.attrs;if(p)for(var _=p.length,C=0;C<_;){var O=p[C];if(Do(O))break;if(0===O)C+=2;else if("number"==typeof O)for(C++;C<_&&"string"==typeof p[C];)C++;else{if(O===f)return p[C+1];C+=2}}return null}(Me(),c)}var o_="__annotations__",ch="__parameters__",oa="__prop__metadata__";function Cf(c,f,p,_,C){return Ht(function(){var O=Rv(f);function Y(){for(var ee=arguments.length,oe=new Array(ee),ve=0;ve<ee;ve++)oe[ve]=arguments[ve];if(this instanceof Y)return O.call.apply(O,[this].concat(oe)),this;var je=(0,H.Z)(Y,oe);return function(dt){return C&&C.apply(void 0,[dt].concat(oe)),(dt.hasOwnProperty(o_)?dt[o_]:Object.defineProperty(dt,o_,{value:[]})[o_]).push(je),_&&_(dt),dt}}return p&&(Y.prototype=Object.create(p.prototype)),Y.prototype.ngMetadataName=c,Y.annotationCls=Y,Y})}function Rv(c){return function(){if(c){var p=c.apply(void 0,arguments);for(var _ in p)this[_]=p[_]}}}function on(c,f,p){return Ht(function(){var _=Rv(f);function C(){for(var O=arguments.length,Y=new Array(O),ee=0;ee<O;ee++)Y[ee]=arguments[ee];if(this instanceof C)return _.apply(this,Y),this;var oe=(0,H.Z)(C,Y);return ve.annotation=oe,ve;function ve(je,nt,dt){for(var kt=je.hasOwnProperty(ch)?je[ch]:Object.defineProperty(je,ch,{value:[]})[ch];kt.length<=dt;)kt.push(null);return(kt[dt]=kt[dt]||[]).push(oe),je}}return p&&(C.prototype=Object.create(p.prototype)),C.prototype.ngMetadataName=c,C.annotationCls=C,C})}function kd(c,f,p,_){return Ht(function(){var C=Rv(f);function O(){for(var Y=arguments.length,ee=new Array(Y),oe=0;oe<Y;oe++)ee[oe]=arguments[oe];if(this instanceof O)return C.apply(this,ee),this;var ve=(0,H.Z)(O,ee);function je(nt,dt){var kt=nt.constructor,Xt=kt.hasOwnProperty(oa)?kt[oa]:Object.defineProperty(kt,oa,{value:{}})[oa];Xt[dt]=Xt.hasOwnProperty(dt)&&Xt[dt]||[],Xt[dt].unshift(ve),_&&_.apply(void 0,[nt,dt].concat(ee))}return je}return p&&(O.prototype=Object.create(p.prototype)),O.prototype.ngMetadataName=c,O.annotationCls=O,O})}var wf,DI,La,mC=on("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return As(c)}}}),io=function(){function c(f,p){(0,v.Z)(this,c),this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=Be({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}return(0,R.Z)(c,[{key:"multi",get:function(){return this}},{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),_C=(new io("AnalyzeForEntryComponents"),(0,R.Z)(function c(){(0,v.Z)(this,c)})),SI=kd("ContentChildren",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true},f)},_C),EI=kd("ContentChild",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!0,isViewQuery:!1,descendants:!0},f)},_C),c5=kd("ViewChildren",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true},f)},_C),xI=kd("ViewChild",function(c,f){return Object.assign({selector:c,first:!0,isViewQuery:!0,descendants:!0},f)},_C);function Za(c){var f=hn.ng;if(f&&f.\u0275compilerFacade)return f.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(c){c[c.Directive=0]="Directive",c[c.Component=1]="Component",c[c.Injectable=2]="Injectable",c[c.Pipe=3]="Pipe",c[c.NgModule=4]="NgModule"}(wf||(wf={})),function(c){c[c.Directive=0]="Directive",c[c.Pipe=1]="Pipe",c[c.NgModule=2]="NgModule"}(DI||(DI={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(La||(La={}));var Lv=Function;function qt(c){return"function"==typeof c}function Gl(c,f){void 0===f&&(f=c);for(var p=0;p<c.length;p++){var _=c[p];Array.isArray(_)?(f===c&&(f=c.slice(0,p)),Gl(_,f)):f!==c&&f.push(_)}return f}function Td(c,f){c.forEach(function(p){return Array.isArray(p)?Td(p,f):f(p)})}function AI(c,f,p){f>=c.length?c.push(p):c.splice(f,0,p)}function dh(c,f){return f>=c.length-1?c.pop():c.splice(f,1)[0]}function Zv(c,f){for(var p=[],_=0;_<c;_++)p.push(f);return p}function zl(c,f,p){var _=fh(c,f);return _>=0?c[1|_]=p:function p5(c,f,p,_){var C=c.length;if(C==f)c.push(p,_);else if(1===C)c.push(_,c[0]),c[0]=p;else{for(C--,c.push(c[C-1],c[C]);C>f;){var O=C-2;c[C]=c[O],C--}c[f]=p,c[f+1]=_}}(c,_=~_,f,p),_}function Md(c,f){var p=fh(c,f);if(p>=0)return c[1|p]}function fh(c,f){return _M(c,f,1)}function _M(c,f,p){for(var _=0,C=c.length>>p;C!==_;){var O=_+(C-_>>1),Y=c[O<<p];if(f===Y)return O<<p;Y>f?C=O:_=O+1}return~(C<<p)}var II=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,m5=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,_5=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,RI=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var v5=function(){function c(f){(0,v.Z)(this,c),this._reflect=f||hn.Reflect}return(0,R.Z)(c,[{key:"factory",value:function(p){return function(){for(var _=arguments.length,C=new Array(_),O=0;O<_;O++)C[O]=arguments[O];return(0,H.Z)(p,C)}}},{key:"_zipTypesAndAnnotations",value:function(p,_){var C;C=Zv(void 0===p?_.length:p.length);for(var O=0;O<C.length;O++)void 0===p?C[O]=[]:p[O]&&p[O]!=Object?C[O]=[p[O]]:C[O]=[],_&&null!=_[O]&&(C[O]=C[O].concat(_[O]));return C}},{key:"_ownParameters",value:function(p,_){if(function g5(c){return II.test(c)||RI.test(c)||m5.test(c)&&!_5.test(c)}(p.toString()))return null;if(p.parameters&&p.parameters!==_.parameters)return p.parameters;var O=p.ctorParameters;if(O&&O!==_.ctorParameters){var Y="function"==typeof O?O():O,ee=Y.map(function(nt){return nt&&nt.type}),oe=Y.map(function(nt){return nt&&gC(nt.decorators)});return this._zipTypesAndAnnotations(ee,oe)}var ve=p.hasOwnProperty(ch)&&p[ch],je=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",p);return je||ve?this._zipTypesAndAnnotations(je,ve):Zv(p.length)}},{key:"parameters",value:function(p){if(!qt(p))return[];var _=Na(p),C=this._ownParameters(p,_);return!C&&_!==Object&&(C=this.parameters(_)),C||[]}},{key:"_ownAnnotations",value:function(p,_){if(p.annotations&&p.annotations!==_.annotations){var C=p.annotations;return"function"==typeof C&&C.annotations&&(C=C.annotations),C}return p.decorators&&p.decorators!==_.decorators?gC(p.decorators):p.hasOwnProperty(o_)?p[o_]:null}},{key:"annotations",value:function(p){if(!qt(p))return[];var _=Na(p),C=this._ownAnnotations(p,_)||[];return(_!==Object?this.annotations(_):[]).concat(C)}},{key:"_ownPropMetadata",value:function(p,_){if(p.propMetadata&&p.propMetadata!==_.propMetadata){var C=p.propMetadata;return"function"==typeof C&&C.propMetadata&&(C=C.propMetadata),C}if(p.propDecorators&&p.propDecorators!==_.propDecorators){var O=p.propDecorators,Y={};return Object.keys(O).forEach(function(ee){Y[ee]=gC(O[ee])}),Y}return p.hasOwnProperty(oa)?p[oa]:null}},{key:"propMetadata",value:function(p){if(!qt(p))return{};var _=Na(p),C={};if(_!==Object){var O=this.propMetadata(_);Object.keys(O).forEach(function(ee){C[ee]=O[ee]})}var Y=this._ownPropMetadata(p,_);return Y&&Object.keys(Y).forEach(function(ee){var oe=[];C.hasOwnProperty(ee)&&oe.push.apply(oe,(0,E.Z)(C[ee])),oe.push.apply(oe,(0,E.Z)(Y[ee])),C[ee]=oe}),C}},{key:"ownPropMetadata",value:function(p){return qt(p)&&this._ownPropMetadata(p,Na(p))||{}}},{key:"hasLifecycleHook",value:function(p,_){return p instanceof Lv&&_ in p.prototype}}]),c}();function gC(c){return c?c.map(function(f){var _=f.type.annotationCls,C=f.args?f.args:[];return(0,H.Z)(_,(0,E.Z)(C))}):[]}function Na(c){var f=c.prototype?Object.getPrototypeOf(c.prototype):null;return(f?f.constructor:null)||Object}var Oc={},kf="__NG_DI_FLAG__",Nv="ngTempTokenPath",ac=/\n/gm,gM="__source",s_=void 0;function l_(c){var f=s_;return s_=c,f}function y5(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;if(void 0===s_)throw new fe(-203,!1);return null===s_?ut(c,void 0,f):s_.get(c,f&ye.Optional?null:void 0,f)}function Ea(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return(Le()||y5)(te(c),f)}function vM(c){throw new fe(202,!1)}function LI(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return"number"!=typeof f&&(f=0|(f.optional&&8)|(f.host&&1)|(f.self&&2)|(f.skipSelf&&4)),Ea(c,f)}function yM(c){for(var f=[],p=0;p<c.length;p++){var _=te(c[p]);if(Array.isArray(_)){if(0===_.length)throw new fe(900,!1);for(var C=void 0,O=ye.Default,Y=0;Y<_.length;Y++){var ee=_[Y],oe=vC(ee);"number"==typeof oe?-1===oe?C=ee.token:O|=oe:C=ee}f.push(Ea(C,O))}else f.push(Ea(_))}return f}function Fv(c,f){return c[kf]=f,c.prototype[kf]=f,c}function vC(c){return c[kf]}function bM(c,f,p,_){var C=c[Nv];throw f[gM]&&C.unshift(f[gM]),c.message=function CM(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.slice(2):c;var C=X(f);if(Array.isArray(f))C=f.map(X).join(" -> ");else if("object"==typeof f){var O=[];for(var Y in f)if(f.hasOwnProperty(Y)){var ee=f[Y];O.push(Y+":"+("string"==typeof ee?JSON.stringify(ee):X(ee)))}C="{".concat(O.join(", "),"}")}return"".concat(p).concat(_?"("+_+")":"","[").concat(C,"]: ").concat(c.replace(ac,"\n "))}("\n"+c.message,C,p,_),c.ngTokenPath=C,c[Nv]=null,c}var Uv=Fv(on("Inject",function(c){return{token:c}}),-1),u_=Fv(on("Optional"),8),hh=Fv(on("Self"),2),Sd=Fv(on("SkipSelf"),4),ZI=Fv(on("Host"),1),wM=null;function jv(){return wM=wM||new v5}function Hv(c){return b5(jv().parameters(c))}function b5(c){return c.map(function(f){return function KW(c){var f={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(c)&&c.length>0)for(var p=0;p<c.length;p++){var _=c[p];if(void 0!==_){var C=Object.getPrototypeOf(_);if(_ instanceof u_||"Optional"===C.ngMetadataName)f.optional=!0;else if(_ instanceof Sd||"SkipSelf"===C.ngMetadataName)f.skipSelf=!0;else if(_ instanceof hh||"Self"===C.ngMetadataName)f.self=!0;else if(_ instanceof ZI||"Host"===C.ngMetadataName)f.host=!0;else if(_ instanceof Uv)f.token=_.token;else if(_ instanceof mC){if(void 0===_.attributeName)throw new fe(204,!1);f.attribute=_.attributeName}else f.token=_}}else void 0===c||Array.isArray(c)&&0===c.length?f.token=null:f.token=c;return f}(f)})}var mh=new Map,yC=new Set;function c_(c){return!!(c.templateUrl&&!c.hasOwnProperty("template")||c.styleUrls&&c.styleUrls.length)}var TM=new Map,FI=!0;function w5(c,f){(function C5(c,f,p){if(f&&f!==p&&FI)throw new Error("Duplicate module registered for ".concat(c," - ").concat(X(f)," vs ").concat(X(f.name)))})(f,TM.get(f)||null,c),TM.set(f,c)}var CC;!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(CC||(CC={}));var S5=/^>|^->|<!--|-->|--!>|<!-$/g,E5=/(<|>)/;function MM(c){return c.replace(S5,function(f){return f.replace(E5,"\u200b$1\u200b")})}var Gv=new Map,D5=0;var _h,d_="__ngContext__";function Os(c,f){to(f)?(c[d_]=f[20],function WI(c){Gv.set(c[20],c)}(f)):c[d_]=f}function PM(c,f){return _h(c,f)}function Yv(c){var f=c[3];return Ai(f)?f[3]:f}function MC(c){return Wl(c[13])}function vh(c){return Wl(c[4])}function Wl(c){for(;null!==c&&!Ai(c);)c=c[4];return c}function f_(c,f,p,_,C){if(null!=_){var O,Y=!1;Ai(_)?O=_:to(_)&&(Y=!0,_=_[0]);var ee=po(_);0===c&&null!==p?null==C?ZM(f,p,ee):Sf(f,p,ee,C||null,!0):1===c&&null!==p?Sf(f,p,ee,C||null,!0):2===c?p_(f,ee,Y):3===c&&f.destroyNode(ee),null!=O&&function h_(c,f,p,_,C){var O=p[7],Y=po(p);O!==Y&&f_(f,c,_,O,C);for(var ee=10;ee<p.length;ee++){var oe=p[ee];Yl(oe[1],oe,c,f,_,O)}}(f,c,O,p,C)}}function Kv(c,f){return c.createText(f)}function JI(c,f,p){c.setValue(f,p)}function Ba(c,f){return c.createComment(MM(f))}function QI(c,f,p){return c.createElement(f,p)}function e3(c,f,p,_){var C=10+_,O=p.length;_>0&&(p[C-1][4]=f),_<O-10?(f[4]=p[C],AI(p,10+_,f)):(p.push(f),f[4]=null),f[3]=p;var Y=f[17];null!==Y&&p!==Y&&function t3(c,f){var p=c[9],C=f[3][3][16];f[16]!==C&&(c[2]=!0),null===p?c[9]=[f]:p.push(f)}(Y,f);var ee=f[19];null!==ee&&ee.insertView(c),f[2]|=64}function n3(c,f){var p=c[9],_=p.indexOf(f),C=f[3];512&f[2]&&(f[2]&=-513,Ms(C,-1)),p.splice(_,1)}function RM(c,f){if(!(c.length<=10)){var p=10+f,_=c[p];if(_){var C=_[17];null!==C&&C!==c&&n3(C,_),f>0&&(c[p-1][4]=_[4]);var O=dh(c,10+f);!function yh(c,f){Yl(c,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);var Y=O[19];null!==Y&&Y.detachView(O[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}}function LM(c,f){if(!(128&f[2])){var p=f[11];p.destroyNode&&Yl(c,f,p,3,null,null),function $I(c){var f=c[13];if(!f)return Vl(c[1],c);for(;f;){var p=null;if(to(f))p=f[13];else{var _=f[10];_&&(p=_)}if(!p){for(;f&&!f[4]&&f!==c;)to(f)&&Vl(f[1],f),f=f[3];null===f&&(f=c),to(f)&&Vl(f[1],f),p=f&&f[4]}f=p}}(f)}}function Vl(c,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function R5(c,f){var p;if(null!=c&&null!=(p=c.destroyHooks))for(var _=0;_<p.length;_+=2){var C=f[p[_]];if(!(C instanceof me)){var O=p[_+1];if(Array.isArray(O))for(var Y=0;Y<O.length;Y+=2){var ee=C[O[Y]],oe=O[Y+1];Br(4,ee,oe);try{oe.call(ee)}finally{Br(5,ee,oe)}}else{Br(4,C,O);try{O.call(C)}finally{Br(5,C,O)}}}}}(c,f),function yl(c,f){var p=c.cleanup,_=f[7],C=-1;if(null!==p)for(var O=0;O<p.length-1;O+=2)if("string"==typeof p[O]){var Y=p[O+1],ee="function"==typeof Y?Y(f):po(f[Y]),oe=_[C=p[O+2]],ve=p[O+3];"boolean"==typeof ve?ee.removeEventListener(p[O],oe,ve):ve>=0?_[C=ve]():_[C=-ve].unsubscribe(),O+=2}else{var je=_[C=p[O+1]];p[O].call(je)}if(null!==_){for(var nt=C+1;nt<_.length;nt++){(0,_[nt])()}f[7]=null}}(c,f),1===f[1].type&&f[11].destroy();var p=f[17];if(null!==p&&Ai(f[3])){p!==f[3]&&n3(p,f);var _=f[19];null!==_&&_.detachView(c)}!function zv(c){Gv.delete(c[20])}(f)}}function EC(c,f,p){return Mf(c,f.parent,p)}function Mf(c,f,p){for(var _=f;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return p[0];if(2&_.flags){var C=c.data[_.directiveStart].encapsulation;if(C===Sn.None||C===Sn.Emulated)return null}return xo(_,p)}function Sf(c,f,p,_,C){c.insertBefore(f,p,_,C)}function ZM(c,f,p){c.appendChild(f,p)}function xC(c,f,p,_,C){null!==_?Sf(c,f,p,_,C):ZM(c,f,p)}function Ef(c,f){return c.parentNode(f)}function NM(c,f,p){return qv(c,f,p)}function a3(c,f,p){return 40&c.type?xo(c,p):null}var bh,__,qv=a3;function Jv(c,f){qv=c,bh=f}function xf(c,f,p,_){var C=EC(c,_,f),O=f[11],ee=NM(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(p))for(var oe=0;oe<p.length;oe++)xC(O,C,p[oe],ee,!1);else xC(O,C,p,ee,!1);void 0!==bh&&bh(O,_,f,p,C)}function DC(c,f){if(null!==f){var p=f.type;if(3&p)return xo(f,c);if(4&p)return lc(-1,c[f.index]);if(8&p){var _=f.child;if(null!==_)return DC(c,_);var C=c[f.index];return Ai(C)?lc(-1,C):po(C)}if(32&p)return PM(f,c)()||po(c[f.index]);var ee=BM(c,f);return null!==ee?Array.isArray(ee)?ee[0]:DC(Yv(c[16]),ee):DC(c,f.next)}return null}function BM(c,f){if(null!==f){var _=c[16][6],C=f.projection;return _.projection[C]}return null}function lc(c,f){var p=10+c+1;if(p<f.length){var _=f[p],C=_[1].firstChild;if(null!==C)return DC(_,C)}return f[7]}function p_(c,f,p){var _=Ef(c,f);_&&function r3(c,f,p,_){c.removeChild(f,p,_)}(c,_,f,p)}function Df(c,f,p,_,C,O,Y){for(;null!=p;){var ee=_[p.index],oe=p.type;if(Y&&0===f&&(ee&&Os(po(ee),_),p.flags|=4),64!=(64&p.flags))if(8&oe)Df(c,f,p.child,_,C,O,!1),f_(f,c,C,ee,O);else if(32&oe){for(var ve=PM(p,_),je=void 0;je=ve();)f_(f,c,C,je,O);f_(f,c,C,ee,O)}else 16&oe?Pc(c,f,_,p,C,O):f_(f,c,C,ee,O);p=Y?p.projectionNext:p.next}}function Yl(c,f,p,_,C,O){Df(p,_,c.firstChild,f,C,O,!1)}function Af(c,f,p){Pc(f[11],0,f,p,EC(c,p,f),NM(p.parent||f[6],p,f))}function Pc(c,f,p,_,C,O){var Y=p[16],oe=Y[6].projection[_.projection];if(Array.isArray(oe))for(var ve=0;ve<oe.length;ve++){f_(f,c,C,oe[ve],O)}else Df(c,f,oe,Y[3],C,O,!0)}function Ed(c,f,p){c.setAttribute(f,"style",p)}function AC(c,f,p){""===p?c.removeAttribute(f,"class"):c.setAttribute(f,"class",p)}function FM(){if(void 0===__&&(__=null,hn.trustedTypes))try{__=hn.trustedTypes.createPolicy("angular",{createHTML:function(f){return f},createScript:function(f){return f},createScriptURL:function(f){return f}})}catch(c){}return __}function Of(c){var f;return(null===(f=FM())||void 0===f?void 0:f.createHTML(c))||c}function Z5(c,f,p){var _=xn(),C=Mt(),O=xo(C,_);if(2===C.type&&"iframe"===f.toLowerCase()){var Y=O;Y.src="",Y.srcdoc=Of(""),p_(_[11],Y);throw new fe(-910,!1)}return c}var Pf,v_=void 0;function Qv(c){v_=c}function OC(){return void 0!==v_?v_:"undefined"!=typeof document?document:void 0}function UM(){if(void 0===Pf&&(Pf=null,hn.trustedTypes))try{Pf=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(f){return f},createScript:function(f){return f},createScriptURL:function(f){return f}})}catch(c){}return Pf}function PC(c){var f;return(null===(f=UM())||void 0===f?void 0:f.createHTML(c))||c}function If(c){var f;return(null===(f=UM())||void 0===f?void 0:f.createScript(c))||c}function s3(c){var f;return(null===(f=UM())||void 0===f?void 0:f.createScriptURL(c))||c}var Ch=function(){function c(f){(0,v.Z)(this,c),this.changingThisBreaksApplicationSecurity=f}return(0,R.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),jM=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"HTML"}}]),p}(Ch),l3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"Style"}}]),p}(Ch),u3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"Script"}}]),p}(Ch),c3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"URL"}}]),p}(Ch),d3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),p}(Ch);function Ic(c){return c instanceof Ch?c.changingThisBreaksApplicationSecurity:c}function wh(c,f){var p=function Xv(c){return c instanceof Ch&&c.getTypeName()||null}(c);if(null!=p&&p!==f){if("ResourceURL"===p&&"URL"===f)return!0;throw new Error("Required a safe ".concat(f,", got a ").concat(p," (see https://g.co/ng/security#xss)"))}return p===f}function Rf(c){return new jM(c)}function f3(c){return new l3(c)}function Rc(c){return new u3(c)}function p3(c){return new c3(c)}function iV(c){return new d3(c)}function N5(c){var f=new B5(c);return function HM(){try{return!!(new window.DOMParser).parseFromString(Of(""),"text/html")}catch(c){return!1}}()?new oV(f):f}var oV=function(){function c(f){(0,v.Z)(this,c),this.inertDocumentHelper=f}return(0,R.Z)(c,[{key:"getInertBodyElement",value:function(p){p="<body><remove></remove>"+p;try{var _=(new window.DOMParser).parseFromString(Of(p),"text/html").body;return null===_?this.inertDocumentHelper.getInertBodyElement(p):(_.removeChild(_.firstChild),_)}catch(C){return null}}}]),c}(),B5=function(){function c(f){if((0,v.Z)(this,c),this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var p=this.inertDocument.createElement("html");this.inertDocument.appendChild(p);var _=this.inertDocument.createElement("body");p.appendChild(_)}}return(0,R.Z)(c,[{key:"getInertBodyElement",value:function(p){var _=this.inertDocument.createElement("template");if("content"in _)return _.innerHTML=Of(p),_;var C=this.inertDocument.createElement("body");return C.innerHTML=Of(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(C),C}},{key:"stripCustomNsAttrs",value:function(p){for(var _=p.attributes,C=_.length-1;0<C;C--){var Y=_.item(C).name;("xmlns:ns1"===Y||0===Y.indexOf("ns1:"))&&p.removeAttribute(Y)}for(var ee=p.firstChild;ee;)ee.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(ee),ee=ee.nextSibling}}]),c}();var Lf=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function y_(c){return(c=String(c)).match(Lf)?c:"unsafe:"+c}function xd(c){var _,f={},p=(0,T.Z)(c.split(","));try{for(p.s();!(_=p.n()).done;){f[_.value]=!0}}catch(O){p.e(O)}finally{p.f()}return f}function b_(){for(var c={},f=arguments.length,p=new Array(f),_=0;_<f;_++)p[_]=arguments[_];for(var C=0,O=p;C<O.length;C++){var Y=O[C];for(var ee in Y)Y.hasOwnProperty(ee)&&(c[ee]=!0)}return c}var $v,Ad,GM=xd("area,br,col,hr,img,wbr"),IC=xd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C_=xd("rp,rt"),zM=b_(C_,IC),Xa=b_(IC,xd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dd=b_(C_,xd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),kh=b_(GM,Xa,Dd,zM),WM=xd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),F5=xd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),U5=xd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Th=b_(WM,F5,U5),h3=xd("script,style,template"),j5=function(){function c(){(0,v.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,R.Z)(c,[{key:"sanitizeChildren",value:function(p){for(var _=p.firstChild,C=!0;_;)if(_.nodeType===Node.ELEMENT_NODE?C=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,C&&_.firstChild)_=_.firstChild;else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);var O=this.checkClobberedElement(_,_.nextSibling);if(O){_=O;break}_=this.checkClobberedElement(_,_.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(p){var _=p.nodeName.toLowerCase();if(!kh.hasOwnProperty(_))return this.sanitizedSomething=!0,!h3.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);for(var C=p.attributes,O=0;O<C.length;O++){var Y=C.item(O),ee=Y.name,oe=ee.toLowerCase();if(Th.hasOwnProperty(oe)){var ve=Y.value;WM[oe]&&(ve=y_(ve)),this.buf.push(" ",ee,'="',m3(ve),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(p){var _=p.nodeName.toLowerCase();kh.hasOwnProperty(_)&&!GM.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}},{key:"chars",value:function(p){this.buf.push(m3(p))}},{key:"checkClobberedElement",value:function(p,_){if(_&&(p.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(p.outerHTML));return _}}]),c}(),RC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,H5=/([^\#-~ |!])/g;function m3(c){return c.replace(/&/g,"&").replace(RC,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(H5,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function _3(c,f){var p=null;try{$v=$v||N5(c);var _=f?String(f):"";p=$v.getInertBodyElement(_);var C=5,O=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=O,O=p.innerHTML,p=$v.getInertBodyElement(_)}while(_!==O);return Of((new j5).sanitizeChildren(VM(p)||p))}finally{if(p)for(var oe=VM(p)||p;oe.firstChild;)oe.removeChild(oe.firstChild)}}function VM(c){return"content"in c&&function G5(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function YM(c){var f=Tu();return f?PC(f.sanitize(Ad.HTML,c)||""):wh(c,"HTML")?PC(Ic(c)):_3(OC(),de(c))}function g3(c){var f=Tu();return f?f.sanitize(Ad.STYLE,c)||"":wh(c,"Style")?Ic(c):de(c)}function Mh(c){var f=Tu();return f?f.sanitize(Ad.URL,c)||"":wh(c,"URL")?Ic(c):y_(de(c))}function v3(c){var f=Tu();if(f)return s3(f.sanitize(Ad.RESOURCE_URL,c)||"");if(wh(c,"ResourceURL"))return s3(Ic(c));throw new fe(904,!1)}function z5(c){var f=Tu();if(f)return If(f.sanitize(Ad.SCRIPT,c)||"");if(wh(c,"Script"))return If(Ic(c));throw new fe(905,!1)}function y3(c){return Of(c[0])}function W5(c){return function L5(c){var f;return(null===(f=FM())||void 0===f?void 0:f.createScriptURL(c))||c}(c[0])}function V5(c,f,p){return function KM(c,f){return"src"===f&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===f&&("base"===c||"link"===c)?v3:Mh}(f,p)(c)}function Tu(){var c=xn();return c&&c[12]}!function(c){c[c.NONE=0]="NONE",c[c.HTML=1]="HTML",c[c.STYLE=2]="STYLE",c[c.SCRIPT=3]="SCRIPT",c[c.URL=4]="URL",c[c.RESOURCE_URL=5]="RESOURCE_URL"}(Ad||(Ad={}));var ey=new io("ENVIRONMENT_INITIALIZER"),w_=new io("INJECTOR",-1),Fa=new io("INJECTOR_DEF_TYPES"),ty=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc;if(_===Oc){var C=new Error("NullInjectorError: No provider for ".concat(X(p),"!"));throw C.name="NullInjectorError",C}return _}}]),c}();function Mu(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return{"\u0275providers":k_(!0,f)}}function k_(c){for(var _,f=[],p=new Set,C=arguments.length,O=new Array(C>1?C-1:0),Y=1;Y<C;Y++)O[Y-1]=arguments[Y];return Td(O,function(ee){var ve=ee;ny(ve,f,[],p)&&(_||(_=[]),_.push(ve))}),void 0!==_&&LC(_,f),f}function LC(c,f){for(var p=function(){var O=c[_];O.ngModule;Td(O.providers,function(oe){f.push(oe)})},_=0;_<c.length;_++)p()}function ny(c,f,p,_){if(!(c=te(c)))return!1;var C=null,O=Vt(c),Y=!O&&Vn(c);if(O||Y){if(Y&&!Y.standalone)return!1;C=c}else{var ee=c.ngModule;if(!(O=Vt(ee)))return!1;C=ee}var je=_.has(C);if(Y){if(je)return!1;if(_.add(C),Y.dependencies){var kt,nt="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies,dt=(0,T.Z)(nt);try{for(dt.s();!(kt=dt.n()).done;){ny(kt.value,f,p,_)}}catch(Cn){dt.e(Cn)}finally{dt.f()}}}else{if(!O)return!1;if(null!=O.imports&&!je){var _n;_.add(C);try{Td(O.imports,function(Cn){ny(Cn,f,p,_)&&(_n||(_n=[]),_n.push(Cn))})}finally{}void 0!==_n&&LC(_n,f)}if(!je){var Fn=go(C)||function(){return new C};f.push({provide:C,useFactory:Fn,deps:tt},{provide:Fa,useValue:C,multi:!0},{provide:ey,useValue:function(){return Ea(C)},multi:!0})}var Jn=O.providers;if(null!=Jn&&!je){Td(Jn,function(Cn){f.push(Cn)})}}return C!==c&&void 0!==c.providers}var Zf=N({provide:String,useValue:N});function ry(c){return null!==c&&"object"==typeof c&&Zf in c}function ZC(c){return!(!c||!c.useExisting)}function iy(c){return!(!c||!c.useFactory)}function Lc(c){return"function"==typeof c}var T_=new io("Set Injector scope."),Ps={},NC={},oy=void 0;function $a(){return void 0===oy&&(oy=new ty),oy}var Is=(0,R.Z)(function c(){(0,v.Z)(this,c)}),Sh=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O,Y){var ee;(0,v.Z)(this,p),(ee=f.call(this)).parent=C,ee.source=O,ee.scopes=Y,ee.records=new Map,ee._ngOnDestroyHooks=new Set,ee._onDestroyHooks=[],ee._destroyed=!1,XM(_,function(ve){return ee.processProvider(ve)}),ee.records.set(w_,Rs(void 0,(0,P.Z)(ee))),Y.has("environment")&&ee.records.set(Is,Rs(void 0,(0,P.Z)(ee)));var oe=ee.records.get(T_);return null!=oe&&"string"==typeof oe.value&&ee.scopes.add(oe.value),ee.injectorDefTypes=new Set(ee.get(Fa.multi,tt,ye.Self)),ee}return(0,R.Z)(p,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{var O,C=(0,T.Z)(this._ngOnDestroyHooks);try{for(C.s();!(O=C.n()).done;){O.value.ngOnDestroy()}}catch(je){C.e(je)}finally{C.f()}var oe,ee=(0,T.Z)(this._onDestroyHooks);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(je){ee.e(je)}finally{ee.f()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}},{key:"onDestroy",value:function(C){this._onDestroyHooks.push(C)}},{key:"runInContext",value:function(C){this.assertNotDestroyed();var O=l_(this),Y=lt(void 0);try{return C()}finally{l_(O),lt(Y)}}},{key:"get",value:function(C){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ye.Default;this.assertNotDestroyed();var ee=l_(this),oe=lt(void 0);try{if(!(Y&ye.SkipSelf)){var ve=this.records.get(C);if(void 0===ve){var je=q5(C)&&Lt(C);ve=je&&this.injectableDefInScope(je)?Rs(ay(C),Ps):null,this.records.set(C,ve)}if(null!=ve)return this.hydrate(C,ve)}var nt=Y&ye.Self?$a():this.parent;return O=Y&ye.Optional&&O===Oc?null:O,nt.get(C,O)}catch(kt){if("NullInjectorError"===kt.name){var dt=kt[Nv]=kt[Nv]||[];if(dt.unshift(X(C)),ee)throw kt;return bM(kt,C,"R3InjectorError",this.source)}throw kt}finally{lt(oe),l_(ee)}}},{key:"resolveInjectorInitializers",value:function(){var C=l_(this),O=lt(void 0);try{var oe,Y=this.get(ey.multi,tt,ye.Self),ee=(0,T.Z)(Y);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(je){ee.e(je)}finally{ee.f()}}finally{l_(C),lt(O)}}},{key:"toString",value:function(){var ee,C=[],O=this.records,Y=(0,T.Z)(O.keys());try{for(Y.s();!(ee=Y.n()).done;){var oe=ee.value;C.push(X(oe))}}catch(ve){Y.e(ve)}finally{Y.f()}return"R3Injector[".concat(C.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new fe(205,!1)}},{key:"processProvider",value:function(C){var O=Lc(C=te(C))?C:te(C&&C.provide),Y=function M_(c){return ry(c)?Rs(void 0,c.useValue):Rs(sy(c),Ps)}(C);if(Lc(C)||!0!==C.multi)this.records.get(O);else{var ee=this.records.get(O);ee||((ee=Rs(void 0,Ps,!0)).factory=function(){return yM(ee.multi)},this.records.set(O,ee)),O=C,ee.multi.push(C)}this.records.set(O,Y)}},{key:"hydrate",value:function(C,O){return O.value===Ps&&(O.value=NC,O.value=O.factory()),"object"==typeof O.value&&O.value&&function QM(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(O.value)&&this._ngOnDestroyHooks.add(O.value),O.value}},{key:"injectableDefInScope",value:function(C){if(!C.providedIn)return!1;var O=te(C.providedIn);return"string"==typeof O?"any"===O||this.scopes.has(O):this.injectorDefTypes.has(O)}}]),p}(Is);function ay(c){var f=Lt(c),p=null!==f?f.factory:go(c);if(null!==p)return p;if(c instanceof io)throw new fe(204,!1);if(c instanceof Function)return function JM(c){var f=c.length;if(f>0){Zv(f,"?");throw new fe(204,!1)}var _=function Qt(c){var f=c&&(c[Jt]||c[Fe]);if(f){var p=function vn(c){if(c.hasOwnProperty("name"))return c.name;var f=(""+c).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(c);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(p,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(p,'" class.')),f}return null}(c);return null!==_?function(){return _.factory(c)}:function(){return new c}}(c);throw new fe(204,!1)}function sy(c,f,p){var _=void 0;if(Lc(c)){var C=te(c);return go(C)||ay(C)}if(ry(c))_=function(){return te(c.useValue)};else if(iy(c))_=function(){return c.useFactory.apply(c,(0,E.Z)(yM(c.deps||[])))};else if(ZC(c))_=function(){return Ea(te(c.useExisting))};else{var O=te(c&&(c.useClass||c.provide));if(!function Nf(c){return!!c.deps}(c))return go(O)||ay(O);_=function(){return(0,H.Z)(O,(0,E.Z)(yM(c.deps)))}}return _}function Rs(c,f){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:f,multi:p?[]:void 0}}function q5(c){return"function"==typeof c||"object"==typeof c&&c instanceof io}function J5(c){return!!c.\u0275providers}function XM(c,f){var _,p=(0,T.Z)(c);try{for(p.s();!(_=p.n()).done;){var C=_.value;Array.isArray(C)?XM(C,f):J5(C)?XM(C.\u0275providers,f):f(C)}}catch(O){p.e(O)}finally{p.f()}}var Q5=(0,R.Z)(function c(){(0,v.Z)(this,c)}),BC=(0,R.Z)(function c(){(0,v.Z)(this,c)});var $M="ngComponent";var C3=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"resolveComponentFactory",value:function(p){throw function Eh(c){var f=Error("No component factory found for ".concat(X(c),". Did you add it to @NgModule.entryComponents?"));return f[$M]=c,f}(p)}}]),c}(),Bf=(0,R.Z)(function c(){(0,v.Z)(this,c)});function S_(c,f){return new E_(xo(c,f))}Bf.NULL=new C3;var E_=(0,R.Z)(function c(f){(0,v.Z)(this,c),this.nativeElement=f});function w3(c){return c instanceof E_?c.nativeElement:c}E_.__NG_ELEMENT_ID__=function X5(){return S_(Me(),xn())};new io("Renderer2Interceptor");var eS=(0,R.Z)(function c(){(0,v.Z)(this,c)}),k3=(0,R.Z)(function c(){(0,v.Z)(this,c)});k3.__NG_ELEMENT_ID__=function(){return function tS(){var c=xn(),p=Ho(Me().index,c);return(to(p)?p:c)[11]}()};var FC=(0,R.Z)(function c(){(0,v.Z)(this,c)});FC.\u0275prov=Be({token:FC,providedIn:"root",factory:function(){return null}});var T3=(0,R.Z)(function c(f){(0,v.Z)(this,c),this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}),Hi=new T3("14.3.0"),nS={},UC="ngOriginalError";function rS(c){return c[UC]}var xh=function(){function c(){(0,v.Z)(this,c),this._console=console}return(0,R.Z)(c,[{key:"handleError",value:function(p){var _=this._findOriginalError(p);this._console.error("ERROR",p),_&&this._console.error("ORIGINAL ERROR",_)}},{key:"_findOriginalError",value:function(p){for(var _=p&&rS(p);_&&rS(_);)_=rS(_);return _||null}}]),c}();function Dh(c){return c.ownerDocument.defaultView}function ly(c){return c.ownerDocument}function E3(c){return c.ownerDocument.body}function Pd(c){return c instanceof Function?c():c}function uy(c,f,p){for(var _=c.length;;){var C=c.indexOf(f,p);if(-1===C)return C;if(0===C||c.charCodeAt(C-1)<=32){var O=f.length;if(C+O===_||c.charCodeAt(C+O)<=32)return C}p=C+1}}var jC="ng-template";function n4(c,f,p){for(var _=0;_<c.length;){var C=c[_++];if(p&&"class"===C){if(-1!==uy((C=c[_]).toLowerCase(),f,0))return!0}else if(1===C){for(;_<c.length&&"string"==typeof(C=c[_++]);)if(C.toLowerCase()===f)return!0;return!1}}return!1}function O3(c){return 4===c.type&&c.value!==jC}function r4(c,f,p){return f===(4!==c.type||p?c.value:jC)}function Ah(c,f,p){for(var _=4,C=c.attrs||[],O=function x_(c){for(var f=0;f<c.length;f++){if(Do(c[f]))return f}return c.length}(C),Y=!1,ee=0;ee<f.length;ee++){var oe=f[ee];if("number"!=typeof oe){if(!Y)if(4&_){if(_=2|1&_,""!==oe&&!r4(c,oe,p)||""===oe&&1===f.length){if(Su(_))return!1;Y=!0}}else{var ve=8&_?oe:f[++ee];if(8&_&&null!==c.attrs){if(!n4(c.attrs,ve,p)){if(Su(_))return!1;Y=!0}continue}var nt=i4(8&_?"class":oe,C,O3(c),p);if(-1===nt){if(Su(_))return!1;Y=!0;continue}if(""!==ve){var dt=void 0;dt=nt>O?"":C[nt+1].toLowerCase();var kt=8&_?dt:null;if(kt&&-1!==uy(kt,ve,0)||2&_&&ve!==dt){if(Su(_))return!1;Y=!0}}}}else{if(!Y&&!Su(_)&&!Su(oe))return!1;if(Y&&Su(oe))continue;Y=!1,_=oe|1&_}}return Su(_)||Y}function Su(c){return 0==(1&c)}function i4(c,f,p,_){if(null===f)return-1;var C=0;if(_||!p){for(var O=!1;C<f.length;){var Y=f[C];if(Y===c)return C;if(3===Y||6===Y)O=!0;else{if(1===Y||2===Y){for(var ee=f[++C];"string"==typeof ee;)ee=f[++C];continue}if(4===Y)break;if(0===Y){C+=4;continue}}C+=O?1:2}return-1}return function a4(c,f){var p=c.indexOf(4);if(p>-1)for(p++;p<c.length;){var _=c[p];if("number"==typeof _)return-1;if(_===f)return p;p++}return-1}(f,c)}function oS(c,f){for(var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=0;_<f.length;_++)if(Ah(c,f[_],p))return!0;return!1}function s4(c,f){e:for(var p=0;p<f.length;p++){var _=f[p];if(c.length===_.length){for(var C=0;C<c.length;C++)if(c[C]!==_[C])continue e;return!0}}return!1}function P3(c,f){return c?":not("+f.trim()+")":f}function l4(c){for(var f=c[0],p=1,_=2,C="",O=!1;p<c.length;){var Y=c[p];if("string"==typeof Y)if(2&_){var ee=c[++p];C+="["+Y+(ee.length>0?'="'+ee+'"':"")+"]"}else 8&_?C+="."+Y:4&_&&(C+=" "+Y);else""!==C&&!Su(Y)&&(f+=P3(O,C),C=""),_=Y,O=O||!Su(_);p++}return""!==C&&(f+=P3(O,C)),f}var Hr={};function I3(c){R3(we(),xn(),ze()+c,!1)}function R3(c,f,p,_){if(!_)if(3==(3&f[2])){var O=c.preOrderCheckHooks;null!==O&&vf(f,O,p)}else{var Y=c.preOrderHooks;null!==Y&&n_(f,Y,0,p)}mt(p)}var L3={"\u0275\u0275defineInjectable":Be,"\u0275\u0275defineInjector":t,"\u0275\u0275inject":Ea,"\u0275\u0275invalidFactoryDep":vM,resolveForwardRef:te};function d4(c,f){var p=null,_=null;c.hasOwnProperty(Jt)||Object.defineProperty(c,Jt,{get:function(){if(null===p){var O=Za();p=O.compileInjectable(L3,"ng:///".concat(c.name,"/\u0275prov.js"),function p4(c,f){var p=f||{providedIn:null},_={name:c.name,type:c,typeArgumentCount:0,providedIn:p.providedIn};return(HC(p)||N3(p))&&void 0!==p.deps&&(_.deps=b5(p.deps)),HC(p)?_.useClass=p.useClass:function Z3(c){return f4 in c}(p)?_.useValue=p.useValue:N3(p)?_.useFactory=p.useFactory:function B3(c){return void 0!==c.useExisting}(p)&&(_.useExisting=p.useExisting),_}(c,f))}return p}}),c.hasOwnProperty(Je)||Object.defineProperty(c,Je,{get:function(){if(null===_){var O=Za();_=O.compileFactory(L3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:Hv(c),target:O.FactoryTarget.Injectable})}return _},configurable:!0})}var f4=N({provide:String,useValue:N});function HC(c){return void 0!==c.useClass}function N3(c){return void 0!==c.useFactory}var h4=Cf("Injectable",void 0,void 0,void 0,function(c,f){return d4(c,f)});function F3(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,C=aS(c,f,p,_);return C.resolveInjectorInitializers(),C}function aS(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,C=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,O=[p||tt,Mu(c)];return _=_||("object"==typeof c?void 0:X(c)),new Sh(O,f||$a(),_||null,C)}var bl=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,null,[{key:"create",value:function(p,_){var C;if(Array.isArray(p))return F3({name:""},_,p,"");var O=null!==(C=p.name)&&void 0!==C?C:"";return F3({name:O},p.parent,p.providers,O)}}]),c}();function D_(c){if(c.length>1){var f=function m4(c){for(var f=[],p=0;p<c.length;++p){if(f.indexOf(c[p])>-1)return f.push(c[p]),f;f.push(c[p])}return f}(c.slice().reverse());return" ("+f.map(function(_){return X(_.token)}).join(" -> ")+")"}return""}function GC(c,f,p,_){var C=[f],O=p(C),Y=_?function el(c,f){var p="".concat(c," caused by: ").concat(f instanceof Error?f.message:f),_=Error(p);return _[UC]=f,_}(O,_):Error(O);return Y.addKey=U3,Y.keys=C,Y.injectors=[c],Y.constructResolvingMessage=p,Y[UC]=_,Y}function U3(c,f){this.injectors.push(c),this.keys.push(f),this.message=this.constructResolvingMessage(this.keys)}function H3(c,f){for(var p=[],_=0,C=f.length;_<C;_++){var O=f[_];O&&0!=O.length?p.push(O.map(X).join(" ")):p.push("?")}return Error("Cannot resolve all parameters for '"+X(c)+"'("+p.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+X(c)+"' is decorated with Injectable.")}function Xr(c,f){return Error("Cannot mix multi providers and regular providers, got: ".concat(c," ").concat(f))}bl.THROW_IF_NOT_FOUND=Oc,bl.NULL=new ty,bl.\u0275prov=Be({token:bl,providedIn:"any",factory:function(){return Ea(w_)}}),bl.__NG_ELEMENT_ID__=-1;var Ff=function(){function c(f,p){if((0,v.Z)(this,c),this.token=f,this.id=p,!f)throw new fe(208,!1);this.displayName=X(this.token)}return(0,R.Z)(c,null,[{key:"get",value:function(p){return Zc.get(te(p))}},{key:"numberOfKeys",get:function(){return Zc.numberOfKeys}}]),c}(),z3=function(){function c(){(0,v.Z)(this,c),this._allKeys=new Map}return(0,R.Z)(c,[{key:"get",value:function(p){if(p instanceof Ff)return p;if(this._allKeys.has(p))return this._allKeys.get(p);var _=new Ff(p,Ff.numberOfKeys);return this._allKeys.set(p,_),_}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),c}(),Zc=new z3,sS=function(){function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.optional=p,this.visibility=_}return(0,R.Z)(c,null,[{key:"fromKey",value:function(p){return new c(p,!1,null)}}]),c}(),y4=[],W3=(0,R.Z)(function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.resolvedFactories=p,this.multiProvider=_,this.resolvedFactory=this.resolvedFactories[0]}),b4=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.factory=f,this.dependencies=p});function lS(c){var f,p;if(c.useClass){var _=te(c.useClass);f=jv().factory(_),p=WC(_)}else c.useExisting?(f=function(O){return O},p=[sS.fromKey(Ff.get(c.useExisting))]):c.useFactory?(f=c.useFactory,p=function V3(c,f){if(f){var p=f.map(function(_){return[_]});return f.map(function(_){return T4(c,_,p)})}return WC(c)}(c.useFactory,c.deps)):(f=function(){return c.useValue},p=y4);return new b4(f,p)}function C4(c){return new W3(Ff.get(c.provide),[lS(c)],c.multi||!1)}function w4(c){var _=function k4(c,f){for(var p=0;p<c.length;p++){var _=c[p],C=f.get(_.key.id);if(C){if(_.multiProvider!==C.multiProvider)throw Xr(C,_);if(_.multiProvider)for(var O=0;O<_.resolvedFactories.length;O++)C.resolvedFactories.push(_.resolvedFactories[O]);else f.set(_.key.id,_)}else{var Y=void 0;Y=_.multiProvider?new W3(_.key,_.resolvedFactories.slice(),_.multiProvider):_,f.set(_.key.id,Y)}}return f}(zC(c,[]).map(C4),new Map);return Array.from(_.values())}function zC(c,f){return c.forEach(function(p){if(p instanceof Lv)f.push({provide:p,useClass:p});else if(p&&"object"==typeof p&&void 0!==p.provide)f.push(p);else{if(!Array.isArray(p))throw function v4(c){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(c))}(p);zC(p,f)}}),f}function WC(c){var f=jv().parameters(c);if(!f)return[];if(f.some(function(p){return null==p}))throw H3(c,f);return f.map(function(p){return T4(c,p,f)})}function T4(c,f,p){var _=null,C=!1;if(!Array.isArray(f))return cy(f instanceof Uv?f.token:f,C,null);for(var O=null,Y=0;Y<f.length;++Y){var ee=f[Y];ee instanceof Lv?_=ee:ee instanceof Uv?_=ee.token:ee instanceof u_?C=!0:ee instanceof hh||ee instanceof Sd?O=ee:ee instanceof io&&(_=ee)}if(null!=(_=te(_)))return cy(_,C,O);throw H3(c,p)}function cy(c,f,p){return new sS(Ff.get(c),f,p)}var dy={},Y3=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,null,[{key:"resolve",value:function(p){return w4(p)}},{key:"resolveAndCreate",value:function(p,_){var C=c.resolve(p);return c.fromResolvedProviders(C,_)}},{key:"fromResolvedProviders",value:function(p,_){return new K3(p,_)}}]),c}(),K3=function(){function c(f,p){(0,v.Z)(this,c),this._constructionCounter=0,this._providers=f,this.parent=p||null;var _=f.length;this.keyIds=[],this.objs=[];for(var C=0;C<_;C++)this.keyIds[C]=f[C].key.id,this.objs[C]=dy}return(0,R.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc;return this._getByKey(Ff.get(p),null,_)}},{key:"resolveAndCreateChild",value:function(p){var _=Y3.resolve(p);return this.createChildFromResolved(_)}},{key:"createChildFromResolved",value:function(p){var _=new c(p);return _.parent=this,_}},{key:"resolveAndInstantiate",value:function(p){return this.instantiateResolved(Y3.resolve([p])[0])}},{key:"instantiateResolved",value:function(p){return this._instantiateProvider(p)}},{key:"getProviderAtIndex",value:function(p){if(p<0||p>=this._providers.length)throw function G3(c){return Error("Index ".concat(c," is out-of-bounds."))}(p);return this._providers[p]}},{key:"_new",value:function(p){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function _4(c,f){return GC(c,f,function(p){return"Cannot instantiate cyclic dependency!".concat(D_(p))})}(this,p.key);return this._instantiateProvider(p)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(p){if(p.multiProvider){for(var _=[],C=0;C<p.resolvedFactories.length;++C)_[C]=this._instantiate(p,p.resolvedFactories[C]);return _}return this._instantiate(p,p.resolvedFactories[0])}},{key:"_instantiate",value:function(p,_){var Y,ee,C=this,O=_.factory;try{Y=_.dependencies.map(function(oe){return C._getByReflectiveDependency(oe)})}catch(oe){throw oe.addKey&&oe.addKey(this,p.key),oe}try{ee=O.apply(void 0,(0,E.Z)(Y))}catch(oe){throw function g4(c,f,p,_){return GC(c,_,function(C){var O=X(C[0].token);return"".concat(f.message,": Error during instantiation of ").concat(O,"!").concat(D_(C),".")},f)}(this,oe,oe.stack,p.key)}return ee}},{key:"_getByReflectiveDependency",value:function(p){return this._getByKey(p.key,p.visibility,p.optional?null:Oc)}},{key:"_getByKey",value:function(p,_,C){return p===c.INJECTOR_KEY?this:_ instanceof hh?this._getByKeySelf(p,C):this._getByKeyDefault(p,C,_)}},{key:"_getObjByKeyId",value:function(p){for(var _=0;_<this.keyIds.length;_++)if(this.keyIds[_]===p)return this.objs[_]===dy&&(this.objs[_]=this._new(this._providers[_])),this.objs[_];return dy}},{key:"_throwOrNull",value:function(p,_){if(_!==Oc)return _;throw function j3(c,f){return GC(c,f,function(p){var _=X(p[0].token);return"No provider for ".concat(_,"!").concat(D_(p))})}(this,p)}},{key:"_getByKeySelf",value:function(p,_){var C=this._getObjByKeyId(p.id);return C!==dy?C:this._throwOrNull(p,_)}},{key:"_getByKeyDefault",value:function(p,_,C){var O;for(O=C instanceof Sd?this.parent:this;O instanceof c;){var Y=O,ee=Y._getObjByKeyId(p.id);if(ee!==dy)return ee;O=Y.parent}return null!==O?O.get(p.token,_):this._throwOrNull(p,_)}},{key:"displayName",get:function(){var p=function M4(c,f){for(var p=[],_=0;_<c._providers.length;++_)p[_]=f(c.getProviderAtIndex(_));return p}(this,function(_){return' "'+_.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: [".concat(p,"])")}},{key:"toString",value:function(){return this.displayName}}]),c}();function A_(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default,p=xn();if(null===p)return Ea(c,f);var _=Me();return bf(_,p,te(c),f)}function q3(){throw new Error("invalid")}function Id(c,f){return c<<17|f<<2}function tl(c){return c>>17&32767}function J3(c){return 2==(2&c)}function Oh(c){return 2|c}function Eu(c){return(131068&c)>>2}function O_(c,f){return-131069&c|f<<2}function Q3(c){return 1==(1&c)}function cS(c){return 1|c}K3.INJECTOR_KEY=Ff.get(bl);function c6(c,f){var p=c.contentQueries;if(null!==p)for(var _=0;_<p.length;_+=2){var C=p[_],O=p[_+1];if(-1!==O){var Y=c.data[O];xs(C),Y.contentQueries(2,f[O],O)}}}function JC(c,f,p,_,C,O,Y,ee,oe,ve,je){var nt=f.blueprint.slice();return nt[0]=C,nt[2]=76|_,(null!==je||c&&1024&c[2])&&(nt[2]|=1024),nh(nt),nt[3]=nt[15]=c,nt[8]=p,nt[10]=Y||c&&c[10],nt[11]=ee||c&&c[11],nt[12]=oe||c&&c[12]||null,nt[9]=ve||c&&c[9]||null,nt[6]=O,nt[20]=function A5(){return D5++}(),nt[21]=je,nt[16]=2==f.type?c[16]:nt,nt}function _y(c,f,p,_,C){var O=c.data[f];if(null===O)O=P_(c,f,p,_,C),function $m(){return Cr.lFrame.inI18n}()&&(O.flags|=64);else if(64&O.type){O.type=p,O.value=_,O.attrs=C;var Y=pt();O.injectorIndex=null===Y?-1:Y.injectorIndex}return Yt(O,!0),O}function P_(c,f,p,_,C){var O=Oe(),Y=In(),ee=Y?O:O&&O.parent,oe=c.data[f]=function g6(c,f,p,_,C,O){var Y=f?f.injectorIndex:-1;return{type:p,index:_,insertBeforeIndex:null,injectorIndex:Y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:C,attrs:O,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:f,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ee,p,f,_,C);return null===c.firstChild&&(c.firstChild=oe),null!==O&&(Y?null==O.child&&null!==oe.parent&&(O.child=oe):null===O.next&&(O.next=oe)),oe}function I_(c,f,p,_){if(0===p)return-1;for(var C=f.length,O=0;O<p;O++)f.push(_),c.blueprint.push(_),c.data.push(null);return C}function f6(c,f,p){wd(f);try{var _=c.viewQuery;null!==_&&wS(1,_,p);var C=c.template;null!==C&&p6(c,f,C,1,p),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&c6(c,f),c.staticViewQueries&&wS(2,c.viewQuery,p);var O=c.components;null!==O&&function _V(c,f){for(var p=0;p<f.length;p++)W4(c,f[p])}(f,O)}catch(Y){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),Y}finally{f[2]&=-5,_e()}}function QC(c,f,p,_){var C=f[2];if(128!=(128&C)){wd(f);try{nh(f),nc(c.bindingStartIndex),null!==p&&p6(c,f,p,2,_);var Y=3==(3&C);if(Y){var ee=c.preOrderCheckHooks;null!==ee&&vf(f,ee,null)}else{var oe=c.preOrderHooks;null!==oe&&n_(f,oe,0,null),Pv(f,0)}if(function M6(c){for(var f=MC(c);null!==f;f=vh(f))if(f[2])for(var p=f[9],_=0;_<p.length;_++){var C=p[_],O=C[3];0==(512&C[2])&&Ms(O,1),C[2]|=512}}(f),function T6(c){for(var f=MC(c);null!==f;f=vh(f))for(var p=10;p<f.length;p++){var _=f[p],C=_[1];Ts(_)&&QC(C,_,C.template,_[8])}}(f),null!==c.contentQueries&&c6(c,f),Y){var ve=c.contentCheckHooks;null!==ve&&vf(f,ve)}else{var je=c.contentHooks;null!==je&&n_(f,je,1),Pv(f,1)}!function u6(c,f){var p=c.hostBindingOpCodes;if(null!==p)try{for(var _=0;_<p.length;_++){var C=p[_];if(C<0)mt(~C);else{var O=C,Y=p[++_],ee=p[++_];oh(Y,O),ee(2,f[O])}}}finally{mt(-1)}}(c,f);var nt=c.components;null!==nt&&function d6(c,f){for(var p=0;p<f.length;p++)S6(c,f[p])}(f,nt);var dt=c.viewQuery;if(null!==dt&&wS(2,dt,_),Y){var kt=c.viewCheckHooks;null!==kt&&vf(f,kt)}else{var Xt=c.viewHooks;null!==Xt&&n_(f,Xt,2),Pv(f,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),f[2]&=-41,512&f[2]&&(f[2]&=-513,Ms(f[3],-1))}finally{_e()}}}function p6(c,f,p,_,C){var O=ze(),Y=2&_;try{mt(-1),Y&&f.length>22&&R3(c,f,22,!1),Br(Y?2:0,C),p(_,C)}finally{mt(O),Br(Y?3:1,C)}}function h6(c,f,p){if(hu(f))for(var _=f.directiveStart,C=f.directiveEnd,O=_;O<C;O++){var Y=c.data[O];Y.contentQueries&&Y.contentQueries(1,p[O],O)}}function mS(c,f,p){!Ss()||(function N4(c,f,p,_){var C=p.directiveStart,O=p.directiveEnd;c.firstCreatePass||sh(p,f),Os(_,f);for(var Y=p.initialInputs,ee=C;ee<O;ee++){var oe=c.data[ee],ve=en(oe);ve&&H4(f,p,oe);var je=i_(f,c,ee,p);if(Os(je,f),null!==Y&&G4(f,ee-C,je,oe,p,Y),ve)Ho(p.index,f)[8]=je}}(c,f,p,xo(p,f)),128==(128&p.flags)&&function B4(c,f,p){var _=p.directiveStart,C=p.directiveEnd,O=p.index,Y=function t_(){return Cr.lFrame.currentDirectiveIndex}();try{mt(O);for(var ee=_;ee<C;ee++){var oe=c.data[ee],ve=f[ee];Ac(ee),(null!==oe.hostBindings||0!==oe.hostVars||null!==oe.hostAttrs)&&b6(oe,ve)}}finally{mt(-1),Ac(Y)}}(c,f,p))}function _S(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xo,_=f.localNames;if(null!==_)for(var C=f.index+1,O=0;O<_.length;O+=2){var Y=_[O+1],ee=-1===Y?p(f,c):c[Y];c[C++]=ee}}function gS(c){var f=c.tView;if(null===f||f.incompleteFirstPass){return c.tView=vS(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return f}function vS(c,f,p,_,C,O,Y,ee,oe,ve){var je=22+_,nt=je+C,dt=function m6(c,f){for(var p=[],_=0;_<f;_++)p.push(_<c?null:Hr);return p}(je,nt),kt="function"==typeof ve?ve():ve;return dt[1]={type:c,blueprint:dt,template:p,queries:null,viewQuery:ee,declTNode:f,data:dt.slice().fill(null,je),bindingStartIndex:je,expandoStartIndex:nt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof O?O():O,pipeRegistry:"function"==typeof Y?Y():Y,firstChild:null,schemas:oe,consts:kt,incompleteFirstPass:!1}}function yS(c,f,p,_){var C=kS(f);null===p?C.push(_):(C.push(p),c.firstCreatePass&&n1(c).push(_,C.length-1))}function v6(c,f,p){for(var _ in c)if(c.hasOwnProperty(_)){p=null===p?{}:p;var C=c[_];p.hasOwnProperty(_)?p[_].push(f,C):p[_]=[f,C]}return p}function y6(c,f){for(var p=f.directiveStart,_=f.directiveEnd,C=c.data,O=f.attrs,Y=[],ee=null,oe=null,ve=p;ve<_;ve++){var je=C[ve],nt=je.inputs,dt=null===O||O3(f)?null:z4(nt,O);Y.push(dt),ee=v6(nt,ve,ee),oe=v6(je.outputs,ve,oe)}null!==ee&&(ee.hasOwnProperty("class")&&(f.flags|=16),ee.hasOwnProperty("style")&&(f.flags|=32)),f.initialInputs=Y,f.inputs=ee,f.outputs=oe}function Kl(c,f,p,_,C,O,Y,ee){var je,oe=xo(f,p),ve=f.inputs;!ee&&null!=ve&&(je=ve[_])?(TS(c,p,je,_,C),Ki(f)&&XC(p,f.index)):3&f.type?(_=function R4(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(_),C=null!=Y?Y(C,f.value||"",_):C,O.setProperty(oe,_,C)):f.type}function XC(c,f){var p=Ho(f,c);16&p[2]||(p[2]|=32)}function gy(c,f,p,_){var C=!1;if(Ss()){var O=function F4(c,f,p){var _=c.directiveRegistry,C=null;if(_)for(var O=0;O<_.length;O++){var Y=_[O];oS(p,Y.selectors,!1)&&(C||(C=[]),Ds(sh(p,f),c,Y.type),en(Y)?(C6(c,p),C.unshift(Y)):C.push(Y))}return C}(c,f,p),Y=null===_?null:{"":-1};if(null!==O){C=!0,w6(p,c.data.length,O.length);for(var ee=0;ee<O.length;ee++){var oe=O[ee];oe.providersResolver&&oe.providersResolver(oe)}for(var ve=!1,je=!1,nt=I_(c,f,O.length,null),dt=0;dt<O.length;dt++){var kt=O[dt];p.mergedAttrs=ds(p.mergedAttrs,kt.hostAttrs),k6(c,p,f,nt,kt),j4(nt,kt,Y),null!==kt.contentQueries&&(p.flags|=8),(null!==kt.hostBindings||null!==kt.hostAttrs||0!==kt.hostVars)&&(p.flags|=128);var Xt=kt.type.prototype;!ve&&(Xt.ngOnChanges||Xt.ngOnInit||Xt.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(p.index),ve=!0),!je&&(Xt.ngOnChanges||Xt.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(p.index),je=!0),nt++}y6(c,p)}Y&&function U4(c,f,p){if(f)for(var _=c.localNames=[],C=0;C<f.length;C+=2){var O=p[f[C+1]];if(null==O)throw new fe(-301,!1);_.push(f[C],O)}}(p,_,Y)}return p.mergedAttrs=ds(p.mergedAttrs,p.attrs),C}function Rd(c,f,p,_,C,O){var Y=O.hostBindings;if(Y){var ee=c.hostBindingOpCodes;null===ee&&(ee=c.hostBindingOpCodes=[]);var oe=~f.index;(function Z4(c){for(var f=c.length;f>0;){var p=c[--f];if("number"==typeof p&&p<0)return p}return 0})(ee)!=oe&&ee.push(oe),ee.push(_,C,Y)}}function b6(c,f){null!==c.hostBindings&&c.hostBindings(1,f)}function C6(c,f){f.flags|=2,(c.components||(c.components=[])).push(f.index)}function j4(c,f,p){if(p){if(f.exportAs)for(var _=0;_<f.exportAs.length;_++)p[f.exportAs[_]]=c;en(f)&&(p[""]=c)}}function w6(c,f,p){c.flags|=1,c.directiveStart=f,c.directiveEnd=f+p,c.providerIndexes=f}function k6(c,f,p,_,C){c.data[_]=C;var O=C.factory||(C.factory=go(C.type)),Y=new me(O,en(C),A_);c.blueprint[_]=Y,p[_]=Y,Rd(c,f,0,_,I_(c,p,C.hostVars,Hr),C)}function H4(c,f,p){var _=xo(f,c),C=gS(p),O=c[10],Y=cc(c,JC(c,C,null,p.onPush?32:16,_,f,O,O.createRenderer(_,p),null,null,null));c[f.index]=Y}function uc(c,f,p,_,C,O){var Y=xo(c,f);Ls(f[11],Y,O,c.value,p,_,C)}function Ls(c,f,p,_,C,O,Y){if(null==O)c.removeAttribute(f,C,p);else{var ee=null==Y?de(O):Y(O,_||"",C);c.setAttribute(f,C,ee,p)}}function G4(c,f,p,_,C,O){var Y=O[f];if(null!==Y)for(var ee=_.setInput,oe=0;oe<Y.length;){var ve=Y[oe++],je=Y[oe++],nt=Y[oe++];null!==ee?_.setInput(p,nt,ve,je):p[je]=nt}}function z4(c,f){for(var p=null,_=0;_<f.length;){var C=f[_];if(0!==C)if(5!==C){if("number"==typeof C)break;c.hasOwnProperty(C)&&(null===p&&(p=[]),p.push(C,c[C],f[_+1])),_+=2}else _+=2;else _+=4}return p}function CS(c,f,p,_){return new Array(c,!0,!1,f,null,0,_,p,null,null)}function S6(c,f){var p=Ho(f,c);if(Ts(p)){var _=p[1];48&p[2]?QC(_,p,_.template,p[8]):p[5]>0&&$C(p)}}function $C(c){for(var f=MC(c);null!==f;f=vh(f))for(var p=10;p<f.length;p++){var _=f[p];if(Ts(_))if(512&_[2]){var C=_[1];QC(C,_,C.template,_[8])}else _[5]>0&&$C(_)}var Y=c[1].components;if(null!==Y)for(var ee=0;ee<Y.length;ee++){var oe=Ho(Y[ee],c);Ts(oe)&&oe[5]>0&&$C(oe)}}function W4(c,f){var p=Ho(f,c),_=p[1];(function vy(c,f){for(var p=f.length;p<c.blueprint.length;p++)f.push(c.blueprint[p])})(_,p),f6(_,p,p[8])}function cc(c,f){return c[13]?c[14][4]=f:c[13]=f,c[14]=f,f}function e1(c){for(;c;){c[2]|=32;var f=Yv(c);if(Dr(c)&&!f)return c;c=f}return null}function t1(c,f,p){var _=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],C=f[10],O=!1;!O&&C.begin&&C.begin();try{QC(c,f,c.template,p)}catch(Y){throw _&&x6(f,Y),Y}finally{!O&&C.end&&C.end()}}function wS(c,f,p){xs(0),f(c,p)}function kS(c){return c[7]||(c[7]=[])}function n1(c){return c.cleanup||(c.cleanup=[])}function E6(c,f,p){return(null===c||en(c))&&(p=function ks(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(p[f.index])),p[11]}function x6(c,f){var p=c[9],_=p?p.get(xh,null):null;_&&_.handleError(f)}function TS(c,f,p,_,C){for(var O=0;O<p.length;){var Y=p[O++],ee=p[O++],oe=f[Y],ve=c.data[Y];null!==ve.setInput?ve.setInput(oe,C,_,ee):oe[ee]=C}}function es(c,f,p){var _=Dc(f,c);JI(c[11],_,p)}function r1(c,f,p){var _=p?c.styles:null,C=p?c.classes:null,O=0;if(null!==f)for(var Y=0;Y<f.length;Y++){var ee=f[Y];if("number"==typeof ee)O=ee;else if(1==O)C=$(C,ee);else if(2==O){_=$(_,ee+": "+f[++Y]+";")}}p?c.styles=_:c.stylesWithoutHost=_,p?c.classes=C:c.classesWithoutHost=C}function i1(c,f,p,_){for(var C=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==p;){var O=f[p.index];if(null!==O&&_.push(po(O)),Ai(O))for(var Y=10;Y<O.length;Y++){var ee=O[Y],oe=ee[1].firstChild;null!==oe&&i1(ee[1],ee,oe,_)}var ve=p.type;if(8&ve)i1(c,f,p.child,_);else if(32&ve)for(var je=PM(p,f),nt=void 0;nt=je();)_.push(nt);else if(16&ve){var dt=BM(f,p);if(Array.isArray(dt))_.push.apply(_,(0,E.Z)(dt));else{var kt=Yv(f[16]);i1(kt[1],kt,dt,_,!0)}}p=C?p.projectionNext:p.next}return _}var Ih=function(){function c(f,p){(0,v.Z)(this,c),this._lView=f,this._cdRefInjectingView=p,this._appRef=null,this._attachedToViewContainer=!1}return(0,R.Z)(c,[{key:"rootNodes",get:function(){var p=this._lView,_=p[1];return i1(_,p,_.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(p){this._lView[8]=p}},{key:"destroyed",get:function(){return 128==(128&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var p=this._lView[3];if(Ai(p)){var _=p[8],C=_?_.indexOf(this):-1;C>-1&&(RM(p,C),dh(_,C))}this._attachedToViewContainer=!1}LM(this._lView[1],this._lView)}},{key:"onDestroy",value:function(p){yS(this._lView[1],this._lView,null,p)}},{key:"markForCheck",value:function(){e1(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-65}},{key:"reattach",value:function(){this._lView[2]|=64}},{key:"detectChanges",value:function(){t1(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new fe(902,!1);this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function XI(c,f){Yl(c,f,f[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(p){if(this._attachedToViewContainer)throw new fe(902,!1);this._appRef=p}}]),c}(),MS=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_){var C;return(0,v.Z)(this,p),(C=f.call(this,_))._view=_,C}return(0,R.Z)(p,[{key:"detectChanges",value:function(){var C=this._view;t1(C[1],C,C[8],!1)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),p}(Ih),o1=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_){var C;return(0,v.Z)(this,p),(C=f.call(this)).ngModule=_,C}return(0,R.Z)(p,[{key:"resolveComponentFactory",value:function(C){var O=Vn(C);return new R_(O,this.ngModule)}}]),p}(Bf);function D6(c){var f=[];for(var p in c)if(c.hasOwnProperty(p)){var _=c[p];f.push({propName:_,templateName:p})}return f}var Y4=function(){function c(f,p){(0,v.Z)(this,c),this.injector=f,this.parentInjector=p}return(0,R.Z)(c,[{key:"get",value:function(p,_,C){var O=this.injector.get(p,nS,C);return O!==nS||_===nS?O:this.parentInjector.get(p,_,C)}}]),c}(),R_=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C){var O;return(0,v.Z)(this,p),(O=f.call(this)).componentDef=_,O.ngModule=C,O.componentType=_.type,O.selector=function u4(c){return c.map(l4).join(",")}(_.selectors),O.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],O.isBoundToModule=!!C,O}return(0,R.Z)(p,[{key:"inputs",get:function(){return D6(this.componentDef.inputs)}},{key:"outputs",get:function(){return D6(this.componentDef.outputs)}},{key:"create",value:function(C,O,Y,ee){var oe=(ee=ee||this.ngModule)instanceof Is?ee:null==ee?void 0:ee.injector;oe&&null!==this.componentDef.getStandaloneInjector&&(oe=this.componentDef.getStandaloneInjector(oe)||oe);var ve=oe?new Y4(C,oe):C,je=ve.get(eS,null);if(null===je)throw new fe(407,!1);var er,Cn,nt=ve.get(FC,null),dt=je.createRenderer(null,this.componentDef),kt=this.componentDef.selectors[0][0]||"div",Xt=Y?function _6(c,f,p){var _=p===Sn.ShadowDom;return c.selectRootElement(f,_)}(dt,Y,this.componentDef.encapsulation):QI(dt,kt,function V4(c){var f=c.toLowerCase();return"svg"===f?"svg":"math"===f?mf:null}(kt)),_n=this.componentDef.onPush?288:272,Fn=vS(0,null,null,1,0,null,null,null,null,null),Jn=JC(null,Fn,null,_n,null,null,je,dt,nt,ve,null);wd(Jn);try{var Or=function q4(c,f,p,_,C,O){var Y=p[1],ee=22;p[ee]=c;var oe=_y(Y,ee,2,"#host",null),ve=oe.mergedAttrs=f.hostAttrs;null!==ve&&(r1(oe,ve,!0),null!==c&&(Qr(C,c,ve),null!==oe.classes&&AC(C,c,oe.classes),null!==oe.styles&&Ed(C,c,oe.styles)));var je=_.createRenderer(c,f),nt=JC(p,gS(f),null,f.onPush?32:16,p[ee],oe,_,je,O||null,null,null);return Y.firstCreatePass&&(Ds(sh(oe,p),Y,f.type),C6(Y,oe),w6(oe,p.length,1)),cc(p,nt),p[ee]=nt}(Xt,this.componentDef,Jn,je,dt);if(Xt)if(Y)Qr(dt,Xt,["ng-version",Hi.full]);else{var ei=function c4(c){for(var f=[],p=[],_=1,C=2;_<c.length;){var O=c[_];if("string"==typeof O)2===C?""!==O&&f.push(O,c[++_]):8===C&&p.push(O);else{if(!Su(C))break;C=O}_++}return{attrs:f,classes:p}}(this.componentDef.selectors[0]),Ei=ei.attrs,ms=ei.classes;Ei&&Qr(dt,Xt,Ei),ms&&ms.length>0&&AC(dt,Xt,ms.join(" "))}if(Cn=Js(Fn,22),void 0!==O)for(var Bs=Cn.projection=[],Fs=0;Fs<this.ngContentSelectors.length;Fs++){var Bd=O[Fs];Bs.push(null!=Bd?Array.from(Bd):null)}er=function J4(c,f,p,_){var C=p[1],O=function bS(c,f,p){var _=Me();c.firstCreatePass&&(p.providersResolver&&p.providersResolver(p),k6(c,_,f,I_(c,f,1,null),p),y6(c,_));var O=i_(f,c,_.directiveStart,_);Os(O,f);var Y=xo(_,f);return Y&&Os(Y,f),O}(C,p,f);if(c[8]=p[8]=O,null!==_){var ee,Y=(0,T.Z)(_);try{for(Y.s();!(ee=Y.n()).done;){(0,ee.value)(O,f)}}catch(dt){Y.e(dt)}finally{Y.f()}}if(f.contentQueries){var ve=Me();f.contentQueries(1,O,ve.directiveStart)}var je=Me();if(C.firstCreatePass&&(null!==f.hostBindings||null!==f.hostAttrs)){mt(je.index),Rd(p[1],je,0,je.directiveStart,je.directiveEnd,f),b6(f,O)}return O}(Or,this.componentDef,Jn,[Q4]),f6(Fn,Jn,null)}finally{_e()}return new K4(this.componentType,er,S_(Cn,Jn),Jn,Cn)}}]),p}(BC);new o1;var K4=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O,Y,ee){var oe;return(0,v.Z)(this,p),(oe=f.call(this)).location=O,oe._rootLView=Y,oe._tNode=ee,oe.instance=C,oe.hostView=oe.changeDetectorRef=new MS(Y),oe.componentType=_,oe}return(0,R.Z)(p,[{key:"setInput",value:function(C,O){var ee,Y=this._tNode.inputs;if(null!==Y&&(ee=Y[C])){var oe=this._rootLView;TS(oe[1],oe,ee,C,O),XC(oe,this._tNode.index)}else{}}},{key:"injector",get:function(){return new qr(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(C){this.hostView.onDestroy(C)}}]),p}(Q5);function Q4(){var c=Me();Ar(xn()[1],c)}function O6(c){return Object.getPrototypeOf(c.prototype).constructor}function SS(c){for(var f=O6(c.type),p=!0,_=[c];f;){var C=void 0;if(en(c))C=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new fe(903,!1);C=f.\u0275dir}if(C){if(p){_.push(C);var O=c;O.inputs=ES(c.inputs),O.declaredInputs=ES(c.declaredInputs),O.outputs=ES(c.outputs);var Y=C.hostBindings;Y&&P6(c,Y);var ee=C.viewQuery,oe=C.contentQueries;if(ee&&$4(c,ee),oe&&e8(c,oe),F(c.inputs,C.inputs),F(c.declaredInputs,C.declaredInputs),F(c.outputs,C.outputs),en(C)&&C.data.animation){var ve=c.data;ve.animation=(ve.animation||[]).concat(C.data.animation)}}var je=C.features;if(je)for(var nt=0;nt<je.length;nt++){var dt=je[nt];dt&&dt.ngInherit&&dt(c),dt===SS&&(p=!1)}}f=Object.getPrototypeOf(f)}!function X4(c){for(var f=0,p=null,_=c.length-1;_>=0;_--){var C=c[_];C.hostVars=f+=C.hostVars,C.hostAttrs=ds(C.hostAttrs,p=ds(p,C.hostAttrs))}}(_)}function ES(c){return c===xt?{}:c===tt?[]:c}function $4(c,f){var p=c.viewQuery;c.viewQuery=p?function(_,C){f(_,C),p(_,C)}:f}function e8(c,f){var p=c.contentQueries;c.contentQueries=p?function(_,C,O){f(_,C,O),p(_,C,O)}:f}function P6(c,f){var p=c.hostBindings;c.hostBindings=p?function(_,C){f(_,C),p(_,C)}:f}var t8=["providersResolver"],n8=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function r8(c){var f=O6(c.type),p=void 0;p=en(c)?f.\u0275cmp:f.\u0275dir;var O,_=c,C=(0,T.Z)(t8);try{for(C.s();!(O=C.n()).done;){var Y=O.value;_[Y]=p[Y]}}catch(je){C.e(je)}finally{C.f()}if(en(p)){var oe,ee=(0,T.Z)(n8);try{for(ee.s();!(oe=ee.n()).done;){var ve=oe.value;_[ve]=p[ve]}}catch(je){ee.e(je)}finally{ee.f()}}}var a1=null;function Rh(){if(!a1){var c=hn.Symbol;if(c&&c.iterator)a1=c.iterator;else for(var f=Object.getOwnPropertyNames(Map.prototype),p=0;p<f.length;++p){var _=f[p];"entries"!==_&&"size"!==_&&Map.prototype[_]===Map.prototype.entries&&(a1=_)}}return a1}function yy(c){return!!xS(c)&&(Array.isArray(c)||!(c instanceof Map)&&Rh()in c)}function xS(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function Bc(c,f,p){return c[f]=p}function by(c,f){return c[f]}function Zs(c,f,p){var _=c[f];return!Object.is(_,p)&&(c[f]=p,!0)}function Ld(c,f,p,_){var C=Zs(c,f,p);return Zs(c,f+1,_)||C}function s1(c,f,p,_,C){var O=Ld(c,f,p,_);return Zs(c,f+2,C)||O}function Du(c,f,p,_,C,O){var Y=Ld(c,f,p,_);return Ld(c,f+2,C,O)||Y}function l1(c,f,p,_){var C=xn();if(Zs(C,Ta(),f)){we();uc(Mt(),C,c,f,p,_)}return l1}function Gf(c,f){for(var p=!1,_=Qa(),C=1;C<f.length;C+=2)p=Zs(c,_++,f[C])||p;if(nc(_),!p)return Hr;for(var O=f[0],Y=1;Y<f.length;Y+=2)O+=de(f[Y])+f[Y+1];return O}function L_(c,f,p,_){return Zs(c,Ta(),p)?f+de(p)+_:Hr}function ql(c,f,p,_,C,O){var ee=Ld(c,Qa(),p,C);return cs(2),ee?f+de(p)+_+de(C)+O:Hr}function Lh(c,f,p,_,C,O,Y,ee){var ve=s1(c,Qa(),p,C,Y);return cs(3),ve?f+de(p)+_+de(C)+O+de(Y)+ee:Hr}function Z_(c,f,p,_,C,O,Y,ee,oe,ve){var nt=Du(c,Qa(),p,C,Y,oe);return cs(4),nt?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve:Hr}function N_(c,f,p,_,C,O,Y,ee,oe,ve,je,nt){var dt=Qa(),kt=Du(c,dt,p,C,Y,oe);return kt=Zs(c,dt+4,je)||kt,cs(5),kt?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(je)+nt:Hr}function Zh(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt){var Xt=Qa(),_n=Du(c,Xt,p,C,Y,oe);return _n=Ld(c,Xt+4,je,dt)||_n,cs(6),_n?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(je)+nt+de(dt)+kt:Hr}function B_(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n){var Fn=Qa(),Jn=Du(c,Fn,p,C,Y,oe);return Jn=s1(c,Fn+4,je,dt,Xt)||Jn,cs(7),Jn?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(je)+nt+de(dt)+kt+de(Xt)+_n:Hr}function F_(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn){var er=Qa(),Cn=Du(c,er,p,C,Y,oe);return Cn=Du(c,er+4,je,dt,Xt,Fn)||Cn,cs(8),Cn?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(je)+nt+de(dt)+kt+de(Xt)+_n+de(Fn)+Jn:Hr}function I6(c,f,p,_,C,O){var Y=xn(),ee=L_(Y,f,p,_);ee!==Hr&&uc(Mt(),Y,c,ee,C,O);return I6}function DS(c,f,p,_,C,O,Y,ee){var oe=xn(),ve=ql(oe,f,p,_,C,O);ve!==Hr&&uc(Mt(),oe,c,ve,Y,ee);return DS}function u1(c,f,p,_,C,O,Y,ee,oe,ve){var je=xn(),nt=Lh(je,f,p,_,C,O,Y,ee);nt!==Hr&&uc(Mt(),je,c,nt,oe,ve);return u1}function AS(c,f,p,_,C,O,Y,ee,oe,ve,je,nt){var dt=xn(),kt=Z_(dt,f,p,_,C,O,Y,ee,oe,ve);kt!==Hr&&uc(Mt(),dt,c,kt,je,nt);return AS}function OS(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt){var Xt=xn(),_n=N_(Xt,f,p,_,C,O,Y,ee,oe,ve,je,nt);_n!==Hr&&uc(Mt(),Xt,c,_n,dt,kt);return OS}function Nh(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n){var Fn=xn(),Jn=Zh(Fn,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt);Jn!==Hr&&uc(Mt(),Fn,c,Jn,Xt,_n);return Nh}function R6(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn){var er=xn(),Cn=B_(er,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n);Cn!==Hr&&uc(Mt(),er,c,Cn,Fn,Jn);return R6}function s8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn,er,Cn){var Or=xn(),ei=F_(Or,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn);ei!==Hr&&uc(Mt(),Or,c,ei,er,Cn);return s8}function L6(c,f,p,_){var C=xn(),O=Gf(C,f);O!==Hr&&uc(Mt(),C,c,O,p,_);return L6}function N6(c,f,p,_,C,O,Y,ee){var oe=xn(),ve=we(),je=c+22,nt=ve.firstCreatePass?function l8(c,f,p,_,C,O,Y,ee,oe){var ve=f.consts,je=_y(f,c,4,Y||null,Ja(ve,ee));gy(f,p,je,Ja(ve,oe)),Ar(f,je);var nt=je.tViews=vS(2,je,_,C,O,f.directiveRegistry,f.pipeRegistry,null,f.schemas,ve);return null!==f.queries&&(f.queries.template(f,je),nt.queries=f.queries.embeddedTView(je)),je}(je,ve,oe,f,p,_,C,O,Y):ve.data[je];Yt(nt,!1);var dt=oe[11].createComment("");xf(ve,oe,dt,nt),Os(dt,oe),cc(oe,oe[je]=CS(dt,oe,dt,nt)),tn(nt)&&mS(ve,oe,nt),null!=Y&&_S(oe,nt,ee)}function PS(c){return pa(function tc(){return Cr.lFrame.contextLView}(),22+c)}function U_(c,f,p){var _=xn();Zs(_,Ta(),f)&&Kl(we(),Mt(),_,c,f,_[11],p,!1);return U_}function c1(c,f,p,_,C){var Y=C?"class":"style";TS(c,p,f.inputs[Y],Y,_)}function d1(c,f,p,_){var C=xn(),O=we(),Y=22+c,ee=C[11],oe=C[Y]=QI(ee,f,function $s(){return Cr.lFrame.currentNamespace}()),ve=O.firstCreatePass?function c8(c,f,p,_,C,O,Y){var ee=f.consts,ve=_y(f,c,2,C,Ja(ee,O));return gy(f,p,ve,Ja(ee,Y)),null!==ve.attrs&&r1(ve,ve.attrs,!1),null!==ve.mergedAttrs&&r1(ve,ve.mergedAttrs,!0),null!==f.queries&&f.queries.elementStart(f,ve),ve}(Y,O,C,0,f,p,_):O.data[Y];Yt(ve,!0);var je=ve.mergedAttrs;null!==je&&Qr(ee,oe,je);var nt=ve.classes;null!==nt&&AC(ee,oe,nt);var dt=ve.styles;return null!==dt&&Ed(ee,oe,dt),64!=(64&ve.flags)&&xf(O,C,oe,ve),0===function Ov(){return Cr.lFrame.elementDepthCount}()&&Os(oe,C),function ih(){Cr.lFrame.elementDepthCount++}(),tn(ve)&&(mS(O,C,ve),h6(O,ve,C)),null!==_&&_S(C,ve),d1}function f1(){var c=Me();In()?Qn():Yt(c=c.parent,!1);var f=c;!function _f(){Cr.lFrame.elementDepthCount--}();var p=we();return p.firstCreatePass&&(Ar(p,c),hu(c)&&p.queries.elementEnd(c)),null!=f.classesWithoutHost&&function Bn(c){return 0!=(16&c.flags)}(f)&&c1(p,f,xn(),f.classesWithoutHost,!0),null!=f.stylesWithoutHost&&function lr(c){return 0!=(32&c.flags)}(f)&&c1(p,f,xn(),f.stylesWithoutHost,!1),f1}function IS(c,f,p,_){return d1(c,f,p,_),f1(),IS}function Bh(c,f,p){var _=xn(),C=we(),O=c+22,Y=C.firstCreatePass?function RS(c,f,p,_,C){var O=f.consts,Y=Ja(O,_),ee=_y(f,c,8,"ng-container",Y);return null!==Y&&r1(ee,Y,!0),gy(f,p,ee,Ja(O,C)),null!==f.queries&&f.queries.elementStart(f,ee),ee}(O,C,_,f,p):C.data[O];Yt(Y,!0);var ee=_[O]=_[11].createComment("");return xf(C,_,ee,Y),Os(ee,_),tn(Y)&&(mS(C,_,Y),h6(C,Y,_)),null!=p&&_S(_,Y),Bh}function Cy(){var c=Me(),f=we();return In()?Qn():Yt(c=c.parent,!1),f.firstCreatePass&&(Ar(f,c),hu(c)&&f.queries.elementEnd(c)),Cy}function LS(c,f,p){return Bh(c,f,p),Cy(),LS}function B6(){return xn()}function p1(c){return!!c&&"function"==typeof c.then}function F6(c){return!!c&&"function"==typeof c.subscribe}var ZS=F6;function NS(c,f,p,_){var C=xn(),O=we(),Y=Me();return FS(O,C,C[11],Y,c,f,!!p,_),NS}function BS(c,f){var p=Me(),_=xn(),C=we();return FS(C,_,E6(rc(C.data),p,_),p,c,f,!1),BS}function FS(c,f,p,_,C,O,Y,ee){var oe=tn(_),je=c.firstCreatePass&&n1(c),nt=f[8],dt=kS(f),kt=!0;if(3&_.type||ee){var Xt=xo(_,f),_n=ee?ee(Xt):Xt,Fn=dt.length,Jn=ee?function(Jy){return ee(po(Jy[_.index]))}:_.index,er=null;if(!ee&&oe&&(er=function U6(c,f,p,_){var C=c.cleanup;if(null!=C)for(var O=0;O<C.length-1;O+=2){var Y=C[O];if(Y===p&&C[O+1]===_){var ee=f[7],oe=C[O+2];return ee.length>oe?ee[oe]:null}"string"==typeof Y&&(O+=2)}return null}(c,f,C,_.index)),null!==er){(er.__ngLastListenerFn__||er).__ngNextListenerFn__=O,er.__ngLastListenerFn__=O,kt=!1}else{O=H6(_,f,nt,O,!1);var Or=p.listen(_n,C,O);dt.push(O,Or),je&&je.push(C,Jn,Fn,Fn+1)}}else O=H6(_,f,nt,O,!1);var Ei,ei=_.outputs;if(kt&&null!==ei&&(Ei=ei[C])){var ms=Ei.length;if(ms)for(var Bs=0;Bs<ms;Bs+=2){var Fs=Ei[Bs],Bd=Ei[Bs+1],qy=f[Fs][Bd].subscribe(O),dg=dt.length;dt.push(O,qy),je&&je.push(C,_.index,dg,-(dg+1))}}}function j6(c,f,p,_){try{return Br(6,f,p),!1!==p(_)}catch(C){return x6(c,C),!1}finally{Br(7,f,p)}}function H6(c,f,p,_,C){return function O(Y){if(Y===Function)return _;e1(2&c.flags?Ho(c.index,f):f);for(var oe=j6(f,p,_,Y),ve=O.__ngNextListenerFn__;ve;)oe=j6(f,p,ve,Y)&&oe,ve=ve.__ngNextListenerFn__;return C&&!1===oe&&(Y.preventDefault(),Y.returnValue=!1),oe}}function US(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return xe(c)}function d8(c,f){for(var p=null,_=function o4(c){var f=c.attrs;if(null!=f){var p=f.indexOf(5);if(0==(1&p))return f[p+1]}return null}(c),C=0;C<f.length;C++){var O=f[C];if("*"!==O){if(null===_?oS(c,O,!0):s4(_,O))return C}else p=C}return p}function jS(c){var f=xn()[16][6];if(!f.projection)for(var p=c?c.length:1,_=f.projection=Zv(p,null),C=_.slice(),O=f.child;null!==O;){var Y=c?d8(O,c):0;null!==Y&&(C[Y]?C[Y].projectionNext=O:_[Y]=O,C[Y]=O),O=O.next}}function G6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=arguments.length>2?arguments[2]:void 0,_=xn(),C=we(),O=_y(C,22+c,16,null,p||null);null===O.projection&&(O.projection=f),Qn(),64!=(64&O.flags)&&Af(C,_,O)}function HS(c,f,p){return h1(c,"",f,"",p),HS}function h1(c,f,p,_,C){var O=xn(),Y=L_(O,f,p,_);Y!==Hr&&Kl(we(),Mt(),O,c,Y,O[11],C,!1);return h1}function GS(c,f,p,_,C,O,Y){var ee=xn(),oe=ql(ee,f,p,_,C,O);oe!==Hr&&Kl(we(),Mt(),ee,c,oe,ee[11],Y,!1);return GS}function zS(c,f,p,_,C,O,Y,ee,oe){var ve=xn(),je=Lh(ve,f,p,_,C,O,Y,ee);je!==Hr&&Kl(we(),Mt(),ve,c,je,ve[11],oe,!1);return zS}function m1(c,f,p,_,C,O,Y,ee,oe,ve,je){var nt=xn(),dt=Z_(nt,f,p,_,C,O,Y,ee,oe,ve);dt!==Hr&&Kl(we(),Mt(),nt,c,dt,nt[11],je,!1);return m1}function WS(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt){var kt=xn(),Xt=N_(kt,f,p,_,C,O,Y,ee,oe,ve,je,nt);Xt!==Hr&&Kl(we(),Mt(),kt,c,Xt,kt[11],dt,!1);return WS}function VS(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt){var _n=xn(),Fn=Zh(_n,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt);Fn!==Hr&&Kl(we(),Mt(),_n,c,Fn,_n[11],Xt,!1);return VS}function z6(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn){var Jn=xn(),er=B_(Jn,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n);er!==Hr&&Kl(we(),Mt(),Jn,c,er,Jn[11],Fn,!1);return z6}function W6(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn,er){var Cn=xn(),Or=F_(Cn,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn);Or!==Hr&&Kl(we(),Mt(),Cn,c,Or,Cn[11],er,!1);return W6}function YS(c,f,p){var _=xn(),C=Gf(_,f);C!==Hr&&Kl(we(),Mt(),_,c,C,_[11],p,!1);return YS}function f8(c,f,p,_,C,O){var Y=O?f.classBindings:f.styleBindings,ee=tl(Y),oe=Eu(Y);c[_]=p;var je,ve=!1;if(Array.isArray(p)){var nt=p;(null===(je=nt[1])||fh(nt,je)>0)&&(ve=!0)}else je=p;if(C)if(0!==oe){var kt=tl(c[ee+1]);c[_+1]=Id(kt,ee),0!==kt&&(c[kt+1]=O_(c[kt+1],_)),c[ee+1]=function S4(c,f){return 131071&c|f<<17}(c[ee+1],_)}else c[_+1]=Id(ee,0),0!==ee&&(c[ee+1]=O_(c[ee+1],_)),ee=_;else c[_+1]=Id(oe,0),0===ee?ee=_:c[oe+1]=O_(c[oe+1],_),oe=_;ve&&(c[_+1]=Oh(c[_+1])),V6(c,je,_,!0,O),V6(c,je,_,!1,O),function p8(c,f,p,_,C){var O=C?c.residualClasses:c.residualStyles;null!=O&&"string"==typeof f&&fh(O,f)>=0&&(p[_+1]=cS(p[_+1]))}(f,je,c,_,O),Y=Id(ee,oe),O?f.classBindings=Y:f.styleBindings=Y}function V6(c,f,p,_,C){for(var O=c[p+1],Y=null===f,ee=_?tl(O):Eu(O),oe=!1;0!==ee&&(!1===oe||Y);){var ve=c[ee],je=c[ee+1];h8(ve,f)&&(oe=!0,c[ee+1]=_?cS(je):Oh(je)),ee=_?tl(je):Eu(je)}oe&&(c[p+1]=_?Oh(O):cS(O))}function h8(c,f){return null===c||null==f||(Array.isArray(c)?c[1]:c)===f||!(!Array.isArray(c)||"string"!=typeof f)&&fh(c,f)>=0}var Ua={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Y6(c){return c.substring(Ua.key,Ua.keyEnd)}function m8(c){return c.substring(Ua.value,Ua.valueEnd)}function KS(c,f){var p=Ua.textEnd;return p===f?-1:(f=Ua.keyEnd=function g8(c,f,p){for(;f<p&&c.charCodeAt(f)>32;)f++;return f}(c,Ua.key=f,p),Fh(c,f,p))}function qS(c,f){var p=Ua.textEnd,_=Ua.key=Fh(c,f,p);return p===_?-1:(_=Ua.keyEnd=function v8(c,f,p){for(var _;f<p&&(45===(_=c.charCodeAt(f))||95===_||(-33&_)>=65&&(-33&_)<=90||_>=48&&_<=57);)f++;return f}(c,_,p),_=q6(c,_,p,58),_=Ua.value=Fh(c,_,p),_=Ua.valueEnd=function y8(c,f,p){for(var _=-1,C=-1,O=-1,Y=f,ee=Y;Y<p;){var oe=c.charCodeAt(Y++);if(59===oe)return ee;34===oe||39===oe?ee=Y=_1(c,oe,Y,p):f===Y-4&&85===O&&82===C&&76===_&&40===oe?ee=Y=_1(c,41,Y,p):oe>32&&(ee=Y),O=C,C=_,_=-33&oe}return ee}(c,_,p),q6(c,_,p,59))}function JS(c){Ua.key=0,Ua.keyEnd=0,Ua.value=0,Ua.valueEnd=0,Ua.textEnd=c.length}function Fh(c,f,p){for(;f<p&&c.charCodeAt(f)<=32;)f++;return f}function q6(c,f,p,_){return(f=Fh(c,f,p))<p&&f++,f}function _1(c,f,p,_){for(var C=-1,O=p;O<_;){var Y=c.charCodeAt(O++);if(Y==f&&92!==C)return O;C=92==Y&&92===C?0:Y}throw new Error}function QS(c,f,p){return Au(c,f,p,!1),QS}function g1(c,f){return Au(c,f,null,!0),g1}function Ns(c){Ou(X6,J6,c,!1)}function J6(c,f){for(var p=function K6(c){return JS(c),qS(c,Fh(c,0,Ua.textEnd))}(f);p>=0;p=qS(f,p))X6(c,Y6(f),m8(f))}function XS(c){Ou(zl,Fc,c,!0)}function Fc(c,f){for(var p=function _8(c){return JS(c),KS(c,Fh(c,0,Ua.textEnd))}(f);p>=0;p=KS(f,p))zl(c,Y6(f),!0)}function Au(c,f,p,_){var C=xn(),O=we(),Y=cs(2);(O.firstUpdatePass&&Q6(O,c,Y,_),f!==Hr&&Zs(C,Y,f))&&M8(O,O.data[ze()],C,C[11],c,C[Y+1]=function EV(c,f){return null==c||("string"==typeof f?c+=f:"object"==typeof c&&(c=X(Ic(c)))),c}(f,p),_,Y)}function Ou(c,f,p,_){var C=we(),O=cs(2);C.firstUpdatePass&&Q6(C,null,O,_);var Y=xn();if(p!==Hr&&Zs(Y,O,p)){var ee=C.data[ze()];if(E8(ee,_)&&!$S(C,O)){var ve=_?ee.classesWithoutHost:ee.stylesWithoutHost;null!==ve&&(p=$(ve,p||"")),c1(C,ee,Y,p,_)}else!function SV(c,f,p,_,C,O,Y,ee){C===Hr&&(C=tt);for(var oe=0,ve=0,je=0<C.length?C[0]:null,nt=0<O.length?O[0]:null;null!==je||null!==nt;){var dt=oe<C.length?C[oe+1]:void 0,kt=ve<O.length?O[ve+1]:void 0,Xt=null,_n=void 0;je===nt?(oe+=2,ve+=2,dt!==kt&&(Xt=nt,_n=kt)):null===nt||null!==je&&je<nt?(oe+=2,Xt=je):(ve+=2,Xt=nt,_n=kt),null!==Xt&&M8(c,f,p,_,Xt,_n,Y,ee),je=oe<C.length?C[oe]:null,nt=ve<O.length?O[ve]:null}}(C,ee,Y,Y[11],Y[O+1],Y[O+1]=function T8(c,f,p){if(null==p||""===p)return tt;var _=[],C=Ic(p);if(Array.isArray(C))for(var O=0;O<C.length;O++)c(_,C[O],!0);else if("object"==typeof C)for(var Y in C)C.hasOwnProperty(Y)&&c(_,Y,C[Y]);else"string"==typeof C&&f(_,C);return _}(c,f,p),_,O)}}function $S(c,f){return f>=c.expandoStartIndex}function Q6(c,f,p,_){var C=c.data;if(null===C[p+1]){var O=C[ze()],Y=$S(c,p);E8(O,_)&&null===f&&!Y&&(f=!1),f=function b8(c,f,p,_){var C=rc(c),O=_?f.residualClasses:f.residualStyles;if(null===C){0===(_?f.classBindings:f.styleBindings)&&(p=wy(p=v1(null,c,f,p,_),f.attrs,_),O=null)}else{var ee=f.directiveStylingLast;if(-1===ee||c[ee]!==C)if(p=v1(C,c,f,p,_),null===O){var ve=function C8(c,f,p){var _=p?f.classBindings:f.styleBindings;if(0!==Eu(_))return c[tl(_)]}(c,f,_);void 0!==ve&&Array.isArray(ve)&&function w8(c,f,p,_){var C=p?f.classBindings:f.styleBindings;c[tl(C)]=_}(c,f,_,ve=wy(ve=v1(null,c,f,ve[1],_),f.attrs,_))}else O=function k8(c,f,p){for(var _=void 0,C=f.directiveEnd,O=1+f.directiveStylingLast;O<C;O++){_=wy(_,c[O].hostAttrs,p)}return wy(_,f.attrs,p)}(c,f,_)}return void 0!==O&&(_?f.residualClasses=O:f.residualStyles=O),p}(C,O,f,_),f8(C,O,f,p,Y,_)}}function v1(c,f,p,_,C){var O=null,Y=p.directiveEnd,ee=p.directiveStylingLast;for(-1===ee?ee=p.directiveStart:ee++;ee<Y&&(_=wy(_,(O=f[ee]).hostAttrs,C),O!==c);)ee++;return null!==c&&(p.directiveStylingLast=ee),_}function wy(c,f,p){var _=p?1:2,C=-1;if(null!==f)for(var O=0;O<f.length;O++){var Y=f[O];"number"==typeof Y?C=Y:C===_&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),zl(c,Y,!!p||f[++O]))}return void 0===c?null:c}function X6(c,f,p){zl(c,f,Ic(p))}function M8(c,f,p,_,C,O,Y,ee){if(3&f.type){var oe=c.data,ve=oe[ee+1];if(!y1(Q3(ve)?S8(oe,f,p,C,Eu(ve),Y):void 0))y1(O)||J3(ve)&&(O=S8(oe,null,p,C,ee,Y)),function m_(c,f,p,_,C){if(f)C?c.addClass(p,_):c.removeClass(p,_);else{var O=-1===_.indexOf("-")?void 0:CC.DashCase;null==C?c.removeStyle(p,_,O):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),O|=CC.Important),c.setStyle(p,_,C,O))}}(_,Y,Dc(ze(),p),C,O)}}function S8(c,f,p,_,C,O){for(var Y=null===f,ee=void 0;C>0;){var oe=c[C],ve=Array.isArray(oe),je=ve?oe[1]:oe,nt=null===je,dt=p[C+1];dt===Hr&&(dt=nt?tt:void 0);var kt=nt?Md(dt,_):je===_?dt:void 0;if(ve&&!y1(kt)&&(kt=Md(oe,_)),y1(kt)&&(ee=kt,Y))return ee;var Xt=c[C+1];C=Y?tl(Xt):Eu(Xt)}if(null!==f){var _n=O?f.residualClasses:f.residualStyles;null!=_n&&(ee=Md(_n,_))}return ee}function y1(c){return void 0!==c}function E8(c,f){return 0!=(c.flags&(f?16:32))}function $6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=xn(),_=we(),C=c+22,O=_.firstCreatePass?_y(_,C,1,f,null):_.data[C],Y=p[C]=Kv(p[11],f);xf(_,p,Y,O),Yt(O,!1)}function eE(c){return tE("",c,""),eE}function tE(c,f,p){var _=xn(),C=L_(_,c,f,p);return C!==Hr&&es(_,ze(),C),tE}function eR(c,f,p,_,C){var O=xn(),Y=ql(O,c,f,p,_,C);return Y!==Hr&&es(O,ze(),Y),eR}function tR(c,f,p,_,C,O,Y){var ee=xn(),oe=Lh(ee,c,f,p,_,C,O,Y);return oe!==Hr&&es(ee,ze(),oe),tR}function nR(c,f,p,_,C,O,Y,ee,oe){var ve=xn(),je=Z_(ve,c,f,p,_,C,O,Y,ee,oe);return je!==Hr&&es(ve,ze(),je),nR}function nE(c,f,p,_,C,O,Y,ee,oe,ve,je){var nt=xn(),dt=N_(nt,c,f,p,_,C,O,Y,ee,oe,ve,je);return dt!==Hr&&es(nt,ze(),dt),nE}function rE(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt){var kt=xn(),Xt=Zh(kt,c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt);return Xt!==Hr&&es(kt,ze(),Xt),rE}function x8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt){var _n=xn(),Fn=B_(_n,c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt);return Fn!==Hr&&es(_n,ze(),Fn),x8}function D8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn){var Jn=xn(),er=F_(Jn,c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn);return er!==Hr&&es(Jn,ze(),er),D8}function A8(c){var f=xn(),p=Gf(f,c);return p!==Hr&&es(f,ze(),p),A8}function O8(c,f,p){Ou(zl,Fc,L_(xn(),c,f,p),!0)}function P8(c,f,p,_,C){Ou(zl,Fc,ql(xn(),c,f,p,_,C),!0)}function I8(c,f,p,_,C,O,Y){Ou(zl,Fc,Lh(xn(),c,f,p,_,C,O,Y),!0)}function xV(c,f,p,_,C,O,Y,ee,oe){Ou(zl,Fc,Z_(xn(),c,f,p,_,C,O,Y,ee,oe),!0)}function DV(c,f,p,_,C,O,Y,ee,oe,ve,je){Ou(zl,Fc,N_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je),!0)}function AV(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt){Ou(zl,Fc,Zh(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt),!0)}function OV(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt){Ou(zl,Fc,B_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt),!0)}function PV(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn){Ou(zl,Fc,F_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn),!0)}function IV(c){Ou(zl,Fc,Gf(xn(),c),!0)}function RV(c,f,p){Ns(L_(xn(),c,f,p))}function LV(c,f,p,_,C){Ns(ql(xn(),c,f,p,_,C))}function ZV(c,f,p,_,C,O,Y){Ns(Lh(xn(),c,f,p,_,C,O,Y))}function NV(c,f,p,_,C,O,Y,ee,oe){Ns(Z_(xn(),c,f,p,_,C,O,Y,ee,oe))}function BV(c,f,p,_,C,O,Y,ee,oe,ve,je){Ns(N_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je))}function FV(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt){Ns(Zh(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt))}function UV(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt){Ns(B_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt))}function jV(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn){Ns(F_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn))}function HV(c){Ns(Gf(xn(),c))}function rR(c,f,p,_,C){return Au(c,L_(xn(),f,p,_),C,!1),rR}function R8(c,f,p,_,C,O,Y){return Au(c,ql(xn(),f,p,_,C,O),Y,!1),R8}function L8(c,f,p,_,C,O,Y,ee,oe){return Au(c,Lh(xn(),f,p,_,C,O,Y,ee),oe,!1),L8}function Z8(c,f,p,_,C,O,Y,ee,oe,ve,je){return Au(c,Z_(xn(),f,p,_,C,O,Y,ee,oe,ve),je,!1),Z8}function N8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt){return Au(c,N_(xn(),f,p,_,C,O,Y,ee,oe,ve,je,nt),dt,!1),N8}function B8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt){return Au(c,Zh(xn(),f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt),Xt,!1),B8}function F8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn){return Au(c,B_(xn(),f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n),Fn,!1),F8}function U8(c,f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn,er){return Au(c,F_(xn(),f,p,_,C,O,Y,ee,oe,ve,je,nt,dt,kt,Xt,_n,Fn,Jn),er,!1),U8}function j8(c,f,p){return Au(c,Gf(xn(),f),p,!1),j8}function iR(c,f,p){var _=xn();Zs(_,Ta(),f)&&Kl(we(),Mt(),_,c,f,_[11],p,!0);return iR}function oR(c,f,p){var _=xn();if(Zs(_,Ta(),f)){var O=we(),Y=Mt();Kl(O,Y,_,c,f,E6(rc(O.data),Y,_),p,!0)}return oR}var j_=void 0;var H_,zV=["en",[["a","p"],["AM","PM"],j_],[["AM","PM"],j_,j_],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],j_,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],j_,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",j_,"{1} 'at' {0}",j_],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function GV(c){var p=Math.floor(Math.abs(c)),_=c.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===_?1:5}],ky={};function aR(c){var f=function VV(c){return c.toLowerCase().replace(/_/g,"-")}(c),p=G8(f);if(p)return p;var _=f.split("-")[0];if(p=G8(_))return p;if("en"===_)return zV;throw new fe(701,!1)}function H8(c){return aR(c)[H_.PluralCase]}function G8(c){return c in ky||(ky[c]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[c]),ky[c]}!function(c){c[c.LocaleId=0]="LocaleId",c[c.DayPeriodsFormat=1]="DayPeriodsFormat",c[c.DayPeriodsStandalone=2]="DayPeriodsStandalone",c[c.DaysFormat=3]="DaysFormat",c[c.DaysStandalone=4]="DaysStandalone",c[c.MonthsFormat=5]="MonthsFormat",c[c.MonthsStandalone=6]="MonthsStandalone",c[c.Eras=7]="Eras",c[c.FirstDayOfWeek=8]="FirstDayOfWeek",c[c.WeekendRange=9]="WeekendRange",c[c.DateFormat=10]="DateFormat",c[c.TimeFormat=11]="TimeFormat",c[c.DateTimeFormat=12]="DateTimeFormat",c[c.NumberSymbols=13]="NumberSymbols",c[c.NumberFormats=14]="NumberFormats",c[c.CurrencyCode=15]="CurrencyCode",c[c.CurrencySymbol=16]="CurrencySymbol",c[c.CurrencyName=17]="CurrencyName",c[c.Currencies=18]="Currencies",c[c.Directionality=19]="Directionality",c[c.PluralCase=20]="PluralCase",c[c.ExtraData=21]="ExtraData"}(H_||(H_={}));var z8=["zero","one","two","few","many"];var Cl,Ty="en-US",iE={marker:"element"},oE={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}(Cl||(Cl={}));var W8=Ty;function V8(c){Ut(c,"Expected localeId to be defined"),"string"==typeof c&&(W8=c.toLowerCase().replace(/_/g,"-"))}function Y8(c,f,p){var _=f.insertBeforeIndex,C=Array.isArray(_)?_[0]:_;return null===C?a3(c,0,p):po(p[C])}function K8(c,f,p,_,C){var O=f.insertBeforeIndex;if(Array.isArray(O)){var Y=_,ee=null;if(3&f.type||(ee=Y,Y=C),null!==Y&&0==(2&f.flags))for(var oe=1;oe<O.length;oe++){Sf(c,Y,p[O[oe]],ee,!1)}}}function q8(c,f){if(c.push(f),c.length>1)for(var p=c.length-2;p>=0;p--){var _=c[p];J8(_)||qV(_,f)&&null===JV(_)&&QV(_,f.index)}}function J8(c){return!(64&c.type)}function qV(c,f){return J8(f)||c.index>f.index}function JV(c){var f=c.insertBeforeIndex;return Array.isArray(f)?f[0]:f}function QV(c,f){var p=c.insertBeforeIndex;Array.isArray(p)?p[0]=f:(Jv(Y8,K8),c.insertBeforeIndex=f)}function My(c,f){var p=c.data[f];return null===p||"string"==typeof p?null:p.hasOwnProperty("currentCaseLViewIndex")?p:p.value}function aE(c,f,p){var _=P_(c,p,64,null,null);return q8(f,_),_}function b1(c,f){var p=f[c.currentCaseLViewIndex];return null===p?p:p<0?~p:p}function sE(c){return c>>>17}function lR(c){return(131070&c)>>>1}var G_=0,Ey=0;function $8(c,f,p,_){for(var C=c[11],O=0;O<f.length;O++){var Y=f[O++],ee=f[O],oe=(Y&Cl.COMMENT)===Cl.COMMENT,ve=(Y&Cl.APPEND_EAGERLY)===Cl.APPEND_EAGERLY,je=Y>>>Cl.SHIFT,nt=c[je];null===nt&&(nt=c[je]=oe?C.createComment(ee):Kv(C,ee)),ve&&null!==p&&Sf(C,p,nt,_,!1)}}function cR(c,f,p,_){for(var Y,C=p[11],O=null,ee=0;ee<f.length;ee++){var oe=f[ee];if("string"==typeof oe){var ve=f[++ee];null===p[ve]&&(p[ve]=Kv(C,oe))}else if("number"==typeof oe)switch(1&oe){case 0:var je=sE(oe);null===O&&(O=je,Y=Ef(C,_));var nt=void 0,dt=void 0;if(je===O?(nt=_,dt=Y):(nt=null,dt=po(p[je])),null!==dt){var kt=lR(oe);Sf(C,dt,p[kt],nt,!1);var _n=My(c,kt);if(null!==_n&&"object"==typeof _n){var Fn=b1(_n,p);null!==Fn&&cR(c,_n.create[Fn],p,p[_n.anchorIdx])}}break;case 1:var Jn=oe>>>1,er=f[++ee],Cn=f[++ee];Ls(C,Dc(Jn,p),null,null,er,Cn,null)}else switch(oe){case oE:var Or=f[++ee],ei=f[++ee];if(null===p[ei])Os(p[ei]=Ba(C,Or),p);break;case iE:var ms=f[++ee],Bs=f[++ee];if(null===p[Bs])Os(p[Bs]=QI(C,ms,null),p)}}}function dR(c,f,p,_,C){for(var O=0;O<p.length;O++){var Y=p[O],ee=p[++O];if(Y&C)for(var oe="",ve=O+1;ve<=O+ee;ve++){var je=p[ve];if("string"==typeof je)oe+=je;else if("number"==typeof je)if(je<0)oe+=de(f[_-je]);else{var nt=je>>>2;switch(3&je){case 1:var dt=p[++ve],kt=p[++ve],Xt=c.data[nt];"string"==typeof Xt?Ls(f[11],f[nt],null,Xt,dt,oe,kt):Kl(c,Xt,f,dt,oe,f[11],kt,!1);break;case 0:var _n=f[nt];null!==_n&&JI(f[11],_n,oe);break;case 2:eY(c,My(c,nt),f,oe);break;case 3:fR(c,My(c,nt),_,f)}}}else{var Fn=p[O+1];if(Fn>0&&3==(3&Fn)){var er=My(c,Fn>>>2);f[er.currentCaseLViewIndex]<0&&fR(c,er,_,f)}}O+=ee}}function fR(c,f,p,_){var C=_[f.currentCaseLViewIndex];if(null!==C){var O=G_;C<0&&(C=_[f.currentCaseLViewIndex]=~C,O=-1),dR(c,_,f.update[C],p,O)}}function eY(c,f,p,_){var C=function tY(c,f){var p=c.cases.indexOf(f);if(-1===p)switch(c.type){case 1:var _=function YV(c,f){var p=H8(f)(parseInt(c,10)),_=z8[p];return void 0!==_?_:"other"}(f,function sR(){return W8}());-1===(p=c.cases.indexOf(_))&&"other"!==_&&(p=c.cases.indexOf("other"));break;case 0:p=c.cases.indexOf("other")}return-1===p?null:p}(f,_);if(b1(f,p)!==C&&(pR(c,f,p),p[f.currentCaseLViewIndex]=null===C?null:~C,null!==C)){var Y=p[f.anchorIdx];Y&&cR(c,f.create[C],p,Y)}}function pR(c,f,p){var _=b1(f,p);if(null!==_)for(var C=f.remove[_],O=0;O<C.length;O++){var Y=C[O];if(Y>0){var ee=Dc(Y,p);null!==ee&&p_(p[11],ee)}else pR(c,My(c,~Y),p)}}function eU(){var p,_,c=[],f=-1;function O(ee,oe){f=0;var ve=b1(ee,oe);_=null!==ve?ee.remove[ve]:tt}function Y(){if(f<_.length){var ee=_[f++];if(ee>0)return p[ee];c.push(f,_);var ve=~ee;return O(p[1].data[ve],p),Y()}return 0===c.length?null:(_=c.pop(),f=c.pop(),Y())}return function C(ee,oe){for(p=oe;c.length;)c.pop();return O(ee.value,oe),Y}}var C1=/\ufffd(\d+):?\d*\ufffd/gi,nU=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,oY=/\ufffd(\d+)\ufffd/,hR=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,bi="\ufffd",En=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Yr=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,On=/\uE500/g;function rU(c,f,p,_,C,O){var Y=pt(),ee=[],oe=[],ve=[[]];C=function Po(c,f){if(function Ri(c){return-1===c}(f))return aa(c);var p=c.indexOf(":".concat(f).concat(bi))+2+f.toString().length,_=c.search(new RegExp("".concat(bi,"\\/\\*\\d+:").concat(f).concat(bi)));return aa(c.substring(p,_))}(C,O);for(var je=function xa(c){return c.replace(On," ")}(C).split(Yr),nt=0;nt<je.length;nt++){var dt=je[nt];if(0==(1&nt))for(var kt=xy(dt),Xt=0;Xt<kt.length;Xt++){var _n=kt[Xt];if(0==(1&Xt)){var Fn=_n;""!==Fn&&oo(c,Y,ve[0],ee,oe,p,Fn)}else{var Jn=_n;if("object"!=typeof Jn)throw new Error('Unable to parse ICU expression in "'.concat(C,'" message.'));sa(c,p,oe,f,Jn,mR(c,Y,ve[0],p,ee,"",!0).index)}}else{var Or=47===dt.charCodeAt(0),Ei=(dt.charCodeAt(Or?1:0),22+Number.parseInt(dt.substring(Or?2:1)));if(Or)ve.shift(),Yt(pt(),!1);else{var ms=aE(c,ve[0],Ei);ve.unshift([]),Yt(ms,!0)}}}c.data[_]={create:ee,update:oe}}function mR(c,f,p,_,C,O,Y){var ee=I_(c,_,1,null),oe=ee<<Cl.SHIFT,ve=pt();f===ve&&(ve=null),null===ve&&(oe|=Cl.APPEND_EAGERLY),Y&&(oe|=Cl.COMMENT,function P5(c){void 0===_h&&(_h=c())}(eU)),C.push(oe,null===O?"":O);var je=P_(c,ee,Y?32:1,null===O?"":O,null);q8(p,je);var nt=je.index;return Yt(je,!1),null!==ve&&f!==ve&&function Sy(c,f){var p=c.insertBeforeIndex;null===p?(Jv(Y8,K8),p=c.insertBeforeIndex=[null,f]):(Ft(Array.isArray(p),!0,"Expecting array here"),p.push(f))}(ve,nt),je}function oo(c,f,p,_,C,O,Y){var ee=Y.match(C1),oe=mR(c,f,p,O,_,ee?null:Y,!1);ee&&Pr(C,Y,oe.index,null,0,null)}function Pr(c,f,p,_,C,O){var Y=c.length,ee=Y+1;c.push(null,null);for(var oe=Y+2,ve=f.split(C1),je=0,nt=0;nt<ve.length;nt++){var dt=ve[nt];if(1&nt){var kt=C+parseInt(dt,10);c.push(-1-kt),je|=$n(kt)}else""!==dt&&c.push(dt)}return c.push(p<<2|(_?1:0)),_&&c.push(_,O),c[Y]=je,c[ee]=c.length-oe,je}function Oo(c){for(var f=0,p=0;p<c.length;p++){var _=c[p];"number"==typeof _&&_<0&&f++}return f}function $n(c){return 1<<Math.min(c,31)}function aa(c){for(var f,O,p="",_=0,C=!1;null!==(f=En.exec(c));)C?f[0]==="".concat(bi,"/*").concat(O).concat(bi)&&(_=f.index,C=!1):(p+=c.substring(_,f.index+f[0].length),O=f[1],C=!0);return p+=c.slice(_)}function sa(c,f,p,_,C,O){var Y=0,ee={type:C.type,currentCaseLViewIndex:I_(c,f,1,null),anchorIdx:O,cases:[],create:[],remove:[],update:[]};(function iU(c,f,p){c.push($n(f.mainBinding),2,-1-f.mainBinding,p<<2|2)})(p,C,O),function XV(c,f,p){var _=c.data[f];null===_?c.data[f]=p:_.value=p}(c,O,ee);for(var oe=C.values,ve=0;ve<oe.length;ve++){for(var je=oe[ve],nt=[],dt=0;dt<je.length;dt++){var kt=je[dt];if("string"!=typeof kt){var Xt=nt.push(kt)-1;je[dt]="\x3c!--\ufffd".concat(Xt,"\ufffd--\x3e")}}Y=z_(c,ee,f,p,_,C.cases[ve],je.join(""),nt)|Y}Y&&function uE(c,f,p){c.push(f,1,p<<2|3)}(p,Y,O)}function nl(c){for(var f=[],p=[],_=1,C=0,O=xy(c=c.replace(hR,function(ve,je,nt){return _="select"===nt?0:1,C=parseInt(je.slice(1),10),""})),Y=0;Y<O.length;){var ee=O[Y++].trim();1===_&&(ee=ee.replace(/\s*(?:=)?(\w+)\s*/,"$1")),ee.length&&f.push(ee);var oe=xy(O[Y++]);f.length>p.length&&p.push(oe)}return{type:_,mainBinding:C,cases:f,values:p}}function xy(c){if(!c)return[];var O,f=0,p=[],_=[],C=/[{}]/g;for(C.lastIndex=0;O=C.exec(c);){var Y=O.index;if("}"==O[0]){if(p.pop(),0==p.length){var ee=c.substring(f,Y);hR.test(ee)?_.push(nl(ee)):_.push(ee),f=Y+1}}else{if(0==p.length){var oe=c.substring(f,Y);_.push(oe),f=Y+1}p.push("{")}}var ve=c.substring(f);return _.push(ve),_}function z_(c,f,p,_,C,O,Y,ee){var oe=[],ve=[],je=[];f.cases.push(O),f.create.push(oe),f.remove.push(ve),f.update.push(je);var dt=N5(OC()).getInertBodyElement(Y),kt=VM(dt)||dt;return kt?lE(c,f,p,_,oe,ve,je,kt,C,ee,0):0}function lE(c,f,p,_,C,O,Y,ee,oe,ve,je){for(var nt=0,dt=ee.firstChild;dt;){var kt=I_(c,p,1,null);switch(dt.nodeType){case Node.ELEMENT_NODE:var Xt=dt,_n=Xt.tagName.toLowerCase();if(kh.hasOwnProperty(_n)){Ay(C,iE,_n,oe,kt),c.data[kt]=_n;for(var Fn=Xt.attributes,Jn=0;Jn<Fn.length;Jn++){var er=Fn.item(Jn),Cn=er.name.toLowerCase();!!er.value.match(C1)?Th.hasOwnProperty(Cn)&&(WM[Cn]?Pr(Y,er.value,kt,er.name,0,y_):Pr(Y,er.value,kt,er.name,0,null)):cE(C,kt,er)}nt=lE(c,f,p,_,C,O,Y,dt,kt,ve,je+1)|nt,Dy(O,kt,je)}break;case Node.TEXT_NODE:var ei=dt.textContent||"",Ei=ei.match(C1);Ay(C,null,Ei?"":ei,oe,kt),Dy(O,kt,je),Ei&&(nt=Pr(Y,ei,kt,null,0,null)|nt);break;case Node.COMMENT_NODE:var ms=oY.exec(dt.textContent||"");if(ms){var Fs=ve[parseInt(ms[1],10)];Ay(C,oE,"",oe,kt),sa(c,p,_,oe,Fs,kt),_R(O,kt,je)}}dt=dt.nextSibling}return nt}function Dy(c,f,p){0===p&&c.push(f)}function _R(c,f,p){0===p&&(c.push(~f),c.push(f))}function Ay(c,f,p,_,C){null!==f&&c.push(f),c.push(p,C,function uR(c,f,p){return c|f<<17|p<<1}(0,_,C))}function cE(c,f,p){c.push(f<<1|1,p.name,p.value)}var gR=/\[(\ufffd.+?\ufffd?)\]/,vR=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,yR=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,bR=/{([A-Z0-9_]+)}/g,oU=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,CR=/\/\*/,wR=/\d+\:(\d+)/;function kR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=c;if(gR.test(c)){var _={},C=[0];p=p.replace(vR,function(O,Y,ee){var oe=Y||ee,ve=_[oe]||[];if(ve.length||(oe.split("|").forEach(function(Jn){var er=Jn.match(wR),Cn=er?parseInt(er[1],10):0,Or=CR.test(Jn);ve.push([Cn,Or,Jn])}),_[oe]=ve),!ve.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(oe));for(var je=C[C.length-1],nt=0,dt=0;dt<ve.length;dt++)if(ve[dt][0]===je){nt=dt;break}var kt=(0,A.Z)(ve[nt],3),Xt=kt[0],_n=kt[1],Fn=kt[2];return _n?C.pop():je!==Xt&&C.push(Xt),ve.splice(nt,1),Fn})}return Object.keys(f).length&&(p=(p=(p=p.replace(yR,function(O,Y,ee,oe,ve,je){return f.hasOwnProperty(ee)?"".concat(Y).concat(f[ee]).concat(je):O})).replace(bR,function(O,Y){return f.hasOwnProperty(Y)?f[Y]:O})).replace(oU,function(O,Y){if(f.hasOwnProperty(Y)){var ee=f[Y];if(!ee.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(O," with key: ").concat(Y));return ee.shift()}return O})),p}function Oy(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,_=we(),C=xn(),O=22+c,Y=Ja(_.consts,f),ee=pt();_.firstCreatePass&&rU(_,null===ee?0:ee.index,C,O,Y,p);var oe=_.data[O],ve=ee===C[6]?null:ee,je=Mf(_,ve,C),nt=ee&&8&ee.type?C[ee.index]:null;$8(C,oe.create,je,nt),e_(!0)}function TR(){e_(!1)}function dE(c,f,p){Oy(c,f,p),TR()}function aU(c,f){var p=we();!function Gi(c,f,p){var C=Me().index,O=[];if(c.firstCreatePass&&null===c.data[f]){for(var Y=0;Y<p.length;Y+=2){var ee=p[Y],oe=p[Y+1];if(""!==oe){if(nU.test(oe))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(oe,'".'));Pr(O,oe,C,ee,Oo(O),null)}}c.data[f]=O}}(p,c+22,Ja(p.consts,f))}function Py(c){return function $V(c){c&&(G_|=1<<Math.min(Ey,31)),Ey++}(Zs(xn(),Ta(),c)),Py}function MR(c){!function X8(c,f,p){if(Ey>0){var _=c.data[p];dR(c,f,Array.isArray(_)?_:_.update,Qa()-Ey-1,G_)}G_=0,Ey=0}(we(),xn(),c+22)}function Iy(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kR(c,f)}function SR(c,f,p){var _=we();if(_.firstCreatePass){var C=en(c);w1(p,_.data,_.blueprint,C,!0),w1(f,_.data,_.blueprint,C,!1)}}function w1(c,f,p,_,C){if(c=te(c),Array.isArray(c))for(var O=0;O<c.length;O++)w1(c[O],f,p,_,C);else{var Y=we(),ee=xn(),oe=Lc(c)?c:te(c.provide),ve=sy(c),je=Me(),nt=1048575&je.providerIndexes,dt=je.directiveStart,kt=je.providerIndexes>>20;if(Lc(c)||!c.multi){var Xt=new me(ve,C,A_),_n=ER(oe,f,C?nt:nt+kt,dt);-1===_n?(Ds(sh(je,ee),Y,oe),fE(Y,c,f.length),f.push(oe),je.directiveStart++,je.directiveEnd++,C&&(je.providerIndexes+=1048576),p.push(Xt),ee.push(Xt)):(p[_n]=Xt,ee[_n]=Xt)}else{var Fn=ER(oe,f,nt+kt,dt),Jn=ER(oe,f,nt,nt+kt),er=Fn>=0&&p[Fn],Cn=Jn>=0&&p[Jn];if(C&&!Cn||!C&&!er){Ds(sh(je,ee),Y,oe);var Or=function xR(c,f,p,_,C){var O=new me(c,p,A_);return O.multi=[],O.index=f,O.componentProviders=0,sU(O,C,_&&!p),O}(C?lU:Ry,p.length,C,_,ve);!C&&Cn&&(p[Jn].providerFactory=Or),fE(Y,c,f.length,0),f.push(oe),je.directiveStart++,je.directiveEnd++,C&&(je.providerIndexes+=1048576),p.push(Or),ee.push(Or)}else{fE(Y,c,Fn>-1?Fn:Jn,sU(p[C?Jn:Fn],ve,!C&&_))}!C&&_&&Cn&&p[Jn].componentProviders++}}}function fE(c,f,p,_){var C=Lc(f),O=function qM(c){return!!c.useClass}(f);if(C||O){var oe=(O?te(f.useClass):f).prototype.ngOnDestroy;if(oe){var ve=c.destroyHooks||(c.destroyHooks=[]);if(!C&&f.multi){var je=ve.indexOf(p);-1===je?ve.push(p,[_,oe]):ve[je+1].push(_,oe)}else ve.push(p,oe)}}}function sU(c,f,p){return p&&c.componentProviders++,c.multi.push(f)-1}function ER(c,f,p,_){for(var C=p;C<_;C++)if(f[C]===c)return C;return-1}function Ry(c,f,p,_){return k1(this.multi,[])}function lU(c,f,p,_){var O,C=this.multi;if(this.providerFactory){var Y=this.providerFactory.componentProviders,ee=i_(p,p[1],this.providerFactory.index,_);k1(C,O=ee.slice(0,Y));for(var oe=Y;oe<ee.length;oe++)O.push(ee[oe])}else k1(C,O=[]);return O}function k1(c,f){for(var p=0;p<c.length;p++){var _=c[p];f.push(_())}return f}function DR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(p){p.providersResolver=function(_,C){return SR(_,C?C(c):c,f)}}}var Uh=(0,R.Z)(function c(){(0,v.Z)(this,c)}),pE=(0,R.Z)(function c(){(0,v.Z)(this,c)});function uU(c,f){return new jh(c,null!=f?f:null)}var jh=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C){var O;(0,v.Z)(this,p),(O=f.call(this))._parent=C,O._bootstrapComponents=[],O.destroyCbs=[],O.componentFactoryResolver=new o1((0,P.Z)(O));var Y=zi(_);return O._bootstrapComponents=Pd(Y.bootstrap),O._r3Injector=aS(_,C,[{provide:Uh,useValue:(0,P.Z)(O)},{provide:Bf,useValue:O.componentFactoryResolver}],X(_),new Set(["environment"])),O._r3Injector.resolveInjectorInitializers(),O.instance=O._r3Injector.get(_),O}return(0,R.Z)(p,[{key:"injector",get:function(){return this._r3Injector}},{key:"destroy",value:function(){var C=this._r3Injector;!C.destroyed&&C.destroy(),this.destroyCbs.forEach(function(O){return O()}),this.destroyCbs=null}},{key:"onDestroy",value:function(C){this.destroyCbs.push(C)}}]),p}(Uh),mE=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_){var C;return(0,v.Z)(this,p),(C=f.call(this)).moduleType=_,C}return(0,R.Z)(p,[{key:"create",value:function(C){return new jh(this.moduleType,C)}}]),p}(pE),zf=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O){var Y;(0,v.Z)(this,p),(Y=f.call(this)).componentFactoryResolver=new o1((0,P.Z)(Y)),Y.instance=null;var ee=new Sh([].concat((0,E.Z)(_),[{provide:Uh,useValue:(0,P.Z)(Y)},{provide:Bf,useValue:Y.componentFactoryResolver}]),C||$a(),O,new Set(["environment"]));return Y.injector=ee,ee.resolveInjectorInitializers(),Y}return(0,R.Z)(p,[{key:"destroy",value:function(){this.injector.destroy()}},{key:"onDestroy",value:function(C){this.injector.onDestroy(C)}}]),p}(Uh);function Ly(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=new zf(c,f,p);return _.injector}var V_=function(){function c(f){(0,v.Z)(this,c),this._injector=f,this.cachedInjectors=new Map}return(0,R.Z)(c,[{key:"getOrCreateStandaloneInjector",value:function(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){var _=k_(!1,p.type),C=_.length>0?Ly([_],this._injector,"Standalone[".concat(p.type.name,"]")):null;this.cachedInjectors.set(p.id,C)}return this.cachedInjectors.get(p.id)}},{key:"ngOnDestroy",value:function(){try{var _,p=(0,T.Z)(this.cachedInjectors.values());try{for(p.s();!(_=p.n()).done;){var C=_.value;null!==C&&C.destroy()}}catch(O){p.e(O)}finally{p.f()}}finally{this.cachedInjectors.clear()}}}]),c}();function Y_(c){c.getStandaloneInjector=function(f){return f.get(V_).getOrCreateStandaloneInjector(c)}}function Wi(c,f,p,_){return Ht(function(){var C=c;if(null!==f)if(C.hasOwnProperty("decorators")&&void 0!==C.decorators){var O;(O=C.decorators).push.apply(O,(0,E.Z)(f))}else C.decorators=f;null!==p&&(C.ctorParameters=p),null!==_&&(C.hasOwnProperty("propDecorators")&&void 0!==C.propDecorators?C.propDecorators=Object.assign(Object.assign({},C.propDecorators),_):C.propDecorators=_)})}function Ny(c,f,p){var _=$o()+c,C=xn();return C[_]===Hr?Bc(C,_,p?f.call(p):f()):by(C,_)}function qn(c,f,p,_){return Zd(xn(),$o(),c,f,p,_)}function IR(c,f,p,_,C){return RR(xn(),$o(),c,f,p,_,C)}function fU(c,f,p,_,C,O){return LR(xn(),$o(),c,f,p,_,C,O)}function pU(c,f,p,_,C,O,Y){return rl(xn(),$o(),c,f,p,_,C,O,Y)}function hU(c,f,p,_,C,O,Y,ee){var oe=$o()+c,ve=xn(),je=Du(ve,oe,p,_,C,O);return Zs(ve,oe+4,Y)||je?Bc(ve,oe+5,ee?f.call(ee,p,_,C,O,Y):f(p,_,C,O,Y)):by(ve,oe+5)}function vE(c,f,p,_,C,O,Y,ee,oe){var ve=$o()+c,je=xn(),nt=Du(je,ve,p,_,C,O);return Ld(je,ve+4,Y,ee)||nt?Bc(je,ve+6,oe?f.call(oe,p,_,C,O,Y,ee):f(p,_,C,O,Y,ee)):by(je,ve+6)}function Q_(c,f,p,_,C,O,Y,ee,oe,ve){var je=$o()+c,nt=xn(),dt=Du(nt,je,p,_,C,O);return s1(nt,je+4,Y,ee,oe)||dt?Bc(nt,je+7,ve?f.call(ve,p,_,C,O,Y,ee,oe):f(p,_,C,O,Y,ee,oe)):by(nt,je+7)}function mU(c,f,p,_,C,O,Y,ee,oe,ve,je){var nt=$o()+c,dt=xn(),kt=Du(dt,nt,p,_,C,O);return Du(dt,nt+4,Y,ee,oe,ve)||kt?Bc(dt,nt+8,je?f.call(je,p,_,C,O,Y,ee,oe,ve):f(p,_,C,O,Y,ee,oe,ve)):by(dt,nt+8)}function Uc(c,f,p,_){return S1(xn(),$o(),c,f,p,_)}function wl(c,f){var p=c[f];return p===Hr?void 0:p}function Zd(c,f,p,_,C,O){var Y=f+p;return Zs(c,Y,C)?Bc(c,Y+1,O?_.call(O,C):_(C)):wl(c,Y+1)}function RR(c,f,p,_,C,O,Y){var ee=f+p;return Ld(c,ee,C,O)?Bc(c,ee+2,Y?_.call(Y,C,O):_(C,O)):wl(c,ee+2)}function LR(c,f,p,_,C,O,Y,ee){var oe=f+p;return s1(c,oe,C,O,Y)?Bc(c,oe+3,ee?_.call(ee,C,O,Y):_(C,O,Y)):wl(c,oe+3)}function rl(c,f,p,_,C,O,Y,ee,oe){var ve=f+p;return Du(c,ve,C,O,Y,ee)?Bc(c,ve+4,oe?_.call(oe,C,O,Y,ee):_(C,O,Y,ee)):wl(c,ve+4)}function S1(c,f,p,_,C,O){for(var Y=f+p,ee=!1,oe=0;oe<C.length;oe++)Zs(c,Y++,C[oe])&&(ee=!0);return ee?Bc(c,Y,_.apply(O,C)):wl(c,Y)}function Wf(c,f){var _,p=we(),C=c+22;p.firstCreatePass?(_=function X_(c,f){if(f)for(var p=f.length-1;p>=0;p--){var _=f[p];if(c===_.name)return _}}(f,p.pipeRegistry),p.data[C]=_,_.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(C,_.onDestroy)):_=p.data[C];var O=_.factory||(_.factory=go(_.type)),Y=lt(A_);try{var ee=wu(!1),oe=O();return wu(ee),function u8(c,f,p,_){p>=c.data.length&&(c.data[p]=null,c.blueprint[p]=null),f[p]=_}(p,xn(),C,oe),oe}finally{lt(Y)}}function yE(c,f,p){var _=c+22,C=xn(),O=pa(C,_);return By(C,_)?Zd(C,$o(),f,O.transform,p,O):O.transform(p)}function E1(c,f,p,_){var C=c+22,O=xn(),Y=pa(O,C);return By(O,C)?RR(O,$o(),f,Y.transform,p,_,Y):Y.transform(p,_)}function Vf(c,f,p,_,C){var O=c+22,Y=xn(),ee=pa(Y,O);return By(Y,O)?LR(Y,$o(),f,ee.transform,p,_,C,ee):ee.transform(p,_,C)}function sY(c,f,p,_,C,O){var Y=c+22,ee=xn(),oe=pa(ee,Y);return By(ee,Y)?rl(ee,$o(),f,oe.transform,p,_,C,O,oe):oe.transform(p,_,C,O)}function Hh(c,f,p){var _=c+22,C=xn(),O=pa(C,_);return By(C,_)?S1(C,$o(),f,O.transform,p,O):O.transform.apply(O,p)}function By(c,f){return c[1].data[f].pure}V_.\u0275prov=Be({token:V_,providedIn:"environment",factory:function(){return new V_(Ea(Is))}});var _U=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){var _,C=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,v.Z)(this,p),(_=f.call(this)).__isAsync=C,_}return(0,R.Z)(p,[{key:"emit",value:function(C){(0,G.Z)((0,W.Z)(p.prototype),"next",this).call(this,C)}},{key:"subscribe",value:function(C,O,Y){var ee,oe,ve,je=C,nt=O||function(){return null},dt=Y;if(C&&"object"==typeof C){var kt=C;je=null===(ee=kt.next)||void 0===ee?void 0:ee.bind(kt),nt=null===(oe=kt.error)||void 0===oe?void 0:oe.bind(kt),dt=null===(ve=kt.complete)||void 0===ve?void 0:ve.bind(kt)}this.__isAsync&&(nt=dc(nt),je&&(je=dc(je)),dt&&(dt=dc(dt)));var Xt=(0,G.Z)((0,W.Z)(p.prototype),"subscribe",this).call(this,{next:je,error:nt,complete:dt});return C instanceof D.w&&C.add(Xt),Xt}}]),p}(b.xQ);function dc(c){return function(f){setTimeout(c,void 0,f)}}var jc=_U;function gU(){return this._results[Rh()]()}var Hc=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,v.Z)(this,c),this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var p=Rh(),_=c.prototype;_[p]||(_[p]=gU)}return(0,R.Z)(c,[{key:"changes",get:function(){return this._changes||(this._changes=new jc)}},{key:"get",value:function(p){return this._results[p]}},{key:"map",value:function(p){return this._results.map(p)}},{key:"filter",value:function(p){return this._results.filter(p)}},{key:"find",value:function(p){return this._results.find(p)}},{key:"reduce",value:function(p,_){return this._results.reduce(p,_)}},{key:"forEach",value:function(p){this._results.forEach(p)}},{key:"some",value:function(p){return this._results.some(p)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(p,_){var C=this;C.dirty=!1;var O=Gl(p);(this._changesDetected=!function d5(c,f,p){if(c.length!==f.length)return!1;for(var _=0;_<c.length;_++){var C=c[_],O=f[_];if(p&&(C=p(C),O=p(O)),O!==C)return!1}return!0}(C._results,O,_))&&(C._results=O,C.length=O.length,C.last=O[this.length-1],C.first=O[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),c}(),Jl=(0,R.Z)(function c(){(0,v.Z)(this,c)});Jl.__NG_ELEMENT_ID__=function zh(){return Gc(Me(),xn())};var Gh=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O){var Y;return(0,v.Z)(this,p),(Y=f.call(this))._declarationLView=_,Y._declarationTContainer=C,Y.elementRef=O,Y}return(0,R.Z)(p,[{key:"createEmbeddedView",value:function(C,O){var Y=this._declarationTContainer.tViews,ee=JC(this._declarationLView,Y,C,16,null,Y.declTNode,null,null,null,null,O||null),oe=this._declarationLView[this._declarationTContainer.index];ee[17]=oe;var ve=this._declarationLView[19];return null!==ve&&(ee[19]=ve.createEmbeddedView(Y)),f6(Y,ee,C),new Ih(ee)}}]),p}(Jl);function Gc(c,f){return 4&c.type?new Gh(f,c,S_(c,f)):null}var Pu=(0,R.Z)(function c(){(0,v.Z)(this,c)});Pu.__NG_ELEMENT_ID__=function ZR(){return CU(Me(),xn())};var yU=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O){var Y;return(0,v.Z)(this,p),(Y=f.call(this))._lContainer=_,Y._hostTNode=C,Y._hostLView=O,Y}return(0,R.Z)(p,[{key:"element",get:function(){return S_(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new qr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var C=yf(this._hostTNode,this._hostLView);if(fs(C)){var O=Cu(C,this._hostLView),Y=Ii(C),ee=O[1].data[Y+8];return new qr(ee,O)}return new qr(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(C){var O=bU(this._lContainer);return null!==O&&O[C]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(C,O,Y){var ee,oe;"number"==typeof Y?ee=Y:null!=Y&&(ee=Y.index,oe=Y.injector);var ve=C.createEmbeddedView(O||{},oe);return this.insert(ve,ee),ve}},{key:"createComponent",value:function(C,O,Y,ee,oe){var je,ve=C&&!qt(C);if(ve)je=O;else{var nt=O||{};je=nt.index,Y=nt.injector,ee=nt.projectableNodes,oe=nt.environmentInjector||nt.ngModuleRef}var dt=ve?C:new R_(Vn(C)),kt=Y||this.parentInjector;if(!oe&&null==dt.ngModule){var _n=(ve?kt:this.parentInjector).get(Is,null);_n&&(oe=_n)}var Fn=dt.create(kt,ee,void 0,oe);return this.insert(Fn.hostView,je),Fn}},{key:"insert",value:function(C,O){var Y=C._lView,ee=Y[1];if(function Xm(c){return Ai(c[3])}(Y)){var oe=this.indexOf(C);if(-1!==oe)this.detach(oe);else{var ve=Y[3],je=new yU(ve,ve[6],ve[3]);je.detach(je.indexOf(C))}}var nt=this._adjustIndex(O),dt=this._lContainer;e3(ee,Y,dt,nt);var kt=lc(nt,dt),Xt=Y[11],_n=Ef(Xt,dt[7]);return null!==_n&&function SC(c,f,p,_,C,O){_[0]=C,_[6]=f,Yl(c,_,p,1,C,O)}(ee,dt[6],Xt,Y,_n,kt),C.attachToViewContainerRef(),AI(NR(dt),nt,C),C}},{key:"move",value:function(C,O){return this.insert(C,O)}},{key:"indexOf",value:function(C){var O=bU(this._lContainer);return null!==O?O.indexOf(C):-1}},{key:"remove",value:function(C){var O=this._adjustIndex(C,-1),Y=RM(this._lContainer,O);Y&&(dh(NR(this._lContainer),O),LM(Y[1],Y))}},{key:"detach",value:function(C){var O=this._adjustIndex(C,-1),Y=RM(this._lContainer,O);return Y&&null!=dh(NR(this._lContainer),O)?new Ih(Y):null}},{key:"_adjustIndex",value:function(C){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==C?this.length+O:C}}]),p}(Pu);function bU(c){return c[8]}function NR(c){return c[8]||(c[8]=[])}function CU(c,f){var p,_=f[c.index];if(Ai(_))p=_;else{var C;if(8&c.type)C=po(_);else{var O=f[11];C=O.createComment("");var Y=xo(c,f);Sf(O,Ef(O,Y),C,function o3(c,f){return c.nextSibling(f)}(O,Y),!1)}f[c.index]=p=CS(_,f,C,c),cc(f,p)}return new yU(p,c,f)}var cY=function(){function c(f){(0,v.Z)(this,c),this.queryList=f,this.matches=null}return(0,R.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),bE=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,R.Z)(c,[{key:"createEmbeddedView",value:function(p){var _=p.queries;if(null!==_){for(var C=null!==p.contentQueries?p.contentQueries[0]:_.length,O=[],Y=0;Y<C;Y++){var ee=_.getByIndex(Y),oe=this.queries[ee.indexInDeclarationView];O.push(oe.clone())}return new c(O)}return null}},{key:"insertView",value:function(p){this.dirtyQueriesWithMatches(p)}},{key:"detachView",value:function(p){this.dirtyQueriesWithMatches(p)}},{key:"dirtyQueriesWithMatches",value:function(p){for(var _=0;_<this.queries.length;_++)null!==$r(p,_).matches&&this.queries[_].setDirty()}}]),c}(),eg=(0,R.Z)(function c(f,p){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,v.Z)(this,c),this.predicate=f,this.flags=p,this.read=_}),Yf=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,R.Z)(c,[{key:"elementStart",value:function(p,_){for(var C=0;C<this.queries.length;C++)this.queries[C].elementStart(p,_)}},{key:"elementEnd",value:function(p){for(var _=0;_<this.queries.length;_++)this.queries[_].elementEnd(p)}},{key:"embeddedTView",value:function(p){for(var _=null,C=0;C<this.length;C++){var O=null!==_?_.length:0,Y=this.getByIndex(C).embeddedTView(p,O);Y&&(Y.indexInDeclarationView=C,null!==_?_.push(Y):_=[Y])}return null!==_?new c(_):null}},{key:"template",value:function(p,_){for(var C=0;C<this.queries.length;C++)this.queries[C].template(p,_)}},{key:"getByIndex",value:function(p){return this.queries[p]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(p){this.queries.push(p)}}]),c}(),Kf=function(){function c(f){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,v.Z)(this,c),this.metadata=f,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=p}return(0,R.Z)(c,[{key:"elementStart",value:function(p,_){this.isApplyingToNode(_)&&this.matchTNode(p,_)}},{key:"elementEnd",value:function(p){this._declarationNodeIndex===p.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(p,_){this.elementStart(p,_)}},{key:"embeddedTView",value:function(p,_){return this.isApplyingToNode(p)?(this.crossesNgTemplate=!0,this.addMatch(-p.index,_),new c(this.metadata)):null}},{key:"isApplyingToNode",value:function(p){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var _=this._declarationNodeIndex,C=p.parent;null!==C&&8&C.type&&C.index!==_;)C=C.parent;return _===(null!==C?C.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(p,_){var C=this.metadata.predicate;if(Array.isArray(C))for(var O=0;O<C.length;O++){var Y=C[O];this.matchTNodeWithReadOption(p,_,qf(_,Y)),this.matchTNodeWithReadOption(p,_,Sa(_,p,Y,!1,!1))}else C===Jl?4&_.type&&this.matchTNodeWithReadOption(p,_,-1):this.matchTNodeWithReadOption(p,_,Sa(_,p,C,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(p,_,C){if(null!==C){var O=this.metadata.read;if(null!==O)if(O===E_||O===Pu||O===Jl&&4&_.type)this.addMatch(_.index,-2);else{var Y=Sa(_,p,O,!1,!1);null!==Y&&this.addMatch(_.index,Y)}else this.addMatch(_.index,C)}}},{key:"addMatch",value:function(p,_){null===this.matches?this.matches=[p,_]:this.matches.push(p,_)}}]),c}();function qf(c,f){var p=c.localNames;if(null!==p)for(var _=0;_<p.length;_+=2)if(p[_]===f)return p[_+1];return null}function dY(c,f,p,_){return-1===p?function Jf(c,f){return 11&c.type?S_(c,f):4&c.type?Gc(c,f):null}(f,c):-2===p?function fY(c,f,p){if(p===E_)return S_(f,c);if(p===Jl)return Gc(f,c);if(p===Pu)return CU(f,c)}(c,f,_):i_(c,c[1],p,f)}function zc(c,f,p,_){var C=f[19].queries[_];if(null===C.matches){for(var O=c.data,Y=p.matches,ee=[],oe=0;oe<Y.length;oe+=2){var ve=Y[oe];if(ve<0)ee.push(null);else{var je=O[ve];ee.push(dY(f,je,Y[oe+1],p.metadata.read))}}C.matches=ee}return C.matches}function tg(c,f,p,_){var C=c.queries.getByIndex(p),O=C.matches;if(null!==O)for(var Y=zc(c,f,C,p),ee=0;ee<O.length;ee+=2){var oe=O[ee];if(oe>0)_.push(Y[ee/2]);else{for(var ve=O[ee+1],je=f[-oe],nt=10;nt<je.length;nt++){var dt=je[nt];dt[17]===dt[3]&&tg(dt[1],dt,ve,_)}if(null!==je[9])for(var kt=je[9],Xt=0;Xt<kt.length;Xt++){var _n=kt[Xt];tg(_n[1],_n,ve,_)}}}return _}function Wh(c){var f=xn(),p=we(),_=Es();xs(_+1);var C=$r(p,_);if(c.dirty&&function bd(c){return 4==(4&c[2])}(f)===(2==(2&C.metadata.flags))){if(null===C.matches)c.reset([]);else{var O=C.crossesNgTemplate?tg(p,f,_,[]):zc(p,f,C,_);c.reset(O,w3),c.notifyOnChanges()}return!0}return!1}function wU(c,f,p){var _=we();_.firstCreatePass&&(Tr(_,new eg(c,f,p),-1),2==(2&f)&&(_.staticViewQueries=!0)),Gt(_,xn(),f)}function Qf(c,f,p,_){var C=we();if(C.firstCreatePass){var O=Me();Tr(C,new eg(f,p,_),O.index),function Xf(c,f){var p=c.contentQueries||(c.contentQueries=[]),_=p.length?p[p.length-1]:-1;f!==_&&p.push(c.queries.length-1,f)}(C,c),2==(2&p)&&(C.staticContentQueries=!0)}Gt(C,xn(),p)}function fc(){return function J(c,f){return c[19].queries[f].queryList}(xn(),Es())}function Gt(c,f,p){var _=new Hc(4==(4&p));yS(c,f,_,_.destroy),null===f[19]&&(f[19]=new bE),f[19].queries.push(new cY(_))}function Tr(c,f,p){null===c.queries&&(c.queries=new Yf),c.queries.track(new Kf(f,p))}function $r(c,f){return c.queries.getByIndex(f)}function x1(c,f){return Gc(c,f)}var ts={"\u0275\u0275attribute":l1,"\u0275\u0275attributeInterpolate1":I6,"\u0275\u0275attributeInterpolate2":DS,"\u0275\u0275attributeInterpolate3":u1,"\u0275\u0275attributeInterpolate4":AS,"\u0275\u0275attributeInterpolate5":OS,"\u0275\u0275attributeInterpolate6":Nh,"\u0275\u0275attributeInterpolate7":R6,"\u0275\u0275attributeInterpolate8":s8,"\u0275\u0275attributeInterpolateV":L6,"\u0275\u0275defineComponent":Un,"\u0275\u0275defineDirective":jn,"\u0275\u0275defineInjectable":Be,"\u0275\u0275defineInjector":t,"\u0275\u0275defineNgModule":gt,"\u0275\u0275definePipe":Wn,"\u0275\u0275directiveInject":A_,"\u0275\u0275getInheritedFactory":MI,"\u0275\u0275inject":Ea,"\u0275\u0275injectAttribute":As,"\u0275\u0275invalidFactory":q3,"\u0275\u0275invalidFactoryDep":vM,"\u0275\u0275templateRefExtractor":x1,"\u0275\u0275resetView":le,"\u0275\u0275NgOnChangesFeature":ia,"\u0275\u0275ProvidersFeature":DR,"\u0275\u0275CopyDefinitionFeature":r8,"\u0275\u0275InheritDefinitionFeature":SS,"\u0275\u0275StandaloneFeature":Y_,"\u0275\u0275nextContext":US,"\u0275\u0275namespaceHTML":si,"\u0275\u0275namespaceMathML":Rr,"\u0275\u0275namespaceSVG":wn,"\u0275\u0275enableBindings":bu,"\u0275\u0275disableBindings":jl,"\u0275\u0275elementStart":d1,"\u0275\u0275elementEnd":f1,"\u0275\u0275element":IS,"\u0275\u0275elementContainerStart":Bh,"\u0275\u0275elementContainerEnd":Cy,"\u0275\u0275elementContainer":LS,"\u0275\u0275pureFunction0":Ny,"\u0275\u0275pureFunction1":qn,"\u0275\u0275pureFunction2":IR,"\u0275\u0275pureFunction3":fU,"\u0275\u0275pureFunction4":pU,"\u0275\u0275pureFunction5":hU,"\u0275\u0275pureFunction6":vE,"\u0275\u0275pureFunction7":Q_,"\u0275\u0275pureFunction8":mU,"\u0275\u0275pureFunctionV":Uc,"\u0275\u0275getCurrentView":B6,"\u0275\u0275restoreView":ke,"\u0275\u0275listener":NS,"\u0275\u0275projection":G6,"\u0275\u0275syntheticHostProperty":oR,"\u0275\u0275syntheticHostListener":BS,"\u0275\u0275pipeBind1":yE,"\u0275\u0275pipeBind2":E1,"\u0275\u0275pipeBind3":Vf,"\u0275\u0275pipeBind4":sY,"\u0275\u0275pipeBindV":Hh,"\u0275\u0275projectionDef":jS,"\u0275\u0275hostProperty":iR,"\u0275\u0275property":U_,"\u0275\u0275propertyInterpolate":HS,"\u0275\u0275propertyInterpolate1":h1,"\u0275\u0275propertyInterpolate2":GS,"\u0275\u0275propertyInterpolate3":zS,"\u0275\u0275propertyInterpolate4":m1,"\u0275\u0275propertyInterpolate5":WS,"\u0275\u0275propertyInterpolate6":VS,"\u0275\u0275propertyInterpolate7":z6,"\u0275\u0275propertyInterpolate8":W6,"\u0275\u0275propertyInterpolateV":YS,"\u0275\u0275pipe":Wf,"\u0275\u0275queryRefresh":Wh,"\u0275\u0275viewQuery":wU,"\u0275\u0275loadQuery":fc,"\u0275\u0275contentQuery":Qf,"\u0275\u0275reference":PS,"\u0275\u0275classMap":XS,"\u0275\u0275classMapInterpolate1":O8,"\u0275\u0275classMapInterpolate2":P8,"\u0275\u0275classMapInterpolate3":I8,"\u0275\u0275classMapInterpolate4":xV,"\u0275\u0275classMapInterpolate5":DV,"\u0275\u0275classMapInterpolate6":AV,"\u0275\u0275classMapInterpolate7":OV,"\u0275\u0275classMapInterpolate8":PV,"\u0275\u0275classMapInterpolateV":IV,"\u0275\u0275styleMap":Ns,"\u0275\u0275styleMapInterpolate1":RV,"\u0275\u0275styleMapInterpolate2":LV,"\u0275\u0275styleMapInterpolate3":ZV,"\u0275\u0275styleMapInterpolate4":NV,"\u0275\u0275styleMapInterpolate5":BV,"\u0275\u0275styleMapInterpolate6":FV,"\u0275\u0275styleMapInterpolate7":UV,"\u0275\u0275styleMapInterpolate8":jV,"\u0275\u0275styleMapInterpolateV":HV,"\u0275\u0275styleProp":QS,"\u0275\u0275stylePropInterpolate1":rR,"\u0275\u0275stylePropInterpolate2":R8,"\u0275\u0275stylePropInterpolate3":L8,"\u0275\u0275stylePropInterpolate4":Z8,"\u0275\u0275stylePropInterpolate5":N8,"\u0275\u0275stylePropInterpolate6":B8,"\u0275\u0275stylePropInterpolate7":F8,"\u0275\u0275stylePropInterpolate8":U8,"\u0275\u0275stylePropInterpolateV":j8,"\u0275\u0275classProp":g1,"\u0275\u0275advance":I3,"\u0275\u0275template":N6,"\u0275\u0275text":$6,"\u0275\u0275textInterpolate":eE,"\u0275\u0275textInterpolate1":tE,"\u0275\u0275textInterpolate2":eR,"\u0275\u0275textInterpolate3":tR,"\u0275\u0275textInterpolate4":nR,"\u0275\u0275textInterpolate5":nE,"\u0275\u0275textInterpolate6":rE,"\u0275\u0275textInterpolate7":x8,"\u0275\u0275textInterpolate8":D8,"\u0275\u0275textInterpolateV":A8,"\u0275\u0275i18n":dE,"\u0275\u0275i18nAttributes":aU,"\u0275\u0275i18nExp":Py,"\u0275\u0275i18nStart":Oy,"\u0275\u0275i18nEnd":TR,"\u0275\u0275i18nApply":MR,"\u0275\u0275i18nPostprocess":Iy,"\u0275\u0275resolveWindow":Dh,"\u0275\u0275resolveDocument":ly,"\u0275\u0275resolveBody":E3,"\u0275\u0275setComponentScope":Kt,"\u0275\u0275setNgModuleScope":wt,"\u0275\u0275registerNgModuleType":w5,"\u0275\u0275sanitizeHtml":YM,"\u0275\u0275sanitizeStyle":g3,"\u0275\u0275sanitizeResourceUrl":v3,"\u0275\u0275sanitizeScript":z5,"\u0275\u0275sanitizeUrl":Mh,"\u0275\u0275sanitizeUrlOrResourceUrl":V5,"\u0275\u0275trustConstantHtml":y3,"\u0275\u0275trustConstantResourceUrl":W5,"\u0275\u0275validateIframeAttribute":Z5,forwardRef:Q,resolveForwardRef:te},ng=null;function BR(c){return void 0!==c.ngModule}function FR(c){return!!zi(c)}var Fy=[];function kU(c,f){Fy.push({moduleType:c,ngModule:f})}var CE=!1;function UR(c){return Array.isArray(c)?c.every(UR):!!te(c)}function jR(c,f){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var _=Gl(f.declarations||tt),C=null;Object.defineProperty(c,Re,{configurable:!0,get:function(){if(null===C){var oe=Za();(C=oe.compileNgModule(ts,"ng:///".concat(c.name,"/\u0275mod.js"),{type:c,bootstrap:Gl(f.bootstrap||tt).map(te),declarations:_.map(te),imports:Gl(f.imports||tt).map(te).map(kE),exports:Gl(f.exports||tt).map(te).map(kE),schemas:f.schemas?Gl(f.schemas):null,id:f.id||null})).schemas||(C.schemas=[])}return C}});var O=null;Object.defineProperty(c,Je,{get:function(){if(null===O){var oe=Za();O=oe.compileFactory(ts,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:Hv(c),target:oe.FactoryTarget.NgModule,typeArgumentCount:0})}return O},configurable:!1});var Y=null;Object.defineProperty(c,Qe,{get:function(){if(null===Y){var oe={name:c.name,type:c,providers:f.providers||tt,imports:[(f.imports||tt).map(te),(f.exports||tt).map(te)]},ve=Za();Y=ve.compileInjector(ts,"ng:///".concat(c.name,"/\u0275inj.js"),oe)}return Y},configurable:!1})}function ig(c,f){var p=Gl(f.declarations||tt),_=pc(c);p.forEach(function(C){(C=te(C)).hasOwnProperty(Et)?tp(Vn(C),_):!C.hasOwnProperty(We)&&!C.hasOwnProperty(Ye)&&(C.ngSelectorScope=c)})}function tp(c,f){c.directiveDefs=function(){return Array.from(f.compilation.directives).map(function(p){return p.hasOwnProperty(Et)?Vn(p):ir(p)}).filter(function(p){return!!p})},c.pipeDefs=function(){return Array.from(f.compilation.pipes).map(function(p){return Ir(p)})},c.schemas=f.schemas,c.tView=null}function pc(c){if(FR(c))return function _Y(c){var f=zi(c,!0);if(null!==f.transitiveCompileScopes)return f.transitiveCompileScopes;var p={schemas:f.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Pd(f.imports).forEach(function(_){var C=pc(_);C.exported.directives.forEach(function(O){return p.compilation.directives.add(O)}),C.exported.pipes.forEach(function(O){return p.compilation.pipes.add(O)})}),Pd(f.declarations).forEach(function(_){Ir(_)?p.compilation.pipes.add(_):p.compilation.directives.add(_)}),Pd(f.exports).forEach(function(_){var C=_;if(FR(C)){var O=pc(C);O.exported.directives.forEach(function(Y){p.compilation.directives.add(Y),p.exported.directives.add(Y)}),O.exported.pipes.forEach(function(Y){p.compilation.pipes.add(Y),p.exported.pipes.add(Y)})}else Ir(C)?p.exported.pipes.add(C):p.exported.directives.add(C)}),f.transitiveCompileScopes=p,p}(c);if(yi(c)){if(null!==(Vn(c)||ir(c)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([c]),pipes:new Set}};if(null!==Ir(c))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([c])}}}throw new Error("".concat(c.name," does not have a module def (\u0275mod property)"))}function kE(c){return BR(c)?c.ngModule:c}var TE=0;function SU(c,f){var p=null;(function Tf(c,f){c_(f)&&(mh.set(c,f),yC.add(c))})(c,f),WR(c,f),Object.defineProperty(c,Et,{get:function(){if(null===p){var C=Za();if(c_(f)){var O=["Component '".concat(c.name,"' is not resolved:")];throw f.templateUrl&&O.push(" - templateUrl: ".concat(f.templateUrl)),f.styleUrls&&f.styleUrls.length&&O.push(" - styleUrls: ".concat(JSON.stringify(f.styleUrls))),O.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(O.join("\n"))}var Y=function D1(){return ng}(),ee=f.preserveWhitespaces;void 0===ee&&(ee=null!==Y&&void 0!==Y.preserveWhitespaces&&Y.preserveWhitespaces);var oe=f.encapsulation;void 0===oe&&(oe=null!==Y&&void 0!==Y.defaultEncapsulation?Y.defaultEncapsulation:Sn.Emulated);var ve=f.templateUrl||"ng:///".concat(c.name,"/template.html"),je=Object.assign(Object.assign({},OU(c,f)),{typeSourceSpan:C.createParseSourceSpan("Component",c.name,ve),template:f.template||"",preserveWhitespaces:ee,styles:f.styles||tt,animations:f.animations,declarations:[],changeDetection:f.changeDetection,encapsulation:oe,interpolation:f.interpolation,viewProviders:f.viewProviders||null,isStandalone:!!f.standalone});TE++;try{if(je.usesInheritance&&VR(c),p=C.compileComponent(ts,ve,je),f.standalone){var nt=Gl(f.imports||tt),dt=function xU(c,f){var p=null,_=null,C=function(){if(null===p){p=[Vn(c)];var ve,ee=new Set,oe=(0,T.Z)(f);try{for(oe.s();!(ve=oe.n()).done;){var nt=te(ve.value);if(!ee.has(nt))if(ee.add(nt),zi(nt)){var Xt,dt=pc(nt),kt=(0,T.Z)(dt.exported.directives);try{for(kt.s();!(Xt=kt.n()).done;){var _n=Xt.value,Fn=Vn(_n)||ir(_n);Fn&&!ee.has(_n)&&(ee.add(_n),p.push(Fn))}}catch(er){kt.e(er)}finally{kt.f()}}else{var Jn=Vn(nt)||ir(nt);Jn&&p.push(Jn)}}}catch(er){oe.e(er)}finally{oe.f()}}return p},O=function(){if(null===_){_=[];var ve,ee=new Set,oe=(0,T.Z)(f);try{for(oe.s();!(ve=oe.n()).done;){var nt=te(ve.value);if(!ee.has(nt))if(ee.add(nt),zi(nt)){var Xt,dt=pc(nt),kt=(0,T.Z)(dt.exported.pipes);try{for(kt.s();!(Xt=kt.n()).done;){var _n=Xt.value,Fn=Ir(_n);Fn&&!ee.has(_n)&&(ee.add(_n),_.push(Fn))}}catch(er){kt.e(er)}finally{kt.f()}}else{var Jn=Ir(nt);Jn&&_.push(Jn)}}}catch(er){oe.e(er)}finally{oe.f()}}return _};return{directiveDefs:C,pipeDefs:O}}(c,nt),kt=dt.directiveDefs,Xt=dt.pipeDefs;p.directiveDefs=kt,p.pipeDefs=Xt,p.dependencies=function(){return nt.map(te)}}}finally{TE--}if(0===TE&&function TU(){if(!CE){CE=!0;try{for(var c=Fy.length-1;c>=0;c--){var f=Fy[c],p=f.moduleType,_=f.ngModule;_.declarations&&_.declarations.every(UR)&&(Fy.splice(c,1),ig(p,_))}}finally{CE=!1}}}(),function DU(c){return void 0!==c.ngSelectorScope}(c)){var _n=pc(c.ngSelectorScope);tp(p,_n)}if(f.schemas){if(!f.standalone)throw new Error("The 'schemas' was specified for the ".concat(ge(c)," but is only valid on a component that is standalone."));p.schemas=f.schemas}else f.standalone&&(p.schemas=[])}return p},configurable:!1})}function GR(c,f){var p=null;WR(c,f||{}),Object.defineProperty(c,We,{get:function(){if(null===p){var C=zR(c,f||{}),O=Za();p=O.compileDirective(ts,C.sourceMapUrl,C.metadata)}return p},configurable:!1})}function zR(c,f){var p=c&&c.name,_="ng:///".concat(p,"/\u0275dir.js"),C=Za(),O=OU(c,f);return O.typeSourceSpan=C.createParseSourceSpan("Directive",p,_),O.usesInheritance&&VR(c),{metadata:O,sourceMapUrl:_}}function WR(c,f){var p=null;Object.defineProperty(c,Je,{get:function(){if(null===p){var C=zR(c,f),O=Za();p=O.compileFactory(ts,"ng:///".concat(c.name,"/\u0275fac.js"),{name:C.metadata.name,type:C.metadata.type,typeArgumentCount:0,deps:Hv(c),target:O.FactoryTarget.Directive})}return p},configurable:!1})}function AU(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function OU(c,f){var p=jv(),_=p.ownPropMetadata(c);return{name:c.name,type:c,selector:void 0!==f.selector?f.selector:null,host:f.host||xt,propMetadata:_,inputs:f.inputs||tt,outputs:f.outputs||tt,queries:YR(c,_,KR),lifecycle:{usesOnChanges:p.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!AU(c),exportAs:RU(f.exportAs),providers:f.providers||null,viewQueries:YR(c,_,qR),isStandalone:!!f.standalone}}function VR(c){for(var f=Object.prototype,p=Object.getPrototypeOf(c.prototype).constructor;p&&p!==f;)!ir(p)&&!Vn(p)&&yY(p)&&GR(p,null),p=Object.getPrototypeOf(p)}function PU(c){return"string"==typeof c?QR(c):te(c)}function YR(c,f,p){var _=[],C=function(ee){if(f.hasOwnProperty(ee)){var oe=f[ee];oe.forEach(function(ve){if(p(ve)){if(!ve.selector)throw new Error("Can't construct a query for the property \"".concat(ee,'" of ')+'"'.concat(ge(c),"\" since the query selector wasn't defined."));if(oe.some(JR))throw new Error("Cannot combine @Input decorators with query decorators");_.push(function IU(c,f){return{propertyName:c,predicate:PU(f.selector),descendants:f.descendants,first:f.first,read:f.read?f.read:null,static:!!f.static,emitDistinctChangesOnly:!!f.emitDistinctChangesOnly}}(ee,ve))}})}};for(var O in f)C(O);return _}function RU(c){return void 0===c?null:QR(c)}function KR(c){var f=c.ngMetadataName;return"ContentChild"===f||"ContentChildren"===f}function qR(c){var f=c.ngMetadataName;return"ViewChild"===f||"ViewChildren"===f}function JR(c){return"Input"===c.ngMetadataName}function QR(c){return c.split(",").map(function(f){return f.trim()})}var vY=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function yY(c){var f=jv();if(vY.some(function(oe){return f.hasLifecycleHook(c,oe)}))return!0;var p=f.propMetadata(c);for(var _ in p)for(var C=p[_],O=0;O<C.length;O++){var Y=C[O],ee=Y.ngMetadataName;if(JR(Y)||KR(Y)||qR(Y)||"Output"===ee||"HostBinding"===ee||"HostListener"===ee)return!0}return!1}function XR(c,f){return{type:c,name:c.name,pipeName:f.name,pure:void 0===f.pure||f.pure,isStandalone:!!f.standalone}}var $R=Cf("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,f){return GR(c,f)}),ZU=Cf("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:sn.Default},c)},$R,void 0,function(c,f){return SU(c,f)}),NU=Cf("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,f){return function LU(c,f){var p=null,_=null;Object.defineProperty(c,Je,{get:function(){if(null===_){var O=XR(c,f),Y=Za(O.type);_=Y.compileFactory(ts,"ng:///".concat(O.name,"/\u0275fac.js"),{name:O.name,type:O.type,typeArgumentCount:0,deps:Hv(c),target:Y.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(c,Ye,{get:function(){if(null===p){var O=XR(c,f),Y=Za(O.type);p=Y.compilePipe(ts,"ng:///".concat(O.name,"/\u0275pipe.js"),O)}return p},configurable:!1})}(c,f)}),BU=kd("Input",function(c){return{bindingPropertyName:c}}),FU=kd("Output",function(c){return{bindingPropertyName:c}}),UU=kd("HostBinding",function(c){return{hostPropertyName:c}}),jU=kd("HostListener",function(c,f){return{eventName:c,args:f}}),HU=Cf("NgModule",function(c){return c},void 0,void 0,function(c,f){return function MU(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jR(c,f),void 0!==f.id&&w5(c,f.id),kU(c,f)}(c,f)});function O1(){}var eL=new io("Application Initializer"),Nd=function(){function c(f){var p=this;(0,v.Z)(this,c),this.appInits=f,this.resolve=O1,this.reject=O1,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(_,C){p.resolve=_,p.reject=C})}return(0,R.Z)(c,[{key:"runInitializers",value:function(){var p=this;if(!this.initialized){var _=[],C=function(){p.done=!0,p.resolve()};if(this.appInits)for(var O=function(){var oe=p.appInits[Y]();if(p1(oe))_.push(oe);else if(ZS(oe)){var ve=new Promise(function(je,nt){oe.subscribe({complete:je,error:nt})});_.push(ve)}},Y=0;Y<this.appInits.length;Y++)O();Promise.all(_).then(function(){C()}).catch(function(ee){p.reject(ee)}),0===_.length&&C(),this.initialized=!0}}}]),c}();Nd.\u0275fac=function(f){return new(f||Nd)(Ea(eL,8))},Nd.\u0275prov=Be({token:Nd,factory:Nd.\u0275fac,providedIn:"root"});var tL=new io("AppId",{providedIn:"root",factory:P1});function P1(){return"".concat(I1()).concat(I1()).concat(I1())}function I1(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var R1=new io("Platform Initializer"),ME=new io("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),L1=new io("appBootstrapListener"),nL=(new io("Application Packages Root URL"),new io("AnimationModuleType")),np=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"log",value:function(p){console.log(p)}},{key:"warn",value:function(p){console.warn(p)}}]),c}();np.\u0275fac=function(f){return new(f||np)},np.\u0275prov=Be({token:np,factory:np.\u0275fac,providedIn:"platform"});var rp,Uy=new io("LocaleId",{providedIn:"root",factory:function(){return LI(Uy,ye.Optional|ye.SkipSelf)||function rL(){return"undefined"!=typeof $localize&&$localize.locale||Ty}()}}),SE=new io("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new io("Translations"),new io("TranslationsFormat");!function(c){c[c.Error=0]="Error",c[c.Warning=1]="Warning",c[c.Ignore=2]="Ignore"}(rp||(rp={}));var iL=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.ngModuleFactory=f,this.componentFactories=p}),og=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"compileModuleSync",value:function(p){return new mE(p)}},{key:"compileModuleAsync",value:function(p){return Promise.resolve(this.compileModuleSync(p))}},{key:"compileModuleAndAllComponentsSync",value:function(p){var _=this.compileModuleSync(p),O=Pd(zi(p).declarations).reduce(function(Y,ee){var oe=Vn(ee);return oe&&Y.push(new R_(oe)),Y},[]);return new iL(_,O)}},{key:"compileModuleAndAllComponentsAsync",value:function(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}},{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(p){}},{key:"getModuleId",value:function(p){}}]),c}();og.\u0275fac=function(f){return new(f||og)},og.\u0275prov=Be({token:og,factory:og.\u0275fac,providedIn:"root"});new io("compilerOptions");var zU=Promise.resolve(0);function Z1(c){"undefined"==typeof Zone?zU.then(function(){c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}var Wc=function(){function c(f){var p=f.enableLongStackTrace,_=void 0!==p&&p,C=f.shouldCoalesceEventChangeDetection,O=void 0!==C&&C,Y=f.shouldCoalesceRunChangeDetection,ee=void 0!==Y&&Y;if((0,v.Z)(this,c),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jc(!1),this.onMicrotaskEmpty=new jc(!1),this.onStable=new jc(!1),this.onError=new jc(!1),"undefined"==typeof Zone)throw new fe(908,!1);Zone.assertZonePatched();var oe=this;if(oe._nesting=0,oe._outer=oe._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){var ve=Zone.AsyncStackTaggingZoneSpec;oe._inner=oe._inner.fork(new ve("Angular"))}Zone.TaskTrackingZoneSpec&&(oe._inner=oe._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(oe._inner=oe._inner.fork(Zone.longStackTraceZoneSpec)),oe.shouldCoalesceEventChangeDetection=!ee&&O,oe.shouldCoalesceRunChangeDetection=ee,oe.lastRequestAnimationFrameId=-1,oe.nativeRequestAnimationFrame=function WU(){var c=hn.requestAnimationFrame,f=hn.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&f){var p=c[Zone.__symbol__("OriginalDelegate")];p&&(c=p);var _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function aL(c){var f=function(){!function N1(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(hn,function(){c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){c.lastRequestAnimationFrameId=-1,jy(c),c.isCheckStableRunning=!0,sg(c),c.isCheckStableRunning=!1},void 0,function(){},function(){})),c.fakeTopEventTask.invoke()}),jy(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(_,C,O,Y,ee,oe){try{return Vc(c),_.invokeTask(O,Y,ee,oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===Y.type||c.shouldCoalesceRunChangeDetection)&&f(),B1(c)}},onInvoke:function(_,C,O,Y,ee,oe,ve){try{return Vc(c),_.invoke(O,Y,ee,oe,ve)}finally{c.shouldCoalesceRunChangeDetection&&f(),B1(c)}},onHasTask:function(_,C,O,Y){_.hasTask(O,Y),C===O&&("microTask"==Y.change?(c._hasPendingMicrotasks=Y.microTask,jy(c),sg(c)):"macroTask"==Y.change&&(c.hasPendingMacrotasks=Y.macroTask))},onHandleError:function(_,C,O,Y){return _.handleError(O,Y),c.runOutsideAngular(function(){return c.onError.emit(Y)}),!1}})}(oe)}return(0,R.Z)(c,[{key:"run",value:function(p,_,C){return this._inner.run(p,_,C)}},{key:"runTask",value:function(p,_,C,O){var Y=this._inner,ee=Y.scheduleEventTask("NgZoneEvent: "+O,p,xE,O1,O1);try{return Y.runTask(ee,_,C)}finally{Y.cancelTask(ee)}}},{key:"runGuarded",value:function(p,_,C){return this._inner.runGuarded(p,_,C)}},{key:"runOutsideAngular",value:function(p){return this._outer.run(p)}}],[{key:"isInAngularZone",value:function(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!c.isInAngularZone())throw new fe(909,!1)}},{key:"assertNotInAngularZone",value:function(){if(c.isInAngularZone())throw new fe(909,!1)}}]),c}(),xE={};function sg(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(function(){return c.onStable.emit(null)})}finally{c.isStable=!0}}}function jy(c){c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId?c.hasPendingMicrotasks=!0:c.hasPendingMicrotasks=!1}function Vc(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function B1(c){c._nesting--,sg(c)}var F1=function(){function c(){(0,v.Z)(this,c),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jc,this.onMicrotaskEmpty=new jc,this.onStable=new jc,this.onError=new jc}return(0,R.Z)(c,[{key:"run",value:function(p,_,C){return p.apply(_,C)}},{key:"runGuarded",value:function(p,_,C){return p.apply(_,C)}},{key:"runOutsideAngular",value:function(p){return p()}},{key:"runTask",value:function(p,_,C,O){return p.apply(_,C)}}]),c}(),sL=new io(""),lg=new io(""),Yh=function(){function c(f,p,_){var C=this;(0,v.Z)(this,c),this._ngZone=f,this.registry=p,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Lu||(function TY(c){Lu=c}(_),_.addToWindow(p)),this._watchAngularEvents(),f.run(function(){C.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,R.Z)(c,[{key:"_watchAngularEvents",value:function(){var p=this;this._ngZone.onUnstable.subscribe({next:function(){p._didWork=!0,p._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){p._ngZone.onStable.subscribe({next:function(){Wc.assertNotInAngularZone(),Z1(function(){p._isZoneStable=!0,p._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var p=this;if(this.isStable())Z1(function(){for(;0!==p._callbacks.length;){var C=p._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(p._didWork)}p._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(C){return!C.updateCb||!C.updateCb(_)||(clearTimeout(C.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(p){return{source:p.source,creationLocation:p.creationLocation,data:p.data}}):[]}},{key:"addCallback",value:function(p,_,C){var O=this,Y=-1;_&&_>0&&(Y=setTimeout(function(){O._callbacks=O._callbacks.filter(function(ee){return ee.timeoutId!==Y}),p(O._didWork,O.getPendingTasks())},_)),this._callbacks.push({doneCb:p,timeoutId:Y,updateCb:C})}},{key:"whenStable",value:function(p,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(p,_,C),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"registerApplication",value:function(p){this.registry.registerApplication(p,this)}},{key:"unregisterApplication",value:function(p){this.registry.unregisterApplication(p)}},{key:"findProviders",value:function(p,_,C){return[]}}]),c}();Yh.\u0275fac=function(f){return new(f||Yh)(Ea(Wc),Ea(Kh),Ea(lg))},Yh.\u0275prov=Be({token:Yh,factory:Yh.\u0275fac});var Lu,Kh=function(){function c(){(0,v.Z)(this,c),this._applications=new Map}return(0,R.Z)(c,[{key:"registerApplication",value:function(p,_){this._applications.set(p,_)}},{key:"unregisterApplication",value:function(p){this._applications.delete(p)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(p){return this._applications.get(p)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(p){var C,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!==(C=null==Lu?void 0:Lu.findTestabilityInTree(this,p,_))&&void 0!==C?C:null}}]),c}();Kh.\u0275fac=function(f){return new(f||Kh)},Kh.\u0275prov=Be({token:Kh,factory:Kh.\u0275fac,providedIn:"platform"});var hc=null,DE=new io("AllowMultipleToken"),Zu=new io("PlatformDestroyListeners"),il=!1;function Hy(c,f,p){var _=new mE(p);return Promise.resolve(_)}var lL=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.name=f,this.token=p});function Gy(c){if(hc&&!hc.get(DE,!1))throw new fe(400,!1);hc=c;var f=c.get(Yc);return uL(c),f}function uL(c){var f=c.get(R1,null);f&&f.forEach(function(p){return p()})}function dL(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_="Platform: ".concat(f),C=new io(_);return function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Y=j1();if(!Y||Y.injector.get(DE,!1)){var ee=[].concat((0,E.Z)(p),(0,E.Z)(O),[{provide:C,useValue:!0}]);c?c(ee):Gy(fL(ee,_))}return VU(C)}}function VU(c){var f=j1();if(!f)throw new fe(401,!1);return f}function fL(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;return bl.create({name:f,providers:[{provide:T_,useValue:"platform"},{provide:Zu,useValue:new Set([function(){return hc=null}])}].concat((0,E.Z)(c))})}function j1(){var c;return null!==(c=null==hc?void 0:hc.get(Yc))&&void 0!==c?c:null}var Yc=function(){function c(f){(0,v.Z)(this,c),this._injector=f,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,R.Z)(c,[{key:"bootstrapModuleFactory",value:function(p,_){var C=this,O=YU(null==_?void 0:_.ngZone,zy(_)),Y=[{provide:Wc,useValue:O}];return O.run(function(){var ee=bl.create({providers:Y,parent:C.injector,name:p.moduleType.name}),oe=p.create(ee),ve=oe.injector.get(xh,null);if(!ve)throw new fe(402,!1);return O.runOutsideAngular(function(){var je=O.onError.subscribe({next:function(dt){ve.handleError(dt)}});oe.onDestroy(function(){OE(C._modules,oe),je.unsubscribe()})}),pL(ve,O,function(){var je=oe.injector.get(Nd);return je.runInitializers(),je.donePromise.then(function(){return V8(oe.injector.get(Uy,Ty)||Ty),C._moduleDoBootstrap(oe),oe})})})}},{key:"bootstrapModule",value:function(p){var _=this,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],O=hL({},C);return Hy(this.injector,0,p).then(function(Y){return _.bootstrapModuleFactory(Y,O)})}},{key:"_moduleDoBootstrap",value:function(p){var _=p.injector.get(ip);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(function(C){return _.bootstrap(C)});else{if(!p.instance.ngDoBootstrap)throw new fe(403,!1);p.instance.ngDoBootstrap(_)}this._modules.push(p)}},{key:"onDestroy",value:function(p){this._destroyListeners.push(p)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new fe(404,!1);this._modules.slice().forEach(function(_){return _.destroy()}),this._destroyListeners.forEach(function(_){return _()});var p=this._injector.get(Zu,null);p&&(p.forEach(function(_){return _()}),p.clear()),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();function zy(c){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}}function YU(c,f){return"noop"===c?new F1:("zone.js"===c?void 0:c)||new Wc(f)}function pL(c,f,p){try{var _=p();return p1(_)?_.catch(function(C){throw f.runOutsideAngular(function(){return c.handleError(C)}),C}):_}catch(C){throw f.runOutsideAngular(function(){return c.handleError(C)}),C}}function hL(c,f){return c=Array.isArray(f)?f.reduce(hL,c):Object.assign(Object.assign({},c),f)}Yc.\u0275fac=function(f){return new(f||Yc)(Ea(bl))},Yc.\u0275prov=Be({token:Yc,factory:Yc.\u0275fac,providedIn:"platform"});var ip=function(){function c(f,p,_){var C=this;(0,v.Z)(this,c),this._zone=f,this._injector=p,this._exceptionHandler=_,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){C._zone.run(function(){C.tick()})}});var O=new S.y(function(ee){C._stable=C._zone.isStable&&!C._zone.hasPendingMacrotasks&&!C._zone.hasPendingMicrotasks,C._zone.runOutsideAngular(function(){ee.next(C._stable),ee.complete()})}),Y=new S.y(function(ee){var oe;C._zone.runOutsideAngular(function(){oe=C._zone.onStable.subscribe(function(){Wc.assertNotInAngularZone(),Z1(function(){!C._stable&&!C._zone.hasPendingMacrotasks&&!C._zone.hasPendingMicrotasks&&(C._stable=!0,ee.next(!0))})})});var ve=C._zone.onUnstable.subscribe(function(){Wc.assertInAngularZone(),C._stable&&(C._stable=!1,C._zone.runOutsideAngular(function(){ee.next(!1)}))});return function(){oe.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,k.T)(O,Y.pipe((0,M.B)()))}return(0,R.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"injector",get:function(){return this._injector}},{key:"bootstrap",value:function(p,_){var ve,C=this,O=p instanceof BC;if(!this._injector.get(Nd).done){!O&&yi(p);throw new fe(405,il)}O?ve=p:ve=this._injector.get(Bf).resolveComponentFactory(p);this.componentTypes.push(ve.componentType);var nt=function AE(c){return c.isBoundToModule}(ve)?void 0:this._injector.get(Uh),dt=_||ve.selector,kt=ve.create(bl.NULL,[],dt,nt),Xt=kt.location.nativeElement,_n=kt.injector.get(sL,null);return null==_n||_n.registerApplication(Xt),kt.onDestroy(function(){C.detachView(kt.hostView),OE(C.components,kt),null==_n||_n.unregisterApplication(Xt)}),this._loadComponent(kt),kt}},{key:"tick",value:function(){var p=this;if(this._runningTick)throw new fe(101,!1);try{this._runningTick=!0;var C,_=(0,T.Z)(this._views);try{for(_.s();!(C=_.n()).done;){C.value.detectChanges()}}catch(ve){_.e(ve)}finally{_.f()}}catch(ve){this._zone.runOutsideAngular(function(){return p._exceptionHandler.handleError(ve)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(p){var _=p;this._views.push(_),_.attachToAppRef(this)}},{key:"detachView",value:function(p){var _=p;OE(this._views,_),_.detachFromAppRef()}},{key:"_loadComponent",value:function(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(L1,[]).concat(this._bootstrapListeners).forEach(function(C){return C(p)})}},{key:"ngOnDestroy",value:function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(p){return p()}),this._views.slice().forEach(function(p){return p.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}},{key:"onDestroy",value:function(p){var _=this;return this._destroyListeners.push(p),function(){return OE(_._destroyListeners,p)}}},{key:"destroy",value:function(){if(this._destroyed)throw new fe(406,!1);var p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}},{key:"viewCount",get:function(){return this._views.length}},{key:"warnIfDestroyed",value:function(){}}]),c}();function OE(c,f){var p=c.indexOf(f);p>-1&&c.splice(p,1)}ip.\u0275fac=function(f){return new(f||ip)(Ea(Wc),Ea(Is),Ea(xh))},ip.\u0275prov=Be({token:ip,factory:ip.\u0275fac,providedIn:"root"});var _L=!1;function H1(){if(_L)throw new Error("Cannot enable prod mode after platform setup.");!1}var G1=(0,R.Z)(function c(){(0,v.Z)(this,c)});G1.__NG_ELEMENT_ID__=function vL(c){return function QU(c,f,p){if(Ki(c)&&!p){var _=Ho(c.index,f);return new Ih(_,_)}if(47&c.type){var C=f[16];return new Ih(C,f)}return null}(Me(),xn(),16==(16&c))};var XU=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p)}(G1),$U=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p)}(XU);var r7=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"supports",value:function(p){return yy(p)}},{key:"create",value:function(p){return new PY(p)}}]),c}(),NE=function(f,p){return p},PY=function(){function c(f){(0,v.Z)(this,c),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||NE}return(0,R.Z)(c,[{key:"forEachItem",value:function(p){var _;for(_=this._itHead;null!==_;_=_._next)p(_)}},{key:"forEachOperation",value:function(p){for(var _=this._itHead,C=this._removalsHead,O=0,Y=null;_||C;){var ee=!C||_&&_.currentIndex<z1(C,O,Y)?_:C,oe=z1(ee,O,Y),ve=ee.currentIndex;if(ee===C)O--,C=C._nextRemoved;else if(_=_._next,null==ee.previousIndex)O++;else{Y||(Y=[]);var je=oe-O,nt=ve-O;if(je!=nt){for(var dt=0;dt<je;dt++){var kt=dt<Y.length?Y[dt]:Y[dt]=0,Xt=kt+dt;nt<=Xt&&Xt<je&&(Y[dt]=kt+1)}Y[ee.previousIndex]=nt-je}}oe!==ve&&p(ee,oe,ve)}}},{key:"forEachPreviousItem",value:function(p){var _;for(_=this._previousItHead;null!==_;_=_._nextPrevious)p(_)}},{key:"forEachAddedItem",value:function(p){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)p(_)}},{key:"forEachMovedItem",value:function(p){var _;for(_=this._movesHead;null!==_;_=_._nextMoved)p(_)}},{key:"forEachRemovedItem",value:function(p){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)p(_)}},{key:"forEachIdentityChange",value:function(p){var _;for(_=this._identityChangesHead;null!==_;_=_._nextIdentityChange)p(_)}},{key:"diff",value:function(p){if(null==p&&(p=[]),!yy(p))throw new fe(900,!1);return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var Y,ee,oe,C=this._itHead,O=!1;if(Array.isArray(p)){this.length=p.length;for(var ve=0;ve<this.length;ve++)ee=p[ve],oe=this._trackByFn(ve,ee),null!==C&&Object.is(C.trackById,oe)?(O&&(C=this._verifyReinsertion(C,ee,oe,ve)),Object.is(C.item,ee)||this._addIdentityChange(C,ee)):(C=this._mismatch(C,ee,oe,ve),O=!0),C=C._next}else Y=0,function o8(c,f){if(Array.isArray(c))for(var p=0;p<c.length;p++)f(c[p]);else for(var C,_=c[Rh()]();!(C=_.next()).done;)f(C.value)}(p,function(je){oe=_._trackByFn(Y,je),null!==C&&Object.is(C.trackById,oe)?(O&&(C=_._verifyReinsertion(C,je,oe,Y)),Object.is(C.item,je)||_._addIdentityChange(C,je)):(C=_._mismatch(C,je,oe,Y),O=!0),C=C._next,Y++}),this.length=Y;return this._truncate(C),this.collection=p,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(p,_,C,O){var Y;return null===p?Y=this._itTail:(Y=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._reinsertAfter(p,Y,O)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(C,O))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._moveAfter(p,Y,O)):p=this._addAfter(new i7(_,C),Y,O),p}},{key:"_verifyReinsertion",value:function(p,_,C,O){var Y=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==Y?p=this._reinsertAfter(Y,p._prev,O):p.currentIndex!=O&&(p.currentIndex=O,this._addToMoves(p,O)),p}},{key:"_truncate",value:function(p){for(;null!==p;){var _=p._next;this._addToRemovals(this._unlink(p)),p=_}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(p,_,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);var O=p._prevRemoved,Y=p._nextRemoved;return null===O?this._removalsHead=Y:O._nextRemoved=Y,null===Y?this._removalsTail=O:Y._prevRemoved=O,this._insertAfter(p,_,C),this._addToMoves(p,C),p}},{key:"_moveAfter",value:function(p,_,C){return this._unlink(p),this._insertAfter(p,_,C),this._addToMoves(p,C),p}},{key:"_addAfter",value:function(p,_,C){return this._insertAfter(p,_,C),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}},{key:"_insertAfter",value:function(p,_,C){var O=null===_?this._itHead:_._next;return p._next=O,p._prev=_,null===O?this._itTail=p:O._prev=p,null===_?this._itHead=p:_._next=p,null===this._linkedRecords&&(this._linkedRecords=new BE),this._linkedRecords.put(p),p.currentIndex=C,p}},{key:"_remove",value:function(p){return this._addToRemovals(this._unlink(p))}},{key:"_unlink",value:function(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);var _=p._prev,C=p._next;return null===_?this._itHead=C:_._next=C,null===C?this._itTail=_:C._prev=_,p}},{key:"_addToMoves",value:function(p,_){return p.previousIndex===_||(null===this._movesTail?this._movesTail=this._movesHead=p:this._movesTail=this._movesTail._nextMoved=p),p}},{key:"_addToRemovals",value:function(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new BE),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}},{key:"_addIdentityChange",value:function(p,_){return p.item=_,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=p:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=p,p}}]),c}(),i7=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.item=f,this.trackById=p,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),o7=function(){function c(){(0,v.Z)(this,c),this._head=null,this._tail=null}return(0,R.Z)(c,[{key:"add",value:function(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}},{key:"get",value:function(p,_){var C;for(C=this._head;null!==C;C=C._nextDup)if((null===_||_<=C.currentIndex)&&Object.is(C.trackById,p))return C;return null}},{key:"remove",value:function(p){var _=p._prevDup,C=p._nextDup;return null===_?this._head=C:_._nextDup=C,null===C?this._tail=_:C._prevDup=_,null===this._head}}]),c}(),BE=function(){function c(){(0,v.Z)(this,c),this.map=new Map}return(0,R.Z)(c,[{key:"put",value:function(p){var _=p.trackById,C=this.map.get(_);C||(C=new o7,this.map.set(_,C)),C.add(p)}},{key:"get",value:function(p,_){var C=p,O=this.map.get(C);return O?O.get(p,_):null}},{key:"remove",value:function(p){var _=p.trackById;return this.map.get(_).remove(p)&&this.map.delete(_),p}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),c}();function z1(c,f,p){var _=c.previousIndex;if(null===_)return _;var C=0;return p&&_<p.length&&(C=p[_]),_+f+C}var FE=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"supports",value:function(p){return p instanceof Map||xS(p)}},{key:"create",value:function(){return new IY}}]),c}(),IY=function(){function c(){(0,v.Z)(this,c),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return(0,R.Z)(c,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(p){var _;for(_=this._mapHead;null!==_;_=_._next)p(_)}},{key:"forEachPreviousItem",value:function(p){var _;for(_=this._previousMapHead;null!==_;_=_._nextPrevious)p(_)}},{key:"forEachChangedItem",value:function(p){var _;for(_=this._changesHead;null!==_;_=_._nextChanged)p(_)}},{key:"forEachAddedItem",value:function(p){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)p(_)}},{key:"forEachRemovedItem",value:function(p){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)p(_)}},{key:"diff",value:function(p){if(p){if(!(p instanceof Map||xS(p)))throw new fe(900,!1)}else p=new Map;return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var C=this._mapHead;if(this._appendAfter=null,this._forEach(p,function(Y,ee){if(C&&C.key===ee)_._maybeAddToChanges(C,Y),_._appendAfter=C,C=C._next;else{var oe=_._getOrCreateRecordForKey(ee,Y);C=_._insertBeforeOrAppend(C,oe)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(var O=C;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(p,_){if(p){var C=p._prev;return _._next=p,_._prev=C,p._prev=_,C&&(C._next=_),p===this._mapHead&&(this._mapHead=_),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=_,_._prev=this._appendAfter):this._mapHead=_,this._appendAfter=_,null}},{key:"_getOrCreateRecordForKey",value:function(p,_){if(this._records.has(p)){var C=this._records.get(p);this._maybeAddToChanges(C,_);var O=C._prev,Y=C._next;return O&&(O._next=Y),Y&&(Y._prev=O),C._next=null,C._prev=null,C}var ee=new a7(p);return this._records.set(p,ee),ee.currentValue=_,this._addToAdditions(ee),ee}},{key:"_reset",value:function(){if(this.isDirty){var p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(p,_){Object.is(_,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=_,this._addToChanges(p))}},{key:"_addToAdditions",value:function(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}},{key:"_addToChanges",value:function(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}},{key:"_forEach",value:function(p,_){p instanceof Map?p.forEach(_):Object.keys(p).forEach(function(C){return _(p[C],C)})}}]),c}(),a7=(0,R.Z)(function c(f){(0,v.Z)(this,c),this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function wL(){return new Yy([new r7])}var Yy=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,R.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(C){return C.supports(p)});if(null!=_)return _;throw new fe(901,!1)}}],[{key:"create",value:function(p,_){if(null!=_){var C=_.factories.slice();p=p.concat(C)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(C){return c.create(p,C||wL())},deps:[[c,new Sd,new u_]]}}}]),c}();function kL(){return new Ky([new FE])}Yy.\u0275prov=Be({token:Yy,providedIn:"root",factory:wL});var Ky=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,R.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(C){return C.supports(p)});if(_)return _;throw new fe(901,!1)}}],[{key:"create",value:function(p,_){if(_){var C=_.factories.slice();p=p.concat(C)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(C){return c.create(p,C||kL())},deps:[[c,new Sd,new u_]]}}}]),c}();Ky.\u0275prov=Be({token:Ky,providedIn:"root",factory:kL});var TL=[new FE],s7=[new r7],u7=(new Yy(s7),new Ky(TL),dL(null,"core",[])),op=(0,R.Z)(function c(f){(0,v.Z)(this,c)});function c7(c){return"boolean"==typeof c?c:null!=c&&"false"!==c}op.\u0275fac=function(f){return new(f||op)(Ea(ip))},op.\u0275mod=gt({type:op}),op.\u0275inj=t({})},3075:function(Ae,K,m){"use strict";m.d(K,{Cf:function(){return pe},F:function(){return ca},Fd:function(){return ml},Fj:function(){return V},JJ:function(){return Jt},JL:function(){return Qe},JU:function(){return k},NI:function(){return da},On:function(){return tn},Q7:function(){return ks},QS:function(){return jl},UX:function(){return us},Zs:function(){return Ul},_Y:function(){return en},a5:function(){return zt},kI:function(){return de},nJ:function(){return nn},oH:function(){return cn},p4:function(){return Ya},qQ:function(){return _l},qu:function(){return Ss},sg:function(){return Oi},u:function(){return co},u5:function(){return Cr},wV:function(){return no}});var G=m(3237),W=m(1120),A=m(7762),j=m(7326),I=m(7685),P=m(4902),T=m(136),E=m(9388),H=m(5671),R=m(3144),v=m(5e3),x=m(9808),w=m(3527),Z=m(567),D=m(4850),b=function(){function we(ke,le){(0,H.Z)(this,we),this._renderer=ke,this._elementRef=le,this.onChange=function(Me){},this.onTouched=function(){}}return(0,R.Z)(we,[{key:"setProperty",value:function(le,Me){this._renderer.setProperty(this._elementRef.nativeElement,le,Me)}},{key:"registerOnTouched",value:function(le){this.onTouched=le}},{key:"registerOnChange",value:function(le){this.onChange=le}},{key:"setDisabledState",value:function(le){this.setProperty("disabled",le)}}]),we}();b.\u0275fac=function(ke){return new(ke||b)(v.Y36(v.Qsj),v.Y36(v.SBq))},b.\u0275dir=v.lG2({type:b});var S=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le)}(b);S.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(S)))(le||S)}}(),S.\u0275dir=v.lG2({type:S,features:[v.qOj]});var k=new v.OlP("NgValueAccessor"),M={provide:k,useExisting:(0,v.Gpc)(function(){return N}),multi:!0},N=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le,[{key:"writeValue",value:function(Oe){this.setProperty("checked",Oe)}}]),le}(S);N.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(N)))(le||N)}}(),N.\u0275dir=v.lG2({type:N,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target.checked)})("blur",function(){return le.onTouched()})},features:[v._Bn([M]),v.qOj]});var F={provide:k,useExisting:(0,v.Gpc)(function(){return V}),multi:!0};var $=new v.OlP("CompositionEventMode"),V=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt){var Yt;return(0,H.Z)(this,le),(Yt=ke.call(this,Me,Oe))._compositionMode=pt,Yt._composing=!1,null==Yt._compositionMode&&(Yt._compositionMode=!function X(){var we=(0,x.q)()?(0,x.q)().getUserAgent():"";return/android (\d+)/.test(we.toLowerCase())}()),Yt}return(0,R.Z)(le,[{key:"writeValue",value:function(Oe){var pt=null==Oe?"":Oe;this.setProperty("value",pt)}},{key:"_handleInput",value:function(Oe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Oe)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Oe){this._composing=!1,this._compositionMode&&this.onChange(Oe)}}]),le}(b);V.\u0275fac=function(ke){return new(ke||V)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36($,8))},V.\u0275dir=v.lG2({type:V,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("input",function(Oe){return le._handleInput(Oe.target.value)})("blur",function(){return le.onTouched()})("compositionstart",function(){return le._compositionStart()})("compositionend",function(Oe){return le._compositionEnd(Oe.target.value)})},features:[v._Bn([F]),v.qOj]});function te(we){return null==we||("string"==typeof we||Array.isArray(we))&&0===we.length}function be(we){return null!=we&&"number"==typeof we.length}var pe=new v.OlP("NgValidators"),fe=new v.OlP("NgAsyncValidators"),ue=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,de=function(){function we(){(0,H.Z)(this,we)}return(0,R.Z)(we,null,[{key:"min",value:function(le){return ge(le)}},{key:"max",value:function(le){return He(le)}},{key:"required",value:function(le){return ot(le)}},{key:"requiredTrue",value:function(le){return St(le)}},{key:"email",value:function(le){return Tt(le)}},{key:"minLength",value:function(le){return Dt(le)}},{key:"maxLength",value:function(le){return Rt(le)}},{key:"pattern",value:function(le){return Ze(le)}},{key:"nullValidator",value:function(le){return null}},{key:"compose",value:function(le){return Ve(le)}},{key:"composeAsync",value:function(le){return ht(le)}}]),we}();function ge(we){return function(ke){if(te(ke.value)||te(we))return null;var le=parseFloat(ke.value);return!isNaN(le)&&le<we?{min:{min:we,actual:ke.value}}:null}}function He(we){return function(ke){if(te(ke.value)||te(we))return null;var le=parseFloat(ke.value);return!isNaN(le)&&le>we?{max:{max:we,actual:ke.value}}:null}}function ot(we){return te(we.value)?{required:!0}:null}function St(we){return!0===we.value?null:{required:!0}}function Tt(we){return te(we.value)||ue.test(we.value)?null:{email:!0}}function Dt(we){return function(ke){return te(ke.value)||!be(ke.value)?null:ke.value.length<we?{minlength:{requiredLength:we,actualLength:ke.value.length}}:null}}function Rt(we){return function(ke){return be(ke.value)&&ke.value.length>we?{maxlength:{requiredLength:we,actualLength:ke.value.length}}:null}}function Ze(we){return we?("string"==typeof we?(le="","^"!==we.charAt(0)&&(le+="^"),le+=we,"$"!==we.charAt(we.length-1)&&(le+="$"),ke=new RegExp(le)):(le=we.toString(),ke=we),function(Me){if(te(Me.value))return null;var Oe=Me.value;return ke.test(Oe)?null:{pattern:{requiredPattern:le,actualValue:Oe}}}):$t;var ke,le}function $t(we){return null}function Ft(we){return null!=we}function pn(we){var ke=(0,v.QGY)(we)?(0,w.D)(we):we;return ke}function rt(we){var ke={};return we.forEach(function(le){ke=null!=le?Object.assign(Object.assign({},ke),le):ke}),0===Object.keys(ke).length?null:ke}function Ot(we,ke){return ke.map(function(le){return le(we)})}function Ct(we){return we.map(function(ke){return function _t(we){return!we.validate}(ke)?ke:function(le){return ke.validate(le)}})}function Ve(we){if(!we)return null;var ke=we.filter(Ft);return 0==ke.length?null:function(le){return rt(Ot(le,ke))}}function at(we){return null!=we?Ve(Ct(we)):null}function ht(we){if(!we)return null;var ke=we.filter(Ft);return 0==ke.length?null:function(le){var Me=Ot(le,ke).map(pn);return(0,Z.D)(Me).pipe((0,D.U)(rt))}}function Ut(we){return null!=we?ht(Ct(we)):null}function Wt(we,ke){return null===we?[ke]:Array.isArray(we)?[].concat((0,P.Z)(we),[ke]):[we,ke]}function U(we){return we._rawValidators}function B(we){return we._rawAsyncValidators}function qe(we){return we?Array.isArray(we)?we:[we]:[]}function Be(we,ke){return Array.isArray(we)?we.includes(ke):we===ke}function se(we,ke){var le=qe(ke);return qe(we).forEach(function(Oe){Be(le,Oe)||le.push(Oe)}),le}function t(we,ke){return qe(ke).filter(function(le){return!Be(we,le)})}var Lt=function(){function we(){(0,H.Z)(this,we),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,R.Z)(we,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(le){this._rawValidators=le||[],this._composedValidatorFn=at(this._rawValidators)}},{key:"_setAsyncValidators",value:function(le){this._rawAsyncValidators=le||[],this._composedAsyncValidatorFn=Ut(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(le){this._onDestroyCallbacks.push(le)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(le){return le()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(le)}},{key:"hasError",value:function(le,Me){return!!this.control&&this.control.hasError(le,Me)}},{key:"getError",value:function(le,Me){return this.control?this.control.getError(le,Me):null}}]),we}(),zt=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return(0,R.Z)(le)}(Lt),an=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),le}(Lt),Qt=function(){function we(ke){(0,H.Z)(this,we),this._cd=ke}return(0,R.Z)(we,[{key:"isTouched",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.touched)}},{key:"isUntouched",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.untouched)}},{key:"isPristine",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.pristine)}},{key:"isDirty",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.dirty)}},{key:"isValid",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.valid)}},{key:"isInvalid",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.invalid)}},{key:"isPending",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.pending)}},{key:"isSubmitted",get:function(){var le;return!(null===(le=this._cd)||void 0===le||!le.submitted)}}]),we}(),Jt=(Object.assign(Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"}),{"[class.ng-submitted]":"isSubmitted"}),function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me){return(0,H.Z)(this,le),ke.call(this,Me)}return(0,R.Z)(le)}(Qt));Jt.\u0275fac=function(ke){return new(ke||Jt)(v.Y36(zt,2))},Jt.\u0275dir=v.lG2({type:Jt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ke,le){2&ke&&v.ekj("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)},features:[v.qOj]});var Qe=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me){return(0,H.Z)(this,le),ke.call(this,Me)}return(0,R.Z)(le)}(Qt);Qe.\u0275fac=function(ke){return new(ke||Qe)(v.Y36(an,10))},Qe.\u0275dir=v.lG2({type:Qe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ke,le){2&ke&&v.ekj("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)("ng-submitted",le.isSubmitted)},features:[v.qOj]});var Et="VALID",We="INVALID",Ye="PENDING",Re="DISABLED";function Je(we){return(Kt(we)?we.validators:we)||null}function vt(we){return Array.isArray(we)?at(we):we||null}function fn(we,ke){return(Kt(ke)?ke.asyncValidators:we)||null}function Un(we){return Array.isArray(we)?Ut(we):we||null}function Kt(we){return null!=we&&!Array.isArray(we)&&"object"==typeof we}function yt(we,ke,le){var Me=we.controls;if(!(ke?Object.keys(Me):Me).length)throw new v.vHH(1e3,"");if(!Me[le])throw new v.vHH(1001,"")}function et(we,ke,le){we._forEachChild(function(Me,Oe){if(void 0===le[Oe])throw new v.vHH(1002,"")})}var gt=function(){function we(ke,le){(0,H.Z)(this,we),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ke,this._rawAsyncValidators=le,this._composedValidatorFn=vt(this._rawValidators),this._composedAsyncValidatorFn=Un(this._rawAsyncValidators)}return(0,R.Z)(we,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(le){this._rawValidators=this._composedValidatorFn=le}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(le){this._rawAsyncValidators=this._composedAsyncValidatorFn=le}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Et}},{key:"invalid",get:function(){return this.status===We}},{key:"pending",get:function(){return this.status==Ye}},{key:"disabled",get:function(){return this.status===Re}},{key:"enabled",get:function(){return this.status!==Re}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(le){this._rawValidators=le,this._composedValidatorFn=vt(le)}},{key:"setAsyncValidators",value:function(le){this._rawAsyncValidators=le,this._composedAsyncValidatorFn=Un(le)}},{key:"addValidators",value:function(le){this.setValidators(se(le,this._rawValidators))}},{key:"addAsyncValidators",value:function(le){this.setAsyncValidators(se(le,this._rawAsyncValidators))}},{key:"removeValidators",value:function(le){this.setValidators(t(le,this._rawValidators))}},{key:"removeAsyncValidators",value:function(le){this.setAsyncValidators(t(le,this._rawAsyncValidators))}},{key:"hasValidator",value:function(le){return Be(this._rawValidators,le)}},{key:"hasAsyncValidator",value:function(le){return Be(this._rawAsyncValidators,le)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!le.onlySelf&&this._parent.markAsTouched(le)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(le){return le.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Me){Me.markAsUntouched({onlySelf:!0})}),this._parent&&!le.onlySelf&&this._parent._updateTouched(le)}},{key:"markAsDirty",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!le.onlySelf&&this._parent.markAsDirty(le)}},{key:"markAsPristine",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Me){Me.markAsPristine({onlySelf:!0})}),this._parent&&!le.onlySelf&&this._parent._updatePristine(le)}},{key:"markAsPending",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ye,!1!==le.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!le.onlySelf&&this._parent.markAsPending(le)}},{key:"disable",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(le.onlySelf);this.status=Re,this.errors=null,this._forEachChild(function(Oe){Oe.disable(Object.assign(Object.assign({},le),{onlySelf:!0}))}),this._updateValue(),!1!==le.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},le),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!0)})}},{key:"enable",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(le.onlySelf);this.status=Et,this._forEachChild(function(Oe){Oe.enable(Object.assign(Object.assign({},le),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:le.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},le),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!1)})}},{key:"_updateAncestors",value:function(le){this._parent&&!le.onlySelf&&(this._parent.updateValueAndValidity(le),le.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(le){this._parent=le}},{key:"getRawValue",value:function(){return this.value}},{key:"updateValueAndValidity",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Et||this.status===Ye)&&this._runAsyncValidator(le.emitEvent)),!1!==le.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!le.onlySelf&&this._parent.updateValueAndValidity(le)}},{key:"_updateTreeValidity",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(le)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:le.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Re:Et}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(le){var Me=this;if(this.asyncValidator){this.status=Ye,this._hasOwnPendingAsyncValidator=!0;var Oe=pn(this.asyncValidator(this));this._asyncValidationSubscription=Oe.subscribe(function(pt){Me._hasOwnPendingAsyncValidator=!1,Me.setErrors(pt,{emitEvent:le})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(le){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=le,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(le){var Me=le;return null==Me||(Array.isArray(Me)||(Me=Me.split(".")),0===Me.length)?null:Me.reduce(function(Oe,pt){return Oe&&Oe._find(pt)},this)}},{key:"getError",value:function(le,Me){var Oe=Me?this.get(Me):this;return Oe&&Oe.errors?Oe.errors[le]:null}},{key:"hasError",value:function(le,Me){return!!this.getError(le,Me)}},{key:"root",get:function(){for(var le=this;le._parent;)le=le._parent;return le}},{key:"_updateControlsErrors",value:function(le){this.status=this._calculateStatus(),le&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(le)}},{key:"_initObservables",value:function(){this.valueChanges=new v.vpe,this.statusChanges=new v.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Re:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ye)?Ye:this._anyControlsHaveStatus(We)?We:Et}},{key:"_anyControlsHaveStatus",value:function(le){return this._anyControls(function(Me){return Me.status===le})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(le){return le.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(le){return le.touched})}},{key:"_updatePristine",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!le.onlySelf&&this._parent._updatePristine(le)}},{key:"_updateTouched",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!le.onlySelf&&this._parent._updateTouched(le)}},{key:"_registerOnCollectionChange",value:function(le){this._onCollectionChange=le}},{key:"_setUpdateStrategy",value:function(le){Kt(le)&&null!=le.updateOn&&(this._updateOn=le.updateOn)}},{key:"_parentMarkedDirty",value:function(le){var Me=this._parent&&this._parent.dirty;return!le&&!!Me&&!this._parent._anyControlsDirty()}},{key:"_find",value:function(le){return null}}]),we}(),wt=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt){var Yt;return(0,H.Z)(this,le),(Yt=ke.call(this,Je(Oe),fn(pt,Oe))).controls=Me,Yt._initObservables(),Yt._setUpdateStrategy(Oe),Yt._setUpControls(),Yt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Yt.asyncValidator}),Yt}return(0,R.Z)(le,[{key:"registerControl",value:function(Oe,pt){return this.controls[Oe]?this.controls[Oe]:(this.controls[Oe]=pt,pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange),pt)}},{key:"addControl",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Oe,pt),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],pt&&this.registerControl(Oe,pt),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Oe){return this.controls.hasOwnProperty(Oe)&&this.controls[Oe].enabled}},{key:"setValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};et(this,0,Oe),Object.keys(Oe).forEach(function(In){yt(pt,!0,In),pt.controls[In].setValue(Oe[In],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}},{key:"patchValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Object.keys(Oe).forEach(function(In){var Qn=pt.controls[In];Qn&&Qn.patchValue(Oe[In],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Yt,In){Yt.reset(Oe[In],{onlySelf:!0,emitEvent:pt.emitEvent})}),this._updatePristine(pt),this._updateTouched(pt),this.updateValueAndValidity(pt)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Oe,pt,Yt){return Oe[Yt]=pt.getRawValue(),Oe})}},{key:"_syncPendingControls",value:function(){var Oe=this._reduceChildren(!1,function(pt,Yt){return!!Yt._syncPendingControls()||pt});return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){var pt=this;Object.keys(this.controls).forEach(function(Yt){var In=pt.controls[Yt];In&&Oe(In,Yt)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(pt){pt.setParent(Oe),pt._registerOnCollectionChange(Oe._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Oe){for(var pt=0,Yt=Object.entries(this.controls);pt<Yt.length;pt++){var In=(0,I.Z)(Yt[pt],2),Qn=In[0],Qs=In[1];if(this.contains(Qn)&&Oe(Qs))return!0}return!1}},{key:"_reduceValue",value:function(){var Oe=this;return this._reduceChildren({},function(Yt,In,Qn){return(In.enabled||Oe.disabled)&&(Yt[Qn]=In.value),Yt})}},{key:"_reduceChildren",value:function(Oe,pt){var Yt=Oe;return this._forEachChild(function(In,Qn){Yt=pt(Yt,In,Qn)}),Yt}},{key:"_allControlsDisabled",value:function(){for(var Oe=0,pt=Object.keys(this.controls);Oe<pt.length;Oe++){var Yt=pt[Oe];if(this.controls[Yt].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_find",value:function(Oe){return this.controls.hasOwnProperty(Oe)?this.controls[Oe]:null}}]),le}(gt),nn=wt,Wn=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le)}(wt);function ir(we,ke){return[].concat((0,P.Z)(ke.path),[we])}function Ir(we,ke){var le,Me;Ca(we,ke),ke.valueAccessor.writeValue(we.value),we.disabled&&(null===(Me=(le=ke.valueAccessor).setDisabledState)||void 0===Me||Me.call(le,!0)),function ls(we,ke){ke.valueAccessor.registerOnChange(function(le){we._pendingValue=le,we._pendingChange=!0,we._pendingDirty=!0,"change"===we.updateOn&&Di(we,ke)})}(we,ke),function na(we,ke){var le=function(Oe,pt){ke.valueAccessor.writeValue(Oe),pt&&ke.viewToModelUpdate(Oe)};we.registerOnChange(le),ke._registerOnDestroy(function(){we._unregisterOnChange(le)})}(we,ke),function ta(we,ke){ke.valueAccessor.registerOnTouched(function(){we._pendingTouched=!0,"blur"===we.updateOn&&we._pendingChange&&Di(we,ke),"submit"!==we.updateOn&&we.markAsTouched()})}(we,ke),function Va(we,ke){if(ke.valueAccessor.setDisabledState){var le=function(Oe){ke.valueAccessor.setDisabledState(Oe)};we.registerOnDisabledChange(le),ke._registerOnDestroy(function(){we._unregisterOnDisabledChange(le)})}}(we,ke)}function yi(we,ke){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var Me=function(){};ke.valueAccessor&&(ke.valueAccessor.registerOnChange(Me),ke.valueAccessor.registerOnTouched(Me)),wa(we,ke),we&&(ke._invokeOnDestroyCallbacks(),we._registerOnCollectionChange(function(){}))}function zi(we,ke){we.forEach(function(le){le.registerOnValidatorChange&&le.registerOnValidatorChange(ke)})}function Ca(we,ke){var le=U(we);null!==ke.validator?we.setValidators(Wt(le,ke.validator)):"function"==typeof le&&we.setValidators([le]);var Me=B(we);null!==ke.asyncValidator?we.setAsyncValidators(Wt(Me,ke.asyncValidator)):"function"==typeof Me&&we.setAsyncValidators([Me]);var Oe=function(){return we.updateValueAndValidity()};zi(ke._rawValidators,Oe),zi(ke._rawAsyncValidators,Oe)}function wa(we,ke){var le=!1;if(null!==we){if(null!==ke.validator){var Me=U(we);if(Array.isArray(Me)&&Me.length>0){var Oe=Me.filter(function(Qn){return Qn!==ke.validator});Oe.length!==Me.length&&(le=!0,we.setValidators(Oe))}}if(null!==ke.asyncValidator){var pt=B(we);if(Array.isArray(pt)&&pt.length>0){var Yt=pt.filter(function(Qn){return Qn!==ke.asyncValidator});Yt.length!==pt.length&&(le=!0,we.setAsyncValidators(Yt))}}}var In=function(){};return zi(ke._rawValidators,In),zi(ke._rawAsyncValidators,In),le}function Di(we,ke){we._pendingDirty&&we.markAsDirty(),we.setValue(we._pendingValue,{emitModelToViewChange:!1}),ke.viewToModelUpdate(we._pendingValue),we._pendingChange=!1}function _o(we,ke){Ca(we,ke)}function ki(we,ke){if(!we.hasOwnProperty("model"))return!1;var le=we.model;return!!le.isFirstChange()||!Object.is(ke,le.currentValue)}function ii(we,ke){we._syncPendingControls(),ke.forEach(function(le){var Me=le.control;"submit"===Me.updateOn&&Me._pendingChange&&(le.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function So(we,ke){if(!ke)return null;Array.isArray(ke);var le=void 0,Me=void 0,Oe=void 0;return ke.forEach(function(pt){pt.constructor===V?le=pt:function Ko(we){return Object.getPrototypeOf(we.constructor)===S}(pt)?Me=pt:Oe=pt}),Oe||Me||le||null}var Yi={provide:an,useExisting:(0,v.Gpc)(function(){return ca})},Eo=Promise.resolve(),ca=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe){var pt;return(0,H.Z)(this,le),(pt=ke.call(this)).submitted=!1,pt._directives=new Set,pt.ngSubmit=new v.vpe,pt.form=new wt({},at(Me),Ut(Oe)),pt}return(0,R.Z)(le,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path);Oe.control=Yt.registerControl(Oe.name,Oe.control),Ir(Oe.control,Oe),Oe.control.updateValueAndValidity({emitEvent:!1}),pt._directives.add(Oe)})}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path);Yt&&Yt.removeControl(Oe.name),pt._directives.delete(Oe)})}},{key:"addFormGroup",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path),In=new wt({});_o(In,Oe),Yt.registerControl(Oe.name,In),In.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path);Yt&&Yt.removeControl(Oe.name)})}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,pt){var Yt=this;Eo.then(function(){Yt.form.get(Oe.path).setValue(pt)})}},{key:"setValue",value:function(Oe){this.control.setValue(Oe)}},{key:"onSubmit",value:function(Oe){var pt;return this.submitted=!0,ii(this.form,this._directives),this.ngSubmit.emit(Oe),"dialog"===(null===(pt=null==Oe?void 0:Oe.target)||void 0===pt?void 0:pt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Oe){return Oe.pop(),Oe.length?this.form.get(Oe):this.form}}]),le}(an);function ra(we,ke){var le=we.indexOf(ke);le>-1&&we.splice(le,1)}function lo(we){return"object"==typeof we&&null!==we&&2===Object.keys(we).length&&"value"in we&&"disabled"in we}ca.\u0275fac=function(ke){return new(ke||ca)(v.Y36(pe,10),v.Y36(fe,10))},ca.\u0275dir=v.lG2({type:ca,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("submit",function(Oe){return le.onSubmit(Oe)})("reset",function(){return le.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Yi]),v.qOj]});var da=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me,Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,pt=arguments.length>1?arguments[1]:void 0,Yt=arguments.length>2?arguments[2]:void 0;return(0,H.Z)(this,le),(Me=ke.call(this,Je(pt),fn(Yt,pt))).defaultValue=null,Me._onChange=[],Me._pendingChange=!1,Me._applyFormState(Oe),Me._setUpdateStrategy(pt),Me._initObservables(),Me.updateValueAndValidity({onlySelf:!0,emitEvent:!!Me.asyncValidator}),Kt(pt)&&(pt.nonNullable||pt.initialValueIsDefault)&&(lo(Oe)?Me.defaultValue=Oe.value:Me.defaultValue=Oe),Me}return(0,R.Z)(le,[{key:"setValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Oe,this._onChange.length&&!1!==Yt.emitModelToViewChange&&this._onChange.forEach(function(In){return In(pt.value,!1!==Yt.emitViewToModelChange)}),this.updateValueAndValidity(Yt)}},{key:"patchValue",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Oe,pt)}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Oe),this.markAsPristine(pt),this.markAsUntouched(pt),this.setValue(this.value,pt),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Oe){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Oe){this._onChange.push(Oe)}},{key:"_unregisterOnChange",value:function(Oe){ra(this._onChange,Oe)}},{key:"registerOnDisabledChange",value:function(Oe){this._onDisabledChange.push(Oe)}},{key:"_unregisterOnDisabledChange",value:function(Oe){ra(this._onDisabledChange,Oe)}},{key:"_forEachChild",value:function(Oe){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)}},{key:"_applyFormState",value:function(Oe){lo(Oe)?(this.value=this._pendingValue=Oe.value,Oe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Oe}}]),le}(gt),Ya=da,Ui=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}}]),le}(an);Ui.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ui)))(le||Ui)}}(),Ui.\u0275dir=v.lG2({type:Ui,features:[v.qOj]});var to={provide:an,useExisting:(0,v.Gpc)(function(){return Ai})},Ai=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt){var Yt;return(0,H.Z)(this,le),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,R.Z)(le,[{key:"_checkParentType",value:function(){!(this._parent instanceof le)&&this._parent}}]),le}(Ui);Ai.\u0275fac=function(ke){return new(ke||Ai)(v.Y36(an,5),v.Y36(pe,10),v.Y36(fe,10))},Ai.\u0275dir=v.lG2({type:Ai,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[v._Bn([to]),v.qOj]});var hu={provide:zt,useExisting:(0,v.Gpc)(function(){return tn})},Ki=Promise.resolve(),tn=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt,Yt,In){var Qn;return(0,H.Z)(this,le),(Qn=ke.call(this))._changeDetectorRef=In,Qn.control=new da,Qn._registered=!1,Qn.update=new v.vpe,Qn._parent=Me,Qn._setValidators(Oe),Qn._setAsyncValidators(pt),Qn.valueAccessor=So((0,j.Z)(Qn),Yt),Qn}return(0,R.Z)(le,[{key:"ngOnChanges",value:function(Oe){if(this._checkForErrors(),!this._registered||"name"in Oe){if(this._registered&&(this._checkName(),this.formDirective)){var pt=Oe.name.previousValue;this.formDirective.removeControl({name:pt,path:this._getPath(pt)})}this._setUpControl()}"isDisabled"in Oe&&this._updateDisabled(Oe),ki(Oe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Ir(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}},{key:"_updateValue",value:function(Oe){var pt=this;Ki.then(function(){var Yt;pt.control.setValue(Oe,{emitViewToModelChange:!1}),null===(Yt=pt._changeDetectorRef)||void 0===Yt||Yt.markForCheck()})}},{key:"_updateDisabled",value:function(Oe){var pt=this,Yt=Oe.isDisabled.currentValue,In=0!==Yt&&(0,v.D6c)(Yt);Ki.then(function(){var Qn;In&&!pt.control.disabled?pt.control.disable():!In&&pt.control.disabled&&pt.control.enable(),null===(Qn=pt._changeDetectorRef)||void 0===Qn||Qn.markForCheck()})}},{key:"_getPath",value:function(Oe){return this._parent?ir(Oe,this._parent):[Oe]}}]),le}(zt);tn.\u0275fac=function(ke){return new(ke||tn)(v.Y36(an,9),v.Y36(pe,10),v.Y36(fe,10),v.Y36(k,10),v.Y36(v.sBO,8))},tn.\u0275dir=v.lG2({type:tn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[v._Bn([hu]),v.qOj,v.TTD]});var en=(0,R.Z)(function we(){(0,H.Z)(this,we)});en.\u0275fac=function(ke){return new(ke||en)},en.\u0275dir=v.lG2({type:en,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var Dr={provide:k,useExisting:(0,v.Gpc)(function(){return no}),multi:!0},no=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le,[{key:"writeValue",value:function(Oe){var pt=null==Oe?"":Oe;this.setProperty("value",pt)}},{key:"registerOnChange",value:function(Oe){this.onChange=function(pt){Oe(""==pt?null:parseFloat(pt))}}}]),le}(S);no.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(no)))(le||no)}}(),no.\u0275dir=v.lG2({type:no,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("input",function(Oe){return le.onChange(Oe.target.value)})("blur",function(){return le.onTouched()})},features:[v._Bn([Dr]),v.qOj]});var qi={provide:k,useExisting:(0,v.Gpc)(function(){return Rn}),multi:!0};var Ti=(0,R.Z)(function we(){(0,H.Z)(this,we)});Ti.\u0275fac=function(ke){return new(ke||Ti)},Ti.\u0275mod=v.oAB({type:Ti}),Ti.\u0275inj=v.cJS({});var ro=function(){function we(){(0,H.Z)(this,we),this._accessors=[]}return(0,R.Z)(we,[{key:"add",value:function(le,Me){this._accessors.push([le,Me])}},{key:"remove",value:function(le){for(var Me=this._accessors.length-1;Me>=0;--Me)if(this._accessors[Me][1]===le)return void this._accessors.splice(Me,1)}},{key:"select",value:function(le){var Me=this;this._accessors.forEach(function(Oe){Me._isSameGroup(Oe,le)&&Oe[1]!==le&&Oe[1].fireUncheck(le.value)})}},{key:"_isSameGroup",value:function(le,Me){return!!le[0].control&&(le[0]._parent===Me._control._parent&&le[1].name===Me.name)}}]),we}();ro.\u0275fac=function(ke){return new(ke||ro)},ro.\u0275prov=v.Yz7({token:ro,factory:ro.\u0275fac,providedIn:Ti});var Rn=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt,Yt){var In;return(0,H.Z)(this,le),(In=ke.call(this,Me,Oe))._registry=pt,In._injector=Yt,In.onChange=function(){},In}return(0,R.Z)(le,[{key:"ngOnInit",value:function(){this._control=this._injector.get(zt),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(Oe){this._state=Oe===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(Oe){var pt=this;this._fn=Oe,this.onChange=function(){Oe(pt.value),pt._registry.select(pt)}}},{key:"fireUncheck",value:function(Oe){this.writeValue(Oe)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),le}(S);Rn.\u0275fac=function(ke){return new(ke||Rn)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36(ro),v.Y36(v.zs3))},Rn.\u0275dir=v.lG2({type:Rn,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(){return le.onChange()})("blur",function(){return le.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[v._Bn([qi]),v.qOj]});var mu={provide:k,useExisting:(0,v.Gpc)(function(){return Jr}),multi:!0},Jr=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le,[{key:"writeValue",value:function(Oe){this.setProperty("value",parseFloat(Oe))}},{key:"registerOnChange",value:function(Oe){this.onChange=function(pt){Oe(""==pt?null:parseFloat(pt))}}}]),le}(S);Jr.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Jr)))(le||Jr)}}(),Jr.\u0275dir=v.lG2({type:Jr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target.value)})("input",function(Oe){return le.onChange(Oe.target.value)})("blur",function(){return le.onTouched()})},features:[v._Bn([mu]),v.qOj]});var Yn=new v.OlP("NgModelWithFormControlWarning"),An={provide:zt,useExisting:(0,v.Gpc)(function(){return cn})},cn=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt,Yt){var In;return(0,H.Z)(this,le),(In=ke.call(this))._ngModelWarningConfig=Yt,In.update=new v.vpe,In._ngModelWarningSent=!1,In._setValidators(Me),In._setAsyncValidators(Oe),In.valueAccessor=So((0,j.Z)(In),pt),In}return(0,R.Z)(le,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){if(this._isControlChanged(Oe)){var pt=Oe.form.previousValue;pt&&yi(pt,this,!1),Ir(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ki(Oe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&yi(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_isControlChanged",value:function(Oe){return Oe.hasOwnProperty("form")}}]),le}(zt);cn._ngModelWarningSentOnce=!1,cn.\u0275fac=function(ke){return new(ke||cn)(v.Y36(pe,10),v.Y36(fe,10),v.Y36(k,10),v.Y36(Yn,8))},cn.\u0275dir=v.lG2({type:cn,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[v._Bn([An]),v.qOj,v.TTD]});var Ji={provide:an,useExisting:(0,v.Gpc)(function(){return Oi})},Oi=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe){var pt;return(0,H.Z)(this,le),(pt=ke.call(this)).submitted=!1,pt._onCollectionChange=function(){return pt._updateDomValue()},pt.directives=[],pt.form=null,pt.ngSubmit=new v.vpe,pt._setValidators(Me),pt._setAsyncValidators(Oe),pt}return(0,R.Z)(le,[{key:"ngOnChanges",value:function(Oe){this._checkFormPresent(),Oe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(wa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(Oe){var pt=this.form.get(Oe.path);return Ir(pt,Oe),pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Oe),pt}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){yi(Oe.control||null,Oe,!1),function so(we,ke){var le=we.indexOf(ke);le>-1&&we.splice(le,1)}(this.directives,Oe)}},{key:"addFormGroup",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormGroup",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"addFormArray",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormArray",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormArray",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,pt){this.form.get(Oe.path).setValue(pt)}},{key:"onSubmit",value:function(Oe){var pt;return this.submitted=!0,ii(this.form,this.directives),this.ngSubmit.emit(Oe),"dialog"===(null===(pt=null==Oe?void 0:Oe.target)||void 0===pt?void 0:pt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Oe=this;this.directives.forEach(function(pt){var Yt=pt.control,In=Oe.form.get(pt.path);Yt!==In&&(yi(Yt||null,pt),function(ke){return ke instanceof da}(In)&&(Ir(In,pt),pt.control=In))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Oe){var pt=this.form.get(Oe.path);_o(pt,Oe),pt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Oe){if(this.form){var pt=this.form.get(Oe.path);if(pt){var Yt=function Gn(we,ke){return wa(we,ke)}(pt,Oe);Yt&&pt.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ca(this.form,this),this._oldForm&&wa(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){this.form}}]),le}(an);Oi.\u0275fac=function(ke){return new(ke||Oi)(v.Y36(pe,10),v.Y36(fe,10))},Oi.\u0275dir=v.lG2({type:Oi,selectors:[["","formGroup",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("submit",function(Oe){return le.onSubmit(Oe)})("reset",function(){return le.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Ji]),v.qOj,v.TTD]});var Qi={provide:an,useExisting:(0,v.Gpc)(function(){return Pi})},Pi=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt){var Yt;return(0,H.Z)(this,le),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,R.Z)(le,[{key:"_checkParentType",value:function(){ji(this._parent)}}]),le}(Ui);Pi.\u0275fac=function(ke){return new(ke||Pi)(v.Y36(an,13),v.Y36(pe,10),v.Y36(fe,10))},Pi.\u0275dir=v.lG2({type:Pi,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[v._Bn([Qi]),v.qOj]});var ai={provide:an,useExisting:(0,v.Gpc)(function(){return Mi})},Mi=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt){var Yt;return(0,H.Z)(this,le),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,R.Z)(le,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){ji(this._parent)}}]),le}(an);function ji(we){return!(we instanceof Pi||we instanceof Oi||we instanceof Mi)}Mi.\u0275fac=function(ke){return new(ke||Mi)(v.Y36(an,13),v.Y36(pe,10),v.Y36(fe,10))},Mi.\u0275dir=v.lG2({type:Mi,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[v._Bn([ai]),v.qOj]});var hr={provide:zt,useExisting:(0,v.Gpc)(function(){return co})},co=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt,Yt,In){var Qn;return(0,H.Z)(this,le),(Qn=ke.call(this))._ngModelWarningConfig=In,Qn._added=!1,Qn.update=new v.vpe,Qn._ngModelWarningSent=!1,Qn._parent=Me,Qn._setValidators(Oe),Qn._setAsyncValidators(pt),Qn.valueAccessor=So((0,j.Z)(Qn),Yt),Qn}return(0,R.Z)(le,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){this._added||this._setUpControl(),ki(Oe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"path",get:function(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}]),le}(zt);co._ngModelWarningSentOnce=!1,co.\u0275fac=function(ke){return new(ke||co)(v.Y36(an,13),v.Y36(pe,10),v.Y36(fe,10),v.Y36(k,10),v.Y36(Yn,8))},co.\u0275dir=v.lG2({type:co,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[v._Bn([hr]),v.qOj,v.TTD]});var fa={provide:k,useExisting:(0,v.Gpc)(function(){return fo}),multi:!0};function ka(we,ke){return null==we?"".concat(ke):(ke&&"object"==typeof ke&&(ke="Object"),"".concat(we,": ").concat(ke).slice(0,50))}var fo=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,R.Z)(le,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){this.value=Oe;var Yt=ka(this._getOptionId(Oe),Oe);this.setProperty("value",Yt)}},{key:"registerOnChange",value:function(Oe){var pt=this;this.onChange=function(Yt){pt.value=pt._getOptionValue(Yt),Oe(pt.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(Oe){for(var pt=0,Yt=Array.from(this._optionMap.keys());pt<Yt.length;pt++){var In=Yt[pt];if(this._compareWith(this._optionMap.get(In),Oe))return In}return null}},{key:"_getOptionValue",value:function(Oe){var pt=function go(we){return we.split(":")[0]}(Oe);return this._optionMap.has(pt)?this._optionMap.get(pt):Oe}}]),le}(S);fo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(fo)))(le||fo)}}(),fo.\u0275dir=v.lG2({type:fo,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target.value)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([fa]),v.qOj]});var ia=function(){function we(ke,le,Me){(0,H.Z)(this,we),this._element=ke,this._renderer=le,this._select=Me,this._select&&(this.id=this._select._registerOption())}return(0,R.Z)(we,[{key:"ngValue",set:function(le){null!=this._select&&(this._select._optionMap.set(this.id,le),this._setElementValue(ka(this.id,le)),this._select.writeValue(this._select.value))}},{key:"value",set:function(le){this._setElementValue(le),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();ia.\u0275fac=function(ke){return new(ke||ia)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(fo,9))},ia.\u0275dir=v.lG2({type:ia,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var hl={provide:k,useExisting:(0,v.Gpc)(function(){return Xo}),multi:!0};function Ka(we,ke){return null==we?"".concat(ke):("string"==typeof ke&&(ke="'".concat(ke,"'")),ke&&"object"==typeof ke&&(ke="Object"),"".concat(we,": ").concat(ke).slice(0,50))}var Xo=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,R.Z)(le,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){var Yt,pt=this;if(this.value=Oe,Array.isArray(Oe)){var In=Oe.map(function(Qn){return pt._getOptionId(Qn)});Yt=function(Qs,tc){Qs._setSelected(In.indexOf(tc.toString())>-1)}}else Yt=function(Qs,tc){Qs._setSelected(!1)};this._optionMap.forEach(Yt)}},{key:"registerOnChange",value:function(Oe){var pt=this;this.onChange=function(Yt){var In=[],Qn=Yt.selectedOptions;if(void 0!==Qn)for(var Qs=Qn,tc=0;tc<Qs.length;tc++){var Go=Qs[tc],Xs=pt._getOptionValue(Go.value);In.push(Xs)}else for(var $o=Yt.options,Qa=0;Qa<$o.length;Qa++){var nc=$o[Qa];if(nc.selected){var Ta=pt._getOptionValue(nc.value);In.push(Ta)}}pt.value=In,Oe(In)}}},{key:"_registerOption",value:function(Oe){var pt=(this._idCounter++).toString();return this._optionMap.set(pt,Oe),pt}},{key:"_getOptionId",value:function(Oe){for(var pt=0,Yt=Array.from(this._optionMap.keys());pt<Yt.length;pt++){var In=Yt[pt];if(this._compareWith(this._optionMap.get(In)._value,Oe))return In}return null}},{key:"_getOptionValue",value:function(Oe){var pt=function qa(we){return we.split(":")[0]}(Oe);return this._optionMap.has(pt)?this._optionMap.get(pt)._value:Oe}}]),le}(S);Xo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Xo)))(le||Xo)}}(),Xo.\u0275dir=v.lG2({type:Xo,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([hl]),v.qOj]});var _u=function(){function we(ke,le,Me){(0,H.Z)(this,we),this._element=ke,this._renderer=le,this._select=Me,this._select&&(this.id=this._select._registerOption(this))}return(0,R.Z)(we,[{key:"ngValue",set:function(le){null!=this._select&&(this._value=le,this._setElementValue(Ka(this.id,le)),this._select.writeValue(this._select.value))}},{key:"value",set:function(le){this._select?(this._value=le,this._setElementValue(Ka(this.id,le)),this._select.writeValue(this._select.value)):this._setElementValue(le)}},{key:"_setElementValue",value:function(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}},{key:"_setSelected",value:function(le){this._renderer.setProperty(this._element.nativeElement,"selected",le)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();function ec(we){return"number"==typeof we?we:parseInt(we,10)}function xc(we){return"number"==typeof we?we:parseFloat(we)}_u.\u0275fac=function(ke){return new(ke||_u)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(Xo,9))},_u.\u0275dir=v.lG2({type:_u,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Br=function(){function we(){(0,H.Z)(this,we),this._validator=$t}return(0,R.Z)(we,[{key:"ngOnChanges",value:function(le){if(this.inputName in le){var Me=this.normalizeInput(le[this.inputName].currentValue);this._enabled=this.enabled(Me),this._validator=this._enabled?this.createValidator(Me):$t,this._onChange&&this._onChange()}}},{key:"validate",value:function(le){return this._validator(le)}},{key:"registerOnValidatorChange",value:function(le){this._onChange=le}},{key:"enabled",value:function(le){return null!=le}}]),we}();Br.\u0275fac=function(ke){return new(ke||Br)},Br.\u0275dir=v.lG2({type:Br,features:[v.TTD]});var gu={provide:pe,useExisting:(0,v.Gpc)(function(){return ml}),multi:!0},ml=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="max",Me.normalizeInput=function(Oe){return xc(Oe)},Me.createValidator=function(Oe){return He(Oe)},Me}return(0,R.Z)(le)}(Br);ml.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(ml)))(le||ml)}}(),ml.\u0275dir=v.lG2({type:ml,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("max",le._enabled?le.max:null)},inputs:{max:"max"},features:[v._Bn([gu]),v.qOj]});var mf={provide:pe,useExisting:(0,v.Gpc)(function(){return _l}),multi:!0},_l=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="min",Me.normalizeInput=function(Oe){return xc(Oe)},Me.createValidator=function(Oe){return ge(Oe)},Me}return(0,R.Z)(le)}(Br);_l.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(_l)))(le||_l)}}(),_l.\u0275dir=v.lG2({type:_l,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("min",le._enabled?le.min:null)},inputs:{min:"min"},features:[v._Bn([mf]),v.qOj]});var vu={provide:pe,useExisting:(0,v.Gpc)(function(){return ks}),multi:!0},po={provide:pe,useExisting:(0,v.Gpc)(function(){return Ul}),multi:!0},ks=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="required",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return ot},Me}return(0,R.Z)(le,[{key:"enabled",value:function(Oe){return Oe}}]),le}(Br);ks.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(ks)))(le||ks)}}(),ks.\u0275dir=v.lG2({type:ks,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("required",le._enabled?"":null)},inputs:{required:"required"},features:[v._Bn([vu]),v.qOj]});var Ul=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).createValidator=function(Oe){return St},Me}return(0,R.Z)(le)}(ks);Ul.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ul)))(le||Ul)}}(),Ul.\u0275dir=v.lG2({type:Ul,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("required",le._enabled?"":null)},features:[v._Bn([po]),v.qOj]});var Dc={provide:pe,useExisting:(0,v.Gpc)(function(){return xo}),multi:!0},xo=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="email",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return Tt},Me}return(0,R.Z)(le,[{key:"enabled",value:function(Oe){return Oe}}]),le}(Br);xo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(xo)))(le||xo)}}(),xo.\u0275dir=v.lG2({type:xo,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[v._Bn([Dc]),v.qOj]});var yu={provide:pe,useExisting:(0,v.Gpc)(function(){return Js}),multi:!0},Js=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="minlength",Me.normalizeInput=function(Oe){return ec(Oe)},Me.createValidator=function(Oe){return Dt(Oe)},Me}return(0,R.Z)(le)}(Br);Js.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Js)))(le||Js)}}(),Js.\u0275dir=v.lG2({type:Js,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("minlength",le._enabled?le.minlength:null)},inputs:{minlength:"minlength"},features:[v._Bn([yu]),v.qOj]});var pa={provide:pe,useExisting:(0,v.Gpc)(function(){return Ho}),multi:!0},Ho=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="maxlength",Me.normalizeInput=function(Oe){return ec(Oe)},Me.createValidator=function(Oe){return Rt(Oe)},Me}return(0,R.Z)(le)}(Br);Ho.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ho)))(le||Ho)}}(),Ho.\u0275dir=v.lG2({type:Ho,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("maxlength",le._enabled?le.maxlength:null)},inputs:{maxlength:"maxlength"},features:[v._Bn([pa]),v.qOj]});var bd={provide:pe,useExisting:(0,v.Gpc)(function(){return Ts}),multi:!0},Ts=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){var Me;return(0,H.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="pattern",Me.normalizeInput=function(Oe){return Oe},Me.createValidator=function(Oe){return Ze(Oe)},Me}return(0,R.Z)(le)}(Br);Ts.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ts)))(le||Ts)}}(),Ts.\u0275dir=v.lG2({type:Ts,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("pattern",le._enabled?le.pattern:null)},inputs:{pattern:"pattern"},features:[v._Bn([bd]),v.qOj]});var Ms=(0,R.Z)(function we(){(0,H.Z)(this,we)});Ms.\u0275fac=function(ke){return new(ke||Ms)},Ms.\u0275mod=v.oAB({type:Ms}),Ms.\u0275inj=v.cJS({imports:[Ti]});var Cr=(0,R.Z)(function we(){(0,H.Z)(this,we)});Cr.\u0275fac=function(ke){return new(ke||Cr)},Cr.\u0275mod=v.oAB({type:Cr}),Cr.\u0275inj=v.cJS({imports:[Ms]});var us=function(){function we(){(0,H.Z)(this,we)}return(0,R.Z)(we,null,[{key:"withConfig",value:function(le){return{ngModule:we,providers:[{provide:Yn,useValue:le.warnOnNgModelWithFormControl}]}}}]),we}();us.\u0275fac=function(ke){return new(ke||us)},us.\u0275mod=v.oAB({type:us}),us.\u0275inj=v.cJS({imports:[Ms]});var rh=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(Me,Oe,pt){var Yt;return(0,H.Z)(this,le),(Yt=ke.call(this,Je(Oe),fn(pt,Oe))).controls=Me,Yt._initObservables(),Yt._setUpdateStrategy(Oe),Yt._setUpControls(),Yt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Yt.asyncValidator}),Yt}return(0,R.Z)(le,[{key:"at",value:function(Oe){return this.controls[this._adjustIndex(Oe)]}},{key:"push",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Oe),this._registerControl(Oe),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Oe,0,pt),this._registerControl(pt),this.updateValueAndValidity({emitEvent:Yt.emitEvent})}},{key:"removeAt",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Yt=this._adjustIndex(Oe);Yt<0&&(Yt=0),this.controls[Yt]&&this.controls[Yt]._registerOnCollectionChange(function(){}),this.controls.splice(Yt,1),this.updateValueAndValidity({emitEvent:pt.emitEvent})}},{key:"setControl",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},In=this._adjustIndex(Oe);In<0&&(In=0),this.controls[In]&&this.controls[In]._registerOnCollectionChange(function(){}),this.controls.splice(In,1),pt&&(this.controls.splice(In,0,pt),this._registerControl(pt)),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};et(this,0,Oe),Oe.forEach(function(In,Qn){yt(pt,!1,Qn),pt.at(Qn).setValue(In,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}},{key:"patchValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Oe.forEach(function(In,Qn){pt.at(Qn)&&pt.at(Qn).patchValue(In,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Yt,In){Yt.reset(Oe[In],{onlySelf:!0,emitEvent:pt.emitEvent})}),this._updatePristine(pt),this._updateTouched(pt),this.updateValueAndValidity(pt)}},{key:"getRawValue",value:function(){return this.controls.map(function(Oe){return Oe.getRawValue()})}},{key:"clear",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(pt){return pt._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Oe.emitEvent}))}},{key:"_adjustIndex",value:function(Oe){return Oe<0?Oe+this.length:Oe}},{key:"_syncPendingControls",value:function(){var Oe=this.controls.reduce(function(pt,Yt){return!!Yt._syncPendingControls()||pt},!1);return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){this.controls.forEach(function(pt,Yt){Oe(pt,Yt)})}},{key:"_updateValue",value:function(){var Oe=this;this.value=this.controls.filter(function(pt){return pt.enabled||Oe.disabled}).map(function(pt){return pt.value})}},{key:"_anyControls",value:function(Oe){return this.controls.some(function(pt){return pt.enabled&&Oe(pt)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(pt){return Oe._registerControl(pt)})}},{key:"_allControlsDisabled",value:function(){var pt,Oe=(0,A.Z)(this.controls);try{for(Oe.s();!(pt=Oe.n()).done;){if(pt.value.enabled)return!1}}catch(In){Oe.e(In)}finally{Oe.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Oe){Oe.setParent(this),Oe._registerOnCollectionChange(this._onCollectionChange)}},{key:"_find",value:function(Oe){var pt;return null!==(pt=this.at(Oe))&&void 0!==pt?pt:null}}]),le}(gt);function _f(we){return!!we&&(void 0!==we.asyncValidators||void 0!==we.validators||void 0!==we.updateOn)}var Ss=function(){function we(){(0,H.Z)(this,we),this.useNonNullable=!1}return(0,R.Z)(we,[{key:"nonNullable",get:function(){var le=new we;return le.useNonNullable=!0,le}},{key:"group",value:function(le){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(le),pt={};return _f(Me)?pt=Me:null!==Me&&(pt.validators=Me.validator,pt.asyncValidators=Me.asyncValidator),new wt(Oe,pt)}},{key:"record",value:function(le){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(le);return new Wn(Oe,Me)}},{key:"control",value:function(le,Me,Oe){var pt={};return this.useNonNullable?(_f(Me)?pt=Me:(pt.validators=Me,pt.asyncValidators=Oe),new da(le,Object.assign(Object.assign({},pt),{nonNullable:!0}))):new da(le,Me,Oe)}},{key:"array",value:function(le,Me,Oe){var pt=this,Yt=le.map(function(In){return pt._createControl(In)});return new rh(Yt,Me,Oe)}},{key:"_reduceControls",value:function(le){var Me=this,Oe={};return Object.keys(le).forEach(function(pt){Oe[pt]=Me._createControl(le[pt])}),Oe}},{key:"_createControl",value:function(le){if(le instanceof da)return le;if(le instanceof gt)return le;if(Array.isArray(le)){var Me=le[0],Oe=le.length>1?le[1]:null,pt=le.length>2?le[2]:null;return this.control(Me,Oe,pt)}return this.control(le)}}]),we}();Ss.\u0275fac=function(ke){return new(ke||Ss)},Ss.\u0275prov=v.Yz7({token:Ss,factory:Ss.\u0275fac,providedIn:us});var bu=(0,R.Z)(function we(){(0,H.Z)(this,we)});bu.\u0275fac=function(ke){return new(ke||bu)},bu.\u0275prov=v.Yz7({token:bu,factory:function(){return(0,v.f3M)(Ss).nonNullable},providedIn:us});var jl=function(we){(0,T.Z)(le,we);var ke=(0,E.Z)(le);function le(){return(0,H.Z)(this,le),ke.apply(this,arguments)}return(0,R.Z)(le,[{key:"group",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,G.Z)((0,W.Z)(le.prototype),"group",this).call(this,Oe,pt)}},{key:"control",value:function(Oe,pt,Yt){return(0,G.Z)((0,W.Z)(le.prototype),"control",this).call(this,Oe,pt,Yt)}},{key:"array",value:function(Oe,pt,Yt){return(0,G.Z)((0,W.Z)(le.prototype),"array",this).call(this,Oe,pt,Yt)}}]),le}(Ss);jl.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(jl)))(le||jl)}}(),jl.\u0275prov=v.Yz7({token:jl,factory:jl.\u0275fac,providedIn:us});new v.GfV("14.3.0")},508:function(Ae,K,m){"use strict";m.d(K,{yN:function(){return Q},mZ:function(){return te},rD:function(){return Ut},K7:function(){return ut},HF:function(){return ye},Y2:function(){return Vt},BQ:function(){return fe},X2:function(){return Wt},uc:function(){return qe},Nv:function(){return Nt},ey:function(){return ln},Ng:function(){return mn},rN:function(){return sn},nP:function(){return Fe},us:function(){return ne},wG:function(){return Jt},si:function(){return Qe},IR:function(){return Qt},CB:function(){return Sn},jH:function(){return hn},pj:function(){return ot},Kr:function(){return St},Id:function(){return He},FD:function(){return Dt},dB:function(){return Rt},sb:function(){return Tt},E0:function(){return U}});var G=m(7326),W=m(3237),A=m(1120),j=m(136),I=m(9388),P=m(3144),T=m(5671),E=m(5e3),H=m(226),v=(new E.GfV("14.2.7"),m(9808)),x=m(925),w=m(5664),Z=m(3191),D=m(7451),b=m(8929),S=m(1059),k=m(1159),M=["*",[["mat-option"],["ng-container"]]];function F(At,xt){if(1&At&&E._UZ(0,"mat-pseudo-checkbox",4),2&At){var tt=E.oxw();E.Q6J("state",tt.selected?"checked":"unchecked")("disabled",tt.disabled)}}function X(At,xt){if(1&At&&(E.TgZ(0,"span",5),E._uU(1),E.qZA()),2&At){var tt=E.oxw();E.xp6(1),E.hij("(",tt.group.label,")")}}new E.GfV("14.2.7");var Q=(0,P.Z)(function At(){(0,T.Z)(this,At)});Q.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Q.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Q.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Q.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var te=(0,P.Z)(function At(){(0,T.Z)(this,At)});te.COMPLEX="375ms",te.ENTERING="225ms",te.EXITING="195ms";var pe=new E.OlP("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}}),fe=function(){function At(xt,tt,Et){(0,T.Z)(this,At),this._sanityChecks=tt,this._document=Et,this._hasDoneGlobalChecks=!1,xt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,P.Z)(At,[{key:"_checkIsEnabled",value:function(tt){return!(0,x.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[tt])}}]),At}();function He(At){return function(xt){(0,j.Z)(Et,xt);var tt=(0,I.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re)))._disabled=!1,We}return(0,P.Z)(Et,[{key:"disabled",get:function(){return this._disabled},set:function(Ye){this._disabled=(0,Z.Ig)(Ye)}}]),Et}(At)}function ot(At,xt){return function(tt){(0,j.Z)(We,tt);var Et=(0,I.Z)(We);function We(){var Ye;(0,T.Z)(this,We);for(var Re=arguments.length,Je=new Array(Re),vt=0;vt<Re;vt++)Je[vt]=arguments[vt];return(Ye=Et.call.apply(Et,[this].concat(Je))).defaultColor=xt,Ye.color=xt,Ye}return(0,P.Z)(We,[{key:"color",get:function(){return this._color},set:function(Re){var Je=Re||this.defaultColor;Je!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),Je&&this._elementRef.nativeElement.classList.add("mat-".concat(Je)),this._color=Je)}}]),We}(At)}function St(At){return function(xt){(0,j.Z)(Et,xt);var tt=(0,I.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re)))._disableRipple=!1,We}return(0,P.Z)(Et,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Ye){this._disableRipple=(0,Z.Ig)(Ye)}}]),Et}(At)}function Tt(At){var xt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(tt){(0,j.Z)(We,tt);var Et=(0,I.Z)(We);function We(){var Ye;(0,T.Z)(this,We);for(var Re=arguments.length,Je=new Array(Re),vt=0;vt<Re;vt++)Je[vt]=arguments[vt];return(Ye=Et.call.apply(Et,[this].concat(Je)))._tabIndex=xt,Ye.defaultTabIndex=xt,Ye}return(0,P.Z)(We,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Re){this._tabIndex=null!=Re?(0,Z.su)(Re):this.defaultTabIndex}}]),We}(At)}function Dt(At){return function(xt){(0,j.Z)(Et,xt);var tt=(0,I.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re))).errorState=!1,We}return(0,P.Z)(Et,[{key:"updateErrorState",value:function(){var Ye=this.errorState,Re=this._parentFormGroup||this._parentForm,Je=this.errorStateMatcher||this._defaultErrorStateMatcher,vt=this.ngControl?this.ngControl.control:null,fn=Je.isErrorState(vt,Re);fn!==Ye&&(this.errorState=fn,this.stateChanges.next())}}]),Et}(At)}function Rt(At){return function(xt){(0,j.Z)(Et,xt);var tt=(0,I.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re)))._isInitialized=!1,We._pendingSubscribers=[],We.initialized=new D.y(function(vt){We._isInitialized?We._notifySubscriber(vt):We._pendingSubscribers.push(vt)}),We}return(0,P.Z)(Et,[{key:"_markInitialized",value:function(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Ye){Ye.next(),Ye.complete()}}]),Et}(At)}fe.\u0275fac=function(xt){return new(xt||fe)(E.LFG(w.qm),E.LFG(pe,8),E.LFG(v.K0))},fe.\u0275mod=E.oAB({type:fe}),fe.\u0275inj=E.cJS({imports:[H.vT,H.vT]});var Ze=new E.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function $t(){return(0,E.f3M)(E.soG)}});var Ft=function(){function At(){(0,T.Z)(this,At),this._localeChanges=new b.xQ,this.localeChanges=this._localeChanges}return(0,P.Z)(At,[{key:"getValidDateOrNull",value:function(tt){return this.isDateInstance(tt)&&this.isValid(tt)?tt:null}},{key:"deserialize",value:function(tt){return null==tt||this.isDateInstance(tt)&&this.isValid(tt)?tt:this.invalid()}},{key:"setLocale",value:function(tt){this.locale=tt,this._localeChanges.next()}},{key:"compareDate",value:function(tt,Et){return this.getYear(tt)-this.getYear(Et)||this.getMonth(tt)-this.getMonth(Et)||this.getDate(tt)-this.getDate(Et)}},{key:"sameDate",value:function(tt,Et){if(tt&&Et){var We=this.isValid(tt),Ye=this.isValid(Et);return We&&Ye?!this.compareDate(tt,Et):We==Ye}return tt==Et}},{key:"clampDate",value:function(tt,Et,We){return Et&&this.compareDate(tt,Et)<0?Et:We&&this.compareDate(tt,We)>0?We:tt}}]),At}(),pn=new E.OlP("mat-date-formats"),rt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ot(At,xt){for(var tt=Array(At),Et=0;Et<At;Et++)tt[Et]=xt(Et);return tt}var _t=function(At){(0,j.Z)(tt,At);var xt=(0,I.Z)(tt);function tt(Et,We){var Ye,Re;return(0,T.Z)(this,tt),(Re=xt.call(this)).useUtcForDisplay=!1,(0,W.Z)((Ye=(0,G.Z)(Re),(0,A.Z)(tt.prototype)),"setLocale",Ye).call(Ye,Et),Re}return(0,P.Z)(tt,[{key:"getYear",value:function(We){return We.getFullYear()}},{key:"getMonth",value:function(We){return We.getMonth()}},{key:"getDate",value:function(We){return We.getDate()}},{key:"getDayOfWeek",value:function(We){return We.getDay()}},{key:"getMonthNames",value:function(We){var Ye=this,Re=new Intl.DateTimeFormat(this.locale,{month:We,timeZone:"utc"});return Ot(12,function(Je){return Ye._format(Re,new Date(2017,Je,1))})}},{key:"getDateNames",value:function(){var We=this,Ye=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ot(31,function(Re){return We._format(Ye,new Date(2017,0,Re+1))})}},{key:"getDayOfWeekNames",value:function(We){var Ye=this,Re=new Intl.DateTimeFormat(this.locale,{weekday:We,timeZone:"utc"});return Ot(7,function(Je){return Ye._format(Re,new Date(2017,0,Je+1))})}},{key:"getYearName",value:function(We){var Ye=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ye,We)}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(We){return this.getDate(this._createDateWithOverflow(this.getYear(We),this.getMonth(We)+1,0))}},{key:"clone",value:function(We){return new Date(We.getTime())}},{key:"createDate",value:function(We,Ye,Re){var Je=this._createDateWithOverflow(We,Ye,Re);return Je.getMonth(),Je}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(We,Ye){return"number"==typeof We?new Date(We):We?new Date(Date.parse(We)):null}},{key:"format",value:function(We,Ye){if(!this.isValid(We))throw Error("NativeDateAdapter: Cannot format invalid date.");var Re=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Ye),{timeZone:"utc"}));return this._format(Re,We)}},{key:"addCalendarYears",value:function(We,Ye){return this.addCalendarMonths(We,12*Ye)}},{key:"addCalendarMonths",value:function(We,Ye){var Re=this._createDateWithOverflow(this.getYear(We),this.getMonth(We)+Ye,this.getDate(We));return this.getMonth(Re)!=((this.getMonth(We)+Ye)%12+12)%12&&(Re=this._createDateWithOverflow(this.getYear(Re),this.getMonth(Re),0)),Re}},{key:"addCalendarDays",value:function(We,Ye){return this._createDateWithOverflow(this.getYear(We),this.getMonth(We),this.getDate(We)+Ye)}},{key:"toIso8601",value:function(We){return[We.getUTCFullYear(),this._2digit(We.getUTCMonth()+1),this._2digit(We.getUTCDate())].join("-")}},{key:"deserialize",value:function(We){if("string"==typeof We){if(!We)return null;if(rt.test(We)){var Ye=new Date(We);if(this.isValid(Ye))return Ye}}return(0,W.Z)((0,A.Z)(tt.prototype),"deserialize",this).call(this,We)}},{key:"isDateInstance",value:function(We){return We instanceof Date}},{key:"isValid",value:function(We){return!isNaN(We.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(We,Ye,Re){var Je=new Date;return Je.setFullYear(We,Ye,Re),Je.setHours(0,0,0,0),Je}},{key:"_2digit",value:function(We){return("00"+We).slice(-2)}},{key:"_format",value:function(We,Ye){var Re=new Date;return Re.setUTCFullYear(Ye.getFullYear(),Ye.getMonth(),Ye.getDate()),Re.setUTCHours(Ye.getHours(),Ye.getMinutes(),Ye.getSeconds(),Ye.getMilliseconds()),We.format(Re)}}]),tt}(Ft);_t.\u0275fac=function(xt){return new(xt||_t)(E.LFG(Ze,8),E.LFG(x.t4))},_t.\u0275prov=E.Yz7({token:_t,factory:_t.\u0275fac});var Ve=(0,P.Z)(function At(){(0,T.Z)(this,At)});Ve.\u0275fac=function(xt){return new(xt||Ve)},Ve.\u0275mod=E.oAB({type:Ve}),Ve.\u0275inj=E.cJS({providers:[{provide:Ft,useClass:_t}]});var at=(0,P.Z)(function At(){(0,T.Z)(this,At)});at.\u0275fac=function(xt){return new(xt||at)},at.\u0275mod=E.oAB({type:at}),at.\u0275inj=E.cJS({providers:[{provide:pn,useValue:{parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}}}],imports:[Ve]});var ht=function(){function At(){(0,T.Z)(this,At)}return(0,P.Z)(At,[{key:"isErrorState",value:function(tt,Et){return!!(tt&&tt.invalid&&(tt.dirty||Et&&Et.submitted))}}]),At}();ht.\u0275fac=function(xt){return new(xt||ht)},ht.\u0275prov=E.Yz7({token:ht,factory:ht.\u0275fac});var Ut=function(){function At(){(0,T.Z)(this,At)}return(0,P.Z)(At,[{key:"isErrorState",value:function(tt,Et){return!!(tt&&tt.invalid&&(tt.touched||Et&&Et.submitted))}}]),At}();Ut.\u0275fac=function(xt){return new(xt||Ut)},Ut.\u0275prov=E.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var Wt=(0,P.Z)(function At(){(0,T.Z)(this,At)});function U(At,xt){var tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";At.changes.pipe((0,S.O)(At)).subscribe(function(Et){var We=Et.length;B(xt,"".concat(tt,"-2-line"),!1),B(xt,"".concat(tt,"-3-line"),!1),B(xt,"".concat(tt,"-multi-line"),!1),2===We||3===We?B(xt,"".concat(tt,"-").concat(We,"-line"),!0):We>3&&B(xt,"".concat(tt,"-multi-line"),!0)})}function B(At,xt,tt){At.nativeElement.classList.toggle(xt,tt)}Wt.\u0275fac=function(xt){return new(xt||Wt)},Wt.\u0275dir=E.lG2({type:Wt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var qe=(0,P.Z)(function At(){(0,T.Z)(this,At)});qe.\u0275fac=function(xt){return new(xt||qe)},qe.\u0275mod=E.oAB({type:qe}),qe.\u0275inj=E.cJS({imports:[fe,fe]});var Be=function(){function At(xt,tt,Et){var We=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,T.Z)(this,At),this._renderer=xt,this.element=tt,this.config=Et,this._animationForciblyDisabledThroughCss=We,this.state=3}return(0,P.Z)(At,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),At}(),se={enterDuration:225,exitDuration:150},Lt=(0,x.i$)({passive:!0}),zt=["mousedown","touchstart"],an=["mouseup","mouseleave","touchend","touchcancel"],Qt=function(){function At(xt,tt,Et,We){(0,T.Z)(this,At),this._target=xt,this._ngZone=tt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,We.isBrowser&&(this._containerElement=(0,Z.fI)(Et))}return(0,P.Z)(At,[{key:"fadeInRipple",value:function(tt,Et){var We=this,Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Je=Object.assign(Object.assign({},se),Ye.animation);Ye.centered&&(tt=Re.left+Re.width/2,Et=Re.top+Re.height/2);var vt=Ye.radius||vn(tt,Et,Re),fn=tt-Re.left,Un=Et-Re.top,Kt=Je.enterDuration,yt=document.createElement("div");yt.classList.add("mat-ripple-element"),yt.style.left="".concat(fn-vt,"px"),yt.style.top="".concat(Un-vt,"px"),yt.style.height="".concat(2*vt,"px"),yt.style.width="".concat(2*vt,"px"),null!=Ye.color&&(yt.style.backgroundColor=Ye.color),yt.style.transitionDuration="".concat(Kt,"ms"),this._containerElement.appendChild(yt);var et=window.getComputedStyle(yt),gt=et.transitionProperty,wt=et.transitionDuration,nn="none"===gt||"0s"===wt||"0s, 0s"===wt,jn=new Be(this,yt,Ye,nn);yt.style.transform="scale3d(1, 1, 1)",jn.state=0,Ye.persistent||(this._mostRecentTransientRipple=jn);var Wn=null;return!nn&&(Kt||Je.exitDuration)&&this._ngZone.runOutsideAngular(function(){var Vn=function(){return We._finishRippleTransition(jn)},ir=function(){return We._destroyRipple(jn)};yt.addEventListener("transitionend",Vn),yt.addEventListener("transitioncancel",ir),Wn={onTransitionEnd:Vn,onTransitionCancel:ir}}),this._activeRipples.set(jn,Wn),(nn||!Kt)&&this._finishRippleTransition(jn),jn}},{key:"fadeOutRipple",value:function(tt){if(2!==tt.state&&3!==tt.state){var Et=tt.element,We=Object.assign(Object.assign({},se),tt.config.animation);Et.style.transitionDuration="".concat(We.exitDuration,"ms"),Et.style.opacity="0",tt.state=2,(tt._animationForciblyDisabledThroughCss||!We.exitDuration)&&this._finishRippleTransition(tt)}}},{key:"fadeOutAll",value:function(){this._getActiveRipples().forEach(function(tt){return tt.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._getActiveRipples().forEach(function(tt){tt.config.persistent||tt.fadeOut()})}},{key:"setupTriggerEvents",value:function(tt){var Et=(0,Z.fI)(tt);!Et||Et===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Et,this._registerEvents(zt))}},{key:"handleEvent",value:function(tt){"mousedown"===tt.type?this._onMousedown(tt):"touchstart"===tt.type?this._onTouchStart(tt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(an),this._pointerUpEventsRegistered=!0)}},{key:"_finishRippleTransition",value:function(tt){0===tt.state?this._startFadeOutTransition(tt):2===tt.state&&this._destroyRipple(tt)}},{key:"_startFadeOutTransition",value:function(tt){var Et=tt===this._mostRecentTransientRipple,We=tt.config.persistent;tt.state=1,!We&&(!Et||!this._isPointerDown)&&tt.fadeOut()}},{key:"_destroyRipple",value:function(tt){var Et,We=null!==(Et=this._activeRipples.get(tt))&&void 0!==Et?Et:null;this._activeRipples.delete(tt),this._activeRipples.size||(this._containerRect=null),tt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),tt.state=3,null!==We&&(tt.element.removeEventListener("transitionend",We.onTransitionEnd),tt.element.removeEventListener("transitioncancel",We.onTransitionCancel)),tt.element.remove()}},{key:"_onMousedown",value:function(tt){var Et=(0,w.X6)(tt),We=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Et&&!We&&(this._isPointerDown=!0,this.fadeInRipple(tt.clientX,tt.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(tt){if(!this._target.rippleDisabled&&!(0,w.yG)(tt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Et=tt.changedTouches,We=0;We<Et.length;We++)this.fadeInRipple(Et[We].clientX,Et[We].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(function(tt){var Et=1===tt.state||tt.config.terminateOnPointerUp&&0===tt.state;!tt.config.persistent&&Et&&tt.fadeOut()}))}},{key:"_registerEvents",value:function(tt){var Et=this;this._ngZone.runOutsideAngular(function(){tt.forEach(function(We){Et._triggerElement.addEventListener(We,Et,Lt)})})}},{key:"_getActiveRipples",value:function(){return Array.from(this._activeRipples.keys())}},{key:"_removeTriggerEvents",value:function(){var tt=this;this._triggerElement&&(zt.forEach(function(Et){tt._triggerElement.removeEventListener(Et,tt,Lt)}),this._pointerUpEventsRegistered&&an.forEach(function(Et){tt._triggerElement.removeEventListener(Et,tt,Lt)}))}}]),At}();function vn(At,xt,tt){var Et=Math.max(Math.abs(At-tt.left),Math.abs(At-tt.right)),We=Math.max(Math.abs(xt-tt.top),Math.abs(xt-tt.bottom));return Math.sqrt(Et*Et+We*We)}var Vt=new E.OlP("mat-ripple-global-options"),Jt=function(){function At(xt,tt,Et,We,Ye){(0,T.Z)(this,At),this._elementRef=xt,this._animationMode=Ye,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=We||{},this._rippleRenderer=new Qt(this,tt,xt,Et)}return(0,P.Z)(At,[{key:"disabled",get:function(){return this._disabled},set:function(tt){tt&&this.fadeOutAllNonPersistent(),this._disabled=tt,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(tt){this._trigger=tt,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,We=arguments.length>2?arguments[2]:void 0;return"number"==typeof tt?this._rippleRenderer.fadeInRipple(tt,Et,Object.assign(Object.assign({},this.rippleConfig),We)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),tt))}}]),At}();Jt.\u0275fac=function(xt){return new(xt||Jt)(E.Y36(E.SBq),E.Y36(E.R0b),E.Y36(x.t4),E.Y36(Vt,8),E.Y36(E.QbO,8))},Jt.\u0275dir=E.lG2({type:Jt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(xt,tt){2&xt&&E.ekj("mat-ripple-unbounded",tt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});var Qe=(0,P.Z)(function At(){(0,T.Z)(this,At)});Qe.\u0275fac=function(xt){return new(xt||Qe)},Qe.\u0275mod=E.oAB({type:Qe}),Qe.\u0275inj=E.cJS({imports:[fe,fe]});var Fe=(0,P.Z)(function At(xt){(0,T.Z)(this,At),this._animationMode=xt,this.state="unchecked",this.disabled=!1});Fe.\u0275fac=function(xt){return new(xt||Fe)(E.Y36(E.QbO,8))},Fe.\u0275cmp=E.Xpm({type:Fe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(xt,tt){2&xt&&E.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===tt.state)("mat-pseudo-checkbox-checked","checked"===tt.state)("mat-pseudo-checkbox-disabled",tt.disabled)("_mat-animation-noopable","NoopAnimations"===tt._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(xt,tt){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0});var ne=(0,P.Z)(function At(){(0,T.Z)(this,At)});ne.\u0275fac=function(xt){return new(xt||ne)},ne.\u0275mod=E.oAB({type:ne}),ne.\u0275inj=E.cJS({imports:[fe]});var ye=new E.OlP("MAT_OPTION_PARENT_COMPONENT"),he=He(function(){return(0,P.Z)(function At(){(0,T.Z)(this,At)})}()),Le=0,lt=function(At){(0,j.Z)(tt,At);var xt=(0,I.Z)(tt);function tt(Et){var We,Ye;return(0,T.Z)(this,tt),(We=xt.call(this))._labelId="mat-optgroup-label-".concat(Le++),We._inert=null!==(Ye=null==Et?void 0:Et.inertGroups)&&void 0!==Ye&&Ye,We}return(0,P.Z)(tt)}(he);lt.\u0275fac=function(xt){return new(xt||lt)(E.Y36(ye,8))},lt.\u0275dir=E.lG2({type:lt,inputs:{label:"label"},features:[E.qOj]});var ut=new E.OlP("MatOptgroup"),Nt=function(At){(0,j.Z)(tt,At);var xt=(0,I.Z)(tt);function tt(){return(0,T.Z)(this,tt),xt.apply(this,arguments)}return(0,P.Z)(tt)}(lt);Nt.\u0275fac=function(){var At;return function(tt){return(At||(At=E.n5z(Nt)))(tt||Nt)}}(),Nt.\u0275cmp=E.Xpm({type:Nt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(xt,tt){2&xt&&(E.uIk("role",tt._inert?null:"group")("aria-disabled",tt._inert?null:tt.disabled.toString())("aria-labelledby",tt._inert?null:tt._labelId),E.ekj("mat-optgroup-disabled",tt.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[E._Bn([{provide:ut,useExisting:Nt}]),E.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(xt,tt){1&xt&&(E.F$t(M),E.TgZ(0,"span",0),E._uU(1),E.Hsn(2),E.qZA(),E.Hsn(3,1)),2&xt&&(E.Q6J("id",tt._labelId),E.xp6(1),E.hij("",tt.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0});var Ht=0,sn=(0,P.Z)(function At(xt){var tt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,T.Z)(this,At),this.source=xt,this.isUserInput=tt}),yn=function(){function At(xt,tt,Et,We){(0,T.Z)(this,At),this._element=xt,this._changeDetectorRef=tt,this._parent=Et,this.group=We,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Ht++),this.onSelectionChange=new E.vpe,this._stateChanges=new b.xQ}return(0,P.Z)(At,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(tt){this._disabled=(0,Z.Ig)(tt)}},{key:"disableRipple",get:function(){return!(!this._parent||!this._parent.disableRipple)}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(tt,Et){var We=this._getHostElement();"function"==typeof We.focus&&We.focus(Et)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(tt){(tt.keyCode===k.K5||tt.keyCode===k.L_)&&!(0,k.Vb)(tt)&&(this._selectViaInteraction(),tt.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var tt=this.viewValue;tt!==this._mostRecentViewValue&&(this._mostRecentViewValue=tt,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var tt=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new sn(this,tt))}}]),At}();yn.\u0275fac=function(xt){E.$Z()},yn.\u0275dir=E.lG2({type:yn,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var ln=function(At){(0,j.Z)(tt,At);var xt=(0,I.Z)(tt);function tt(Et,We,Ye,Re){return(0,T.Z)(this,tt),xt.call(this,Et,We,Ye,Re)}return(0,P.Z)(tt)}(yn);function Sn(At,xt,tt){if(tt.length){for(var Et=xt.toArray(),We=tt.toArray(),Ye=0,Re=0;Re<At+1;Re++)Et[Re].group&&Et[Re].group===We[Ye]&&Ye++;return Ye}return 0}function hn(At,xt,tt,Et){return At<tt?At:At+xt>tt+Et?Math.max(0,At-Et+xt):tt}ln.\u0275fac=function(xt){return new(xt||ln)(E.Y36(E.SBq),E.Y36(E.sBO),E.Y36(ye,8),E.Y36(ut,8))},ln.\u0275cmp=E.Xpm({type:ln,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(xt,tt){1&xt&&E.NdJ("click",function(){return tt._selectViaInteraction()})("keydown",function(We){return tt._handleKeydown(We)}),2&xt&&(E.Ikx("id",tt.id),E.uIk("tabindex",tt._getTabIndex())("aria-selected",tt._getAriaSelected())("aria-disabled",tt.disabled.toString()),E.ekj("mat-selected",tt.selected)("mat-option-multiple",tt.multiple)("mat-active",tt.active)("mat-option-disabled",tt.disabled))},exportAs:["matOption"],features:[E.qOj],ngContentSelectors:["*"],decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(xt,tt){1&xt&&(E.F$t(),E.YNc(0,F,1,2,"mat-pseudo-checkbox",0),E.TgZ(1,"span",1),E.Hsn(2),E.qZA(),E.YNc(3,X,2,1,"span",2),E._UZ(4,"div",3)),2&xt&&(E.Q6J("ngIf",tt.multiple),E.xp6(3),E.Q6J("ngIf",tt.group&&tt.group._inert),E.xp6(1),E.Q6J("matRippleTrigger",tt._getHostElement())("matRippleDisabled",tt.disabled||tt.disableRipple))},dependencies:[Jt,v.O5,Fe],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0});var mn=(0,P.Z)(function At(){(0,T.Z)(this,At)});mn.\u0275fac=function(xt){return new(xt||mn)},mn.\u0275mod=E.oAB({type:mn}),mn.\u0275inj=E.cJS({imports:[Qe,v.ez,fe,ne]})},4834:function(Ae,K,m){"use strict";m.d(K,{d:function(){return P},t:function(){return T}});var G=m(5671),W=m(3144),A=m(5e3),j=m(3191),I=m(508),P=function(){function E(){(0,G.Z)(this,E),this._vertical=!1,this._inset=!1}return(0,W.Z)(E,[{key:"vertical",get:function(){return this._vertical},set:function(R){this._vertical=(0,j.Ig)(R)}},{key:"inset",get:function(){return this._inset},set:function(R){this._inset=(0,j.Ig)(R)}}]),E}();P.\u0275fac=function(H){return new(H||P)},P.\u0275cmp=A.Xpm({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(H,R){2&H&&(A.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),A.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(H,R){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});var T=(0,W.Z)(function E(){(0,G.Z)(this,E)});T.\u0275fac=function(H){return new(H||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({imports:[I.BQ,I.BQ]})},7322:function(Ae,K,m){"use strict";m.d(K,{Eo:function(){return $t},G_:function(){return Lt},KE:function(){return zt},R9:function(){return U},TO:function(){return Rt},hX:function(){return Ve},lN:function(){return an}});var G=m(4902),W=m(136),A=m(9388),j=m(3144),I=m(5671),P=m(7144),T=m(9808),E=m(5e3),H=m(508),R=m(3191),v=m(8929),x=m(6787),w=m(3753),Z=m(1059),D=m(7625),b=m(2986),S=m(1777),k=m(226),M=m(925),N=["connectionContainer"],F=["inputContainer"],X=["label"];function $(Qt,vn){1&Qt&&(E.ynx(0),E.TgZ(1,"div",14),E._UZ(2,"div",15)(3,"div",16)(4,"div",17),E.qZA(),E.TgZ(5,"div",18),E._UZ(6,"div",15)(7,"div",16)(8,"div",17),E.qZA(),E.BQk())}function V(Qt,vn){if(1&Qt){var Vt=E.EpF();E.TgZ(0,"div",19),E.NdJ("cdkObserveContent",function(){E.CHM(Vt);var Fe=E.oxw();return E.KtG(Fe.updateOutlineGap())}),E.Hsn(1,1),E.qZA()}if(2&Qt){var Jt=E.oxw();E.Q6J("cdkObserveContentDisabled","outline"!=Jt.appearance)}}function Q(Qt,vn){if(1&Qt&&(E.ynx(0),E.Hsn(1,2),E.TgZ(2,"span"),E._uU(3),E.qZA(),E.BQk()),2&Qt){var Vt=E.oxw(2);E.xp6(3),E.Oqu(Vt._control.placeholder)}}function te(Qt,vn){1&Qt&&E.Hsn(0,3,["*ngSwitchCase","true"])}function be(Qt,vn){1&Qt&&(E.TgZ(0,"span",23),E._uU(1," *"),E.qZA())}function pe(Qt,vn){if(1&Qt){var Vt=E.EpF();E.TgZ(0,"label",20,21),E.NdJ("cdkObserveContent",function(){E.CHM(Vt);var Fe=E.oxw();return E.KtG(Fe.updateOutlineGap())}),E.YNc(2,Q,4,1,"ng-container",12),E.YNc(3,te,1,0,"ng-content",12),E.YNc(4,be,2,0,"span",22),E.qZA()}if(2&Qt){var Jt=E.oxw();E.ekj("mat-empty",Jt._control.empty&&!Jt._shouldAlwaysFloat())("mat-form-field-empty",Jt._control.empty&&!Jt._shouldAlwaysFloat())("mat-accent","accent"==Jt.color)("mat-warn","warn"==Jt.color),E.Q6J("cdkObserveContentDisabled","outline"!=Jt.appearance)("id",Jt._labelId)("ngSwitch",Jt._hasLabel()),E.uIk("for",Jt._control.id)("aria-owns",Jt._control.id),E.xp6(2),E.Q6J("ngSwitchCase",!1),E.xp6(1),E.Q6J("ngSwitchCase",!0),E.xp6(1),E.Q6J("ngIf",!Jt.hideRequiredMarker&&Jt._control.required&&!Jt._control.disabled)}}function fe(Qt,vn){1&Qt&&(E.TgZ(0,"div",24),E.Hsn(1,4),E.qZA())}function ue(Qt,vn){if(1&Qt&&(E.TgZ(0,"div",25),E._UZ(1,"span",26),E.qZA()),2&Qt){var Vt=E.oxw();E.xp6(1),E.ekj("mat-accent","accent"==Vt.color)("mat-warn","warn"==Vt.color)}}function de(Qt,vn){if(1&Qt&&(E.TgZ(0,"div"),E.Hsn(1,5),E.qZA()),2&Qt){var Vt=E.oxw();E.Q6J("@transitionMessages",Vt._subscriptAnimationState)}}function ge(Qt,vn){if(1&Qt&&(E.TgZ(0,"div",30),E._uU(1),E.qZA()),2&Qt){var Vt=E.oxw(2);E.Q6J("id",Vt._hintLabelId),E.xp6(1),E.Oqu(Vt.hintLabel)}}function He(Qt,vn){if(1&Qt&&(E.TgZ(0,"div",27),E.YNc(1,ge,2,2,"div",28),E.Hsn(2,6),E._UZ(3,"div",29),E.Hsn(4,7),E.qZA()),2&Qt){var Vt=E.oxw();E.Q6J("@transitionMessages",Vt._subscriptAnimationState),E.xp6(1),E.Q6J("ngIf",Vt.hintLabel)}}var ot=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Tt=0,Dt=new E.OlP("MatError"),Rt=(0,j.Z)(function Qt(vn,Vt){(0,I.Z)(this,Qt),this.id="mat-error-".concat(Tt++),vn||Vt.nativeElement.setAttribute("aria-live","polite")});Rt.\u0275fac=function(vn){return new(vn||Rt)(E.$8M("aria-live"),E.Y36(E.SBq))},Rt.\u0275dir=E.lG2({type:Rt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(vn,Vt){2&vn&&E.uIk("id",Vt.id)},inputs:{id:"id"},features:[E._Bn([{provide:Dt,useExisting:Rt}])]});var Ze={transitionMessages:(0,S.X$)("transitionMessages",[(0,S.SB)("enter",(0,S.oB)({opacity:1,transform:"translateY(0%)"})),(0,S.eR)("void => enter",[(0,S.oB)({opacity:0,transform:"translateY(-5px)"}),(0,S.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$t=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt)});$t.\u0275fac=function(vn){return new(vn||$t)},$t.\u0275dir=E.lG2({type:$t});var Ot=0,_t=new E.OlP("MatHint"),Ct=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt),this.align="start",this.id="mat-hint-".concat(Ot++)});Ct.\u0275fac=function(vn){return new(vn||Ct)},Ct.\u0275dir=E.lG2({type:Ct,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(vn,Vt){2&vn&&(E.uIk("id",Vt.id)("align",null),E.ekj("mat-form-field-hint-end","end"===Vt.align))},inputs:{align:"align",id:"id"},features:[E._Bn([{provide:_t,useExisting:Ct}])]});var Ve=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt)});Ve.\u0275fac=function(vn){return new(vn||Ve)},Ve.\u0275dir=E.lG2({type:Ve,selectors:[["mat-label"]]});var at=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt)});at.\u0275fac=function(vn){return new(vn||at)},at.\u0275dir=E.lG2({type:at,selectors:[["mat-placeholder"]]});var ht=new E.OlP("MatPrefix"),Ut=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt)});Ut.\u0275fac=function(vn){return new(vn||Ut)},Ut.\u0275dir=E.lG2({type:Ut,selectors:[["","matPrefix",""]],features:[E._Bn([{provide:ht,useExisting:Ut}])]});var Wt=new E.OlP("MatSuffix"),U=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt)});U.\u0275fac=function(vn){return new(vn||U)},U.\u0275dir=E.lG2({type:U,selectors:[["","matSuffix",""]],features:[E._Bn([{provide:Wt,useExisting:U}])]});var B=0,se=(0,H.pj)(function(){return(0,j.Z)(function Qt(vn){(0,I.Z)(this,Qt),this._elementRef=vn})}(),"primary"),t=new E.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Lt=new E.OlP("MatFormField"),zt=function(Qt){(0,W.Z)(Vt,Qt);var vn=(0,A.Z)(Vt);function Vt(Jt,Qe,Fe,ne,ye,he,Le){var lt;return(0,I.Z)(this,Vt),(lt=vn.call(this,Jt))._changeDetectorRef=Qe,lt._dir=Fe,lt._defaults=ne,lt._platform=ye,lt._ngZone=he,lt._outlineGapCalculationNeededImmediately=!1,lt._outlineGapCalculationNeededOnStable=!1,lt._destroyed=new v.xQ,lt._hideRequiredMarker=!1,lt._showAlwaysAnimate=!1,lt._subscriptAnimationState="",lt._hintLabel="",lt._hintLabelId="mat-hint-".concat(B++),lt._labelId="mat-form-field-label-".concat(B++),lt.floatLabel=lt._getDefaultFloatLabelState(),lt._animationsEnabled="NoopAnimations"!==Le,lt.appearance=(null==ne?void 0:ne.appearance)||"legacy",ne&&(lt._hideRequiredMarker=Boolean(ne.hideRequiredMarker),ne.color&&(lt.color=lt.defaultColor=ne.color)),lt}return(0,j.Z)(Vt,[{key:"appearance",get:function(){return this._appearance},set:function(Qe){var Fe,ne=this._appearance;this._appearance=Qe||(null===(Fe=this._defaults)||void 0===Fe?void 0:Fe.appearance)||"legacy","outline"===this._appearance&&ne!==Qe&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(Qe){this._hideRequiredMarker=(0,R.Ig)(Qe)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(Qe){this._hintLabel=Qe,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(Qe){Qe!==this._floatLabel&&(this._floatLabel=Qe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(Qe){this._explicitFormFieldControl=Qe}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var Qe=this;this._validateControlChild();var Fe=this._control;Fe.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Fe.controlType)),Fe.stateChanges.pipe((0,Z.O)(null)).subscribe(function(){Qe._validatePlaceholders(),Qe._syncDescribedByIds(),Qe._changeDetectorRef.markForCheck()}),Fe.ngControl&&Fe.ngControl.valueChanges&&Fe.ngControl.valueChanges.pipe((0,D.R)(this._destroyed)).subscribe(function(){return Qe._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Qe._ngZone.onStable.pipe((0,D.R)(Qe._destroyed)).subscribe(function(){Qe._outlineGapCalculationNeededOnStable&&Qe.updateOutlineGap()})}),(0,x.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Qe._outlineGapCalculationNeededOnStable=!0,Qe._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,Z.O)(null)).subscribe(function(){Qe._processHints(),Qe._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,Z.O)(null)).subscribe(function(){Qe._syncDescribedByIds(),Qe._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,D.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?Qe._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Qe.updateOutlineGap()})}):Qe.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(Qe){var Fe=this._control?this._control.ngControl:null;return Fe&&Fe[Qe]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var Qe=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,w.R)(this._label.nativeElement,"transitionend").pipe((0,b.q)(1)).subscribe(function(){Qe._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){this._control.placeholder&&this._placeholderChild}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){this._hintChildren}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var Qe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Qe.push.apply(Qe,(0,G.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Fe=this._hintChildren?this._hintChildren.find(function(ye){return"start"===ye.align}):null,ne=this._hintChildren?this._hintChildren.find(function(ye){return"end"===ye.align}):null;Fe?Qe.push(Fe.id):this._hintLabel&&Qe.push(this._hintLabelId),ne&&Qe.push(ne.id)}else this._errorChildren&&Qe.push.apply(Qe,(0,G.Z)(this._errorChildren.map(function(ye){return ye.id})));this._control.setDescribedByIds(Qe)}}},{key:"_validateControlChild",value:function(){this._control}},{key:"updateOutlineGap",value:function(){var Qe=this._label?this._label.nativeElement:null,Fe=this._connectionContainerRef.nativeElement,ne=".mat-form-field-outline-start",ye=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!Qe||!Qe.children.length||!Qe.textContent.trim()){for(var he=Fe.querySelectorAll("".concat(ne,", ").concat(ye)),Le=0;Le<he.length;Le++)he[Le].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var lt=0,ut=0,Nt=Fe.querySelectorAll(ne),Ht=Fe.querySelectorAll(ye);if(this._label&&this._label.nativeElement.children.length){var sn=Fe.getBoundingClientRect();if(0===sn.width&&0===sn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var yn=this._getStartEnd(sn),ln=Qe.children,Sn=this._getStartEnd(ln[0].getBoundingClientRect()),hn=0,mn=0;mn<ln.length;mn++)hn+=ln[mn].offsetWidth;lt=Math.abs(Sn-yn)-5,ut=hn>0?.75*hn+10:0}for(var At=0;At<Nt.length;At++)Nt[At].style.width="".concat(lt,"px");for(var xt=0;xt<Ht.length;xt++)Ht[xt].style.width="".concat(ut,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(Qe){return this._dir&&"rtl"===this._dir.value?Qe.right:Qe.left}},{key:"_isAttachedToDOM",value:function(){var Qe=this._elementRef.nativeElement;if(Qe.getRootNode){var Fe=Qe.getRootNode();return Fe&&Fe!==Qe}return document.documentElement.contains(Qe)}}]),Vt}(se);zt.\u0275fac=function(vn){return new(vn||zt)(E.Y36(E.SBq),E.Y36(E.sBO),E.Y36(k.Is,8),E.Y36(t,8),E.Y36(M.t4),E.Y36(E.R0b),E.Y36(E.QbO,8))},zt.\u0275cmp=E.Xpm({type:zt,selectors:[["mat-form-field"]],contentQueries:function(vn,Vt,Jt){var Qe;(1&vn&&(E.Suo(Jt,$t,5),E.Suo(Jt,$t,7),E.Suo(Jt,Ve,5),E.Suo(Jt,Ve,7),E.Suo(Jt,at,5),E.Suo(Jt,Dt,5),E.Suo(Jt,_t,5),E.Suo(Jt,ht,5),E.Suo(Jt,Wt,5)),2&vn)&&(E.iGM(Qe=E.CRH())&&(Vt._controlNonStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._controlStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._labelChildNonStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._labelChildStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._placeholderChild=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._errorChildren=Qe),E.iGM(Qe=E.CRH())&&(Vt._hintChildren=Qe),E.iGM(Qe=E.CRH())&&(Vt._prefixChildren=Qe),E.iGM(Qe=E.CRH())&&(Vt._suffixChildren=Qe))},viewQuery:function(vn,Vt){var Jt;(1&vn&&(E.Gf(N,7),E.Gf(F,5),E.Gf(X,5)),2&vn)&&(E.iGM(Jt=E.CRH())&&(Vt._connectionContainerRef=Jt.first),E.iGM(Jt=E.CRH())&&(Vt._inputContainerRef=Jt.first),E.iGM(Jt=E.CRH())&&(Vt._label=Jt.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(vn,Vt){2&vn&&E.ekj("mat-form-field-appearance-standard","standard"==Vt.appearance)("mat-form-field-appearance-fill","fill"==Vt.appearance)("mat-form-field-appearance-outline","outline"==Vt.appearance)("mat-form-field-appearance-legacy","legacy"==Vt.appearance)("mat-form-field-invalid",Vt._control.errorState)("mat-form-field-can-float",Vt._canLabelFloat())("mat-form-field-should-float",Vt._shouldLabelFloat())("mat-form-field-has-label",Vt._hasFloatingLabel())("mat-form-field-hide-placeholder",Vt._hideControlPlaceholder())("mat-form-field-disabled",Vt._control.disabled)("mat-form-field-autofilled",Vt._control.autofilled)("mat-focused",Vt._control.focused)("ng-untouched",Vt._shouldForward("untouched"))("ng-touched",Vt._shouldForward("touched"))("ng-pristine",Vt._shouldForward("pristine"))("ng-dirty",Vt._shouldForward("dirty"))("ng-valid",Vt._shouldForward("valid"))("ng-invalid",Vt._shouldForward("invalid"))("ng-pending",Vt._shouldForward("pending"))("_mat-animation-noopable",!Vt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[E._Bn([{provide:Lt,useExisting:zt}]),E.qOj],ngContentSelectors:["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(vn,Vt){1&vn&&(E.F$t(ot),E.TgZ(0,"div",0)(1,"div",1,2),E.NdJ("click",function(Qe){return Vt._control.onContainerClick&&Vt._control.onContainerClick(Qe)}),E.YNc(3,$,9,0,"ng-container",3),E.YNc(4,V,2,1,"div",4),E.TgZ(5,"div",5,6),E.Hsn(7),E.TgZ(8,"span",7),E.YNc(9,pe,5,16,"label",8),E.qZA()(),E.YNc(10,fe,2,0,"div",9),E.qZA(),E.YNc(11,ue,2,4,"div",10),E.TgZ(12,"div",11),E.YNc(13,de,2,1,"div",12),E.YNc(14,He,5,2,"div",13),E.qZA()()),2&vn&&(E.xp6(3),E.Q6J("ngIf","outline"==Vt.appearance),E.xp6(1),E.Q6J("ngIf",Vt._prefixChildren.length),E.xp6(5),E.Q6J("ngIf",Vt._hasFloatingLabel()),E.xp6(1),E.Q6J("ngIf",Vt._suffixChildren.length),E.xp6(1),E.Q6J("ngIf","outline"!=Vt.appearance),E.xp6(1),E.Q6J("ngSwitch",Vt._getDisplayedMessages()),E.xp6(1),E.Q6J("ngSwitchCase","error"),E.xp6(1),E.Q6J("ngSwitchCase","hint"))},dependencies:[T.O5,T.RF,T.n9,P.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[Ze.transitionMessages]},changeDetection:0});var an=(0,j.Z)(function Qt(){(0,I.Z)(this,Qt)});an.\u0275fac=function(vn){return new(vn||an)},an.\u0275mod=E.oAB({type:an}),an.\u0275inj=E.cJS({imports:[T.ez,H.BQ,P.Q8,H.BQ]})},4107:function(Ae,K,m){"use strict";m.d(K,{LD:function(){return vn},gD:function(){return Qt}});var G=m(3237),W=m(1120),A=m(4902),j=m(7326),I=m(136),P=m(9388),T=m(3144),E=m(5671),H=m(1314),R=m(9808),v=m(5e3),x=m(508),w=m(7322),Z=m(9071),D=m(5664),b=m(3191),S=m(449),k=m(1159),M=m(3075),N=m(8929),F=m(8514),X=m(6787),$=m(1059),V=m(7545),Q=m(2986),te=m(9664),be=m(4850),pe=m(5778),fe=m(7625),ue=m(1777),de=m(226),ge=["trigger"],He=["panel"];function ot(Vt,Jt){if(1&Vt&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Vt){var Qe=v.oxw();v.xp6(1),v.Oqu(Qe.placeholder)}}function St(Vt,Jt){if(1&Vt&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Vt){var Qe=v.oxw(2);v.xp6(1),v.Oqu(Qe.triggerValue)}}function Tt(Vt,Jt){1&Vt&&v.Hsn(0,0,["*ngSwitchCase","true"])}function Dt(Vt,Jt){if(1&Vt&&(v.TgZ(0,"span",9),v.YNc(1,St,2,1,"span",10),v.YNc(2,Tt,1,0,"ng-content",11),v.qZA()),2&Vt){var Qe=v.oxw();v.Q6J("ngSwitch",!!Qe.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function Rt(Vt,Jt){if(1&Vt){var Qe=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(ye){v.CHM(Qe);var he=v.oxw();return v.KtG(he._panelDoneAnimatingStream.next(ye.toState))})("keydown",function(ye){v.CHM(Qe);var he=v.oxw();return v.KtG(he._handleKeydown(ye))}),v.Hsn(3,1),v.qZA()()}if(2&Vt){var Fe=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",Fe._getPanelTheme(),""),v.Udp("transform-origin",Fe._transformOrigin)("font-size",Fe._triggerFontSize,"px"),v.Q6J("ngClass",Fe.panelClass)("@transformPanel",Fe.multiple?"showing-multiple":"showing"),v.uIk("id",Fe.id+"-panel")("aria-multiselectable",Fe.multiple)("aria-label",Fe.ariaLabel||null)("aria-labelledby",Fe._getPanelAriaLabelledby())}}var Ze=[[["mat-select-trigger"]],"*"],Ft={transformPanelWrap:(0,ue.X$)("transformPanelWrap",[(0,ue.eR)("* => void",(0,ue.IO)("@transformPanel",[(0,ue.pV)()],{optional:!0}))]),transformPanel:(0,ue.X$)("transformPanel",[(0,ue.SB)("void",(0,ue.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ue.SB)("showing",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ue.SB)("showing-multiple",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ue.eR)("void => *",(0,ue.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ue.eR)("* => void",(0,ue.jt)("100ms 25ms linear",(0,ue.oB)({opacity:0})))])};var _t=0,U=new v.OlP("mat-select-scroll-strategy");var qe=new v.OlP("MAT_SELECT_CONFIG"),Be={provide:U,deps:[H.aV],useFactory:function B(Vt){return function(){return Vt.scrollStrategies.reposition()}}},se=(0,T.Z)(function Vt(Jt,Qe){(0,E.Z)(this,Vt),this.source=Jt,this.value=Qe}),t=(0,x.Kr)((0,x.sb)((0,x.Id)((0,x.FD)(function(){return(0,T.Z)(function Vt(Jt,Qe,Fe,ne,ye){(0,E.Z)(this,Vt),this._elementRef=Jt,this._defaultErrorStateMatcher=Qe,this._parentForm=Fe,this._parentFormGroup=ne,this.ngControl=ye,this.stateChanges=new N.xQ})}())))),Lt=new v.OlP("MatSelectTrigger"),zt=(0,T.Z)(function Vt(){(0,E.Z)(this,Vt)});zt.\u0275fac=function(Jt){return new(Jt||zt)},zt.\u0275dir=v.lG2({type:zt,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:Lt,useExisting:zt}])]});var an=function(Vt){(0,I.Z)(Qe,Vt);var Jt=(0,P.Z)(Qe);function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,Ht,sn,yn,ln,Sn,hn){var mn,At,xt,tt;return(0,E.Z)(this,Qe),(mn=Jt.call(this,Le,he,ut,Nt,sn))._viewportRuler=Fe,mn._changeDetectorRef=ne,mn._ngZone=ye,mn._dir=lt,mn._parentFormField=Ht,mn._liveAnnouncer=Sn,mn._defaultOptions=hn,mn._panelOpen=!1,mn._compareWith=function(Et,We){return Et===We},mn._uid="mat-select-".concat(_t++),mn._triggerAriaLabelledBy=null,mn._destroy=new N.xQ,mn._onChange=function(){},mn._onTouched=function(){},mn._valueId="mat-select-value-".concat(_t++),mn._panelDoneAnimatingStream=new N.xQ,mn._overlayPanelClass=(null===(At=mn._defaultOptions)||void 0===At?void 0:At.overlayPanelClass)||"",mn._focused=!1,mn.controlType="mat-select",mn._multiple=!1,mn._disableOptionCentering=null!==(tt=null===(xt=mn._defaultOptions)||void 0===xt?void 0:xt.disableOptionCentering)&&void 0!==tt&&tt,mn.ariaLabel="",mn.optionSelectionChanges=(0,F.P)(function(){var Et=mn.options;return Et?Et.changes.pipe((0,$.O)(Et),(0,V.w)(function(){return X.T.apply(void 0,(0,A.Z)(Et.map(function(We){return We.onSelectionChange})))})):mn._ngZone.onStable.pipe((0,Q.q)(1),(0,V.w)(function(){return mn.optionSelectionChanges}))}),mn.openedChange=new v.vpe,mn._openedStream=mn.openedChange.pipe((0,te.h)(function(Et){return Et}),(0,be.U)(function(){})),mn._closedStream=mn.openedChange.pipe((0,te.h)(function(Et){return!Et}),(0,be.U)(function(){})),mn.selectionChange=new v.vpe,mn.valueChange=new v.vpe,mn.ngControl&&(mn.ngControl.valueAccessor=(0,j.Z)(mn)),null!=(null==hn?void 0:hn.typeaheadDebounceInterval)&&(mn._typeaheadDebounceInterval=hn.typeaheadDebounceInterval),mn._scrollStrategyFactory=ln,mn._scrollStrategy=mn._scrollStrategyFactory(),mn.tabIndex=parseInt(yn)||0,mn.id=mn.id,mn}return(0,T.Z)(Qe,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(ne){this._placeholder=ne,this.stateChanges.next()}},{key:"required",get:function(){var ne,ye,he,Le;return null!==(Le=null!==(ne=this._required)&&void 0!==ne?ne:null===(he=null===(ye=this.ngControl)||void 0===ye?void 0:ye.control)||void 0===he?void 0:he.hasValidator(M.kI.required))&&void 0!==Le&&Le},set:function(ne){this._required=(0,b.Ig)(ne),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(ne){this._selectionModel,this._multiple=(0,b.Ig)(ne)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(ne){this._disableOptionCentering=(0,b.Ig)(ne)}},{key:"compareWith",get:function(){return this._compareWith},set:function(ne){this._compareWith=ne,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(ne){this._assignValue(ne)&&this._onChange(ne)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(ne){this._typeaheadDebounceInterval=(0,b.su)(ne)}},{key:"id",get:function(){return this._id},set:function(ne){this._id=ne||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var ne=this;this._selectionModel=new S.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,pe.x)(),(0,fe.R)(this._destroy)).subscribe(function(){return ne._panelDoneAnimating(ne.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var ne=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,fe.R)(this._destroy)).subscribe(function(ye){ye.added.forEach(function(he){return he.select()}),ye.removed.forEach(function(he){return he.deselect()})}),this.options.changes.pipe((0,$.O)(null),(0,fe.R)(this._destroy)).subscribe(function(){ne._resetOptions(),ne._initializeSelection()})}},{key:"ngDoCheck",value:function(){var ne=this._getTriggerAriaLabelledby(),ye=this.ngControl;if(ne!==this._triggerAriaLabelledBy){var he=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ne,ne?he.setAttribute("aria-labelledby",ne):he.removeAttribute("aria-labelledby")}ye&&(this._previousControl!==ye.control&&(void 0!==this._previousControl&&null!==ye.disabled&&ye.disabled!==this.disabled&&(this.disabled=ye.disabled),this._previousControl=ye.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(ne){(ne.disabled||ne.userAriaDescribedBy)&&this.stateChanges.next(),ne.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(ne){this._assignValue(ne)}},{key:"registerOnChange",value:function(ne){this._onChange=ne}},{key:"registerOnTouched",value:function(ne){this._onTouched=ne}},{key:"setDisabledState",value:function(ne){this.disabled=ne,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var ne,ye;return this.multiple?(null===(ne=this._selectionModel)||void 0===ne?void 0:ne.selected)||[]:null===(ye=this._selectionModel)||void 0===ye?void 0:ye.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var ne=this._selectionModel.selected.map(function(ye){return ye.viewValue});return this._isRtl()&&ne.reverse(),ne.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(ne){this.disabled||(this.panelOpen?this._handleOpenKeydown(ne):this._handleClosedKeydown(ne))}},{key:"_handleClosedKeydown",value:function(ne){var ye=ne.keyCode,he=ye===k.JH||ye===k.LH||ye===k.oh||ye===k.SV,Le=ye===k.K5||ye===k.L_,lt=this._keyManager;if(!lt.isTyping()&&Le&&!(0,k.Vb)(ne)||(this.multiple||ne.altKey)&&he)ne.preventDefault(),this.open();else if(!this.multiple){var ut=this.selected;lt.onKeydown(ne);var Nt=this.selected;Nt&&ut!==Nt&&this._liveAnnouncer.announce(Nt.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(ne){var ye=this._keyManager,he=ne.keyCode,Le=he===k.JH||he===k.LH,lt=ye.isTyping();if(Le&&ne.altKey)ne.preventDefault(),this.close();else if(lt||he!==k.K5&&he!==k.L_||!ye.activeItem||(0,k.Vb)(ne))if(!lt&&this._multiple&&he===k.A&&ne.ctrlKey){ne.preventDefault();var ut=this.options.some(function(Ht){return!Ht.disabled&&!Ht.selected});this.options.forEach(function(Ht){Ht.disabled||(ut?Ht.select():Ht.deselect())})}else{var Nt=ye.activeItemIndex;ye.onKeydown(ne),this._multiple&&Le&&ne.shiftKey&&ye.activeItem&&ye.activeItemIndex!==Nt&&ye.activeItem._selectViaInteraction()}else ne.preventDefault(),ye.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var ne=this;this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(function(){ne._changeDetectorRef.detectChanges(),ne._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var ne=this;Promise.resolve().then(function(){ne.ngControl&&(ne._value=ne.ngControl.value),ne._setSelectionByValue(ne._value),ne.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(ne){var ye=this;if(this._selectionModel.selected.forEach(function(Le){return Le.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&ne)Array.isArray(ne),ne.forEach(function(Le){return ye._selectOptionByValue(Le)}),this._sortValues();else{var he=this._selectOptionByValue(ne);he?this._keyManager.updateActiveItem(he):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(ne){var ye=this,he=this.options.find(function(Le){if(ye._selectionModel.isSelected(Le))return!1;try{return null!=Le.value&&ye._compareWith(Le.value,ne)}catch(lt){return!1}});return he&&this._selectionModel.select(he),he}},{key:"_assignValue",value:function(ne){return!!(ne!==this._value||this._multiple&&Array.isArray(ne))&&(this.options&&this._setSelectionByValue(ne),this._value=ne,!0)}},{key:"_initKeyManager",value:function(){var ne=this;this._keyManager=new D.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,fe.R)(this._destroy)).subscribe(function(){ne.panelOpen&&(!ne.multiple&&ne._keyManager.activeItem&&ne._keyManager.activeItem._selectViaInteraction(),ne.focus(),ne.close())}),this._keyManager.change.pipe((0,fe.R)(this._destroy)).subscribe(function(){ne._panelOpen&&ne.panel?ne._scrollOptionIntoView(ne._keyManager.activeItemIndex||0):!ne._panelOpen&&!ne.multiple&&ne._keyManager.activeItem&&ne._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var ne=this,ye=(0,X.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,fe.R)(ye)).subscribe(function(he){ne._onSelect(he.source,he.isUserInput),he.isUserInput&&!ne.multiple&&ne._panelOpen&&(ne.close(),ne.focus())}),X.T.apply(void 0,(0,A.Z)(this.options.map(function(he){return he._stateChanges}))).pipe((0,fe.R)(ye)).subscribe(function(){ne._changeDetectorRef.markForCheck(),ne.stateChanges.next()})}},{key:"_onSelect",value:function(ne,ye){var he=this._selectionModel.isSelected(ne);null!=ne.value||this._multiple?(he!==ne.selected&&(ne.selected?this._selectionModel.select(ne):this._selectionModel.deselect(ne)),ye&&this._keyManager.setActiveItem(ne),this.multiple&&(this._sortValues(),ye&&this.focus())):(ne.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ne.value)),he!==this._selectionModel.isSelected(ne)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var ne=this;if(this.multiple){var ye=this.options.toArray();this._selectionModel.sort(function(he,Le){return ne.sortComparator?ne.sortComparator(he,Le,ye):ye.indexOf(he)-ye.indexOf(Le)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(ne){var ye=null;ye=this.multiple?this.selected.map(function(he){return he.value}):this.selected?this.selected.value:ne,this._value=ye,this.valueChange.emit(ye),this._onChange(ye),this.selectionChange.emit(this._getChangeEvent(ye)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var ne;return!this._panelOpen&&!this.disabled&&(null===(ne=this.options)||void 0===ne?void 0:ne.length)>0}},{key:"focus",value:function(ne){this._elementRef.nativeElement.focus(ne)}},{key:"_getPanelAriaLabelledby",value:function(){var ne;if(this.ariaLabel)return null;var ye=null===(ne=this._parentFormField)||void 0===ne?void 0:ne.getLabelId(),he=ye?ye+" ":"";return this.ariaLabelledby?he+this.ariaLabelledby:ye}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var ne;if(this.ariaLabel)return null;var ye=null===(ne=this._parentFormField)||void 0===ne?void 0:ne.getLabelId(),he=(ye?ye+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}},{key:"_panelDoneAnimating",value:function(ne){this.openedChange.emit(ne)}},{key:"setDescribedByIds",value:function(ne){ne.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ne.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),Qe}(t);an.\u0275fac=function(Jt){return new(Jt||an)(v.Y36(Z.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(x.rD),v.Y36(v.SBq),v.Y36(de.Is,8),v.Y36(M.F,8),v.Y36(M.sg,8),v.Y36(w.G_,8),v.Y36(M.a5,10),v.$8M("tabindex"),v.Y36(U),v.Y36(D.Kd),v.Y36(qe,8))},an.\u0275dir=v.lG2({type:an,viewQuery:function(Jt,Qe){var Fe;(1&Jt&&(v.Gf(ge,5),v.Gf(He,5),v.Gf(H.pI,5)),2&Jt)&&(v.iGM(Fe=v.CRH())&&(Qe.trigger=Fe.first),v.iGM(Fe=v.CRH())&&(Qe.panel=Fe.first),v.iGM(Fe=v.CRH())&&(Qe._overlayDir=Fe.first))},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]});var Qt=function(Vt){(0,I.Z)(Qe,Vt);var Jt=(0,P.Z)(Qe);function Qe(){var Fe;return(0,E.Z)(this,Qe),(Fe=Jt.apply(this,arguments))._scrollTop=0,Fe._triggerFontSize=0,Fe._transformOrigin="top",Fe._offsetY=0,Fe._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Fe}return(0,T.Z)(Qe,[{key:"_calculateOverlayScroll",value:function(ne,ye,he){var Le=this._getItemHeight(),Nt=Le*ne-ye+Le/2;return Math.min(Math.max(0,Nt),he)}},{key:"ngOnInit",value:function(){var ne=this;(0,G.Z)((0,W.Z)(Qe.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,fe.R)(this._destroy)).subscribe(function(){ne.panelOpen&&(ne._triggerRect=ne.trigger.nativeElement.getBoundingClientRect(),ne._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var ne=this;(0,G.Z)((0,W.Z)(Qe.prototype),"_canOpen",this).call(this)&&((0,G.Z)((0,W.Z)(Qe.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(function(){ne._triggerFontSize&&ne._overlayDir.overlayRef&&ne._overlayDir.overlayRef.overlayElement&&(ne._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(ne._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(ne){var ye=(0,x.CB)(ne,this.options,this.optionGroups),he=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ne&&1===ye?0:(0,x.jH)((ne+ye)*he,he,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(ne){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,G.Z)((0,W.Z)(Qe.prototype),"_panelDoneAnimating",this).call(this,ne)}},{key:"_getChangeEvent",value:function(ne){return new se(this,ne)}},{key:"_calculateOverlayOffsetX",value:function(){var lt,ne=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ye=this._viewportRuler.getViewportSize(),he=this._isRtl(),Le=this.multiple?56:32;if(this.multiple)lt=40;else if(this.disableOptionCentering)lt=16;else{var ut=this._selectionModel.selected[0]||this.options.first;lt=ut&&ut.group?32:16}he||(lt*=-1);var Nt=0-(ne.left+lt-(he?Le:0)),Ht=ne.right+lt-ye.width+(he?0:Le);Nt>0?lt+=Nt+8:Ht>0&&(lt-=Ht+8),this._overlayDir.offsetX=Math.round(lt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(ne,ye,he){var Nt,Le=this._getItemHeight(),lt=(Le-this._triggerRect.height)/2,ut=Math.floor(256/Le);if(this.disableOptionCentering)return 0;if(0===this._scrollTop)Nt=ne*Le;else if(this._scrollTop===he){Nt=(ne-(this._getItemCount()-ut))*Le+(Le-(this._getItemCount()*Le-256)%Le)}else Nt=ye-Le/2;return Math.round(-1*Nt-lt)}},{key:"_checkOverlayWithinViewport",value:function(ne){var ye=this._getItemHeight(),he=this._viewportRuler.getViewportSize(),Le=this._triggerRect.top-8,lt=he.height-this._triggerRect.bottom-8,ut=Math.abs(this._offsetY),Ht=Math.min(this._getItemCount()*ye,256)-ut-this._triggerRect.height;Ht>lt?this._adjustPanelUp(Ht,lt):ut>Le?this._adjustPanelDown(ut,Le,ne):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(ne,ye){var he=Math.round(ne-ye);this._scrollTop-=he,this._offsetY-=he,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(ne,ye,he){var Le=Math.round(ne-ye);if(this._scrollTop+=Le,this._offsetY+=Le,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=he)return this._scrollTop=he,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var ut,ne=this._getItemHeight(),ye=this._getItemCount(),he=Math.min(ye*ne,256),lt=ye*ne-he;ut=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ut+=(0,x.CB)(ut,this.options,this.optionGroups);var Nt=he/2;this._scrollTop=this._calculateOverlayScroll(ut,Nt,lt),this._offsetY=this._calculateOverlayOffsetY(ut,Nt,lt),this._checkOverlayWithinViewport(lt)}},{key:"_getOriginBasedOnOption",value:function(){var ne=this._getItemHeight(),ye=(ne-this._triggerRect.height)/2,he=Math.abs(this._offsetY)-ye+ne/2;return"50% ".concat(he,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),Qe}(an);Qt.\u0275fac=function(){var Vt;return function(Qe){return(Vt||(Vt=v.n5z(Qt)))(Qe||Qt)}}(),Qt.\u0275cmp=v.Xpm({type:Qt,selectors:[["mat-select"]],contentQueries:function(Jt,Qe,Fe){var ne;(1&Jt&&(v.Suo(Fe,Lt,5),v.Suo(Fe,x.ey,5),v.Suo(Fe,x.K7,5)),2&Jt)&&(v.iGM(ne=v.CRH())&&(Qe.customTrigger=ne.first),v.iGM(ne=v.CRH())&&(Qe.options=ne),v.iGM(ne=v.CRH())&&(Qe.optionGroups=ne))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(Jt,Qe){1&Jt&&v.NdJ("keydown",function(ne){return Qe._handleKeydown(ne)})("focus",function(){return Qe._onFocus()})("blur",function(){return Qe._onBlur()}),2&Jt&&(v.uIk("id",Qe.id)("tabindex",Qe.tabIndex)("aria-controls",Qe.panelOpen?Qe.id+"-panel":null)("aria-expanded",Qe.panelOpen)("aria-label",Qe.ariaLabel||null)("aria-required",Qe.required.toString())("aria-disabled",Qe.disabled.toString())("aria-invalid",Qe.errorState)("aria-activedescendant",Qe._getAriaActiveDescendant()),v.ekj("mat-select-disabled",Qe.disabled)("mat-select-invalid",Qe.errorState)("mat-select-required",Qe.required)("mat-select-empty",Qe.empty)("mat-select-multiple",Qe.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:w.Eo,useExisting:Qt},{provide:x.HF,useExisting:Qt}]),v.qOj],ngContentSelectors:["mat-select-trigger","*"],decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Jt,Qe){if(1&Jt&&(v.F$t(Ze),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return Qe.toggle()}),v.TgZ(3,"div",2),v.YNc(4,ot,2,1,"span",3),v.YNc(5,Dt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,Rt,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return Qe.close()})("attach",function(){return Qe._onAttached()})("detach",function(){return Qe.close()})),2&Jt){var Fe=v.MAs(1);v.uIk("aria-owns",Qe.panelOpen?Qe.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",Qe.empty),v.uIk("id",Qe._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",Qe._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Qe._scrollStrategy)("cdkConnectedOverlayOrigin",Fe)("cdkConnectedOverlayOpen",Qe.panelOpen)("cdkConnectedOverlayPositions",Qe._positions)("cdkConnectedOverlayMinWidth",null==Qe._triggerRect?null:Qe._triggerRect.width)("cdkConnectedOverlayOffsetY",Qe._offsetY)}},dependencies:[R.mk,R.RF,R.n9,R.ED,H.pI,H.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ft.transformPanelWrap,Ft.transformPanel]},changeDetection:0});var vn=(0,T.Z)(function Vt(){(0,E.Z)(this,Vt)});vn.\u0275fac=function(Jt){return new(Jt||vn)},vn.\u0275mod=v.oAB({type:vn}),vn.\u0275inj=v.cJS({providers:[Be],imports:[R.ez,H.U8,x.Ng,x.BQ,Z.ZD,w.lN,x.Ng,x.BQ]})},3251:function(Ae,K,m){"use strict";m.d(K,{BU:function(){return Ye},Nh:function(){return Un},Nj:function(){return vt},SP:function(){return tt},uD:function(){return Qt},uX:function(){return Jt}});var G=m(7326),W=m(4902),A=m(3237),j=m(1120),I=m(136),P=m(9388),T=m(5671),E=m(3144),H=m(5664),R=m(7144),v=m(7429),x=m(9808),w=m(5e3),Z=m(508),D=m(2986),b=m(1059),S=m(5778),k=m(7625),M=m(7545),N=m(1307),F=m(9664),X=m(8929),$=m(4096),V=m(3753),Q=m(1086),te=m(6787),be=m(8896),pe=m(7451),fe=m(8723),ue=m(1777),de=m(226),ge=m(3191),He=m(1159),ot=m(925),St=m(9071);function Tt(Kt,yt){1&Kt&&w.Hsn(0)}var Dt=["*"];function Rt(Kt,yt){}var Ze=function(yt){return{animationDuration:yt}},$t=function(yt,et){return{value:yt,params:et}},Ft=["tabListContainer"],pn=["tabList"],rt=["tabListInner"],Ot=["nextPaginator"],_t=["previousPaginator"],Ct=["tabBodyWrapper"],Ve=["tabHeader"];function at(Kt,yt){}function ht(Kt,yt){if(1&Kt&&w.YNc(0,at,0,0,"ng-template",10),2&Kt){var et=w.oxw().$implicit;w.Q6J("cdkPortalOutlet",et.templateLabel)}}function Ut(Kt,yt){if(1&Kt&&w._uU(0),2&Kt){var et=w.oxw().$implicit;w.Oqu(et.textLabel)}}function Wt(Kt,yt){if(1&Kt){var et=w.EpF();w.TgZ(0,"div",6),w.NdJ("click",function(){var Vn=w.CHM(et),ir=Vn.$implicit,Ir=Vn.index,yi=w.oxw(),zi=w.MAs(1);return w.KtG(yi._handleClick(ir,zi,Ir))})("cdkFocusChange",function(Vn){var Ir=w.CHM(et).index,yi=w.oxw();return w.KtG(yi._tabFocusChanged(Vn,Ir))}),w.TgZ(1,"div",7),w.YNc(2,ht,1,1,"ng-template",8),w.YNc(3,Ut,1,1,"ng-template",null,9,w.W1O),w.qZA()()}if(2&Kt){var gt=yt.$implicit,wt=yt.index,nn=w.MAs(4),jn=w.oxw();w.ekj("mat-tab-label-active",jn.selectedIndex===wt),w.Q6J("id",jn._getTabLabelId(wt))("ngClass",gt.labelClass)("disabled",gt.disabled)("matRippleDisabled",gt.disabled||jn.disableRipple),w.uIk("tabIndex",jn._getTabIndex(gt,wt))("aria-posinset",wt+1)("aria-setsize",jn._tabs.length)("aria-controls",jn._getTabContentId(wt))("aria-selected",jn.selectedIndex===wt)("aria-label",gt.ariaLabel||null)("aria-labelledby",!gt.ariaLabel&>.ariaLabelledby?gt.ariaLabelledby:null),w.xp6(2),w.Q6J("ngIf",gt.templateLabel)("ngIfElse",nn)}}function U(Kt,yt){if(1&Kt){var et=w.EpF();w.TgZ(0,"mat-tab-body",11),w.NdJ("_onCentered",function(){w.CHM(et);var Wn=w.oxw();return w.KtG(Wn._removeTabBodyWrapperHeight())})("_onCentering",function(Wn){w.CHM(et);var Vn=w.oxw();return w.KtG(Vn._setTabBodyWrapperHeight(Wn))}),w.qZA()}if(2&Kt){var gt=yt.$implicit,wt=yt.index,nn=w.oxw();w.ekj("mat-tab-body-active",nn.selectedIndex===wt),w.Q6J("id",nn._getTabContentId(wt))("ngClass",gt.bodyClass)("content",gt.content)("position",gt.position)("origin",gt.origin)("animationDuration",nn.animationDuration)("preserveContent",nn.preserveContent),w.uIk("tabindex",null!=nn.contentTabIndex&&nn.selectedIndex===wt?nn.contentTabIndex:null)("aria-labelledby",nn._getTabLabelId(wt))}}var qe=new w.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Be(){return function(et){return{left:et?(et.offsetLeft||0)+"px":"0",width:et?(et.offsetWidth||0)+"px":"0"}}}});var se=function(){function Kt(yt,et,gt,wt){(0,T.Z)(this,Kt),this._elementRef=yt,this._ngZone=et,this._inkBarPositioner=gt,this._animationMode=wt}return(0,E.Z)(Kt,[{key:"alignToElement",value:function(et){var gt=this;this.show(),this._ngZone.run(function(){gt._ngZone.onStable.pipe((0,D.q)(1)).subscribe(function(){var wt=gt._inkBarPositioner(et),nn=gt._elementRef.nativeElement;nn.style.left=wt.left,nn.style.width=wt.width})})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),Kt}();se.\u0275fac=function(yt){return new(yt||se)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(qe),w.Y36(w.QbO,8))},se.\u0275dir=w.lG2({type:se,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(yt,et){2&yt&&w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode)}});var t=new w.OlP("MatTabContent"),Lt=(0,E.Z)(function Kt(yt){(0,T.Z)(this,Kt),this.template=yt});Lt.\u0275fac=function(yt){return new(yt||Lt)(w.Y36(w.Rgc))},Lt.\u0275dir=w.lG2({type:Lt,selectors:[["","matTabContent",""]],features:[w._Bn([{provide:t,useExisting:Lt}])]});var zt=new w.OlP("MatTabLabel"),an=new w.OlP("MAT_TAB"),Qt=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn){var jn;return(0,T.Z)(this,et),(jn=yt.call(this,gt,wt))._closestTab=nn,jn}return(0,E.Z)(et)}(v.ig);Qt.\u0275fac=function(yt){return new(yt||Qt)(w.Y36(w.Rgc),w.Y36(w.s_b),w.Y36(an,8))},Qt.\u0275dir=w.lG2({type:Qt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[w._Bn([{provide:zt,useExisting:Qt}]),w.qOj]});var vn=(0,Z.Id)(function(){return(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)})}()),Vt=new w.OlP("MAT_TAB_GROUP"),Jt=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt){var nn;return(0,T.Z)(this,et),(nn=yt.call(this))._viewContainerRef=gt,nn._closestTabGroup=wt,nn.textLabel="",nn._contentPortal=null,nn._stateChanges=new X.xQ,nn.position=null,nn.origin=null,nn.isActive=!1,nn}return(0,E.Z)(et,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(wt){this._setTemplateLabelInput(wt)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(wt){(wt.hasOwnProperty("textLabel")||wt.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(wt){wt&&wt._closestTab===this&&(this._templateLabel=wt)}}]),et}(vn);Jt.\u0275fac=function(yt){return new(yt||Jt)(w.Y36(w.s_b),w.Y36(Vt,8))},Jt.\u0275cmp=w.Xpm({type:Jt,selectors:[["mat-tab"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&(w.Suo(gt,zt,5),w.Suo(gt,t,7,w.Rgc)),2&yt)&&(w.iGM(wt=w.CRH())&&(et.templateLabel=wt.first),w.iGM(wt=w.CRH())&&(et._explicitContent=wt.first))},viewQuery:function(yt,et){var gt;(1&yt&&w.Gf(w.Rgc,7),2&yt)&&(w.iGM(gt=w.CRH())&&(et._implicitContent=gt.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[w._Bn([{provide:an,useExisting:Jt}]),w.qOj,w.TTD],ngContentSelectors:Dt,decls:1,vars:0,template:function(yt,et){1&yt&&(w.F$t(),w.YNc(0,Tt,1,0,"ng-template"))},encapsulation:2});var Qe={translateTab:(0,ue.X$)("translateTab",[(0,ue.SB)("center, void, left-origin-center, right-origin-center",(0,ue.oB)({transform:"none"})),(0,ue.SB)("left",(0,ue.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ue.SB)("right",(0,ue.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ue.eR)("* => left, * => right, left => center, right => center",(0,ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ue.eR)("void => left-origin-center",[(0,ue.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ue.eR)("void => right-origin-center",[(0,ue.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Fe=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn){var Wn;return(0,T.Z)(this,et),(Wn=yt.call(this,gt,wt,jn))._host=nn,Wn._centeringSub=$.w.EMPTY,Wn._leavingSub=$.w.EMPTY,Wn}return(0,E.Z)(et,[{key:"ngOnInit",value:function(){var wt=this;(0,A.Z)((0,j.Z)(et.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(nn){nn&&!wt.hasAttached()&&wt.attach(wt._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){wt._host.preserveContent||wt.detach()})}},{key:"ngOnDestroy",value:function(){(0,A.Z)((0,j.Z)(et.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),et}(v.Pl);Fe.\u0275fac=function(yt){return new(yt||Fe)(w.Y36(w._Vd),w.Y36(w.s_b),w.Y36((0,w.Gpc)(function(){return ye})),w.Y36(x.K0))},Fe.\u0275dir=w.lG2({type:Fe,selectors:[["","matTabBodyHost",""]],features:[w.qOj]});var ne=function(){function Kt(yt,et,gt){var wt=this;(0,T.Z)(this,Kt),this._elementRef=yt,this._dir=et,this._dirChangeSubscription=$.w.EMPTY,this._translateTabComplete=new X.xQ,this._onCentering=new w.vpe,this._beforeCentering=new w.vpe,this._afterLeavingCenter=new w.vpe,this._onCentered=new w.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,et&&(this._dirChangeSubscription=et.change.subscribe(function(nn){wt._computePositionAnimationState(nn),gt.markForCheck()})),this._translateTabComplete.pipe((0,S.x)(function(nn,jn){return nn.fromState===jn.fromState&&nn.toState===jn.toState})).subscribe(function(nn){wt._isCenterPosition(nn.toState)&&wt._isCenterPosition(wt._position)&&wt._onCentered.emit(),wt._isCenterPosition(nn.fromState)&&!wt._isCenterPosition(wt._position)&&wt._afterLeavingCenter.emit()})}return(0,E.Z)(Kt,[{key:"position",set:function(et){this._positionIndex=et,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(et){var gt=this._isCenterPosition(et.toState);this._beforeCentering.emit(gt),gt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(et){return"center"==et||"left-origin-center"==et||"right-origin-center"==et}},{key:"_computePositionAnimationState",value:function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._positionIndex<0?this._position="ltr"==et?"left":"right":this._positionIndex>0?this._position="ltr"==et?"right":"left":this._position="center"}},{key:"_computePositionFromOrigin",value:function(et){var gt=this._getLayoutDirection();return"ltr"==gt&&et<=0||"rtl"==gt&&et>0?"left-origin-center":"right-origin-center"}}]),Kt}();ne.\u0275fac=function(yt){return new(yt||ne)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.sBO))},ne.\u0275dir=w.lG2({type:ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var ye=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn)}return(0,E.Z)(et)}(ne);ye.\u0275fac=function(yt){return new(yt||ye)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.sBO))},ye.\u0275cmp=w.Xpm({type:ye,selectors:[["mat-tab-body"]],viewQuery:function(yt,et){var gt;(1&yt&&w.Gf(v.Pl,5),2&yt)&&(w.iGM(gt=w.CRH())&&(et._portalHost=gt.first))},hostAttrs:[1,"mat-tab-body"],features:[w.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(yt,et){1&yt&&(w.TgZ(0,"div",0,1),w.NdJ("@translateTab.start",function(wt){return et._onTranslateTabStarted(wt)})("@translateTab.done",function(wt){return et._translateTabComplete.next(wt)}),w.YNc(2,Rt,0,0,"ng-template",2),w.qZA()),2&yt&&w.Q6J("@translateTab",w.WLB(3,$t,et._position,w.VKq(1,Ze,et.animationDuration)))},dependencies:[Fe],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Qe.translateTab]}});var he=new w.OlP("MAT_TABS_CONFIG"),lt=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt){var wt;return(0,T.Z)(this,et),(wt=yt.call(this)).elementRef=gt,wt}return(0,E.Z)(et,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),et}((0,Z.Id)(function(){return(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)})}()));lt.\u0275fac=function(yt){return new(yt||lt)(w.Y36(w.SBq))},lt.\u0275dir=w.lG2({type:lt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(yt,et){2&yt&&(w.uIk("aria-disabled",!!et.disabled),w.ekj("mat-tab-disabled",et.disabled))},inputs:{disabled:"disabled"},features:[w.qOj]});var ut=(0,ot.i$)({passive:!0}),yn=function(){function Kt(yt,et,gt,wt,nn,jn,Wn){var Vn=this;(0,T.Z)(this,Kt),this._elementRef=yt,this._changeDetectorRef=et,this._viewportRuler=gt,this._dir=wt,this._ngZone=nn,this._platform=jn,this._animationMode=Wn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new X.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new X.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new w.vpe,this.indexFocused=new w.vpe,nn.runOutsideAngular(function(){(0,V.R)(yt.nativeElement,"mouseleave").pipe((0,k.R)(Vn._destroyed)).subscribe(function(){Vn._stopInterval()})})}return(0,E.Z)(Kt,[{key:"disablePagination",get:function(){return this._disablePagination},set:function(et){this._disablePagination=(0,ge.Ig)(et)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(et){et=(0,ge.su)(et),this._selectedIndex!=et&&(this._selectedIndexChanged=!0,this._selectedIndex=et,this._keyManager&&this._keyManager.updateActiveItem(et))}},{key:"ngAfterViewInit",value:function(){var et=this;(0,V.R)(this._previousPaginator.nativeElement,"touchstart",ut).pipe((0,k.R)(this._destroyed)).subscribe(function(){et._handlePaginatorPress("before")}),(0,V.R)(this._nextPaginator.nativeElement,"touchstart",ut).pipe((0,k.R)(this._destroyed)).subscribe(function(){et._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var et=this,gt=this._dir?this._dir.change:(0,Q.of)("ltr"),wt=this._viewportRuler.change(150),nn=function(){et.updatePagination(),et._alignInkBarToSelectedTab()};this._keyManager=new H.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(nn),(0,te.T)(gt,wt,this._items.changes,this._itemsResized()).pipe((0,k.R)(this._destroyed)).subscribe(function(){et._ngZone.run(function(){Promise.resolve().then(function(){et._scrollDistance=Math.max(0,Math.min(et._getMaxScrollDistance(),et._scrollDistance)),nn()})}),et._keyManager.withHorizontalOrientation(et._getLayoutDirection())}),this._keyManager.change.pipe((0,k.R)(this._destroyed)).subscribe(function(jn){et.indexFocused.emit(jn),et._setTabFocus(jn)})}},{key:"_itemsResized",value:function(){var et=this;return"function"!=typeof ResizeObserver?be.E:this._items.changes.pipe((0,b.O)(this._items),(0,M.w)(function(gt){return new pe.y(function(wt){return et._ngZone.runOutsideAngular(function(){var nn=new ResizeObserver(function(jn){return wt.next(jn)});return gt.forEach(function(jn){return nn.observe(jn.elementRef.nativeElement)}),function(){nn.disconnect()}})})}),(0,N.T)(1),(0,F.h)(function(gt){return gt.some(function(wt){return wt.contentRect.width>0&&wt.contentRect.height>0})}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(et){if(!(0,He.Vb)(et))switch(et.keyCode){case He.K5:case He.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(et));break;default:this._keyManager.onKeydown(et)}}},{key:"_onContentChanges",value:function(){var et=this,gt=this._elementRef.nativeElement.textContent;gt!==this._currentTextContent&&(this._currentTextContent=gt||"",this._ngZone.run(function(){et.updatePagination(),et._alignInkBarToSelectedTab(),et._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(et){!this._isValidIndex(et)||this.focusIndex===et||!this._keyManager||this._keyManager.setActiveItem(et)}},{key:"_isValidIndex",value:function(et){if(!this._items)return!0;var gt=this._items?this._items.toArray()[et]:null;return!!gt&&!gt.disabled}},{key:"_setTabFocus",value:function(et){if(this._showPaginationControls&&this._scrollToLabel(et),this._items&&this._items.length){this._items.toArray()[et].focus();var gt=this._tabListContainer.nativeElement,wt=this._getLayoutDirection();gt.scrollLeft="ltr"==wt?0:gt.scrollWidth-gt.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var et=this.scrollDistance,gt="ltr"===this._getLayoutDirection()?-et:et;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(gt),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(et){this._scrollTo(et)}},{key:"_scrollHeader",value:function(et){var wt=("before"==et?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+wt)}},{key:"_handlePaginatorClick",value:function(et){this._stopInterval(),this._scrollHeader(et)}},{key:"_scrollToLabel",value:function(et){if(!this.disablePagination){var gt=this._items?this._items.toArray()[et]:null;if(gt){var Vn,ir,wt=this._tabListContainer.nativeElement.offsetWidth,nn=gt.elementRef.nativeElement,jn=nn.offsetLeft,Wn=nn.offsetWidth;"ltr"==this._getLayoutDirection()?ir=(Vn=jn)+Wn:Vn=(ir=this._tabListInner.nativeElement.offsetWidth-jn)-Wn;var Ir=this.scrollDistance,yi=this.scrollDistance+wt;Vn<Ir?this.scrollDistance-=Ir-Vn+60:ir>yi&&(this.scrollDistance+=ir-yi+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var et=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;et||(this.scrollDistance=0),et!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=et}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var et=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,gt=et?et.elementRef.nativeElement:null;gt?this._inkBar.alignToElement(gt):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(et,gt){var wt=this;gt&&null!=gt.button&&0!==gt.button||(this._stopInterval(),(0,fe.H)(650,100).pipe((0,k.R)((0,te.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var nn=wt._scrollHeader(et),jn=nn.maxScrollDistance,Wn=nn.distance;(0===Wn||Wn>=jn)&&wt._stopInterval()}))}},{key:"_scrollTo",value:function(et){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var gt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(gt,et)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:gt,distance:this._scrollDistance}}}]),Kt}();yn.\u0275fac=function(yt){return new(yt||yn)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(w.QbO,8))},yn.\u0275dir=w.lG2({type:yn,inputs:{disablePagination:"disablePagination"}});var ln=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn,Wn,Vn,ir){var Ir;return(0,T.Z)(this,et),(Ir=yt.call(this,gt,wt,nn,jn,Wn,Vn,ir))._disableRipple=!1,Ir}return(0,E.Z)(et,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(wt){this._disableRipple=(0,ge.Ig)(wt)}},{key:"_itemSelected",value:function(wt){wt.preventDefault()}}]),et}(yn);ln.\u0275fac=function(yt){return new(yt||ln)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(w.QbO,8))},ln.\u0275dir=w.lG2({type:ln,inputs:{disableRipple:"disableRipple"},features:[w.qOj]});var Sn=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn,Wn,Vn,ir){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn,jn,Wn,Vn,ir)}return(0,E.Z)(et)}(ln);Sn.\u0275fac=function(yt){return new(yt||Sn)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(w.QbO,8))},Sn.\u0275cmp=w.Xpm({type:Sn,selectors:[["mat-tab-header"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&w.Suo(gt,lt,4),2&yt)&&(w.iGM(wt=w.CRH())&&(et._items=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(w.Gf(se,7),w.Gf(Ft,7),w.Gf(pn,7),w.Gf(rt,7),w.Gf(Ot,5),w.Gf(_t,5)),2&yt)&&(w.iGM(gt=w.CRH())&&(et._inkBar=gt.first),w.iGM(gt=w.CRH())&&(et._tabListContainer=gt.first),w.iGM(gt=w.CRH())&&(et._tabList=gt.first),w.iGM(gt=w.CRH())&&(et._tabListInner=gt.first),w.iGM(gt=w.CRH())&&(et._nextPaginator=gt.first),w.iGM(gt=w.CRH())&&(et._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(yt,et){2&yt&&w.ekj("mat-tab-header-pagination-controls-enabled",et._showPaginationControls)("mat-tab-header-rtl","rtl"==et._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[w.qOj],ngContentSelectors:Dt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(yt,et){1&yt&&(w.F$t(),w.TgZ(0,"button",0,1),w.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(wt){return et._handlePaginatorPress("before",wt)})("touchend",function(){return et._stopInterval()}),w._UZ(2,"div",2),w.qZA(),w.TgZ(3,"div",3,4),w.NdJ("keydown",function(wt){return et._handleKeydown(wt)}),w.TgZ(5,"div",5,6),w.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),w.TgZ(7,"div",7,8),w.Hsn(9),w.qZA(),w._UZ(10,"mat-ink-bar"),w.qZA()(),w.TgZ(11,"button",9,10),w.NdJ("mousedown",function(wt){return et._handlePaginatorPress("after",wt)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),w._UZ(13,"div",2),w.qZA()),2&yt&&(w.ekj("mat-tab-header-pagination-disabled",et._disableScrollBefore),w.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),w.xp6(5),w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),w.xp6(6),w.ekj("mat-tab-header-pagination-disabled",et._disableScrollAfter),w.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[Z.wG,R.wD,se],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2});var hn=0,mn=(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)}),xt=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn){var Wn,Vn;return(0,T.Z)(this,et),(Wn=yt.call(this,gt))._changeDetectorRef=wt,Wn._animationMode=jn,Wn._tabs=new w.n_E,Wn._indexToSelect=0,Wn._lastFocusedTabIndex=null,Wn._tabBodyWrapperHeight=0,Wn._tabsSubscription=$.w.EMPTY,Wn._tabLabelSubscription=$.w.EMPTY,Wn._dynamicHeight=!1,Wn._selectedIndex=null,Wn.headerPosition="above",Wn._disablePagination=!1,Wn._preserveContent=!1,Wn.selectedIndexChange=new w.vpe,Wn.focusChange=new w.vpe,Wn.animationDone=new w.vpe,Wn.selectedTabChange=new w.vpe(!0),Wn._groupId=hn++,Wn.animationDuration=nn&&nn.animationDuration?nn.animationDuration:"500ms",Wn.disablePagination=!(!nn||null==nn.disablePagination)&&nn.disablePagination,Wn.dynamicHeight=!(!nn||null==nn.dynamicHeight)&&nn.dynamicHeight,Wn.contentTabIndex=null!==(Vn=null==nn?void 0:nn.contentTabIndex)&&void 0!==Vn?Vn:null,Wn.preserveContent=!(null==nn||!nn.preserveContent),Wn}return(0,E.Z)(et,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(wt){this._dynamicHeight=(0,ge.Ig)(wt)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(wt){this._indexToSelect=(0,ge.su)(wt,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(wt){this._animationDuration=/^\d+$/.test(wt+"")?wt+"ms":wt}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(wt){this._contentTabIndex=(0,ge.su)(wt,null)}},{key:"disablePagination",get:function(){return this._disablePagination},set:function(wt){this._disablePagination=(0,ge.Ig)(wt)}},{key:"preserveContent",get:function(){return this._preserveContent},set:function(wt){this._preserveContent=(0,ge.Ig)(wt)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(wt){var nn=this._elementRef.nativeElement;nn.classList.remove("mat-background-".concat(this.backgroundColor)),wt&&nn.classList.add("mat-background-".concat(wt)),this._backgroundColor=wt}},{key:"ngAfterContentChecked",value:function(){var wt=this,nn=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=nn){var jn=null==this._selectedIndex;if(!jn){this.selectedTabChange.emit(this._createChangeEvent(nn));var Wn=this._tabBodyWrapper.nativeElement;Wn.style.minHeight=Wn.clientHeight+"px"}Promise.resolve().then(function(){wt._tabs.forEach(function(Vn,ir){return Vn.isActive=ir===nn}),jn||(wt.selectedIndexChange.emit(nn),wt._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Vn,ir){Vn.position=ir-nn,null!=wt._selectedIndex&&0==Vn.position&&!Vn.origin&&(Vn.origin=nn-wt._selectedIndex)}),this._selectedIndex!==nn&&(this._selectedIndex=nn,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var wt=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var nn=wt._clampTabIndex(wt._indexToSelect);if(nn===wt._selectedIndex){for(var Wn,jn=wt._tabs.toArray(),Vn=0;Vn<jn.length;Vn++)if(jn[Vn].isActive){wt._indexToSelect=wt._selectedIndex=Vn,wt._lastFocusedTabIndex=null,Wn=jn[Vn];break}!Wn&&jn[nn]&&Promise.resolve().then(function(){jn[nn].isActive=!0,wt.selectedTabChange.emit(wt._createChangeEvent(nn))})}wt._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var wt=this;this._allTabs.changes.pipe((0,b.O)(this._allTabs)).subscribe(function(nn){wt._tabs.reset(nn.filter(function(jn){return jn._closestTabGroup===wt||!jn._closestTabGroup})),wt._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"updatePagination",value:function(){this._tabHeader&&this._tabHeader.updatePagination()}},{key:"focusTab",value:function(wt){var nn=this._tabHeader;nn&&(nn.focusIndex=wt)}},{key:"_focusChanged",value:function(wt){this._lastFocusedTabIndex=wt,this.focusChange.emit(this._createChangeEvent(wt))}},{key:"_createChangeEvent",value:function(wt){var nn=new mn;return nn.index=wt,this._tabs&&this._tabs.length&&(nn.tab=this._tabs.toArray()[wt]),nn}},{key:"_subscribeToTabLabels",value:function(){var wt=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=te.T.apply(void 0,(0,W.Z)(this._tabs.map(function(nn){return nn._stateChanges}))).subscribe(function(){return wt._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(wt){return Math.min(this._tabs.length-1,Math.max(wt||0,0))}},{key:"_getTabLabelId",value:function(wt){return"mat-tab-label-".concat(this._groupId,"-").concat(wt)}},{key:"_getTabContentId",value:function(wt){return"mat-tab-content-".concat(this._groupId,"-").concat(wt)}},{key:"_setTabBodyWrapperHeight",value:function(wt){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var nn=this._tabBodyWrapper.nativeElement;nn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(nn.style.height=wt+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var wt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=wt.clientHeight,wt.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(wt,nn,jn){wt.disabled||(this.selectedIndex=nn.focusIndex=jn)}},{key:"_getTabIndex",value:function(wt,nn){var jn;return wt.disabled?null:nn===(null!==(jn=this._lastFocusedTabIndex)&&void 0!==jn?jn:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(wt,nn){wt&&"mouse"!==wt&&"touch"!==wt&&(this._tabHeader.focusIndex=nn)}}]),et}((0,Z.pj)((0,Z.Kr)(function(){return(0,E.Z)(function Kt(yt){(0,T.Z)(this,Kt),this._elementRef=yt})}()),"primary"));xt.\u0275fac=function(yt){return new(yt||xt)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(he,8),w.Y36(w.QbO,8))},xt.\u0275dir=w.lG2({type:xt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[w.qOj]});var tt=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn,jn)}return(0,E.Z)(et)}(xt);tt.\u0275fac=function(yt){return new(yt||tt)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(he,8),w.Y36(w.QbO,8))},tt.\u0275cmp=w.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&w.Suo(gt,Jt,5),2&yt)&&(w.iGM(wt=w.CRH())&&(et._allTabs=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(w.Gf(Ct,5),w.Gf(Ve,5)),2&yt)&&(w.iGM(gt=w.CRH())&&(et._tabBodyWrapper=gt.first),w.iGM(gt=w.CRH())&&(et._tabHeader=gt.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(yt,et){2&yt&&w.ekj("mat-tab-group-dynamic-height",et.dynamicHeight)("mat-tab-group-inverted-header","below"===et.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[w._Bn([{provide:Vt,useExisting:tt}]),w.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(yt,et){1&yt&&(w.TgZ(0,"mat-tab-header",0,1),w.NdJ("indexFocused",function(wt){return et._focusChanged(wt)})("selectFocusedIndex",function(wt){return et.selectedIndex=wt}),w.YNc(2,Wt,5,15,"div",2),w.qZA(),w.TgZ(3,"div",3,4),w.YNc(5,U,1,11,"mat-tab-body",5),w.qZA()),2&yt&&(w.Q6J("selectedIndex",et.selectedIndex||0)("disableRipple",et.disableRipple)("disablePagination",et.disablePagination),w.xp6(2),w.Q6J("ngForOf",et._tabs),w.xp6(1),w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),w.xp6(2),w.Q6J("ngForOf",et._tabs))},dependencies:[x.mk,x.sg,x.O5,v.Pl,Z.wG,H.kH,lt,ye,Sn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2});var Et=0,We=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn,Wn,Vn,ir){var Ir;return(0,T.Z)(this,et),(Ir=yt.call(this,gt,jn,Wn,wt,nn,Vn,ir))._disableRipple=!1,Ir.color="primary",Ir}return(0,E.Z)(et,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(wt){var nn=this._elementRef.nativeElement.classList;nn.remove("mat-background-".concat(this.backgroundColor)),wt&&nn.add("mat-background-".concat(wt)),this._backgroundColor=wt}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(wt){this._disableRipple=(0,ge.Ig)(wt)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var wt=this;this._items.changes.pipe((0,b.O)(null),(0,k.R)(this._destroyed)).subscribe(function(){wt.updateActiveLink()}),(0,A.Z)((0,j.Z)(et.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var wt=this._items.toArray(),nn=0;nn<wt.length;nn++)if(wt[nn].active)return this.selectedIndex=nn,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=wt[nn].id));this.selectedIndex=-1,this._inkBar.hide()}}},{key:"_getRole",value:function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}]),et}(yn);We.\u0275fac=function(yt){return new(yt||We)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(ot.t4),w.Y36(w.QbO,8))},We.\u0275dir=w.lG2({type:We,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[w.qOj]});var Ye=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn,Wn,Vn,ir){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn,jn,Wn,Vn,ir)}return(0,E.Z)(et)}(We);Ye.\u0275fac=function(yt){return new(yt||Ye)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(ot.t4),w.Y36(w.QbO,8))},Ye.\u0275cmp=w.Xpm({type:Ye,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(yt,et,gt){var wt;(1&yt&&w.Suo(gt,vt,5),2&yt)&&(w.iGM(wt=w.CRH())&&(et._items=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(w.Gf(se,7),w.Gf(Ft,7),w.Gf(pn,7),w.Gf(rt,7),w.Gf(Ot,5),w.Gf(_t,5)),2&yt)&&(w.iGM(gt=w.CRH())&&(et._inkBar=gt.first),w.iGM(gt=w.CRH())&&(et._tabListContainer=gt.first),w.iGM(gt=w.CRH())&&(et._tabList=gt.first),w.iGM(gt=w.CRH())&&(et._tabListInner=gt.first),w.iGM(gt=w.CRH())&&(et._nextPaginator=gt.first),w.iGM(gt=w.CRH())&&(et._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(yt,et){2&yt&&(w.uIk("role",et._getRole()),w.ekj("mat-tab-header-pagination-controls-enabled",et._showPaginationControls)("mat-tab-header-rtl","rtl"==et._getLayoutDirection())("mat-primary","warn"!==et.color&&"accent"!==et.color)("mat-accent","accent"===et.color)("mat-warn","warn"===et.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[w.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:Dt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(yt,et){1&yt&&(w.F$t(),w.TgZ(0,"button",0,1),w.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(wt){return et._handlePaginatorPress("before",wt)})("touchend",function(){return et._stopInterval()}),w._UZ(2,"div",2),w.qZA(),w.TgZ(3,"div",3,4),w.NdJ("keydown",function(wt){return et._handleKeydown(wt)}),w.TgZ(5,"div",5,6),w.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),w.TgZ(7,"div",7,8),w.Hsn(9),w.qZA(),w._UZ(10,"mat-ink-bar"),w.qZA()(),w.TgZ(11,"button",9,10),w.NdJ("mousedown",function(wt){return et._handlePaginatorPress("after",wt)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),w._UZ(13,"div",2),w.qZA()),2&yt&&(w.ekj("mat-tab-header-pagination-disabled",et._disableScrollBefore),w.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),w.xp6(5),w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),w.xp6(6),w.ekj("mat-tab-header-pagination-disabled",et._disableScrollAfter),w.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[Z.wG,R.wD,se],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2});var Je=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn,Wn,Vn){var ir;return(0,T.Z)(this,et),(ir=yt.call(this))._tabNavBar=gt,ir.elementRef=wt,ir._focusMonitor=Wn,ir._isActive=!1,ir.id="mat-tab-link-".concat(Et++),ir.rippleConfig=nn||{},ir.tabIndex=parseInt(jn)||0,"NoopAnimations"===Vn&&(ir.rippleConfig.animation={enterDuration:0,exitDuration:0}),ir}return(0,E.Z)(et,[{key:"active",get:function(){return this._isActive},set:function(wt){var nn=(0,ge.Ig)(wt);nn!==this._isActive&&(this._isActive=nn,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"_handleFocus",value:function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}},{key:"_handleKeydown",value:function(wt){this._tabNavBar.tabPanel&&wt.keyCode===He.L_&&this.elementRef.nativeElement.click()}},{key:"_getAriaControls",value:function(){var wt;return this._tabNavBar.tabPanel?null===(wt=this._tabNavBar.tabPanel)||void 0===wt?void 0:wt.id:this.elementRef.nativeElement.getAttribute("aria-controls")}},{key:"_getAriaSelected",value:function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}},{key:"_getAriaCurrent",value:function(){return this.active&&!this._tabNavBar.tabPanel?"page":null}},{key:"_getRole",value:function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}},{key:"_getTabIndex",value:function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}]),et}((0,Z.sb)((0,Z.Kr)((0,Z.Id)(function(){return(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)})}()))));Je.\u0275fac=function(yt){return new(yt||Je)(w.Y36(We),w.Y36(w.SBq),w.Y36(Z.Y2,8),w.$8M("tabindex"),w.Y36(H.tE),w.Y36(w.QbO,8))},Je.\u0275dir=w.lG2({type:Je,inputs:{active:"active",id:"id"},features:[w.qOj]});var vt=function(Kt){(0,I.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,jn,Wn,Vn,ir,Ir){var yi;return(0,T.Z)(this,et),(yi=yt.call(this,gt,wt,Wn,Vn,ir,Ir))._tabLinkRipple=new Z.IR((0,G.Z)(yi),nn,wt,jn),yi._tabLinkRipple.setupTriggerEvents(wt.nativeElement),yi}return(0,E.Z)(et,[{key:"ngOnDestroy",value:function(){(0,A.Z)((0,j.Z)(et.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),et}(Je);vt.\u0275fac=function(yt){return new(yt||vt)(w.Y36(Ye),w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(Z.Y2,8),w.$8M("tabindex"),w.Y36(H.tE),w.Y36(w.QbO,8))},vt.\u0275dir=w.lG2({type:vt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(yt,et){1&yt&&w.NdJ("focus",function(){return et._handleFocus()})("keydown",function(wt){return et._handleKeydown(wt)}),2&yt&&(w.uIk("aria-controls",et._getAriaControls())("aria-current",et._getAriaCurrent())("aria-disabled",et.disabled)("aria-selected",et._getAriaSelected())("id",et.id)("tabIndex",et._getTabIndex())("role",et._getRole()),w.ekj("mat-tab-disabled",et.disabled)("mat-tab-label-active",et.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[w.qOj]});var fn=(0,E.Z)(function Kt(){(0,T.Z)(this,Kt),this.id="mat-tab-nav-panel-".concat(Et++)});fn.\u0275fac=function(yt){return new(yt||fn)},fn.\u0275cmp=w.Xpm({type:fn,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(yt,et){2&yt&&w.uIk("aria-labelledby",et._activeTabId)("id",et.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:Dt,decls:1,vars:0,template:function(yt,et){1&yt&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0});var Un=(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)});Un.\u0275fac=function(yt){return new(yt||Un)},Un.\u0275mod=w.oAB({type:Un}),Un.\u0275inj=w.cJS({imports:[x.ez,Z.BQ,v.eL,Z.si,R.Q8,H.rt,Z.BQ]})},907:function(Ae,K,m){"use strict";function G(W,A){(null==A||A>W.length)&&(A=W.length);for(var j=0,I=new Array(A);j<A;j++)I[j]=W[j];return I}m.d(K,{Z:function(){return G}})},3878:function(Ae,K,m){"use strict";function G(W){if(Array.isArray(W))return W}m.d(K,{Z:function(){return G}})},7326:function(Ae,K,m){"use strict";function G(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}m.d(K,{Z:function(){return G}})},5671:function(Ae,K,m){"use strict";function G(W,A){if(!(W instanceof A))throw new TypeError("Cannot call a class as a function")}m.d(K,{Z:function(){return G}})},5647:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(9611),W=m(8814);function A(j,I,P){return(A=(0,W.Z)()?Reflect.construct.bind():function(E,H,R){var v=[null];v.push.apply(v,H);var w=new(Function.bind.apply(E,v));return R&&(0,G.Z)(w,R.prototype),w}).apply(null,arguments)}},3144:function(Ae,K,m){"use strict";function G(A,j){for(var I=0;I<j.length;I++){var P=j[I];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(A,P.key,P)}}function W(A,j,I){return j&&G(A.prototype,j),I&&G(A,I),Object.defineProperty(A,"prototype",{writable:!1}),A}m.d(K,{Z:function(){return W}})},7762:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(181);function W(A,j){var I="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!I){if(Array.isArray(A)||(I=(0,G.Z)(A))||j&&A&&"number"==typeof A.length){I&&(A=I);var P=0,T=function(){};return{s:T,n:function(){return P>=A.length?{done:!0}:{done:!1,value:A[P++]}},e:function(x){throw x},f:T}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var R,E=!0,H=!1;return{s:function(){I=I.call(A)},n:function(){var x=I.next();return E=x.done,x},e:function(x){H=!0,R=x},f:function(){try{!E&&null!=I.return&&I.return()}finally{if(H)throw R}}}}},9388:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return j}});var G=m(1120),W=m(8814),A=m(2963);function j(I){var P=(0,W.Z)();return function(){var H,E=(0,G.Z)(I);if(P){var R=(0,G.Z)(this).constructor;H=Reflect.construct(E,arguments,R)}else H=E.apply(this,arguments);return(0,A.Z)(this,H)}}},4942:function(Ae,K,m){"use strict";function G(W,A,j){return A in W?Object.defineProperty(W,A,{value:j,enumerable:!0,configurable:!0,writable:!0}):W[A]=j,W}m.d(K,{Z:function(){return G}})},3237:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1120);function W(j,I){for(;!Object.prototype.hasOwnProperty.call(j,I)&&null!==(j=(0,G.Z)(j)););return j}function A(){return A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(I,P,T){var E=W(I,P);if(E){var H=Object.getOwnPropertyDescriptor(E,P);return H.get?H.get.call(arguments.length<3?I:T):H.value}},A.apply(this,arguments)}},1120:function(Ae,K,m){"use strict";function G(W){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)})(W)}m.d(K,{Z:function(){return G}})},136:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(9611);function W(A,j){if("function"!=typeof j&&null!==j)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),j&&(0,G.Z)(A,j)}},8814:function(Ae,K,m){"use strict";function G(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(W){return!1}}m.d(K,{Z:function(){return G}})},9199:function(Ae,K,m){"use strict";function G(W){if("undefined"!=typeof Symbol&&null!=W[Symbol.iterator]||null!=W["@@iterator"])return Array.from(W)}m.d(K,{Z:function(){return G}})},5267:function(Ae,K,m){"use strict";function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}m.d(K,{Z:function(){return G}})},2963:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1002),W=m(7326);function A(j,I){if(I&&("object"===(0,G.Z)(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return(0,W.Z)(j)}},9611:function(Ae,K,m){"use strict";function G(W,A){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,P){return I.__proto__=P,I})(W,A)}m.d(K,{Z:function(){return G}})},7685:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return I}});var G=m(3878);var A=m(181),j=m(5267);function I(P,T){return(0,G.Z)(P)||function W(P,T){var E=null==P?null:"undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(null!=E){var x,w,H=[],R=!0,v=!1;try{for(E=E.call(P);!(R=(x=E.next()).done)&&(H.push(x.value),!T||H.length!==T);R=!0);}catch(Z){v=!0,w=Z}finally{try{!R&&null!=E.return&&E.return()}finally{if(v)throw w}}return H}}(P,T)||(0,A.Z)(P,T)||(0,j.Z)()}},4506:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return I}});var G=m(3878),W=m(9199),A=m(181),j=m(5267);function I(P){return(0,G.Z)(P)||(0,W.Z)(P)||(0,A.Z)(P)||(0,j.Z)()}},4902:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(907);var A=m(9199),j=m(181);function P(T){return function W(T){if(Array.isArray(T))return(0,G.Z)(T)}(T)||(0,A.Z)(T)||(0,j.Z)(T)||function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(Ae,K,m){"use strict";function G(W){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(W)}m.d(K,{Z:function(){return G}})},181:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(907);function W(A,j){if(A){if("string"==typeof A)return(0,G.Z)(A,j);var I=Object.prototype.toString.call(A).slice(8,-1);if("Object"===I&&A.constructor&&(I=A.constructor.name),"Map"===I||"Set"===I)return Array.from(A);if("Arguments"===I||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return(0,G.Z)(A,j)}}},5724:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return I}});var G=m(1120),W=m(9611);var j=m(5647);function I(P){var T="function"==typeof Map?new Map:void 0;return I=function(H){if(null===H||!function A(P){return-1!==Function.toString.call(P).indexOf("[native code]")}(H))return H;if("function"!=typeof H)throw new TypeError("Super expression must either be null or a function");if(void 0!==T){if(T.has(H))return T.get(H);T.set(H,R)}function R(){return(0,j.Z)(H,arguments,(0,G.Z)(this).constructor)}return R.prototype=Object.create(H.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),(0,W.Z)(R,H)},I(P)}},4147:function(Ae){"use strict";Ae.exports={i8:"3.0.0a6"}}},function(Ae){var G;G=3746,Ae(Ae.s=G)}]); |